]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
c557f73089aaaa320aa8dcfd9f6c0b032238c7fe
[gcc.git] / gcc / ChangeLog
1 2010-07-09 Richard Guenther <rguenther@suse.de>
2
3 * gimple.c (struct type_fixup_s): New struct and VEC type.
4 (gimple_register_type_fixups): New static global.
5 (gimple_queue_type_fixup): New function.
6 (gimple_types_compatible_p): Queue type fixups instead of
7 applying them here.
8 (gimple_register_type): Apply queued fixups for the
9 canonical type. Empty the type fixup queue.
10
11 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
12
13 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
14 * configure: Regenerate.
15 * config.in: Ditto.
16
17 2010-07-09 Jakub Jelinek <jakub@redhat.com>
18 Denys Vlasenko <dvlasenk@redhat.com>
19 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20
21 PR tree-optimization/28632
22 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
23 (extract_range_from_binary_expr): Further optimize
24 BIT_AND_EXPR and BIT_IOR_EXPR.
25
26 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
27
28 * tree-if-conv.c (fold_or_predicates): New.
29 (add_to_predicate_list): Call it.
30
31 2010-07-09 Richard Guenther <rguenther@suse.de>
32
33 PR middle-end/44890
34 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
35 if base is a pointer.
36 * tree-cfg.c (verify_expr): Update MEM_REF checking.
37
38 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
39
40 PR target/44877
41 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
42 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
43 builtin mask for load/store builtins.
44
45 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
46
47 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
48 for "lock addl".
49 * configure: Regenerate.
50 * config/i386/i386.c (ix86_print_operand) <case ';'>:
51 Remove TARGET_MACHO.
52
53 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
54
55 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
56 default ISA flags.
57 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
58
59 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
60
61 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
62
63 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
64
65 * config/picochip/picochip.md (commsTestPort): Emit more
66 efficient sequence for tstport instruction.
67
68 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
69
70 * config/i386/i386.c (ix86_veclib_handler): Make static.
71
72 2010-07-09 Richard Guenther <rguenther@suse.de>
73
74 PR tree-optimization/44852
75 * tree-ssa-alias.c: Include toplev.h for exact_log2.
76 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
77 in MEM_REF.
78 (indirect_refs_may_alias_p): Likewise.
79 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
80
81 2010-07-09 Richard Guenther <rguenther@suse.de>
82
83 PR tree-optimization/44882
84 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
85 sets do conflict.
86 (vectorizable_load): Likewise.
87
88 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
89
90 PR target/40657
91 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
92 All callers changed.
93 Handle the case when we're called for the epilogue.
94 (thumb_unexpanded_epilogue): Use it.
95 (thumb1_expand_epilogue): Likewise.
96
97 2010-07-09 Jakub Jelinek <jakub@redhat.com>
98
99 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
100 both ranges are range_int_cst_p with non-negative minimum,
101 try harder to derive smaller range.
102
103 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
104
105 * genrecog.c: Include diagnostic-core.h before toplev.h.
106 * genoutput.c: Likewise.
107 * genextract.c: Likewise.
108 * genautomata.c: Likewise.
109 * genemit.c: Likewise.
110 * genpeep.c: Likewise.
111 * genattrtab.c: Likewise.
112 * genconditions.c: Likewise.
113 * genpreds.c: Likewise.
114
115 2010-07-08 Andi Kleen <ak@linux.intel.com>
116
117 * lto-section-in.c (lto_section_name): Add missing comma.
118
119 2010-07-08 Anatoly Sokolov <aesok@post.ru>
120
121 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
122 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
123 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
124 (ia64_override_options): Rename to...
125 (ia64_option_override): ... this one. Make static.
126
127 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
128
129 PR middle-end/44843
130 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
131 pointed-to type of the offset in a MEM_REF to compute the alignment.
132
133 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
134
135 * final.c (final_scan_insn): Replace
136 TARGET_UNWIND_INFO macro check by unwind_emit
137 hook NULL check.
138 * targhooks.c (default_unwind_emit): Removed.
139 * targhooks.h (default_unwind_emit): Likewise.
140 * target.def (unwind_emit): Set default value to NULL.
141
142 * config/i386/i386-protos.h (ix86_asm_output_function_label):
143 New prototype.
144 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
145 for NULL fntype argument and allow 64-bit targets.
146 (ix86_asm_output_function_label): New function.
147 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
148 (ix86_handle_fndecl_attribute): Likewise.
149 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
150 * doc/doc/tm.texi: Regenerated.
151 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
152 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
153 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
154 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
155 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
156 * config/elfos.h: Likewise.
157 * config/i386/cygming.h: Likewise.
158 * config/netbsd-aout.h: Likewise.
159 * config/openbsd.h: Likewise.
160 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
161 by ix86_asm_output_function_label function call.
162 * varasm.c (assemble_start_function): Use
163 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
164
165 2010-07-08 Jan Hubicka <jh@suse.cz>
166
167 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
168 New function.
169 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
170 Declare.
171 * ipa-cp.c (ipcp_estimate_growth): Use it.
172 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
173 Likewise.
174
175 2010-07-08 Jan Hubicka <jh@suse.cz>
176
177 * tree-inline.c (declare_return_variable): Allocate annotation for new
178 temporary.
179
180 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
181
182 PR tree-optimization/44710
183 * tree-if-conv.c (parse_predicate): New.
184 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
185 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
186
187 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
188
189 * common.opt (ftree-loop-if-convert): New flag.
190 * doc/invoke.texi (ftree-loop-if-convert): Documented.
191 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
192 when flag_tree_loop_if_convert is set.
193
194 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
195
196 * config/i386/i386.c: Use short syntax for function calls
197 through function pointers.
198 * config/i386/i386.md: Ditto.
199
200 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
201
202 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
203
204 2010-07-08 Richard Guenther <rguenther@suse.de>
205
206 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
207 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
208
209 2010-07-08 Jakub Jelinek <jakub@redhat.com>
210
211 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
212 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
213 (loc_list_from_tree): Likewise.
214 (output_loc_operands): Handle outputting DW_OP_const[48]u
215 with loc->dtprel set.
216 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
217
218 2010-07-08 Jan Hubicka <jh@suse.cz>
219
220 * ipa.c: Include pointer-set.h
221 (cgraph_externally_visible_p): New attribute ALIASED;
222 when in LTO, hidden symbols are local unless they are aliased.
223 (function_and_variable_visibility): Compute aliased nodes;
224 handle LTO and hidden symbol on functions and vars.
225 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
226 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
227
228 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
229
230 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
231 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
232 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
233 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
234 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
235 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
236 (ix86_gen_probe_stack_range): Likewise.
237 (override_options): Set them.
238 (ix86_target_stack_probe): New function.
239 (ix86_compute_frame_layout): Force use of push instructions to
240 save registers if stack checking with probes is enabled.
241 (get_scratch_register_on_entry): New function.
242 (release_scratch_register_on_entry): Likewise.
243 (ix86_adjust_stack_and_probe): Likewise.
244 (output_adjust_stack_and_probe): Likewise.
245 (ix86_emit_probe_stack_range): Likewise.
246 (output_probe_stack_range): Likewise.
247 (ix86_expand_prologue): Emit stack checking code if static built-in
248 stack checking is enabled.
249 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
250 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
251 (output_adjust_stack_and_probe): Likewise.
252 (output_probe_stack_range): Likewise.
253 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
254 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
255 TARGET_STACK_PROBE.
256 (allocate_stack_worker_64): Likewise.
257 (allocate_stack): Likewise.
258 (adjust_stack_and_probe): New insn.
259 (probe_stack_range): Likewise.
260
261 2010-07-08 Richard Guenther <rguenther@suse.de>
262
263 PR tree-optimization/44831
264 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
265 a MEM_REF preserving TBAA info of the original dereference.
266 Dereference the original pointer if the address is not invariant.
267 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
268 at least one invariant address that we are going to dereference.
269
270 2010-07-08 Richard Guenther <rguenther@suse.de>
271
272 PR tree-optimization/44861
273 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
274 information when building MEM_REFs.
275 (vectorizable_load): Likewise.
276 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
277
278 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
279
280 * config/sol2-c.c: Do not include diagnostic-core.h.
281
282 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
283
284 PR bootstrap/44768
285 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
286 with respect to current_function_decl. Pass decl of the function.
287 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
288 * ipa-inline.c (compute_inline_parameters): Pass decl to
289 estimated_stack_frame_size.
290
291 2010-07-08 Richard Guenther <rguenther@suse.de>
292
293 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
294 New function.
295 (valueize_refs): Call it.
296
297 2010-07-08 Richard Guenther <rguenther@suse.de>
298
299 PR rtl-optimization/44838
300 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
301 SSA form do not use pointer equivalence.
302
303 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
304
305 * dwarf2out.c (AT_linkage_name): Delete.
306 (add_linkage_attr): New function.
307 (add_linkage_name): Call it to emit the linkage attribute.
308 (dwarf2out_finish): Likewise.
309 (move_linkage_attr): Explicitly accept both attribute variants.
310
311 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
312
313 * toplev.h: Do not include diagnostic-core.h.
314 Include diagnostic-core.h in every file that includes toplev.h.
315 * c-tree.h: Do not include toplev.h.
316 * pretty-print.h: Update comment.
317 * Makefile.in: Update dependencies.
318 * alias.c: Include diagnostic-core.h in every file that includes
319 toplev.h.
320 * attribs.c: Likewise.
321 * auto-inc-dec.c: Likewise.
322 * bb-reorder.c: Likewise.
323 * bt-load.c: Likewise.
324 * caller-save.c: Likewise.
325 * calls.c: Likewise.
326 * cfg.c: Likewise.
327 * cfganal.c: Likewise.
328 * cfgbuild.c: Likewise.
329 * cfgcleanup.c: Likewise.
330 * cfghooks.c: Likewise.
331 * cfgloop.c: Likewise.
332 * combine.c: Likewise.
333 * config/alpha/alpha.c: Likewise.
334 * config/arc/arc.c: Likewise.
335 * config/arm/arm.c: Likewise.
336 * config/arm/pe.c: Likewise.
337 * config/avr/avr.c: Likewise.
338 * config/bfin/bfin.c: Likewise.
339 * config/cris/cris.c: Likewise.
340 * config/crx/crx.c: Likewise.
341 * config/darwin-c.c: Likewise.
342 * config/darwin.c: Likewise.
343 * config/fr30/fr30.c: Likewise.
344 * config/frv/frv.c: Likewise.
345 * config/h8300/h8300.c: Likewise.
346 * config/host-darwin.c: Likewise.
347 * config/i386/i386.c: Likewise.
348 * config/i386/netware.c: Likewise.
349 * config/i386/nwld.c: Likewise.
350 * config/i386/winnt-cxx.c: Likewise.
351 * config/i386/winnt-stubs.c: Likewise.
352 * config/i386/winnt.c: Likewise.
353 * config/ia64/ia64-c.c: Likewise.
354 * config/ia64/ia64.c: Likewise.
355 * config/iq2000/iq2000.c: Likewise.
356 * config/lm32/lm32.c: Likewise.
357 * config/m32c/m32c-pragma.c: Likewise.
358 * config/m32c/m32c.c: Likewise.
359 * config/m32r/m32r.c: Likewise.
360 * config/m68hc11/m68hc11.c: Likewise.
361 * config/m68k/m68k.c: Likewise.
362 * config/mcore/mcore.c: Likewise.
363 * config/mep/mep-pragma.c: Likewise.
364 * config/mep/mep.c: Likewise.
365 * config/mmix/mmix.c: Likewise.
366 * config/mn10300/mn10300.c: Likewise.
367 * config/moxie/moxie.c: Likewise.
368 * config/pa/pa.c: Likewise.
369 * config/pdp11/pdp11.c: Likewise.
370 * config/picochip/picochip.c: Likewise.
371 * config/rs6000/rs6000-c.c: Likewise.
372 * config/rs6000/rs6000.c: Likewise.
373 * config/rx/rx.c: Likewise.
374 * config/s390/s390.c: Likewise.
375 * config/score/score.c: Likewise.
376 * config/score/score3.c: Likewise.
377 * config/score/score7.c: Likewise.
378 * config/sh/sh.c: Likewise.
379 * config/sh/symbian-base.c: Likewise.
380 * config/sh/symbian-c.c: Likewise.
381 * config/sh/symbian-cxx.c: Likewise.
382 * config/sol2-c.c: Likewise.
383 * config/sol2.c: Likewise.
384 * config/sparc/sparc.c: Likewise.
385 * config/spu/spu.c: Likewise.
386 * config/stormy16/stormy16.c: Likewise.
387 * config/v850/v850-c.c: Likewise.
388 * config/v850/v850.c: Likewise.
389 * config/vax/vax.c: Likewise.
390 * config/vxworks.c: Likewise.
391 * config/xtensa/xtensa.c: Likewise.
392 * convert.c: Likewise.
393 * cse.c: Likewise.
394 * cselib.c: Likewise.
395 * dbgcnt.c: Likewise.
396 * dbxout.c: Likewise.
397 * ddg.c: Likewise.
398 * dominance.c: Likewise.
399 * emit-rtl.c: Likewise.
400 * explow.c: Likewise.
401 * expmed.c: Likewise.
402 * fixed-value.c: Likewise.
403 * fold-const.c: Likewise.
404 * fwprop.c: Likewise.
405 * gcse.c: Likewise.
406 * ggc-common.c: Likewise.
407 * ggc-page.c: Likewise.
408 * ggc-zone.c: Likewise.
409 * gimple-low.c: Likewise.
410 * gimplify.c: Likewise.
411 * graph.c: Likewise.
412 * haifa-sched.c: Likewise.
413 * ifcvt.c: Likewise.
414 * implicit-zee.c: Likewise.
415 * integrate.c: Likewise.
416 * ira-build.c: Likewise.
417 * ira-color.c: Likewise.
418 * ira-conflicts.c: Likewise.
419 * ira-costs.c: Likewise.
420 * ira-lives.c: Likewise.
421 * ira.c: Likewise.
422 * lists.c: Likewise.
423 * loop-doloop.c: Likewise.
424 * loop-iv.c: Likewise.
425 * lto-opts.c: Likewise.
426 * lto-symtab.c: Likewise.
427 * main.c: Likewise.
428 * modulo-sched.c: Likewise.
429 * optabs.c: Likewise.
430 * params.c: Likewise.
431 * plugin.c: Likewise.
432 * postreload-gcse.c: Likewise.
433 * postreload.c: Likewise.
434 * predict.c: Likewise.
435 * profile.c: Likewise.
436 * real.c: Likewise.
437 * regcprop.c: Likewise.
438 * reginfo.c: Likewise.
439 * regmove.c: Likewise.
440 * reorg.c: Likewise.
441 * resource.c: Likewise.
442 * rtl.c: Likewise.
443 * rtlanal.c: Likewise.
444 * sched-deps.c: Likewise.
445 * sched-ebb.c: Likewise.
446 * sched-rgn.c: Likewise.
447 * sdbout.c: Likewise.
448 * sel-sched-dump.c: Likewise.
449 * sel-sched-ir.c: Likewise.
450 * simplify-rtx.c: Likewise.
451 * stmt.c: Likewise.
452 * stor-layout.c: Likewise.
453 * store-motion.c: Likewise.
454 * targhooks.c: Likewise.
455 * tree-cfg.c: Likewise.
456 * tree-cfgcleanup.c: Likewise.
457 * tree-dump.c: Likewise.
458 * tree-eh.c: Likewise.
459 * tree-inline.c: Likewise.
460 * tree-nomudflap.c: Likewise.
461 * tree-object-size.c: Likewise.
462 * tree-optimize.c: Likewise.
463 * tree-outof-ssa.c: Likewise.
464 * tree-phinodes.c: Likewise.
465 * tree-profile.c: Likewise.
466 * tree-ssa-ccp.c: Likewise.
467 * tree-ssa-coalesce.c: Likewise.
468 * tree-ssa-live.c: Likewise.
469 * tree-ssa-loop-niter.c: Likewise.
470 * tree-ssa-loop-prefetch.c: Likewise.
471 * tree-ssa-loop.c: Likewise.
472 * tree-ssa-structalias.c: Likewise.
473 * tree-ssa-uninit.c: Likewise.
474 * tree-ssa.c: Likewise.
475 * tree-vect-data-refs.c: Likewise.
476 * tree-vect-loop-manip.c: Likewise.
477 * tree-vect-loop.c: Likewise.
478 * tree-vect-patterns.c: Likewise.
479 * tree-vect-stmts.c: Likewise.
480 * tree-vrp.c: Likewise.
481 * varasm.c: Likewise.
482 * vec.c: Likewise.
483 * web.c: Likewise.
484 * xcoffout.c: Likewise.
485
486 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
487
488 * gengtype.c (write_field_root): New function.
489 (write_root): Use it.
490
491 2010-07-07 Wei Guozhi <carrot@google.com>
492
493 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
494 of lowest bits to lshift/compare): Add a missing line.
495
496 2010-07-07 Wei Guozhi <carrot@google.com>
497
498 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
499 of lowest bits to lshift/compare): New.
500
501 2010-07-07 Tom Tromey <tromey@redhat.com>
502
503 * doc/tm.texi: Update.
504 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
505 Add @hook.
506 * target.def (want_debug_pub_sections): New hook.
507 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
508 * dwarf2out.c (add_pubname_string): Check
509 targetm.want_debug_pub_sections.
510 (add_pubname): Likewise.
511 (add_pubtype): Likewise.
512
513 2010-07-07 Jie Zhang <jie@codesourcery.com>
514
515 * genautomata.c (output_automata_list_min_issue_delay_code):
516 Correctly decompress min_issue_delay.
517
518 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
519
520 PR rtl-optimization/44404
521 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
522 possible, use reg_overlap_mentioned_p instead.
523
524 2010-07-07 Duncan Sands <baldrick@free.fr>
525
526 PR middle-end/41355
527 * tree.c (build_function_type_skip_args): Copy the original type using
528 build_distinct_type_copy rather than copy_node.
529
530 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
531
532 PR target/44850
533 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
534 revision 161876.
535 (ix86_expand_prologue): Likewise.
536 (ix86_handle_fndecl_attribute): Likewise.
537 (ix86_asm_declare_function_name): Likewise.
538 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
539 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
540 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
541 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
542 * doc/extend.texi: Likewise.
543
544 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
545
546 PR target/44844
547 * config/i386/i386.md (rdrand<mode>): Changed to expand to
548 retry if the carry flag isn't valid.
549 (rdrand<mode>_1): New.
550
551 2010-07-07 Richard Guenther <rguenther@suse.de>
552
553 PR middle-end/44790
554 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
555 for expanding the constant offset for MEM_REFs.
556
557 2010-07-07 Richard Guenther <rguenther@suse.de>
558
559 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
560 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
561 * gimple.h (is_gimple_operand): Remove.
562 * gimple.c (is_gimple_operand): Likewise.
563 (walk_gimple_op): Fix wi->val_only setting for calls.
564 * tree-cfg.c (verify_gimple_call): Fix argument validation.
565 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
566 invalid gimple calls.
567
568 2010-07-06 Jan Hubicka <jh@suse.cz>
569
570 * lto-cgraph.c (output_cgraph): Add missing declaration.
571
572 2010-07-06 Jan Hubicka <jh@suse.cz>
573
574 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
575 partition.
576
577 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
578
579 * doc/gimple.texi (GIMPLE_DEBUG): Document.
580 * doc/rtl.texi (Debug Information): New node.
581 (NOTE_INSN_VAR_LOCATION): Document.
582 (debug_insn): Likewise.
583 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
584
585 2010-07-07 Jan Hubicka <jh@suse.cz>
586
587 With parts by Richard Guenther.
588
589 PR middle-end/44813
590 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
591 for functions passed by reference.
592 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
593 in memory when passed by reference.
594 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
595 beggining.
596 * ipa-split.c (split_function): Cleanup way return value is passed;
597 handle SSA DECL_BY_REFERENCE retvals.
598 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
599 DECL_BY_REFERENCE is set.
600 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
601 find_what_p_points_to): Handle RESULT_DECL.
602 * tree-inline.c (declare_return_variable): Get new entry_block argument;
603 when passing by reference ensure that RESULT_DECL is gimple_val.
604 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
605 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
606
607 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
608
609 PR rtl-optimization/44787
610 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
611 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
612
613 2010-07-06 Jan Hubicka <jh@suse.cz>
614
615 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
616 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
617 with body can prevail.
618 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
619 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
620 * cgraph.c (cgraph_get_node_or_alias): New function.
621 * cgraph.h (cgraph_get_node_or_alias): Declare.
622
623 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
624
625 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
626 support.
627 (ix86_expand_prologue): Likewise.
628 (ix86_handle_fndecl_attribute): Likewise.
629 (ix86_asm_declare_function_name): New function for
630 ASM_DECLARE_FUNCTION_NAME.
631 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
632 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
633 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
634 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
635 * doc/extend.texi: Adjust documentation about ms_hook_prologue
636 attribute.
637
638 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
639
640 * config/i386/i386.md (immediate_operand): New mode attribute.
641
642 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
643 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
644 using P mode iterator.
645 (pro_epilogue_adjust_stack_di_2): Rename from
646 pro_epilogue_adjust_stack_rex64_2.
647
648 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
649
650 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
651
652 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
653 through gen_mov_insv_1 function pointer.
654 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
655 gen_truncxf<mode>2 through gen_truncxf function pointer.
656 (remainder<mode>3): Ditto.
657 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
658 (allocate_stack): Call gen_allocate_stack_worker_64 or
659 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
660 function pointer.
661 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
662 function pointer.
663
664 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
665
666 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
667 operand constraint instead of <r><i>m.
668
669 2010-07-06 Richard Guenther <rguenther@suse.de>
670
671 PR middle-end/44828
672 * convert.c (convert_to_integer): Watch out for overflowing
673 MULT_EXPR as well.
674
675 2010-07-05 Jan Hubicka <jh@suse.cz>
676
677 * lto-streamer.c (write_symbol_vec): Rename to ...
678 (write_symbol) ... this one; write only symbol given and when
679 present in cache. Sanity check that what is defined is present
680 in cgraph/varpool with body/finalized decl.
681 (write_symbols_of_kind): Remove.
682 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
683 pairs to produce symtab.
684 (produce_asm_for_decls): Update call of produce_symtab; don't do so
685 when doing WPA streaming.
686
687 2010-07-05 Jan Hubicka <jh@suse.cz>
688
689 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
690 function is still available to fold into.
691
692 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
693
694 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
695 * function.h (struct_function): Change type of local_decls field
696 to a VEC.
697 (add_local_decl): New function.
698 (FOR_EACH_LOCAL_DECL): New macro.
699 * cfgexpand.c (init_vars_expansion): Adjust for new type of
700 cfun->local_decls.
701 (estimated_stack_frame_size): Likewise.
702 (expand_used_vars): Likewise.
703 * cgraphbuild.c (build_cgraph_edges): Likewise.
704 * function.c (instantiate_decls_1): Likewise.
705 * ipa-struct-reorg.c (build_data_structure): Likewise.
706 * ipa-type-escape.c (analyze_function): Likewise.
707 * lto-streamer-in.c (input_function): Likewise.
708 * lto-streamer-out.c (output_function): Likewise.
709 * tree-ssa-live.c (remove_unused_locals): Likewise.
710 * tree.c (free_lang_data_in_decl): Likewise.
711 (find_decls_types_in_node): Likewise.
712 * omp-low.c (remove_exit_barrier): Likewise.
713 (expand_omp_taskreg): Likewise.
714 (list2chain): Rename to...
715 (vec2chain): ...this. Adjust.
716 * cgraphunit.c (assemble_thunk): Call add_local_decl.
717 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
718 * gimple-low.c (record_vars_into): Likewise.
719 * tree-inline.c (remap_decls): Likewise.
720 (declare_return_variable): Likewise.
721 (declare_inline_vars): Likewise.
722 (copy_forbidden): Adjust for new type of cfun->local_decls.
723 (add_local_variables): New function.
724 (expand_call_inline): Call it.
725 (tree_function_versioning): Likewise.
726
727 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
728
729 AVX Programming Reference (June, 2010)
730 * config/i386/cpuid.h (bit_F16C): New.
731 (bit_RDRND): Likewise.
732 (bit_FSGSBASE): Likewise.
733
734 * config/i386/i386-builtin-types.def: Add
735 "DEF_FUNCTION_TYPE (UINT16)", function types for
736 float16 <-> float conversions and
737 "DEF_FUNCTION_TYPE (VOID, UINT64)".
738
739 * config/i386/i386-c.c (ix86_target_macros_internal): Support
740 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
741 OPTION_MASK_ISA_F16C.
742
743 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
744 (OPTION_MASK_ISA_RDRND_SET): Likewise.
745 (OPTION_MASK_ISA_F16C_SET): Likewise.
746 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
747 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
748 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
749 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
750 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
751 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
752 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
753 (override_options): Handle them.
754 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
755 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
756 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
757 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
758 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
759 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
760 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
761 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
762 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
763 (bdesc_args): Likewise.
764 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
765 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
766 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
767 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
768 Handle non-memory store.
769
770 * config/i386/i386.h (TARGET_FSGSBASE): New.
771 (TARGET_RDRND): Likewise.
772 (TARGET_F12C): Likewise.
773
774 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
775 (UNSPEC_VCVTPS2PH): Likewise.
776 (UNSPECV_RDFSBASE): Likewise.
777 (UNSPECV_RDGSBASE): Likewise.
778 (UNSPECV_WRFSBASE): Likewise.
779 (UNSPECV_WRGSBASE): Likewise.
780 (UNSPECV_RDRAND): Likewise.
781 (rdfsbase<mode>): Likewise.
782 (rdgsbase<mode>): Likewise.
783 (wrfsbase<mode>): Likewise.
784 (wrgsbase<mode>): Likewise.
785 (rdrand<mode>): Likewise.
786
787 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
788
789 * config/i386/immintrin.h (_rdrand_u16): New.
790 (_rdrand_u32): Likewise.
791 (_readfsbase_u32): Likewise.
792 (_readfsbase_u64): Likewise.
793 (_readgsbase_u32): Likewise.
794 (_readgsbase_u64): Likewise.
795 (_writefsbase_u32): Likewise.
796 (_writefsbase_u64): Likewise.
797 (_writegsbase_u32): Likewise.
798 (_writegsbase_u64): Likewise.
799 (_rdrand_u64): Likewise.
800 (_cvtsh_ss): Likewise.
801 (_mm_cvtph_ps): Likewise.
802 (_mm256_cvtph_ps): Likewise.
803 (_cvtss_sh): Likewise.
804 (_mm_cvtps_ph): Likewise.
805 (_mm256_cvtps_ph): Likewise.
806
807 * config/i386/sse.md (vcvtph2ps): New.
808 (*vcvtph2ps_load): Likewise.
809 (vcvtph2ps256): Likewise.
810 (vcvtps2ph): Likewise.
811 (*vcvtps2ph): Likewise.
812 (*vcvtps2ph_store): Likewise.
813 (vcvtps2ph256): Likewise.
814
815 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
816
817 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
818
819 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
820
821 PR bootstrap/44512
822 * genenums.c (main): Output include of insn-constants.h
823 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
824
825 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
826
827 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
828 (override_options): Initialize it.
829 (ix86_expand_prologue): Use it.
830
831 2010-07-05 Jakub Jelinek <jakub@redhat.com>
832
833 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
834
835 2010-07-05 Anatoly Sokolov <aesok@post.ru>
836
837 * double-int.h (fit_double_type): Remove declaration.
838 * double-int.c (fit_double_type): Remove function.
839 * tree.h (int_fits_type_p): Adjust prototype.
840 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
841 instead of fit_double_type.
842 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
843 instead of fit_double_type and build_int_cst_wide.
844 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
845 instead of fit_double_type and build_int_cst_wide.
846 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
847 of fit_double_type.
848
849 2010-07-05 Jan Hubicka <jh@suse.cz>
850
851 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
852 in_other_partition.
853 * lto-cgraph.c (referenced_from_other_partition_p,
854 reachable_from_other_partition_p): Use in_other_partition flags.
855 (output_node, output_varpool_node): COMDAT nodes always have private
856 copies and thus are never used from other partition.
857
858 2010-07-05 Anatoly Sokolov <aesok@post.ru>
859
860 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
861 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
862 * config/ia64/ia64.c Include reload.h.
863 (ia64_memory_move_cost): New function.
864 (TARGET_MEMORY_MOVE_COST): Define.
865 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
866 memory_move_cost.
867
868 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
869
870 PR middle-end/42505
871 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
872 comments about cost model.
873 (try_add_cand_for): Add second strategy for choosing initial set
874 based on original IVs, controlled by ORIGINALP argument.
875 (get_initial_solution): Add ORIGINALP argument.
876 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
877 (find_optimal_iv_set): Try two different strategies for choosing
878 the IV set, and return the one with lower cost.
879
880 2010-07-05 Richard Guenther <rguenther@suse.de>
881
882 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
883
884 2010-07-05 Richard Guenther <rguenther@suse.de>
885
886 * tree.c (reference_alias_ptr_type): New function.
887 * tree.h (reference_alias_ptr_type): Declare.
888 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
889 allow non-TARGET_MEM_REF new refs.
890 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
891 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
892 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
893 (create_mem_ref): Get alias pointer type. Adjust calls to
894 create_mem_ref_raw.
895 (maybe_fold_tmr): Likewise.
896 * tree-flow.h (create_mem_ref): Adjust prototype.
897
898 2010-07-05 Jakub Jelinek <jakub@redhat.com>
899
900 PR c++/44808
901 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
902 *from_p is VAR_DECL.
903
904 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
905
906 * tree.h (build_call_list): Remove.
907 * tree.c (build_call_list): Remove.
908
909 2010-07-05 Richard Guenther <rguenther@suse.de>
910
911 * double-int.h (double_int_sub): Declare.
912 * double-int.c (double_int_sub): New function.
913 * dwarf2out.c (field_byte_offset): Use it.
914 * fixed-value.c (do_fixed_add): Likewise.
915 (do_fixed_multiply): Likewise.
916 (do_fixed_divide): Likewise.
917 * tree-predcom.c (add_ref_to_chain): Likewise.
918 (determine_roots_comp): Likewise.
919 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
920
921 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
922
923 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
924 implementations.
925
926 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
927
928 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
929 * arm-modes.def (CC_NOTB): Don't define.
930 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
931 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
932 (LTUGEU): New code_iterator.
933 (cnb, optab): New corresponding code_attrs.
934 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
935 to canonical form. Operands 1 and 2 are commutative. Parametrize
936 using LTUGEU.
937 (addsi3_carryin_shift_<optab>): Likewise.
938 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
939 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
940 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
941 (subsi3_compare): Renamed from subsi3_compare0_c.
942 Change CC_NOTB to CC.
943 (arm_subsi3_insn): Allow constants for operand 0.
944 (compare_scc peephole for eq case): New.
945 (compare_scc splitters): Change CC_NOTB to CC.
946
947 2010-07-05 Richard Guenther <rguenther@suse.de>
948
949 * tree-ssa-loop-im.c (for_each_index): Do not handle
950 ALIGN_INDIRECT_REF.
951 (gen_lsm_tmp_name): Likewise.
952 * tree-dump.c (dequeue_and_dump): Likewise.
953 * tree-pretty-print.c (dump_generic_node): Likewise.
954 (op_code_prio): Likewise.
955 (op_symbol_code): Likewise.
956 * tree.c (staticp): Likewise.
957 (build1_stat): Likewise.
958 * tree.h (INDIRECT_REF_P): Likewise.
959 * fold-const.c (maybe_lvalue_p): Likewise.
960 (operand_equal_p): Likewise.
961 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
962 (ao_ref_init_from_vn_reference): Likewise.
963 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
964 (find_interesting_uses_address): Likewise.
965 * dwarf2out.c (loc_list_from_tree): Likewise.
966 * gimplify.c (gimplify_expr): Likewise.
967 * tree-eh.c (tree_could_trap_p): Likewise.
968 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
969 * cfgexpand.c (expand_debug_expr): Likewise.
970 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
971 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
972 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
973 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
974 * tree-ssa-operands.c (get_expr_operands): Likewise.
975 * expr.c (safe_from_p): Likewise.
976 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
977 * tree-vect-data-refs.c (vect_setup_realignment): Build
978 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
979 * tree-vect-stmts.c (vectorizable_load): Likewise.
980 * tree.def (ALIGN_INDIRECT_REF): Remove.
981
982 2010-07-05 Richard Guenther <rguenther@suse.de>
983
984 PR tree-optimization/44784
985 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
986 for inserted stmts.
987 (find_or_generate_expression): Fix SCCVN insertion check.
988
989 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
990
991 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
992 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
993 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
994 directives.
995
996 2010-07-05 Ira Rosen <irar@il.ibm.com>
997
998 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
999 statements that are not vectorized.
1000 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
1001 in INSIDE_COST.
1002
1003 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
1004
1005 PR bootstrap/44820
1006 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
1007
1008 2010-07-05 Richard Guenther <rguenther@suse.de>
1009
1010 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
1011 RESULT_DECLs properly.
1012
1013 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
1014
1015 PR rtl-optimization/44695
1016 * config/i386/i386.md (extract_code): Removed.
1017 (<u>divmodqi4): Likewise.
1018 (divmodqi4): New.
1019 (udivmodqi4): Likewise.
1020 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
1021 (udivmodhiqi3): Likewise.
1022
1023 2010-07-04 Jan Hubicka <jh@suse.cz>
1024
1025 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
1026
1027 2010-07-04 Jan Hubicka <jh@suse.cz>
1028
1029 * cgraphunit.c (init_cgraph): Only initialize dump file if it
1030 is not already initialized.
1031
1032 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1033
1034 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
1035 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
1036 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
1037 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
1038 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
1039 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
1040 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
1041 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
1042 (sync_new_nand_optab): Redefine as macros.
1043 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
1044 Delete.
1045 (direct_optab_index): New enum.
1046 (direct_optab_d): New structure.
1047 (direct_optab): New typedef.
1048 (direct_optab_table): Declare.
1049 (direct_optab_handler, set_direct_optab_handler): New functions.
1050 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
1051 (sync_lock_release_optab): New macros.
1052 * optabs.c (direct_optab_table): New variable.
1053 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
1054 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
1055 cmpstr_optab and cmpstrn_optab.
1056 (emit_conditional_move): Likewise for movcc_optab.
1057 (can_conditionally_move_p): Likewise for movcc_gen_code.
1058 (init_insn_codes): Clear direct_optab_table.
1059 (init_optabs): Don't initialize the new "direct optabs" here.
1060 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
1061 vcond_gen_code.
1062 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
1063 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
1064 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
1065 (expand_sync_operation): Likewise other sync_*_optabs.
1066 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
1067 to sync_compare_and_swap_optab.
1068 (expand_sync_lock_test_and_set): Use direct_optab_handler for
1069 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
1070 to the names of both.
1071 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
1072 cmpstr_optab and cmpstrn_optab.
1073 (expand_builtin_lock_release): Likewise sync_lock_release.
1074 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
1075 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
1076 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
1077 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
1078 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
1079 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
1080 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
1081 (sync_lock_test_and_set, sync_lock_release): Delete.
1082 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
1083 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
1084 * genopinit.c (optabs): Use set_direct_optab_handler for the new
1085 macro optabs.
1086 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
1087 the "optab" local variable. Use direct_optab_handler for optab and
1088 sync_compare_and_swap_optab.
1089 * reload1.c (reload_in_optab, reload_out_optab): Delete.
1090 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
1091 reload_in_optab and reload_out_optab.
1092 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1093 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
1094 * config/pa/pa.c (pa_secondary_reload): Likewise.
1095 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
1096 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
1097 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
1098 (VMSupportsCS8_builtin): Likewise.
1099
1100 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1101
1102 * optabs.h (optab_handlers): Change type of insn_code to int.
1103 (optab_handler, set_optab_handler, convert_optab_handler)
1104 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
1105 CODE_FOR_nothing".
1106 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
1107 (init_insn_codes): Zero both the above arrays.
1108 (init_optabs): Never call init_insn_codes first time around.
1109
1110 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1111
1112 * optabs.h (optab_handler, convert_optab_handler): Turn into
1113 inline functions that return an insn code.
1114 (set_optab_handler, set_convert_optab_handler): New functions.
1115 * builtins.c: Replace optab_handler(X)->insn_code with
1116 optab_handler or set_optab_handler thoughout. Likewise
1117 convert_optab_handler(X)->insn_code with convert_optab_handler
1118 and set_convert_optab_handler.
1119 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
1120 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
1121 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
1122 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
1123 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
1124 config/spu/spu.c: Likewise.
1125
1126 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1127
1128 PR target/44531
1129 * config.gcc (sh*-*-*): Use regular expressions instead of
1130 the 'i' modifier for sed substitutions.
1131
1132 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
1133
1134 * gimple.c (gimple_body): Comments added.
1135
1136 2010-07-04 Richard Guenther <rguenther@suse.de>
1137
1138 PR middle-end/44809
1139 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
1140 of an INDIRECT_REF.
1141
1142 2010-07-04 Richard Guenther <rguenther@suse.de>
1143
1144 PR tree-optimization/44479
1145 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
1146 extra SSA name copy statements which preserves points-to
1147 information.
1148 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1149 Copy points-to information for all pointers. Properly handle
1150 MEM_REFs.
1151 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
1152 copy statements.
1153 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
1154 dependency.
1155
1156 2010-07-04 Richard Guenther <rguenther@suse.de>
1157
1158 PR middle-end/44785
1159 * tree-inline.c (initialize_inlined_parameters): Do not
1160 re-use pointer-map slot over remap_type call.
1161
1162 2010-07-04 Richard Guenther <rguenther@suse.de>
1163
1164 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
1165
1166 2010-07-04 Richard Guenther <rguenther@suse.de>
1167
1168 PR tree-optimization/44656
1169 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
1170 again after value-replacing in the defintions lhs.
1171
1172 2010-07-04 Ira Rosen <irar@il.ibm.com>
1173 Revital Eres <eres@il.ibm.com>
1174
1175 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
1176 Document new arguments.
1177 * doc/tm.texi: Regenerate.
1178 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
1179 Handle unaligned store.
1180 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
1181 * target.def (builtin_vectorization_cost): Add new arguments.
1182 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
1183 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
1184 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
1185 (vect_vfa_segment_size): Fix indentation.
1186 * tree-vectorizer.h (struct _vect_peel_info): New.
1187 (struct _vect_peel_extended_info): New.
1188 (struct _loop_vec_info): Add new field for peeling hash table and a
1189 macro for its access.
1190 (VECT_MAX_COST): Define.
1191 (vect_get_load_cost): Declare.
1192 (vect_get_store_cost, vect_get_known_peeling_cost,
1193 vect_get_single_scalar_iteraion_cost): Likewise.
1194 (vect_supportable_dr_alignment): Add new argument.
1195 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
1196 field.
1197 (destroy_loop_vec_info): Free peeling hash table.
1198 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
1199 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
1200 vect_analyze_slp. Fix indentation.
1201 (vect_get_single_scalar_iteraion_cost): New function.
1202 (vect_get_known_peeling_cost): Likewise.
1203 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
1204 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
1205 statement. Move outside cost calculation inside unknown peeling case.
1206 Call vect_get_known_peeling_cost for known amount of peeling.
1207 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
1208 reference to the print message of forced alignment.
1209 (vect_verify_datarefs_alignment): Update call to
1210 vect_supportable_dr_alignment.
1211 (vect_get_data_access_cost): New function.
1212 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
1213 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
1214 vect_peeling_hash_choose_best_peeling): Likewise.
1215 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1216 to store all the accesses in the loop and find best possible access to
1217 align using peeling for known alignment case. For unknown alignment
1218 check if stores are preferred or if peeling is worthy.
1219 (vect_find_same_alignment_drs): Analyze pairs of loads too.
1220 (vect_supportable_dr_alignment): Add new argument and check aligned
1221 accesses according to it.
1222 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1223 (cost_for_stmt): Call vect_get_stmt_cost.
1224 (vect_model_simple_cost): Likewise.
1225 (vect_model_store_cost): Call vect_get_stmt_cost. Call
1226 vect_get_store_cost to calculate the cost of the statement.
1227 (vect_get_store_cost): New function.
1228 (vect_model_load_cost): Call vect_get_stmt_cost. Call
1229 vect_get_load_cost to calculate the cost of the statement.
1230 (vect_get_load_cost): New function.
1231 (vectorizable_store): Update call to vect_supportable_dr_alignment.
1232 (vectorizable_load): Likewise.
1233 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1234 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1235 arguments. Handle unaligned store.
1236 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1237 (rs6000_builtin_support_vector_misalignment): Return true for word and
1238 double word alignments for VSX.
1239 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1240 vect_supportable_dr_alignment and builtin_vectorization_cost.
1241
1242 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1243
1244 PR target/44597
1245 * config/pa/predicates.md (prefetch_cc_operand): Remove.
1246 (prefetch_nocc_operand): Likewise.
1247 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1248 (prefetch_20): New insn.
1249 (prefetch_cc): Remove.
1250 (prefetch_nocc): Likewise.
1251
1252 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1253
1254 * expr.c (vector_mode_valid_p): Move to c-common.c.
1255 * expr.h (vector_mode_valid_p): Do not declare here.
1256 * system.h: Poison GCC_EXPR_H in front-ends.
1257 * Makefile.in: Update dependencies.
1258
1259 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1260
1261 PR target/44705
1262 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1263
1264 2010-07-03 Jan Hubicka <jh@suse.cz>
1265
1266 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1267 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1268 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1269 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1270 Likewise.
1271
1272 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1273 Update timevars.V
1274 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1275 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1276 TV_IPA_LTO_DECL_OUT): New.
1277 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1278
1279 2010-07-03 Jan Hubicka <jh@suse.cz>
1280
1281 * ipa-inline.c (update_edge_key): Break out from ...
1282 update_callers_keys): ... here;
1283 (update_callee_keys): Update only the edges from caller to callee.
1284 (update_all_calle_keys): Do what update_calle_keys did.
1285 (decide_inlining_of_small_functions): Avoid recomputing of all
1286 callees when badness increase.
1287
1288 2010-07-03 Jie Zhang <jie@codesourcery.com>
1289
1290 * config/arm/arm.c (arm_attr_length_move_neon): New.
1291 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
1292 * config/arm/neon.md (define_mode_attr V_slen): Remove.
1293 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
1294 to compute length attribute.
1295
1296 2010-07-03 Jie Zhang <jie@codesourcery.com>
1297
1298 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
1299 as predicate for operand 1 and remove its constraint.
1300 * config/arm/predicates.md (vfp_register_operand): New.
1301 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
1302 (*push_fp_multi): Likewise.
1303
1304 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
1305
1306 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
1307
1308 2010-07-03 Jan Hubicka <jh@suse.cz>
1309
1310 * config/i386/i386.c (override_options): Revert accidental commit.
1311
1312 2010-07-02 Le-Chun Wu <lcwu@google.com>
1313
1314 PR c++/44128
1315 * doc/invoke.texi: Update documentation of -Wshadow.
1316
1317 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1318 Julian Brown <julian@codesourcery.com>
1319 Sandra Loosemore <sandra@codesourcery.com>
1320
1321 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
1322 comparisons. Adjust to take both operands.
1323 (arm_select_cc_mode): Handle DImode comparisons.
1324 (arm_gen_compare_reg): Generate a scratch register for DImode
1325 comparisons which require one. Use xor for Thumb equality checks.
1326 (arm_const_double_by_immediates): New.
1327 (arm_print_operand): Allow 'Q' and 'R' for constants.
1328 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
1329 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
1330 arm_canonicalize_comparison.
1331 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
1332 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1333 prototype.
1334 (arm_const_double_by_immediates): Declare.
1335 * config/arm/constraints.md (Di): New constraint.
1336 * config/arm/predicates.md (arm_immediate_di_operand)
1337 (arm_di_operand, cmpdi_operand): New.
1338 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
1339 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
1340 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
1341 (cstoredi4): Handle non-Cirrus also.
1342
1343 2010-07-02 Julian Brown <julian@codesourcery.com>
1344 Sandra Loosemore <sandra@codesourcery.com>
1345
1346 PR target/43703
1347 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
1348 (smax<mode>3): Disable for NEON float modes when
1349 flag_unsafe_math_optimizations is false.
1350 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
1351 (*mul<mode>3_neon)
1352 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
1353 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
1354 for NEON float modes when flag_unsafe_math_optimizations is false.
1355 (quad_halves_<code>v4sf): Only enable if
1356 flag_unsafe_math_optimizations is true.
1357 * doc/invoke.texi (ARM Options): Add note about floating point
1358 vectorization requiring -funsafe-math-optimizations.
1359
1360 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1361 Julian Brown <julian@codesourcery.com>
1362
1363 * config/arm/neon.md (UNSPEC_VABA): Delete.
1364 (UNSPEC_VABAL): Delete.
1365 (UNSPEC_VABS): Delete.
1366 (UNSPEC_VMUL_N): Delete.
1367 (adddi3_neon): New.
1368 (subdi3_neon): New.
1369 (mul<mode>3add<mode>_neon): Make the pattern named.
1370 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
1371 (neon_vadd<mode>): Replace with define_expand, and move the remaining
1372 unspec parts...
1373 (neon_vadd<mode>_unspec): ...to this.
1374 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
1375 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
1376 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
1377 (neon_vaba<mode>): Rewrite in terms of vabd.
1378 (neon_vabal<mode>): Rewrite in terms of vabdl.
1379 (neon_vabs<mode>): Rewrite without unspec.
1380 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
1381 (*arm_subdi3): Likewise.
1382 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
1383 No_op attribute to disable assembly output checks.
1384 * config/arm/arm_neon.h: Regenerated.
1385 * doc/arm-neon-intrinsics.texi: Regenerated.
1386
1387 2010-07-02 Jan Hubicka <jh@suse.cz>
1388
1389 * ipa-split.c (split_function): For aggregate values, set the return
1390 slot optimization bit. When passing DECL_BY_REFERENCE, produce
1391 *<retval> = fncall.part ().
1392 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
1393
1394 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1395
1396 * config/arm/neon.md (UNSPEC_VAND): Delete.
1397 (UNSPEC_VBIC): Delete.
1398 (UNSPEC_VCLZ): Delete.
1399 (UNSPEC_VCNT): Delete.
1400 (UNSPEC_VEOR): Delete.
1401 (UNSPEC_VORN): Delete.
1402 (UNSPEC_VORR): Delete.
1403 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
1404 core registers too.
1405 (anddi3_neon): Likewise.
1406 (orndi3_neon): Likewise.
1407 (bicdi3_neon): Likewise.
1408 (xordi3_neon): Likewise.
1409 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
1410 rid of unspec and handle unused operand.
1411 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
1412 * config/arm/predicates.md (imm_for_neon_logic_operand):
1413 Require TARGET_NEON.
1414 (imm_for_neon_inv_logic_operand): Likewise.
1415 * config/arm/arm.md (define_split for logical_binary_operator):
1416 Disable for NEON registers.
1417 (anddi3): Add new define_expand, and rename the insn. Disable
1418 this insn for NEON, where anddi3_neon now applies.
1419 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
1420 (iordi3): As for anddi3.
1421 (xordi3): Likewise.
1422 * config/arm/neon.ml (Vand): Split DImode variants and mark them
1423 as No_op to disable testing for exact instruction match.
1424 (Vorr): Likewise.
1425 (Veor): Likewise.
1426 (Vbic): Likewise.
1427 (Vorn): Likewise.
1428 * config/arm/arm_neon.h: Regenerated.
1429 * doc/arm-neon-intrinsics.texi: Regenerated.
1430
1431 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1432
1433 * expr.h (emit_stack_probe): Declare.
1434 * explow.c (emit_stack_probe): Make global.
1435 (anti_adjust_stack_and_probe): Fix comments.
1436 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1437 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1438 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1439 * config/sparc/sparc.c: Include except.h.
1440 (sparc_emit_probe_stack_range): New function.
1441 (output_probe_stack_range): Likewise.
1442 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
1443 built-in stack checking is enabled.
1444 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
1445 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1446 (probe_stack_range): New insn.
1447
1448 2010-07-02 Richard Guenther <rguenther@suse.de>
1449
1450 PR target/43958
1451 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
1452 for argument alignment.
1453
1454 2010-07-02 Jan Hubicka <jh@suse.cz>
1455
1456 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
1457 walk backwards from entry_bb to check only those basic block of header
1458 that might lead to execution of split part.
1459 (consider_split) ... here.
1460 (find_return_bb): Allow assignment in return BB.
1461 (find_retval): New.
1462 (split_function): Fix name of cloned function; take care of updating
1463 return value in return_bb containing move.
1464
1465 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
1466
1467 PR target/44771
1468 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
1469 used variable insn.
1470
1471 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1472
1473 * implicit-zee.c (combine_reaching_defs): Fix long lines.
1474 (is_set_with_extension_DI): Delete.
1475 (struct zero_extend_info): New structure.
1476 (add_removable_zero_extend): New function.
1477 (find_removable_zero_extends): Use note_stores to find SETs.
1478 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
1479
1480 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
1481
1482 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
1483 is_miss_rate_acceptable. Pull total_positions computation
1484 out of the loops. Early return if miss_positions exceeds
1485 the acceptable threshold.
1486 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
1487 is_miss_rate_acceptable after renaming of compute_miss_rate.
1488
1489 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
1490
1491 PR middle-end/44576
1492 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
1493 of 1000) for miss rate if the address diference is greater than or
1494 equal to the cache line size (the two reference will never hit the
1495 same cache line).
1496
1497 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
1498
1499 PR target/42835
1500 * config/arm/arm-modes.def (CC_NOTB): New mode.
1501 * config/arm/arm.c (get_arm_condition_code): Handle it.
1502 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
1503 * config/arm/arm.md (subsi3_compare0_c): New pattern.
1504 (compare_scc): Now a define_and_split. Add a number of extra
1505 splitters before it.
1506
1507 PR target/42172
1508 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
1509 and ZERO_EXTEND.
1510 (arm_rtx_costs_1): Likewise.
1511 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
1512 * config/arm/arm.md (is_arch6): New attribute.
1513 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
1514 extendqisi2): Tighten the code somewhat, avoiding invalid
1515 RTL to occur in the expander patterns.
1516 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
1517 (thumb1_zero_extendhisi2_v6): Delete.
1518 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
1519 (thumb1_extendhisi2_v6): Delete.
1520 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
1521 (thumb1_extendqisi2_v6): Delete.
1522 (zero_extendhisi2 for register input splitter): New.
1523 (zero_extendqisi2 for register input splitter): New.
1524 (thumb1_extendhisi2 for register input splitter): New.
1525 (extendhisi2 for register input splitter): New.
1526 (extendqisi2 for register input splitter): New.
1527 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
1528 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
1529 and add support for a register alternative requiring a split.
1530 (thumb1_zero_extendqisi2): Likewise.
1531 (arm_zero_extendqisi2): Likewise.
1532 (arm_extendhisi2): Likewise.
1533 (arm_extendqisi2): Likewise.
1534
1535 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1536
1537 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
1538 instead of an unspec.
1539 (neon_expand_vector_init): Likewise.
1540 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
1541 (UNSPEC_VDUP_LANE): Delete.
1542 (UNSPEC VDUP_N): Delete.
1543 (UNSPEC_VGET_HIGH): Delete.
1544 (UNSPEC_VGET_LANE): Delete.
1545 (UNSPEC_VGET_LOW): Delete.
1546 (UNSPEC_VMVN): Delete.
1547 (UNSPEC_VSET_LANE): Delete.
1548 (V_double_vector_mode): New.
1549 (vec_set<mode>_internal): Make code emitted match that for the
1550 corresponding intrinsics.
1551 (vec_setv2di_internal): Likewise.
1552 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
1553 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
1554 (neon_vset_lane<mode>): Combine double and quad patterns and
1555 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
1556 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
1557 (neon_vdup_n<mode>): Rewrite RTL without unspec.
1558 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
1559 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
1560 with neon_vdup_lanev2di, adjusting the pattern from the latter
1561 to be predicable for consistency.
1562 (neon_vdup_lane<mode>_internal): New.
1563 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
1564 to avoid using an unspec.
1565 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
1566 (neon_vdup_lanev2di): Turn into a define_expand.
1567 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
1568 (neon_vget_high<mode>): Replace with....
1569 (neon_vget_highv16qi): New pattern using canonical RTL.
1570 (neon_vget_highv8hi): Likewise.
1571 (neon_vget_highv4si): Likewise.
1572 (neon_vget_highv4sf): Likewise.
1573 (neon_vget_highv2di): Likewise.
1574 (neon_vget_low<mode>): Replace with....
1575 (neon_vget_lowv16qi): New pattern using canonical RTL.
1576 (neon_vget_lowv8hi): Likewise.
1577 (neon_vget_lowv4si): Likewise.
1578 (neon_vget_lowv4sf): Likewise.
1579 (neon_vget_lowv2di): Likewise.
1580
1581 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
1582 test for this emitting vmov.
1583 (Vset_lane): Likewise.
1584 (Vdup_n): Likewise.
1585 (Vmov_n): Likewise.
1586
1587 * doc/arm-neon-intrinsics.texi: Regenerated.
1588
1589 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1590
1591 * config/arm/neon.md (vec_extractv2di): Correct error in register
1592 numbering to reconcile with neon_vget_lanev2di.
1593
1594 2010-07-02 Richard Guenther <rguenther@suse.de>
1595
1596 * tree-ssa-structalias.c (pt_solution_set_var): New function.
1597 * tree-ssa-alias.h (pt_solution_set_var): Declare.
1598 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
1599 points-to information.
1600
1601 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
1602
1603 * config/s390/s390.c (override_options): Adopt prefetching
1604 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
1605
1606 2010-07-02 Jan Hubicka <jh@suse.cz>
1607
1608 * df-problems.c (df_kill_notes): Do not collect dead notes.
1609 (df_set_note): Just call add_reg_note.
1610 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
1611 df_create_unused_note): Do not deal with lists of old notes.
1612 (df_note_bb_compute): Likewise.
1613
1614 2010-07-02 Richard Guenther <rguenther@suse.de>
1615
1616 * tree-ssa-structalias.c (find_func_aliases): Handle
1617 pointer alignment via BIT_AND_EXPR.
1618 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
1619
1620 2010-07-02 Richard Guenther <rguenther@suse.de>
1621
1622 * tree-data-ref.c (initialize_data_dependence_relation): Handle
1623 mismatching number of dimensions properly.
1624
1625 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1626
1627 PR target/44707
1628 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
1629 (lo_sum (high ...) ...) patterns generated by earlier passes.
1630
1631 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1632
1633 * doc/install.texi (Prerequisites): Document Perl requirement on
1634 Solaris 2.
1635 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1636
1637 2010-07-02 Richard Guenther <rguenther@suse.de>
1638
1639 PR middle-end/44777
1640 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1641
1642 2010-07-02 Jan Hubicka <jh@suse.cz>
1643
1644 PR middle-end/44706
1645 * predict.c (predict_paths_for_bb): Handle case when control dependence
1646 BB has only abnormal edges.
1647
1648 2010-07-02 Richard Guenther <rguenther@suse.de>
1649
1650 PR tree-optimization/44748
1651 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1652 the embedded conversion in MEM_REFs.
1653
1654 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
1655
1656 * reload.c: Include toplev.h.
1657 * recog.c: Likewise.
1658 * Makefile.in: Adjust dependencies.
1659
1660 2010-07-01 Jakub Jelinek <jakub@redhat.com>
1661
1662 PR debug/44694
1663 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1664 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1665
1666 2010-07-01 Richard Guenther <rguenther@suse.de>
1667
1668 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1669 types for offsets.
1670
1671 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
1672
1673 PR target/44732
1674 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1675 Fix argument types.
1676
1677 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
1678
1679 PR target/44727
1680 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1681 Make sure operand 0 dies.
1682
1683 2010-07-01 Richard Guenther <rguenther@suse.de>
1684
1685 PR middle-end/42834
1686 PR middle-end/44468
1687 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1688 * doc/generic.texi (References to storage): Document MEM_REF.
1689 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1690 (print_call_name): Likewise.
1691 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1692 (build_simple_mem_ref_loc): New function.
1693 (mem_ref_offset): Likewise.
1694 * tree.h (build_simple_mem_ref_loc): Declare.
1695 (build_simple_mem_ref): Define.
1696 (mem_ref_offset): Declare.
1697 * fold-const.c: Include tree-flow.h.
1698 (operand_equal_p): Handle MEM_REF.
1699 (build_fold_addr_expr_with_type_loc): Likewise.
1700 (fold_comparison): Likewise.
1701 (fold_unary_loc): Fold
1702 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
1703 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
1704 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
1705 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
1706 (ptr_deref_may_alias_ref_p_1): Likewise.
1707 (ao_ref_base_alias_set): Properly differentiate base object for
1708 offset and TBAA.
1709 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
1710 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
1711 (indirect_refs_may_alias_p): Likewise.
1712 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
1713 chasing code.
1714 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
1715 (call_may_clobber_ref_p_1): Likewise.
1716 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
1717 * expr.c (expand_assignment): Handle MEM_REF.
1718 (store_expr): Handle MEM_REFs from STRING_CSTs.
1719 (store_field): If expanding a MEM_REF of a non-addressable
1720 decl use bitfield operations.
1721 (get_inner_reference): Handle MEM_REF.
1722 (expand_expr_addr_expr_1): Likewise.
1723 (expand_expr_real_1): Likewise.
1724 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
1725 * alias.c (ao_ref_from_mem): Handle MEM_REF.
1726 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
1727 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
1728 (dr_analyze_indices): Likewise.
1729 (dr_analyze_alias): Likewise.
1730 (object_address_invariant_in_loop_p): Likewise.
1731 * gimplify.c (mark_addressable): Handle MEM_REF.
1732 (gimplify_cond_expr): Build MEM_REFs.
1733 (gimplify_modify_expr_to_memcpy): Likewise.
1734 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
1735 (gimple_fold_indirect_ref): Adjust.
1736 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
1737 * tree.def (MEM_REF): New tree code.
1738 * tree-dfa.c: Include toplev.h.
1739 (get_ref_base_and_extent): Handle MEM_REF.
1740 (get_addr_base_and_unit_offset): New function.
1741 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
1742 * gimple-fold.c (may_propagate_address_into_dereference): Handle
1743 MEM_REF.
1744 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
1745 accesses if the array has just one dimension. Remove always true
1746 parameter. Do not require type compatibility here.
1747 (maybe_fold_offset_to_component_ref): Remove.
1748 (maybe_fold_stmt_indirect): Remove.
1749 (maybe_fold_reference): Remove INDIRECT_REF handling.
1750 Fold back to non-MEM_REF.
1751 (maybe_fold_offset_to_address): Simplify. Deal with type
1752 mismatches here.
1753 (maybe_fold_reference): Likewise.
1754 (maybe_fold_stmt_addition): Likewise. Also handle
1755 &ARRAY + I in addition to &ARRAY[0] + I.
1756 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
1757 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
1758 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
1759 * tree-ssa.c (useless_type_conversion_p): Make most pointer
1760 conversions useless.
1761 (warn_uninitialized_var): Handle MEM_REF.
1762 (maybe_rewrite_mem_ref_base): New function.
1763 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
1764 to SSA form.
1765 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
1766 INDIRECT_REF handling.
1767 (copy_tree_body_r): Handle MEM_REF.
1768 * gimple.c (is_gimple_addressable): Adjust.
1769 (is_gimple_address): Likewise.
1770 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
1771 invariant base are invariant.
1772 (is_gimple_min_lval): Adjust.
1773 (is_gimple_mem_ref_addr): New function.
1774 (get_base_address): Handle MEM_REF.
1775 (count_ptr_derefs): Likewise.
1776 (get_base_loadstore): Likewise.
1777 * gimple.h (is_gimple_mem_ref_addr): Declare.
1778 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
1779 * tree-cfg.c (verify_address): New function, split out from ...
1780 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
1781 the address operand of MEM_REFs. Verify MEM_REFs. Reject
1782 INDIRECT_REFs.
1783 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
1784 INDIRECT_REF. Allow conversions.
1785 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
1786 a register does not change its size.
1787 (verify_types_in_gimple_reference): Verify MEM_REF.
1788 (verify_gimple_assign_single): Disallow INDIRECT_REF.
1789 Handle MEM_REF.
1790 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
1791 New.
1792 (mark_address_taken): Handle MEM_REF.
1793 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
1794 (get_asm_expr_operands): Pass opf_not_non_addressable.
1795 (get_expr_operands): Handle opf_[not_]non_addressable.
1796 Handle MEM_REF. Remove INDIRECT_REF handling.
1797 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
1798 (search_for_addr_array): Likewise.
1799 (check_array_bounds): Likewise.
1800 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
1801 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
1802 (ref_always_accessed_p): Likewise.
1803 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
1804 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
1805 Handle MEM_REF.
1806 * cgraphbuild.c (mark_load): Properly check for NULL result
1807 from get_base_address.
1808 (mark_store): Likewise.
1809 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
1810 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
1811 handling for MEM_REF.
1812 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
1813 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
1814 * builtins.c (stabilize_va_list_loc): Use the function ABI
1815 valist type if we couldn't canonicalize the argument type.
1816 Always dereference with the canonical va-list type.
1817 (maybe_emit_free_warning): Handle MEM_REF.
1818 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
1819 memmove to memcpy.
1820 * builtins.c (fold_builtin_memory_op): Use ref-all types
1821 for all memcpy foldings.
1822 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
1823 (build_outer_var_ref): Likewise.
1824 (scan_omp_1_op): Likewise.
1825 (lower_rec_input_clauses): Likewise.
1826 (lower_lastprivate_clauses): Likewise.
1827 (lower_reduction_clauses): Likewise.
1828 (lower_copyprivate_clauses): Likewise.
1829 (expand_omp_atomic_pipeline): Likewise.
1830 (expand_omp_atomic_mutex): Likewise.
1831 (create_task_copyfn): Likewise.
1832 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1833 Remove old union trick. Initialize constant offsets.
1834 (ao_ref_init_from_vn_reference): Likewise. Do not handle
1835 INDIRECT_REF. Init base_alias_set properly.
1836 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1837 (vn_reference_fold_indirect): Adjust for MEM_REFs.
1838 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
1839 for ARRAY_REFs.
1840 (may_insert): Remove.
1841 (visit_reference_op_load): Do not test may_insert.
1842 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1843 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1844 a field to store the constant offset this op applies.
1845 (run_scc_vn): Adjust prototype.
1846 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1847 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1848 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
1849 bother about volatile qualifiers on pointers.
1850 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1851 * tree-ssa-loop-ivopts.c
1852 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1853 (strip_offset_1): Likewise.
1854 (find_interesting_uses_address): Replace INDIRECT_REF handling with
1855 MEM_REF handling.
1856 (get_computation_cost_at): Likewise.
1857 * ipa-pure-const.c (check_op): Handle MEM_REF.
1858 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1859 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1860 and constants.
1861 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1862 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1863 (eliminate_local_variables_1): Likewise.
1864 (create_call_for_reduction_1): Likewise.
1865 (create_loads_for_reductions): Likewise.
1866 (create_loads_and_stores_for_name): Likewise.
1867 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1868 (ssa_accessed_in_tree): Handle MEM_REF.
1869 (ssa_accessed_in_assign_rhs): Likewise.
1870 (update_type_size): Likewise.
1871 (analyze_accesses_for_call_stmt): Likewise.
1872 (analyze_accesses_for_assign_stmt): Likewise.
1873 (transform_access_sites): Likewise.
1874 (transform_allocation_sites): Likewise.
1875 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1876 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1877 not handle INDIRECT_REF.
1878 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1879 (cond_store_replacement): Likewise.
1880 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1881 MEM_REF, no not handle INDIRECT_REFs.
1882 (insert_into_preds_of_block): Properly initialize avail.
1883 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
1884 for ARRAY_REFs. Properly handle reference lookups that
1885 require a bit re-interpretation.
1886 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
1887 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1888 (build_ref_for_offset_1): Remove.
1889 (build_ref_for_offset): Build MEM_REFs.
1890 (gate_intra_sra): Disable for now.
1891 (sra_ipa_modify_expr): Handle MEM_REF.
1892 (ipa_early_sra_gate): Disable for now.
1893 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1894 MEM_REF handling.
1895 (disqualify_base_of_expr): Likewise.
1896 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1897 MEM_REF handling.
1898 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1899 Use mem_ref_offset. Remove bogus folding.
1900 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1901 (make_fancy_name_1): Add support for MEM_REF.
1902 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1903 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1904 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1905 (compute_complex_ancestor_jump_func): Likewise.
1906 (ipa_analyze_virtual_call_uses): Likewise.
1907 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1908 INDIRECT_REF folding with more generalized MEM_REF folding.
1909 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1910 (forward_propagate_addr_into_variable_array_index): Also handle
1911 &ARRAY + I in addition to &ARRAY[0] + I.
1912 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1913 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1914 creates assignments with overlap.
1915 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1916 (get_frame_field): Likewise.
1917 (get_nonlocal_debug_decl): Likewise.
1918 (convert_nonlocal_reference_op): Likewise.
1919 (struct nesting_info): Add mem_refs pointer-set.
1920 (create_nesting_tree): Allocate it.
1921 (convert_local_reference_op): Insert to be folded mem-refs.
1922 (fold_mem_refs): New function.
1923 (finalize_nesting_tree_1): Perform defered folding of mem-refs
1924 (free_nesting_tree): Free the pointer-set.
1925 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1926 (vectorizable_load): Likewise.
1927 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1928 (propagate_with_phi): Likewise.
1929 * tree-object-size.c (addr_object_size): Handle MEM_REFs
1930 instead of INDIRECT_REFs.
1931 (compute_object_offset): Handle MEM_REF.
1932 (plus_stmt_object_size): Handle MEM_REF.
1933 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1934 for &MEM_REF.
1935 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1936 (symbol_marked_for_renaming): Likewise.
1937 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1938 (fold-const.o): Add $(TREE_FLOW_H).
1939 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1940 (find_func_clobbers): Likewise.
1941 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1942 (decompose_access): Likewise.
1943 (replace_field_acc): Likewise.
1944 (replace_field_access_stmt): Likewise.
1945 (insert_new_var_in_stmt): Likewise.
1946 (get_stmt_accesses): Likewise.
1947 (reorg_structs_drive): Disable.
1948 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1949 (ix86_canonical_va_list_type): Likewise.
1950
1951 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1952
1953 PR other/44566
1954 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1955 * target.def (struct gcc_target): Replace enum reg_class with
1956 reg_class_t in hook argument / return types.
1957 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1958 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1959 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1960 * targhooks.h (default_branch_target_register_class): Likewise.
1961 (default_ira_cover_classes, default_secondary_reload): Likewise.
1962 (default_memory_move_cost, default_register_move_cost): Likewise.
1963 * targhooks.c (default_branch_target_register_class): Likewise.
1964 (default_ira_cover_classes, default_secondary_reload): Likewise.
1965 (default_memory_move_cost, default_register_move_cost): Likewise.
1966 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1967 * bt-load.c (branch_target_load_optimize): Likewise.
1968 * ira.c (setup_cover_and_important_classes): Likewise.
1969 * ira-costs.c (copy_cost): Likewise.
1970 * reload1.c (emit_input_reload_insns): Likewise.
1971 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1972 * config/frv/frv.c (frv_secondary_reload): Likewise.
1973 * config/s390/s390.c (s390_secondary_reload): Likewise.
1974 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1975 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1976 (ix86_register_move_cost): Likewise.
1977 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1978 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1979 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1980 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1981 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1982 (rs6000_ira_cover_classes): Likewise.
1983 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1984 * config/picochip/picochip-protos.h (picochip_secondary_reload):
1985 Likewise.
1986 * config/pa/pa.c (pa_secondary_reload): Likewise.
1987 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1988 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1989 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1990 * doc/tm.texi: Regenerate.
1991
1992 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
1993
1994 PR bootstrrap/44726
1995 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1996 use.
1997 (build_alias_set_optimal_p): Likewise.
1998 (build_base_obj_set_for_drs): Likewise.
1999
2000 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
2001
2002 * target.def: Remove comment about licensing problems of function
2003 declarations.
2004
2005 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
2006 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
2007 * doc/tm.texi: Regenerate.
2008
2009 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
2010 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
2011
2012 * target.def (enum_va_list_p): Use DEFHOOK.
2013 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
2014 Rename ptype to ptree.
2015 * doc/tm.texi: Regenerate.
2016
2017 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
2018 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
2019 * doc/tm.texi: Regenerate.
2020
2021 * target.def (memory_move_cost): Use DEFHOOK.
2022 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
2023 Rename regclass AKA class to rclass.
2024 * doc/tm.texi: Regenerate.
2025
2026 * target.def (pragma_parse): Use DEFHOOK.
2027 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
2028 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
2029 * doc/tm.texi: Regenerate.
2030
2031 * target.def (pass_by_reference): Use DEFHOOK.
2032 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
2033 * doc/tm.texi: Regenerate.
2034
2035 * target.def (resolve_overloaded_builtin): Rename params to arglist.
2036 Use DEFHOOK.
2037 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
2038 * doc/tm.texi: Regenerate.
2039
2040 * target.def (return_pops_args): Use DEFHOOK.
2041 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
2042 Rename stack-size to size.
2043 * doc/tm.texi: Regenerate.
2044
2045 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
2046 last-sched_cycle to last_clock, cur_cycle to clock.
2047 * doc/tm.texi.in: Use @hook.
2048 * doc/tm.texi: Regenerate.
2049
2050 * target.def (print_operand, print_operand_address): Update comment.
2051 (print_operand_punct_valid_p): Likewise.
2052
2053 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2054
2055 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
2056 to rtl.h.
2057 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
2058 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
2059 * rtl-error.h: New.
2060 * regrename.c: Do not include toplev.h. Include rtl-error.h.
2061 * rtl-error.c: Likewise.
2062 * reload.c: Likewise.
2063 * recog.c: Likewise.
2064 * sel-sched.c: Likewise.
2065 * function.c: Likewise.
2066 * reg-stack.c: Likewise.
2067 * cfgrtl.c: Likewise.
2068 * reload1.c: Likewise.
2069 * final.c: Include rtl-error.
2070 * Makefile.in: Adjust dependencies.
2071
2072 2010-06-30 Jan Hubicka <jh@suse.cz>
2073
2074 PR middle-end/PR44706
2075 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
2076 to return the value.
2077
2078 2010-06-30 Michael Matz <matz@suse.de>
2079
2080 PR bootstrap/44699
2081 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
2082 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
2083 a gimple reg, attach the original VDEF to the last store in the
2084 sequence.
2085
2086 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
2087
2088 PR other/44034
2089 * config/darwin.c (darwin_override_options): Use renamed
2090 targetm.asm_out.emit_unwind_label.
2091
2092 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2093
2094 PR tree-optimization/39799
2095 * tree-inline.c (remap_ssa_name): Initialize variable only if
2096 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2097
2098 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
2099
2100 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
2101
2102 2010-06-30 Richard Guenther <rguenther@suse.de>
2103
2104 PR target/44722
2105 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
2106 against oscillation with reverse peephole2.
2107
2108 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
2109
2110 PR target/44721
2111 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2112 Fix last commit.
2113
2114 2010-06-30 Nick Clifton <nickc@redhat.com>
2115
2116 * config/rx/rx-modes.def: New file.
2117 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
2118 (CC_REGNUM): Define.
2119 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
2120 register.
2121 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
2122 (SELECT_CC_MODE): Define.
2123 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
2124 (reg:CC CC_REG) instead of (cc0).
2125 (attr "cc"): Delete.
2126 (cbranchsi4): Do not split compare and branch here. Instead move
2127 it to...
2128 (cbranchsi4_<code>): ... here. New patterns.
2129 (cmpsi): Call rx-compare_redundant to find out if it is necessary
2130 to emit the compare instruction.
2131 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
2132 cc_status flags.
2133 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
2134 FIRST_PSEUDO_REGNUM.
2135 (rx_expand_prologue, rx_expand_epilogue): Likewise.
2136 (rx_notice_update_cc): Delete.
2137 (rx_cc_modes_compatible): New function.
2138 (flags_needed_for_conditional): New function.
2139 (flags_from_mode): New function.
2140 (rx_compare_redundant): New function - scans backwards through
2141 insn list to find out if condition flags are already set correctly.
2142 (TARGET_CC_MODES_COMPATIBLE): Define.
2143 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
2144
2145 * config/rx/rx.h (BRANCH_COST): Define.
2146 (REGISTER_MOVE_COST): Define.
2147 * config/rx/predicates (rx_source_operand): Allow all constant types.
2148 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
2149 (tstsi4): New pattern.
2150 * config/rx/rx.c (rx_memory_move_cost): Define.
2151 (TARGET_MEMORY_MOVE_COST): Define.
2152
2153 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2154
2155 * tree.h (block_may_fallthru): Declare here.
2156 * tree-flow.h (block_may_fallthru): Do not declare here.
2157 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
2158 bitmap.h
2159 * Makefile.in (c-typeck.o): Update dependencies.
2160
2161 2010-06-30 Jakub Jelinek <jakub@redhat.com>
2162
2163 PR debug/44694
2164 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
2165 * cselib.c (cfa_base_preserved_regno): New static variable.
2166 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
2167 of REGNO (cfa_base_preserved_val->locs->loc).
2168 (cselib_preserve_cfa_base_value): Add regno argument, set
2169 cfa_base_preserved_regno to it.
2170 (cselib_invalidate_regno): Allow removal of registers other than
2171 cfa_base_preserved_regno from cfa_base_preserved_val.
2172 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
2173 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
2174 of MEM addresses, if not on LHS.
2175 (reverse_op): Don't add reverse ops for cfa_base_rtx.
2176 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
2177
2178 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2179
2180 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
2181 static variables.
2182 (peep2_buf_position): New static function.
2183 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
2184 peephole2_optimize): Use it.
2185 (peep2_attempt, peep2_update_life): New static functions, broken out
2186 of peephole2_optimize.
2187 (peep2_fill_buffer): New static function.
2188 (peephole2_optimize): Change the main loop to try to fill the buffer
2189 with the maximum number of insns before matching them against
2190 peepholes. Use a forward scan. Remove special case for targets with
2191 conditional execution.
2192 * genrecog.c (change_state): Delete dead code.
2193 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2194 Rewrite so as not to expect the second insn to have had a peephole
2195 applied yet.
2196
2197 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2198
2199 * genhooks.c (emit_findices): Cast field precision to int.
2200 (emit_documentation): Likewise.
2201
2202 2010-06-29 Jakub Jelinek <jakub@redhat.com>
2203
2204 PR tree-optimization/43801
2205 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
2206 if old_decl was DECL_ONE_ONLY.
2207
2208 PR debug/44668
2209 * dwarf2out.c (add_accessibility_attribute): New function.
2210 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
2211 instead of adding DW_AT_accessibility manually.
2212 (gen_enumeration_type_die, gen_struct_or_union_type_die,
2213 gen_typedef_die): Use it.
2214
2215 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2216
2217 * vmsdbgout.c (full_name): Just output the file name if not native.
2218
2219 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2220
2221 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2222 (funcnam_table): New static table.
2223 (funcnum_table): New static table.
2224 (write_rtnbeg): Write value saved in funcnum_table.
2225 (write_rtnend): Write value saved in funcnum_table.
2226 (vmsdbgout_begin_function): Save current function info in
2227 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2228 (vmsdbgout_finish): Iterate over funcnum_table.
2229
2230 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2231
2232 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2233 (vmsdbgout_type_decl): Declare
2234 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2235 (FUNC_EPILOGUE_LABEL): New macro
2236 (vmsdbgout_begin_epilogue): New function.
2237 (vmsdbgout_type_decl): New function.
2238
2239 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2240
2241 * vmsdbg.h: Update copyright.
2242
2243 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2244
2245 * vmsdbg.h (DST_K_TBG): New DST constant.
2246 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2247 (write_modbeg): Cast module_language to avoid warning.
2248 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2249
2250 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2251
2252 PR other/44034
2253 * target.def, doc/tm.texi.in, genhooks.c: New files.
2254 * target.h: Instead of defining individual hook members,
2255 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2256 include target.def.
2257 * target-def.h: Instead of defining individual hook initializers,
2258 include target-hooks-def.h.
2259 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2260 targetm.live_on_entry -> targetm.extra_live_on_entry
2261 targetm.sched.md_finish ->targetm.sched.finish
2262 targetm.sched.md_init -> targetm.sched.init
2263 targetm.sched.md_init_global -> targetm.sched.init_global
2264 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2265 targetm.asm_out.except_table_label ->
2266 targetm.asm_out.emit_except_table_label
2267 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2268 targetm.target_help -> targetm.help
2269 targetm.vectorize.builtin_support_vector_misalignment ->
2270 targetm.vectorize.support_vector_misalignment
2271 targetm.file_start_app_off -> targetm.asm_file_start_app_off
2272 targetm.file_start_file_directive ->
2273 targetm.asm_file_start_file_directive
2274 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2275 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2276 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2277 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2278 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2279 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2280 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2281 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
2282 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
2283 * Makefile.in (TARGET_H): Depend on target.def.
2284 (TARGET_DEF_H): Depend on target-hooks-def.h.
2285 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
2286 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
2287 * doc/tm.texi: Regenerate.
2288
2289 * Makefile.in (s-tm-texi): Remove stray tab / rule.
2290
2291 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
2292 (targetm.sched.init): Likewise.
2293
2294 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2295
2296 PR bootstrap/44713
2297 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
2298 (function_arg_advance_32): Const-ify TYPE parameter.
2299 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
2300 (ix86_function_arg_advance): Change type of NAMED to bool.
2301 (function_arg_32): Const-ify CUM and TYPE parameters.
2302 (function_arg_64): Likewise. Change type of NAMED to bool.
2303 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
2304 to bool.
2305 (ix86_function_arg): Change type of NAMED to bool.
2306 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
2307 last argument as a bool.
2308
2309 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2310
2311 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
2312 (OVERRIDE_OPTIONS): Add note of obsolescence.
2313 Replace references with references to TARGET_OPTION_OVERRIDE.
2314 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
2315 the macro).
2316 * targhooks.c (default_target_option_override): New function.
2317 * targhooks.h (default_target_option_override): Declare.
2318 * target.h (struct gcc_target): Add override member to
2319 target_option member.
2320 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
2321 targetm.target_option.override call.
2322 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
2323 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
2324
2325 2010-06-29 Jan Hubicka <jh@suse.cz>
2326
2327 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
2328
2329 2010-06-29 Jan Hubicka <jh@suse.cz>
2330
2331 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
2332 unreachable.
2333 (rebuild_frequencies): New function.
2334 * predict.h (rebuild_frequencies): Declare.
2335 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
2336 entry block and edge reaching new_entry.
2337 (tree_function_versioning): When doing partial cloning, rebuild
2338 frequencies when done.
2339 * passes.c (execute_function_todo): Use rebild_frequencies.
2340
2341 2010-06-29 Richard Guenther <rguenther@suse.de>
2342
2343 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
2344 * tree-flow.h (enum noalias_state): Remove.
2345 (struct var_ann_d): Remove noalias_state member.
2346
2347 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2348
2349 PR target/43902
2350 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
2351 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
2352 (maddhidi4): Likewise.
2353
2354 Revert parts of the change for PR25130.
2355 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2356 MEM_ALIAS_SET.
2357
2358 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2359
2360 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
2361 targetm.calls.function_incoming_arg, and
2362 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
2363 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
2364 * target.h (struct gcc_target): Add function_arg_advance,
2365 function_arg, and function_incoming_arg fields.
2366 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
2367 (TARGET_FUNCTION_INCOMING_ARG): Define.
2368 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
2369 and TARGET_FUNCTION_INCOMING_ARG.
2370 * targhooks.h (default_function_arg_advance): Declare.
2371 (default_function_arg, default_function_incoming_arg): Declare.
2372 * targhooks.c (default_function_arg_advance): New function.
2373 (default_function_arg, default_function_incoming_arg): New function.
2374 * config/i386/i386.c (function_arg_advance): Rename to...
2375 (ix86_function_arg_advance): ...this. Make static.
2376 (function_arg): Rename to...
2377 (ix86_function_arg): ...this. Make static.
2378 (TARGET_FUNCTION_ARG_ADVANCE): Define.
2379 (TARGET_FUNCTION_ARG): Define.
2380 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
2381 (FUNCTION_ARG): Delete.
2382 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
2383 (function_arg): Delete prototype.
2384
2385 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2386
2387 * reginfo.c (init_reg_sets_1): Adjust comments.
2388 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
2389 * calls.c (prepare_call_address): Likewise.
2390 (emit_call_1): Use targetm.calls.return_pops_args.
2391 (expand_call): Likewise.
2392 * function.c (assign_parms): Likewise.
2393 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
2394 * target.h (struct gcc_target) [struct calls]: Add
2395 return_pops_args field.
2396 * targhooks.h (default_return_pops_args): Declare.
2397 * targhooks.c (default_return_pops_args): Define.
2398 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
2399 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
2400 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
2401 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
2402 documentation.
2403 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
2404 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
2405 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
2406 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
2407 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
2408 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
2409 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
2410 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
2411 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
2412 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
2413 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
2414 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
2415 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
2416 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
2417 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
2418 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
2419 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
2420 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
2421 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
2422 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
2423 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
2424 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
2425 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
2426 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
2427 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
2428 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
2429 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
2430 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
2431 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
2432 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
2433 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
2434 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
2435 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
2436 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
2437 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
2438 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
2439 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
2440 * config/i386/i386.c (ix86_return_pops_args): Make static.
2441 Constify arguments.
2442 (TARGET_RETURN_POPS_ARGS): Define.
2443 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
2444 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
2445 (TARGET_RETURN_POPS_ARGS): Define.
2446 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
2447 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
2448 (TARGET_RETURN_POPS_ARGS): Define.
2449
2450 2010-06-29 Richard Guenther <rguenther@suse.de>
2451
2452 PR middle-end/44667
2453 * tree-inline.c (initialize_inlined_parameters): Make sure
2454 to remap the inlined parameter variable substitutions types.
2455
2456 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
2457
2458 PR rtl-optimization/44659
2459 * combine.c (make_compound_operation) <SUBREG>: Do not return the
2460 result of force_to_mode if it partially re-expanded the compound.
2461
2462 2010-06-28 Jan Hubicka <jh@suse.cz>
2463
2464 PR middle-end/44671
2465 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
2466 RESULT_DECL.
2467
2468 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2469
2470 * double-int.h (force_fit_type_double): Remove declaration.
2471 * double-int.c (force_fit_type_double): Move to tree.c.
2472 * tree.h (force_fit_type_double): Declare.
2473 * tree.h (force_fit_type_double): Moved from double-int.c. Use
2474 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
2475 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
2476 * convert.c (convert_to_pointer): Adjust call to
2477 force_fit_type_double.
2478 * tree-vrp.c (extract_range_from_assert,
2479 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
2480 * fold-const.c: Update comment.
2481 (int_const_binop, fold_convert_const_int_from_int,
2482 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
2483 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
2484 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
2485 round_up_loc): Adjust call to force_fit_type_double.
2486
2487 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2488
2489 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
2490
2491 2010-06-28 Martin Jambor <mjambor@suse.cz>
2492
2493 * tree-sra.c (convert_callers): New parameter, change fndecls of
2494 recursive calls.
2495 (modify_function): Pass the old decl to convert_callers.
2496
2497 2010-06-28 Martin Jambor <mjambor@suse.cz>
2498
2499 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
2500 ipa_check_create_node_params and ipa_initialize_node_params with
2501 checking asserts they are not necessary.
2502
2503 2010-06-28 Jan Hubicka <jh@suse.cz>
2504
2505 PR tree-optimization/44687
2506 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
2507
2508 2010-06-28 Martin Jambor <mjambor@suse.cz>
2509
2510 PR c++/44535
2511 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
2512 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
2513 instead of BINFO_BASE_BINFO.
2514
2515 2010-06-28 Michael Matz <matz@suse.de>
2516
2517 PR middle-end/44592
2518 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
2519 proper VDEF chain for intermediate stores in the sequence.
2520
2521 2010-06-28 Jan Hubicka <jh@suse.cz>
2522
2523 PR tree-optimization/44357
2524 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
2525 uninlinable functions.
2526
2527 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2528
2529 * config.gcc (powerpc*-*-*): Handle titan.
2530 * config/rs6000/rs6000.c (titan_cost): New costs.
2531 (rs6000_override_options): Add "titan" to processor_target_table.
2532 Add Titan to branch alignment logic.
2533 Correctly set rs6000_cost for titan.
2534 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
2535 * config/rs6000/titan.md: New file.
2536 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
2537
2538 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2539
2540 * tree-browser.c (TB_history_stack): Convert to a VEC.
2541 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
2542 (TB_history_prev): Likewise.
2543
2544 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2545
2546 * vec.h (vec_heap_free): Add parentheses around free.
2547
2548 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2549
2550 * system.h: Poison GCC_EXCEPT_H for front-end files.
2551
2552 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
2553 langhook.
2554 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
2555 Define to NULL by default.
2556 * except.h: Define GCC_EXCEPT_H.
2557 (doing_eh): Remove prototype.
2558 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
2559 (lang_protect_cleanup_actions): Remove.
2560 * except.c (lang_protect_cleanup_actions): Remove.
2561 (doing_eh): Remove.
2562 (gen_eh_region): Don't check doing_eh here.
2563 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
2564 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
2565 instead of lang_protect_cleanup_actions.
2566 * omp-low.c (maybe_catch_exception): Likewise.
2567 * Makefile.in: Update dependencies.
2568
2569 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
2570
2571 * cgraph.h (struct varpool_node): new used_from_object_file flag.
2572 (struct cgraph_local_info): new used_from_object_file flag.
2573 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
2574 (cgraph_clone_node): initialize used_from_object_file.
2575 (cgraph_create_virtual_clone): initialize used_from_object_file.
2576 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
2577 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
2578 when compiling with -fwhole-program.
2579 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
2580 internal resolver.
2581 * ipa.c (function_and_variable_visibility): Set externally_visible
2582 flag of varpool_node if used_from_object_file flag is set.
2583 (cgraph_externally_visible_p): check used_from_object_file flag.
2584 * doc/invoke.texi (-fwhole-program option): Change description of
2585 externally_visible attribute accordingly.
2586 * doc/extend.texi (externally_visible): Ditto.
2587
2588 2010-06-27 Jan Hubicka <jh@suse.cz>
2589
2590 * params.def (max-inline-insns-auto): Default to 40.
2591 * doc/invoke.texi (max-inline-insns-auto): Document the change.
2592
2593 2010-06-27 Jan Hubicka <jh@suse.cz>
2594
2595 PR middle-end/44671
2596 PR middle-end/44686
2597 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
2598 signature change.
2599 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
2600 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
2601
2602 2010-06-27 Anatoly Sokolov <aesok@post.ru>
2603
2604 * target.h (struct gcc_target): Add register_move_cost field.
2605 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
2606 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
2607 * targhooks.c (default_register_move_cost): New function.
2608 * targhooks.h (default_register_move_cost): Declare function.
2609 * defaults.h (REGISTER_MOVE_COST): Delete.
2610 * ira-int.h (ira_register_move_cost): Update comment.
2611 * ira.c: (ira_register_move_cost): Update comment.
2612 * reload.h (register_move_cost): Declare.
2613 * reginfo.c (register_move_cost): New function.
2614 (move_cost): Update comment.
2615 (init_move_cost, memory_move_secondary_cost): Replace
2616 REGISTER_MOVE_COST with register_move_cost.
2617 * postreload.c (reload_cse_simplify_set): (Ditto.).
2618 * reload.c (find_valid_class, find_reloads): (Ditto.).
2619 * reload1.c (choose_reload_regs): (Ditto.).
2620 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
2621 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
2622 * doc/md.texi (can_create_pseudo_p): Update documentation.
2623
2624 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2625 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2626 * config/i386/i386.h (ix86_memory_move_cost): Make static.
2627 (TARGET_MEMORY_MOVE_COST): Define.
2628
2629 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2630 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
2631 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
2632 (TARGET_MEMORY_MOVE_COST): Define.
2633
2634 2010-06-27 Richard Guenther <rguenther@suse.de>
2635
2636 PR tree-optimization/44683
2637 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2638 false edge from the inverted condition.
2639
2640 2010-06-27 Richard Guenther <rguenther@suse.de>
2641
2642 PR middle-end/44684
2643 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2644 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2645 for register LHS. Or non-store assignments.
2646
2647 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
2648
2649 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2650 (sparc_emit_set_const64): Likewise. Remove disabled code.
2651 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2652 (sparc_emit_set_const64): Likewise.
2653
2654 2010-06-26 Catherine Moore <clm@codesourcery.com>
2655
2656 * config/mips/mips.md (alu_type): New attribute.
2657 (type): Infer type from alu_type.
2658 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2659 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2660 *subsi3_extended, negsi2, negdi2, *low<mode>,
2661 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2662 xor<mode>3, *nor<mode>3,
2663 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2664 *zero_extendhi_truncqi): Set alu_type instead of type.
2665
2666 2010-06-26 Douglas B Rupp <rupp@gnat.com>
2667
2668 * config/alpha/alpha.c (alpha_need_linkage): Adjust
2669 splay_tree_new_ggc call.
2670 (alpha_use_linkage): Likewise.
2671
2672 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2673
2674 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2675 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2676 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2677 (static_specs): Remove switches_need_spaces.
2678 (process_command, do_self_spec): Hardcode handling "-o" instead of
2679 checking switches_need_spaces.
2680 * system.h (SWITCHES_NEED_SPACES): Poison.
2681
2682 2010-06-26 Richard Guenther <rguenther@suse.de>
2683
2684 PR tree-optimization/44393
2685 * tree-loop-distribution.c (generate_loops_for_partition): Fix
2686 stmt removal and VOP renaming.
2687 (generate_memset_zero): Remove redundant stmt updating.
2688 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2689 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2690
2691 2010-06-26 Jan Hubicka <jh@suse.cz>
2692
2693 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2694 edges comming from header are equivalent.
2695 (visit_bb): Handle PHIs correctly.
2696 * tree-inline.c (copy_phis_for_bb): Be able to copy
2697 PHI from entry edge.
2698 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
2699
2700 2010-06-26 Richard Guenther <rguenther@suse.de>
2701
2702 PR middle-end/44674
2703 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
2704 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
2705
2706 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2707
2708 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
2709 add_infile, alloc_switch): New.
2710 (process_command): Remove variable lang_n_infiles. Process
2711 options in a single pass. Use new functions for allocating
2712 infiles and switches arrays. Properly skip operands of
2713 -Xpreprocessor and -Xassembler.
2714
2715 2010-06-26 Jan Hubicka <jh@suse.cz>
2716
2717 PR middle-end/44671
2718 * cgraphunit.c (cgraph_function_versioning): Remove wrong
2719 cgraph_make_decl_local call; fix typo copying RTL data.
2720
2721 2010-06-25 DJ Delorie <dj@redhat.com>
2722
2723 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
2724 (m32c_output_aligned_common): Likewise.
2725 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2726 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2727 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
2728 (m32c_register_pragmas): Register it.
2729 * config/m32c/m32c.c (m32c_get_pragma_address): New.
2730 (m32c_insert_attributes): Set #pragma address decls volatile.
2731 (pragma_entry_eq): New.
2732 (pragma_entry_hash): New.
2733 (m32c_note_pragma_address): New.
2734 (m32c_get_pragma_address): New.
2735 (m32c_output_aligned_common): New.
2736 * doc/extend.texi: Document the new pragma.
2737
2738 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
2739 also.
2740 * config/m32c/predicates.md (m32c_any_operand): Check the code
2741 instead of memory_operand so as to allow matching volatile MEMs.
2742 (m32c_nonimmediate_operand): Likewise.
2743 (mra_operand): Allow volatiles.
2744
2745 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
2746
2747 PR debug/44610
2748 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
2749 address if the offset is unknown.
2750
2751 2010-06-25 Douglas B Rupp <rupp@gnat.com>
2752
2753 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
2754 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
2755 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
2756 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
2757 to ia64_start_function. Invoke it.
2758 * config/ia64/ia64.c (ia64_start_function): Call new function
2759 dwarf2out_vms_debug_main_pointer.
2760
2761 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2762
2763 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
2764 statements computing the true predicate.
2765
2766 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2767
2768 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
2769 to boolean_true_node.
2770 (reset_bb_predicate): New.
2771 (predicate_bbs): Call reset_bb_predicate.
2772
2773 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2774
2775 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
2776 (tree_if_conversion): Returns true when something has been changed.
2777 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
2778 changed something.
2779
2780 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2781
2782 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
2783 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
2784 * tree-if-conv.c: Include dbgcnt.h.
2785 (tree_if_conversion): Use if_conversion_tree to count the number of
2786 if-convertible loops.
2787
2788 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
2789
2790 * common.opt (fprefetch-loop-arrays): Re-define
2791 -fprefetch-loop-arrays as a tri-state option with the initial
2792 value of -1.
2793 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
2794 pass only when flag_prefetch_loop_arrays > 0.
2795 * toplev.c (process_options): Note that, with tri-states,
2796 flag_prefetch_loop_arrays>0 means prefetching is enabled.
2797 * config/i386/i386.c (override_options): Enable prefetching at -O3
2798 for a set of CPUs that sw prefetching is helpful.
2799 (software_prefetching_beneficial_p): New. Return TRUE if software
2800 prefetching is beneficial for the given CPU.
2801
2802 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
2803
2804 PR rtl-optimization/44326
2805 * implicit-zee.c (find_removable_zero_extends): Replace
2806 INSN_P with NONDEBUG_INSN_P.
2807
2808 2010-06-25 Martin Jambor <mjambor@suse.cz>
2809
2810 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
2811 (struct ipa_node_params): Removed the modification_analysis_done flag.
2812 (ipa_is_param_modified): Removed.
2813 (ipa_analyze_node): Declare.
2814 (ipa_compute_jump_functions): Remove declaration.
2815 (ipa_count_arguments): Likewise.
2816 (ipa_detect_param_modifications): Likewise.
2817 (ipa_analyze_params_uses): Likewise.
2818 * ipa-prop.c (struct param_analysis_info): New type.
2819 (visit_store_addr_for_mod_analysis): Removed.
2820 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
2821 moved down in the file.
2822 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
2823 (ipa_count_arguments): Made static.
2824 (mark_modified): New function.
2825 (is_parm_modified_before_call): New function.
2826 (compute_pass_through_member_ptrs): New parameter parms_info, call
2827 is_parm_modified_before_call instead of ipa_is_param_modified.
2828 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2829 it to compute_pass_through_member_ptrs.
2830 (ipa_compute_jump_functions): New parameter parms_info, pass it to
2831 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
2832 on the callee if it is analyzed. Made static.
2833 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2834 is_parm_modified_before_call instead of ipa_is_param_modified.
2835 (ipa_analyze_call_uses): New parameter parms_info, pass it to
2836 ipa_analyze_indirect_call_uses.
2837 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2838 ipa_analyze_call_uses.
2839 (ipa_analyze_params_uses): New parameter parms_info, pass it to
2840 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
2841 (ipa_analyze_node): New function.
2842 (ipa_print_node_params): Do not dump the modified flag.
2843 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2844 it. Do not stream the modified parameter flag.
2845 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2846 it. Do not stream the modified parameter flag.
2847 * ipa-cp.c (ipcp_analyze_node): Removed.
2848 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2849 with only a call to ipa_analyze_node.
2850 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2851 node with only a call to ipa_analyze_node.
2852
2853 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2854
2855 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2856
2857 2010-06-25 Jan Hubicka <jh@suse.cz>
2858
2859 * tree-pass.h (pass_split_functions): Declare.
2860 * opts.c (decode_options): Enable function splitting at -O2
2861 * timevar.def (TV_IPA_FNSPLIT): New macro.
2862 * ipa-split.c: New file.
2863 * common.opt (-fpartial-inlining): New flag.
2864 * Makefile.in (ipa-split.o): New object file.
2865 * passes.c (init_optimization_passes): Add ipa-split.
2866 * params.def (partial-inlining-entry-probability): New parameters.
2867 * doc/invoke.texi (-fpartial-inlining): New.
2868
2869 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2870
2871 PR 44665
2872 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2873 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2874 (gimplify_expr): Likewise.
2875
2876 2010-06-25 Martin Jambor <mjambor@suse.cz>
2877
2878 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2879 statements instead of bailing out on them.
2880 (ipa_analyze_indirect_call_uses): Do not require that loads from the
2881 parameter are in the same BB as the condition. Update comments.
2882
2883 2010-06-25 Jakub Jelinek <jakub@redhat.com>
2884
2885 PR middle-end/43866
2886 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2887 true or always false, return NULL_TREE.
2888 (tree_unswitch_single_loop): Optimize conditions even when reaching
2889 max-unswitch-level parameter. If num > 0, optimize first all conditions
2890 using entry checks, then do still reachable block discovery and consider
2891 only conditions in still reachable basic blocks in the loop.
2892
2893 PR tree-optimization/44539
2894 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2895 the call doesn't have LHS, but has VDEF.
2896
2897 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2898
2899 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2900 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2901 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2902 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2903 * system.h (MODIFY_TARGET_NAME): Poison.
2904
2905 2010-06-25 Alan Modra <amodra@gmail.com>
2906
2907 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2908 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2909 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2910 CMODEL_LARGE as default.
2911 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2912 (offsettable_ok_by_alignment): Delete.
2913 (rs6000_emit_move): Remove mcmodel=medium optimization.
2914
2915 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2916
2917 With large parts from Jim Wilson:
2918 PR target/43902
2919 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2920 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2921 * optabs.c (optab_for_tree_code): Likewise.
2922 (expand_widen_pattern_expr): Likewise.
2923 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2924 out of execute_optimize_widening_mul.
2925 (convert_plusminus_to_widen): New function.
2926 (execute_optimize_widening_mul): Use the two new functions.
2927 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2928 Remove code to generate widening multiply-accumulate. Add support
2929 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2930 * gimple-pretty-print.c (dump_ternary_rhs): New function.
2931 (dump_gimple_assign): Call it when appropriate.
2932 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2933 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2934 (expand_gimple_stmt_1): Likewise.
2935 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2936 WIDEN_MULT_MINUS_EXPR.
2937 * tree-ssa-operands.c (get_expr_operands): Likewise.
2938 * tree-inline.c (estimate_operator_cost): Likewise.
2939 * gimple.c (extract_ops_from_tree_1): Renamed from
2940 extract_ops_from_tree. Add new arg for a third operand; fill it.
2941 (gimple_build_assign_stat): Support operations with three operands.
2942 (gimple_build_assign_with_ops_stat): Likewise.
2943 (gimple_assign_set_rhs_from_tree): Likewise.
2944 (gimple_assign_set_rhs_with_ops_1): Renamed from
2945 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
2946 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2947 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2948 WIDEN_MULT_MINUS_EXPR.
2949 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2950 (extract_ops_from_tree_1): Adjust declaration.
2951 (gimple_assign_set_rhs_with_ops_1): Likewise.
2952 (gimple_build_assign_with_ops): Pass NULL for last operand.
2953 (gimple_build_assign_with_ops3): New macro.
2954 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2955 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2956 functions.
2957 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2958 (verify_gimple_assign): Call it.
2959 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2960 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2961 functions for dealing with three-operand statements.
2962 * tree.c (commutative_ternary_tree_code): New function.
2963 * tree.h (commutative_ternary_tree_code): Declare it.
2964 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2965 ternary statements.
2966 (gimple_assign_nonzero_warnv_p): Likewise.
2967 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2968 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2969 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
2970 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2971 (struct hashtable_expr): New member ternary in the union.
2972 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2973 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
2974 (iterative_hash_hashable_expr): Likewise.
2975 (print_expr_hash_elt): Handle EXPR_TERNARY.
2976 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2977 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2978 statements. Handle GIMPLE_TERNARY_RHS.
2979
2980 2010-06-25 Jan Hubicka <jh@suse.cz>
2981
2982 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2983
2984 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
2985
2986 PR c/44517
2987 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2988 parameters are not good.
2989 (c_parser_parameter_declaration): Error unknown type name if the type
2990 name can't start declaration specifiers.
2991
2992 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2993
2994 * gcc.c (translate_options): Don't mention +e in comment.
2995 (process_command): Don't handle +e specially.
2996
2997 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2998
2999 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
3000
3001 * ira-build.c (merge_hard_reg_conflicts): New function.
3002 (create_cap_allocno, copy_info_to_removed_store_destinations,
3003 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
3004 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
3005 (remove_unnecessary_allocnos, remove_low_level_allocnos)
3006 copy_nifo_to_removed_store_destination): Use them.
3007 * ira-lives.c (make_hard_regno_born): New function, split out of
3008 make_regno_born.
3009 (make_allocno_born): Likewise.
3010 (make_hard_regno_dead): New function, split out of make_regno_dead.
3011 (make_allocno_dead): Likewise.
3012 (inc_register_pressure): New function, split out of set_allocno_live.
3013 (dec_register_pressure): New function, split out of clear_allocno_live.
3014 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
3015 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
3016 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
3017 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
3018 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
3019 mark_pseudo_regno_live.
3020 (process_bb_node_lives): Use mark_pseudo_regno_live,
3021 make_hard_regno_born and make_allocno_dead.
3022 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
3023 set_allocno_live, clear_allocno_live): Delete functions.
3024
3025 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
3026 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
3027 functions.
3028 (ira_flattening): Use ira_parent_allocno.
3029 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
3030 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
3031
3032 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
3033 statement.
3034
3035 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
3036 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
3037 minmax_set_iter_cond, minmax_set_iter_next,
3038 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
3039 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
3040 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
3041 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
3042 uses changed.
3043
3044 * ira-int.h (struct live_range, live_range_t): Renamed from struct
3045 ira_allocno_live_range and allocno_live_range_t; all uses changed.
3046 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
3047 All uses changed.
3048
3049 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
3050
3051 * thumb2.md (thumb2_tlobits_cbranch): Delete.
3052 (peephole2 to convert zero_extract/compare of single bit to
3053 lshift/compare): New.
3054
3055 2010-06-24 Anatoly Sokolov <aesok@post.ru>
3056
3057 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
3058 recursive call and call to 'int_const_binop'.
3059 (build_range_check, fold_cond_expr_with_comparison, unextend,
3060 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
3061 multiple_of_p): Adjust call to const_binop.
3062
3063 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
3064
3065 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
3066 determine size of XFmode operand.
3067 (XFmode extended DFmode push splitter): Ditto.
3068 (XFmode extended SFmode push splitter): Ditto.
3069
3070 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
3071
3072 PR target/44588
3073 * config/i386/i386.md (extract_code): New.
3074 (<u>divmodqi4): Likewise.
3075 (divmodhiqi3): Likewise.
3076 (udivmodhiqi3): Likewise.
3077 (<u>divqi3): Remvoved.
3078
3079 2010-06-24 Jakub Jelinek <jakub@redhat.com>
3080
3081 PR middle-end/44492
3082 * recog.h (struct recog_data): Add is_asm field.
3083 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
3084 present in constraints of inline-asm operand and memory operand
3085 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
3086 (extract_insn): Initialize recog_data.is_asm.
3087 * doc/md.texi (Constraints): Document operand side-effect rules.
3088
3089 2010-06-24 Andi Kleen <ak@linux.intel.com>
3090
3091 * c-parser.c (c_parser_conditional_expression): Call
3092 warn_for_omitted_condop.
3093 * doc/invoke.texi: Document omitted condop warning.
3094
3095 2010-06-24 Nick Clifton<nickc@redhat.com>
3096
3097 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
3098 insn in the sequence is a jump insn before setting its label.
3099
3100 2010-06-24 Alan Modra <amodra@gmail.com>
3101
3102 * collect2.c (main): Match exactly --version and --help.
3103
3104 2010-06-24 DJ Delorie <dj@redhat.com>
3105
3106 * config/m32c/m32c-pragma.c: Don't include rtl.h.
3107
3108 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
3109
3110 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
3111 using X87MODEF mode iterator.
3112 (pushsf splitter): Macroize splitter using P mode iterator.
3113 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
3114 mode iterator.
3115
3116 (*movxf_internal): Rename from *movxf_integer.
3117 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
3118 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
3119 (*movdf_internal): Rename from *movdf_integer.
3120 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
3121 (*movsf_internal): Rename from *movdf_1.
3122
3123 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
3124
3125 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
3126 (const_gimple_seq_node): Removed typedefs.
3127
3128 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
3129 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
3130
3131 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
3132
3133 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
3134 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
3135 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
3136 and CODE_FOR_vec_extract_lo_v4df.
3137
3138 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
3139 Changed to define_insn_and_split.
3140 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
3141 (vec_extract_lo_v16hi): Likewise.
3142 (vec_extract_lo_v32qi): Likewise.
3143 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3144 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
3145
3146 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
3147
3148 PR target/44640
3149 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
3150 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
3151 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
3152 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
3153 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
3154
3155 PR target/44640
3156 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
3157
3158 PR other/44644
3159 * df-core.c (struct df): Rename to df_d.
3160 * df.h (struct df): Likewise.
3161 * dse.h (struct df): Remove forward declaration.
3162 * recog.h (struct insn_data): Rename to:
3163 (struct_insn_data_d). Adjusted all users.
3164
3165 2010-06-23 Arnaud Charlet <charlet@adacore.com
3166
3167 PR ada/22220
3168 * doc/install.texi: Update requirements to build GNAT.
3169
3170 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
3171
3172 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
3173 enum type.
3174 (m68k_sched_attr_opx_type): Remove unreachable return.
3175 (m68k_sched_attr_opy_type): Likewise.
3176 (m68k_sched_attr_size): Likewise.
3177 (sched_get_opxy_mem_type): Likewise.
3178 (m68k_sched_attr_op_mem): Likewise.
3179
3180 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
3181
3182 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
3183 new statement and adjust VDEF only if necessary. Remove superfluous
3184 call to maybe_clean_or_replace_eh_stmt.
3185 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
3186 copy the flags.
3187 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
3188 * tree-inline.c (copy_bb): ...and not there.
3189
3190 2010-06-22 Cary Coutant <ccoutant@google.com>
3191
3192 * dwarf2out.c (is_nested_in_subprogram): New function.
3193 (should_move_die_to_comdat): Use it.
3194 (copy_ancestor_tree): Don't mark DIEs here.
3195 (copy_decls_walk): Start walk from root of newly-added tree;
3196 mark DIEs here instead.
3197
3198 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
3199
3200 * config/i386/i386.md (unit): Also check sseishft1.
3201
3202 2010-06-22 Jan Hubicka <jh@suse.cz>
3203
3204 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
3205 enabled.
3206
3207 2010-06-22 Jan Hubicka <jh@suse.cz>
3208
3209 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
3210 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
3211 Return true if something changed.
3212 * df.h (df_confluence_function_n): Return bool.
3213 * df-core.c (df_worklist_propagate_forward,
3214 df_worklist_propagate_backward): Track changes and ages.
3215 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3216 track ages.
3217 * dse.c (dse_confluence_n): Return always true.
3218
3219 2010-06-22 Jan Hubicka <jh@suse.cz>
3220
3221 * bitmap.c (bitmap_clear_bit): Micro optimize.
3222
3223 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
3224
3225 * config/i386/i386.md (SWI1248x): New mode iterator.
3226 (SWI48x): Ditto.
3227 (SWI12): Ditto.
3228 (SWI24): Ditto.
3229
3230 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3231 SWI1248x mode iterator.
3232 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3233 using SWI124 mode iterator.
3234 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3235 mode iterator.
3236 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
3237 *pushdi2_prologue_rex64 using P mode iterator.
3238 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3239 using SWI48 mode iterator.
3240 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3241 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3242 using SWI1248x mode iterator.
3243 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3244 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3245 SWI48 mode iterator.
3246 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3247 iterator.
3248 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3249 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3250 SWI12 mode iterator.
3251 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3252 SWI12 mode iterator.
3253 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3254 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3255 SWI24 mode iterator.
3256 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3257 SWI48 mode iterator.
3258 (mov<mode>_insn_1): New expander.
3259 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3260 using SWI48x mode iterator.
3261
3262 (*movoi_internal_avx): Rename from *movoi_internal.
3263 (*movti_internal_rex64): Rename from *movti_rex64.
3264 (*movti_internal_sse): Rename from *movti_sse.
3265 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3266 (*movdi_internal): Rename from *movdi_2.
3267 (*movsi_internal): Rename from *movsi_1.
3268 (*movhi_internal): Rename from *movhi_1.
3269 (*movqi_internal): Rename from *movqi_1.
3270
3271 (insv): Update the call to gen_movsi_insv_1 for rename.
3272 * config/i386/i386.c (promote_duplicated_reg): Ditto.
3273
3274 2010-06-22 Jan Hubicka <jh@suse.cz>
3275
3276 * passes.c (execute_function_todo): Move call of statistics_fini_pass
3277 to ...
3278 (execute_todo) ... this one.
3279
3280 2010-06-22 Alan Modra <amodra@gmail.com>
3281
3282 PR target/44364
3283 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3284 * caller-save.c (insert_restore, insert_save): Use non-validate
3285 form of adjust_address.
3286
3287 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3288
3289 PR target/39690
3290 * config/pa/pa.c (override_options): Disable
3291 -freorder-blocks-and-partition.
3292
3293 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
3294
3295 PR target/44615
3296 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
3297
3298 * config/i386/i386.md (type): Add sseishft1
3299
3300 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
3301 (ppro_insn_load): Likewise.
3302 (ppro_insn_store): Likewise.
3303 (ppro_insn_both): Likewise.
3304
3305 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
3306 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
3307 for type.
3308 (*vec_extractv2di_1_avx): Likewise.
3309 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
3310 type. Remove atom_unit.
3311 (*vec_extractv2di_1_sse2): Likewise.
3312
3313 2010-06-21 DJ Delorie <dj@redhat.com>
3314
3315 * diagnostic.h (diagnostic_classification_change_t): New.
3316 (diagnostic_context): Add history and push/pop list.
3317 (diagnostic_push_diagnostics): Declare.
3318 (diagnostic_pop_diagnostics): Declare.
3319 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
3320 from pragmas in a history chain instead of the global table.
3321 (diagnostic_push_diagnostics): New.
3322 (diagnostic_pop_diagnostics): New.
3323 (diagnostic_report_diagnostic): Scan history chain to find state
3324 of diagnostics as of the diagnostic location.
3325 * opts.c (set_option): Pass UNKNOWN_LOCATION to
3326 diagnostic_classify_diagnostic.
3327 (enable_warning_as_error): Likewise.
3328 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
3329 use in the history chain.
3330 * doc/extend.texi: Document pragma GCC diagnostic changes.
3331
3332 2010-06-21 Jakub Jelinek <jakub@redhat.com>
3333
3334 * dwarf2out.c (add_linkage_name): New function. Don't add
3335 anything to DW_TAG_member DIEs.
3336 (add_name_and_src_coords_attributes): Use it.
3337 (gen_variable_die): Call it for C++ static data members if
3338 specification is DW_TAG_member.
3339
3340 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
3341 C++ char16_t and char32_t.
3342
3343 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
3344 * genattrtab.c: Include vecprim.h.
3345 (cached_attrs, cached_attr_count, attrs_seen_once,
3346 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
3347 attrs_cached_after): New variables.
3348 (find_attrs_to_cache): New function.
3349 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
3350 (write_test_expr): Add attrs_cached argument, return it too,
3351 attempt to cache non-const attributes used more than once in
3352 a single case handling.
3353 (write_attr_get): Use find_attrs_to_cache, for caching candidates
3354 emit cached_* variables. Adjust write_attr_set callers.
3355 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
3356 to find attributes that should be cached in this block. Adjust
3357 write_test_expr callers.
3358 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
3359 callers.
3360 (make_automaton_attrs): Adjust write_test_expr caller.
3361
3362 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
3363 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
3364 (make_automaton_attrs): If find_tune_attr returns non-NULL,
3365 write separate internal_dfa_insn_code_* and insn_default_latency_*
3366 functions for each attribute's value and emit init_sched_attrs
3367 function and function pointers.
3368 * genattr.c (const_attrs, reservations): New variables.
3369 (gen_attr): Add const attributes to const_attrs vector.
3370 (check_tune_attr, find_tune_attr): New functions.
3371 (main): Add reservations to reservations vector. If find_tune_attr
3372 returns true, add prototype for init_sched_attrs and make
3373 internal_dfa_insn_code and insn_default_latency function pointers,
3374 otherwise define init_sched_attrs as dummy macro.
3375 * cfgexpand.c: Include insn-attr.h.
3376 (gimple_expand_cfg): Call init_sched_attrs.
3377
3378 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
3379
3380 PR target/44575
3381 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
3382 va_arg from a set of register save slots into a temporary,
3383 if the container is bigger than type size, do the copying
3384 using smaller mode or using memcpy.
3385
3386 PR bootstrap/44426
3387 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
3388 prototype.
3389 (sel_print_to_dot): Remove macro.
3390 (sel_print): Likewise. New prototype.
3391 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
3392 (sel_print): New function.
3393
3394 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3395
3396 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
3397 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
3398
3399 2010-06-21 Nick Clifton <nickc@redhat.com>
3400
3401 * config/rx/rx.h (PTRDIFF_TYPE): Define.
3402 (SMALL_REGISTER_CLASS): Define (to zero).
3403 (PRINT_OPERAND): Delete.
3404 (PRINT_OPERAND_ADDRESS): Delete.
3405 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
3406 (rx_print_operand_address): Delete prototype.
3407 * config/rx/rx.c (rx_print_operand): Make static.
3408 Allow %H and %L to handle CONST_DOUBLEs.
3409 (rx_print_operand_address): Make static.
3410 (rx_gen_move_template): Rename local variable 'template' to
3411 out_template.
3412 (rx_function_arg): Do not pass unknown sized objects in registers.
3413 (TARGET_PRINT_OPERAND): Define.
3414 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3415
3416 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3417
3418 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
3419
3420 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
3421
3422 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
3423 stack-alignment for simple leaf-functions.
3424
3425 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
3426
3427 * doc/install.texi: Document bootstrap-lto.
3428
3429 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
3430
3431 PR debug/44248
3432 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
3433 (input_function): Drop them here, if VTA is disabled.
3434
3435 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
3436
3437 PR target/44546
3438 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
3439 New predicate.
3440 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
3441 ix86_swapped_fp_comparsion_operator instead of
3442 ix86_fp_comparison_operator.
3443
3444 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
3445 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
3446 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
3447 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
3448 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
3449 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
3450
3451 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3452
3453 PR other/32998
3454 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
3455 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
3456 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
3457 (decode_cmdline_option): Update for this return value. Set
3458 orig_option_with_args_text field. Set arg field for unknown
3459 options. Make static.
3460 (decode_cmdline_options_to_array): New.
3461 (prune_options): Update handling of find_opt return value.
3462 * opts.c (read_cmdline_option): Take decoded option. Return void.
3463 (read_cmdline_options): Take decoded options.
3464 (decode_options): Add parameters for decoded options. Use
3465 decode_cmdline_options_to_array. Use decoded options for -O
3466 scan. Use integral_argument for -O parameters. Update call to
3467 read_cmdline_options.
3468 (enable_warning_as_error): Update handling of find_opt return value.
3469 * opts.h: Update comment on unknown options.
3470 (struct cl_decoded_option): Update comments on opt_index and arg.
3471 Add orig_option_with_args_text.
3472 (decode_cmdline_option): Remove.
3473 (decode_cmdline_options_to_array): Declare.
3474 (decode_options): Update prototype.
3475 * toplev.c (save_argv): Remove.
3476 (save_decoded_options, save_decoded_options_count): New.
3477 (read_integral_parameter): Remove.
3478 (print_switch_values): Use decoded options.
3479 (toplev_main): Don't set save_argv. Update call to decode_options.
3480 * toplev.h (read_integral_parameter): Remove.
3481 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
3482
3483 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
3484
3485 PR target/44072
3486 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
3487 immediate.
3488 * constraints.md (Pw, Px): New constraints.
3489 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
3490
3491 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
3492
3493 * config/i386/sse.md (fma4modesuffixf4): Removed.
3494 (ssemodesuffixf2s): Likewise.
3495 (ssemodesuffixf4): Likewise.
3496 (ssemodesuffixf2c): Likewise.
3497 (ssescalarmodesuffix2s): Likewise.
3498 (avxmodesuffixf2c): Likewise.
3499 (ssemodesuffix): New.
3500 (ssescalarmodesuffix): Likewise.
3501 Update patterns with ssemodesuffix and ssescalarmodesuffix.
3502
3503 2010-06-19 Philip Herron <herron.philip@googlemail.com>
3504
3505 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
3506
3507 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
3508
3509 * stor-layout.c (debug_rli): Remove unused local variables.
3510
3511 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
3512
3513 PR rtl-optimization/40900
3514 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
3515 original expression for later reuse.
3516 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
3517 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
3518
3519 2010-06-18 Anatoly Sokolov <aesok@post.ru>
3520
3521 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
3522 double_int_fits_in_uhwi_p): Implement as static inline.
3523 (double_int_xor): New inline function.
3524 (double_int_lrotate, double_int_rrotate, double_int_max,
3525 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3526 double_int_smin): Declare.
3527 (lrotate_double, rrotate_double): Remove declaration.
3528 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
3529 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
3530 (double_int_lrotate, double_int_rrotate, double_int_max,
3531 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3532 double_int_smin): New function.
3533 * fold-const.c (int_const_binop): Clean up, use double_int_*
3534 functions.
3535 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
3536 double_int_* and immed_double_int_const functions.
3537
3538 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3539
3540 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
3541 * function.c (types_used_by_cur_var_decl): Likewise.
3542 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
3543
3544 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3545
3546 * tree.h (record_layout_info): Change type of pending_statics field
3547 to a VEC.
3548 * stor-layout.c (start_record_layout): Store NULL into
3549 pending_statics.
3550 (debug_rli): Call debug_vec_tree instead of debug_tree.
3551 (place_field): Likewise.
3552 (finish_record_layout): Likewise.
3553
3554 2010-06-18 Alan Modra <amodra@gmail.com>
3555
3556 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
3557
3558 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3559
3560 PR target/43740
3561 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
3562 for SET source operand from SET destination operand.
3563
3564 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
3565
3566 PR rtl-optimization/39871
3567 * reload1.c (init_eliminable_invariants): For flag_pic, disable
3568 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
3569 (function_invariant_p): Rule out a plus of frame or arg pointer with
3570 a SYMBOL_REF.
3571 * ira.c (find_reg_equiv_invariant_const): Likewise.
3572
3573 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
3574
3575 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
3576 print_operand_address and puts to output the operand for CONST.
3577
3578 2010-06-17 Jakub Jelinek <jakub@redhat.com>
3579
3580 PR debug/44572
3581 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
3582 hook.
3583
3584 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3585
3586 * v850-protos.h (print_operand): Delete.
3587 (print_operand_address): Delete.
3588 * v850.h (PRINT_OPERAND): Delete.
3589 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3590 (PRINT_OPERAND_ADDRESS): Delete.
3591 * v850.c (print_operand_address): Rename to...
3592 (v850_print_operand_address): ...this. Make static. Call
3593 v850_print_operand.
3594 (print_operand): Rename to...
3595 (v850_print_operand): ...this. Make static. Call
3596 v850_print_operand_address.
3597 (v850_print_operand_punct_valid_p): New function.
3598 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3599 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3600
3601 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3602
3603 * config/sh/sh-protos.h (print_operand): Delete.
3604 (print_operand_address): Delete.
3605 * config/sh/sh.h (PRINT_OPERAND): Delete.
3606 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3607 (PRINT_OPERAND_ADDRESS): Delete.
3608 * config/sh/sh.c (sh_print_operand_address): Make static.
3609 (sh_print_operand): Make static. Call sh_print_operand_address
3610 and sh_print_operand.
3611 (sh_print_operand_punct_valid_p): New function.
3612 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3613 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3614
3615 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3616
3617 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
3618 (mcore_print_operand_address): Delete.
3619 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
3620 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3621 (PRINT_OPERAND_ADDRESS): Delete.
3622 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
3623 (mcore_print_operand): Make static.
3624 (mcore_print_operand_punct_valid_p): New function.
3625 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
3626 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3627
3628 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3629
3630 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
3631 (print_operand_address): Delete.
3632 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
3633 (PRINT_OPERAND_ADDRESS): Delete.
3634 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
3635 static.
3636 (m68hc11_print_operand): Make static.
3637 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3638
3639 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3640
3641 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3642 (m32r_print_operand_address): Delete.
3643 * config/m32r/m32r.h (m32r_punct_chars): Delete.
3644 (PRINT_OPERAND): Delete.
3645 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3646 (PRINT_OPERAND_ADDRESS): Delete.
3647 * config/m32r/m32r.c (m32r_punct_chars): Make static.
3648 (m32r_print_operand_address): Make static.
3649 (m32r_print_operand): Make static.
3650 (m32r_print_operand_punct_valid_p): New function.
3651 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3652 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3653
3654 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3655
3656 * config/iq2000/iq2000-protos.h (print_operand): Delete.
3657 (print_operand_address): Delete.
3658 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3659 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3660 (PRINT_OPERAND_ADDRESS): Delete.
3661 (iq2000_print_operand_punct): Delete.
3662 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3663 (iq2000_print_operand_address): Make static.
3664 (iq2000_print_operand): Make static.
3665 (iq2000_print_operand_punct_valid_p): New function.
3666 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3667 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3668
3669 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3670
3671 * config/frv/frv-protos.h (frv_print_operand): Delete.
3672 (frv_print_operand_address): Delete.
3673 * config/frv/frv.h (PRINT_OPERAND): Delete.
3674 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3675 (PRINT_OPERAND_ADDRESS): Delete.
3676 * config/frv/frv.c (frv_print_operand_address): Make static.
3677 (frv_print_operand): Make static.
3678 (frv_print_operand_punct_valid_p): New function.
3679 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3680 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3681
3682 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3683
3684 * tree.h (vec_member): Declare.
3685 * tree.c (vec_member): Define.
3686
3687 2010-06-17 Richard Guenther <rguenther@suse.de>
3688
3689 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3690 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3691
3692 2010-06-17 Richard Guenther <rguenther@suse.de>
3693
3694 * tree-inline.c (declare_return_variable): Remove bogus code.
3695
3696 2010-06-17 Richard Guenther <rguenther@suse.de>
3697
3698 * gimplify.c (gimplify_bind_expr): Always promote complex
3699 and vector variables to registers if possible.
3700
3701 2010-06-17 Richard Guenther <rguenther@suse.de>
3702
3703 * expr.c (get_inner_reference): Use double_int for bit_offset
3704 calculation.
3705
3706 2010-06-16 DJ Delorie <dj@redhat.com>
3707
3708 * common.opt (-fstrict-volatile-bitfields): new.
3709 * doc/invoke.texi: Document it.
3710 * fold-const.c (optimize_bit_field_compare): For volatile
3711 bitfields, use the field's type to determine the mode, not the
3712 field's size.
3713 * expr.c (expand_assignment): Likewise.
3714 (get_inner_reference): Likewise.
3715 (expand_expr_real_1): Likewise.
3716 * expmed.c (store_fixed_bit_field): Likewise.
3717 (extract_bit_field_1): Likewise.
3718 (extract_fixed_bit_field): Likewise.
3719
3720 2010-06-16 Richard Guenther <rguenther@suse.de>
3721
3722 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
3723
3724 2010-06-16 Douglas B Rupp <rupp@gnat.com>
3725
3726 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
3727 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
3728 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
3729 * debug.c: Likewise.
3730 * sdbout.c: Likewise.
3731 * vmsdbgout.c: Likewise.
3732 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
3733 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
3734 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
3735 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
3736 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
3737 * dwarf2out.c (dw_fde_struct): New fields
3738 dw_fde_vms_{end,begin}_prologue.
3739 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
3740 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
3741 (dwarf2out_vms_end_prologue): New function.
3742 (dwarf2out_vms_begin_epilogue): New function.
3743 (dw_val_struct): New value dw_val_class_vms_delta.
3744 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
3745 begin_epilogue for VMS.
3746 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
3747 new static functions.
3748 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
3749 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
3750 static functions.
3751 (print_die): New case dw_val_class_vms_delta.
3752 (attr_checksum): Likewise.
3753 (same_dw_val_p: Likewise.
3754 (size_of_die): Likewise.
3755 (value_format): Likewise.
3756 (output_die): Likewise.
3757 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
3758 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
3759 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
3760 dwarf2out_cfi_begin_epilogue
3761 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
3762
3763 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3764
3765 * config/cris/cris-protos.h (cris_print_operand): Delete.
3766 (cris_print_operand_address): Delete.
3767 * config/cris/cris.h (PRINT_OPERAND): Delete.
3768 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3769 (PRINT_OPERAND_ADDRESS): Delete.
3770 * config/cris/cris.c (cris_print_operand_address): Make static.
3771 (cris_print_operand): Make static.
3772 (cris_print_operand_punct_valid_p): New function.
3773 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3774 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3775
3776 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3777
3778 * config/arm/arm-protos.h (arm_print_operand): Delete.
3779 (arm_print_operand_address): Delete.
3780 * config/arm/arm.h (PRINT_OPERAND): Delete.
3781 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3782 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
3783 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
3784 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
3785 (arm_print_operand): Make static.
3786 (arm_print_operand_punct_valid_p): New function.
3787 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3788 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3789
3790 2010-06-16 Nick Clifton <nickc@redhat.com>
3791
3792 * config/rx/constraints.md (NEGint4): New constraint.
3793 * config/rx/rx.md (attr cc): Add set_zsc.
3794 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
3795 initialised.
3796 (cmpsf): Likewise.
3797 (call_internal): Clobber the cc0 register.
3798 (call_value_internal): Likewise.
3799 (cstoresi4): Likewise.
3800 (movsieq): Likewise.
3801 (movsine): Likewise.
3802 (addsi3): Add alternative to handle small negative constants.
3803 (sunsi3): Likewise.
3804 (addsi3): Do not set the O bit in the cc0 register.
3805 (adddi3): Likewise.
3806 (subsi3): Likewise.
3807 (subdi3): Likewise.
3808 (andsi3): Reorder alternatives to prefer shorter forms.
3809 (mulsi3): Likewise.
3810 (iorsi3): Likewise.
3811 (negsi2): Note that the cc0 flags are set.
3812 (rotlsi3): Note that only the Z and S bits are set in cc0.
3813 (lshrsi3): Likewise.
3814 (ashlsi3): Likewise.
3815 (subsf3): Use %Q for the MEM operand.
3816 (fix_truncsfsi2): Likewise.
3817 (floatsisf2): Likewise.
3818 (bitset): Remove early clobber from destination.
3819 (bitset_in_memory): Likewise.
3820 (lrintsf2): Clobber the cc0 register.
3821 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
3822 (rx_print_operand): Handle %N.
3823
3824 2010-06-16 Jan Hubicka <jh@suse.cz>
3825
3826 * df-core.c (df_compact_blocks): Free problem_temps vector.
3827
3828 2010-06-16 Martin Jambor <mjambor@suse.cz>
3829
3830 PR tree-optimization/43905
3831 * tree-sra.c: Include tree-inline.h.
3832 (create_abstract_origin): Removed.
3833 (modify_function): Version the call graph node instead of creating
3834 abstract origins and dealing with same_body aliases.
3835 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3836 function is versionable.
3837 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3838
3839 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
3840
3841 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3842 (CHOOSE_DYNAMIC_LINKER): Update.
3843
3844 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
3845
3846 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
3847 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3848 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3849 *prefetch_3dnow_rex.
3850
3851 2010-06-15 Anatoly Sokolov <aesok@post.ru>
3852
3853 * target.h (struct asm_out):Add declare_constant_name field.
3854 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3855 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3856 * output.h (default_asm_declare_constant_name): Declare.
3857 (assemble_label): Update prototype.
3858 * varasm.c (assemble_constant_contents): Use
3859 targetm.asm_out.declare_constant_name target hook.
3860 (assemble_label): Add 'file' argument.
3861 (default_asm_declare_constant_name): New function.
3862 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3863 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3864 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3865
3866 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3867 * config/darwin.c (darwin_asm_declare_constant_name): New function.
3868 (machopic_output_indirection): Update assemble_label argument list.
3869 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3870 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3871
3872 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
3873
3874 PR middle-end/44391
3875 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3876 size_one_node for pointer types. Do not call gmp_cst_to_tree.
3877
3878 2010-06-15 Richard Guenther <rguenther@suse.de>
3879
3880 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3881
3882 2010-06-15 Paul Brook <paul@codesourcery.com>
3883
3884 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3885 hard-float ABI.
3886
3887 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
3888
3889 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3890 don't get a vector type for output.
3891
3892 2010-06-15 Jakub Jelinek <jakub@redhat.com>
3893
3894 PR fortran/44536
3895 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3896 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3897 (LANG_HOOKS_DECLS): Add it.
3898 * gimplify.c (omp_notice_variable): Call
3899 lang_hooks.decls.omp_report_decl.
3900
3901 2010-06-15 Martin Jambor <mjambor@suse.cz>
3902
3903 PR lto/44464
3904 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3905 on the newly dead SSA name.
3906
3907 2010-06-15 Alan Modra <amodra@gmail.com>
3908
3909 * doc/invoke.texi: Add mcmodel to powerpc options.
3910 * configure.ac: Add HAVE_LD_LARGE_TOC test.
3911 * configure: Regenerate.
3912 * config.in: Regenerate.
3913 * config/rs6000/linux64.opt (mcmodel): New.
3914 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3915 (TARGET_CMODEL, SET_CMODEL): Define.
3916 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3917 select CMODEL_MEDIUM default.
3918 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3919 (TARGET_CMODEL): Define default.
3920 * config/rs6000/rs6000.c (cmodel): New variable.
3921 (rs6000_explicit_options): Add cmodel field.
3922 (rs6000_handle_option): Handle -mcmodel.
3923 (create_TOC_reference): Add largetoc_reg param. Generate high,
3924 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
3925 (rs6000_delegitimize_address): Recognise new toc reference rtl
3926 and minimal-toc rtl.
3927 (rs6000_legitimize_reload_address): Handle new toc references.
3928 (print_operand_address): Handle legitimate_constant_pool_address_p
3929 match before lo_sum.
3930 (rs6000_eliminate_indexed_memrefs): Tidy.
3931 (rs6000_emit_move): Tweak threshold for inlining constants.
3932 Keep rs6000_emit_allocate_stack large stack frame offsets
3933 loaded into r0 inline.
3934 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3935 (tocrel_base, tocrel_offset): New variables.
3936 (toc_relative_expr_p): Set them here.
3937 (print_operand_address): Skip over any offset on constant pool address.
3938 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3939 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3940 (offsettable_ok_by_alignment): New function.
3941 (rs6000_emit_move): Address suitably aligned local symbol_refs
3942 relative to the toc pointer for -mcmodel=medium.
3943 (legitimate_constant_pool_address_p): Make param const_rtx. Add
3944 strict param. Allow lo_sum version of addressing. Verify reg
3945 used for -mminimal-toc and -mcmodel != small. Update all callers.
3946 * config/rs6000/constraints.md: Update for above change.
3947 * config/rs6000/predicates.md: Likewise.
3948 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3949 code.
3950 (tls_gd): Split for -mcmodel=medium/large.
3951 (tls_gd_high, tls_gd_low): New.
3952 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3953 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3954 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3955 (largetoc_high, largetoc_low): New.
3956 (cmptf_internal2): Add clobber.
3957 * config/rs6000/rs6000-protos.h: Update.
3958
3959 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
3960
3961 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
3962 true if no prefetch is going to be generated for a given group.
3963 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3964 estimate the prefetch_count.
3965 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3966 prefetch count by considering the unroll_factor and prefetch_mod
3967 for is_loop_prefetching_profitable.
3968
3969 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
3970
3971 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3972 anything if the argument is not a MEM.
3973
3974 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3975
3976 PR debug/43650
3977 PR debug/44181
3978 PR debug/44247
3979 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3980 debug stmts.
3981 (canonicalize_loop_ivs): Likewise.
3982
3983 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3984
3985 PR debug/43656
3986 * haifa-sched.c (setup_insn_reg_pressure_info,
3987 update_register_pressure): Reject debug insns.
3988 (ready_sort): Don't setup reg pressure for debug insns.
3989 (schedule_insn): Don't update reg pressure for debug insns.
3990
3991 2010-06-14 Richard Guenther <rguenther@suse.de>
3992
3993 * lto-streamer.c (cached_bp): Remove.
3994 (bitpack_delete): Likewise.
3995 (bitpack_create): Likewise.
3996 (bp_get_next_word): Likewise.
3997 (bp_pack_value, bp_unpack_value): Move ...
3998 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3999 Re-implement.
4000 (struct bitpack_d): Likewise.
4001 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
4002 New inline functions.
4003 * lto-streamer-out.c (lto_output_bitpack): Remove.
4004 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4005 (pack_value_fields): Adjust.
4006 (lto_write_tree): Likewise.
4007 (output_gimple_stmt): Likewise.
4008 (output_function): Likewise.
4009 * lto-streamer-in.c (input_gimple_stmt): Adjust.
4010 (input_function): Likewise.
4011 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4012 (lto_input_bitpack): Remove.
4013 (lto_materialize_tree): Adjust.
4014 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
4015 * lto-cgraph.c (lto_output_edge): Adjust.
4016 (lto_output_node): Likewise.
4017 (lto_output_varpool_node): Likewise.
4018 (lto_output_ref): Likewise.
4019 (input_node): Likewise.
4020 (input_varpool_node): Likewise.
4021 (input_ref): Likewise.
4022 (input_edge): Likewise.
4023 (output_node_opt_summary): Likewise.
4024 (input_node_opt_summary): Likewise.
4025 * ipa-pure-const.c (pure_const_write_summary): Likewise.
4026 (pure_const_read_summary): Likewise.
4027 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
4028 (ipa_read_indirect_edge_info): Likewise.
4029 (ipa_write_node_info): Likewise.
4030 (ipa_read_node_info): Likewise.
4031
4032 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
4033
4034 PR target/44534
4035 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
4036 (vec_extract_lo_v16hi): Likewise.
4037 (vec_extract_lo_v32qi): Likewise.
4038
4039 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4040
4041 PR bootstrap/44426
4042 * tree.h (build_call_expr): Don't define as vararg macro, instead
4043 add a prototype.
4044 * builtins.c (build_call_nofold): Remove.
4045 (expand_builtin_int_roundingfn, expand_builtin_pow,
4046 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
4047 expand_builtin_memset_args, expand_builtin_strcmp,
4048 expand_builtin_strncmp, expand_builtin_memory_chk): Use
4049 build_call_nofold_loc instead of build_call_nofold.
4050 (build_call_expr): New function.
4051
4052 PR tree-optimization/44508
4053 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
4054 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
4055 don't eliminate trivially dead stmts.
4056 * tree-vrp.c (vrp_finalize): Pass false as last argument
4057 to substitute_and_fold.
4058 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
4059 to substitute_and_fold.
4060 * tree-ssa-ccp.c (ccp_finalize): Likewise.
4061
4062 PR bootstrap/44509
4063 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
4064
4065 2010-06-14 Ira Rosen <irar@il.ibm.com>
4066
4067 PR tree-optimization/44507
4068 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
4069 to build initial vector for BIT_AND_EXPR.
4070 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4071
4072 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4073
4074 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
4075 adjust z10prop set_attr.
4076
4077 2010-06-13 Jan Hubicka <jh@suse.cz>
4078
4079 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
4080 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
4081 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
4082 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
4083 datastructure checks into checking asserts.
4084 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
4085 * tree-ssa-sccvn.c (VN_INFO): Likewise.
4086 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
4087 df_ref_create_structure): Likewise.
4088 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
4089 pool_free): Use gcc_checking_assert.
4090 * alias.c (get_alias_set): Likewise.
4091 * var-tracking.c (variable_htab_free, shared_hash_copy,
4092 canonicalize_values_mark, variable_merge_over_cur): Likewise.
4093 * lto-streamer.c (bp_unpack_value): Likewise.
4094
4095 2010-06-13 Richard Guenther <rguenther@suse.de>
4096
4097 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
4098 Do not stream but initialize TYPE_CANONICAL to NULL.
4099 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
4100 * gimple.c (gimple_types_compatible_p): Disregard
4101 TYPE_STRUCTURAL_EQUALITY_P.
4102 (gimple_register_type): Use TYPE_CANONICAL as cache.
4103 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
4104 before registering common types.
4105 * config/i386/i386.c (ix86_function_arg_boundary): Do not
4106 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
4107 * tree.h (TYPE_CANONICAL): Clarify documentation.
4108
4109 2010-06-13 Anatoly Sokolov <aesok@post.ru>
4110
4111 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4112 LIBCALL_VALUE): Remove macros.
4113 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
4114 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4115 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4116 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
4117 (ia64_function_value): Make static. Handle receiving the function
4118 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
4119
4120 2010-06-12 Jan Hubicka <jh@suse.cz>
4121
4122 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
4123 at correct place.
4124
4125 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
4126
4127 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
4128
4129 2010-06-12 Jan Hubicka <jh@suse.cz>
4130
4131 * df-core.c (df_clear_bb_info): New function.
4132 (df_set_blocks): bb_info is always allocated.
4133 (df_get_bb_info): Use block_info_elt_size.
4134 (df_set_bb_info): Likewise.
4135 (df_compact_blocks): Update for new block_info.
4136 (grow_bb_info): New function.
4137 * df-problems.c (df_grow_bb_info): Move to df-core.c
4138 (df_rd_set_bb_info): Remove.
4139 (df_rd_free_bb_info): Do not free block pool.
4140 (df_rd_alloc): Do not create pool, use check for
4141 obstack presence instead of NULL pointer for new blocks.
4142 (df_rd_free): DO not free alloc pool; clear block_info.
4143 (problem_RD): Add size of block info structure.
4144 (df_lr_set_bb_info): Remove.
4145 (df_lr_free_bb_info): Do not free block pool.
4146 (df_lr_alloc): Do not create pool, use check for
4147 obstack presence instead of NULL pointer for new blocks.
4148 (df_lr_free): DO not free alloc pool; clear block_info.
4149 (problem_LR): Add size of block info structure.
4150 (df_live_set_bb_info): Remove.
4151 (df_live_free_bb_info): Do not free block pool.
4152 (df_live_alloc): Do not create pool, use check for
4153 obstack presence instead of NULL pointer for new blocks.
4154 (df_live_free): DO not free alloc pool; clear block_info.
4155 (problem_LIVE): Add size of block info structure.
4156 (problem_CHAIN): Add size of block info structure.
4157 (df_byte_lr_set_bb_info): Remove.
4158 (df_byte_lr_free_bb_info): Do not free block pool.
4159 (df_byte_lr_alloc): Do not create pool, use check for
4160 obstack presence instead of NULL pointer for new blocks.
4161 (df_byte_lr_free): DO not free alloc pool; clear block_info.
4162 (problem_BYTE_LR): Add size of block info structure.
4163 (problem_NOTE): Add size of block info structure.
4164 (df_byte_MD_set_bb_info): Remove.
4165 (df_byte_MD_free_bb_info): Do not free block pool.
4166 (df_byte_MD_alloc): Do not create pool, use check for
4167 obstack presence instead of NULL pointer for new blocks.
4168 (df_byte_MD_free): DO not free alloc pool; clear block_info.
4169 (problem_BD): Add size of block info structure.
4170 * df-scan.c (df_scan_free_internal): Free block pool.
4171 (df_scan_set_bb_info): Remove.
4172 (df_scan_free_bb_info): Check for artificial_defs instead
4173 of bb_info being non-NULL.
4174 (df_scan_alloc): DO not create df_scan_block pool.
4175 (problem_SCAN): Set size of block info.
4176 (df_bb_refs_record): Do not allocate bb_info.
4177 * df.h (df_problem): Add block_info_elt_size.
4178 (struct dataflow): Change block_info to void *.
4179 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
4180 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
4181 in-line structures.
4182
4183 2010-06-12 Jan Hubicka <jh@suse.cz>
4184
4185 PR tree-optimize/44485
4186 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
4187 containing use of return value of noreturn function.
4188
4189 2010-06-12 Anatoly Sokolov <aesok@post.ru>
4190
4191 * targhooks.c (default_function_value): Don't use
4192 FUNCTION_OUTGOING_VALUE.
4193 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
4194 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
4195
4196 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
4197
4198 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
4199 Add crtfastmath.o to extra_parts.
4200 * config/mips/crtfastmath.c: New.
4201 * config/mips/linux.h (ENDFILE_SPEC): New.
4202
4203 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
4204
4205 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
4206 old_type in parameter.
4207 (gcc_type_for_value): Update call to gcc_type_for_interval.
4208 (compute_type_for_level_1): Renamed compute_type_for_level.
4209 Update call to gcc_type_for_interval.
4210
4211 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4212
4213 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
4214 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4215
4216 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4217
4218 * opts-common.c: Include options.h.
4219 (integral_argument): Move from opts.c.
4220 (decode_cmdline_option): New. Based on read_cmdline_option.
4221 * opts.c (integral_argument): Move to opts-common.c.
4222 (read_cmdline_option): Move most contents to
4223 decode_cmdline_option. Use %qs in diagnostics.
4224 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4225 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4226 decode_cmdline_option): New.
4227
4228 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4229
4230 PR target/44481
4231 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4232 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4233 (partiysi2_cmp): Ditto.
4234 (*partiyhi2_cmp): Ditto.
4235 (*parityqi2_cmp): Remove.
4236
4237 2010-06-11 Jan Hubicka <jh@suse.cz>
4238
4239 * bitmap.h (bmp_iter_next_bit): New.
4240 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4241
4242 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
4243 Eric Botcazou <ebotcazou@adacore.com>
4244
4245 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4246 computed cost.
4247
4248 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4249
4250 * config/i386/i386.md (unspec): New define_c_enum.
4251 (unspecv): Ditto.
4252
4253 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4254
4255 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4256
4257 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
4258
4259 PR middle-end/44483
4260 * tree-if-conv.c (bb_predicate_s): New struct.
4261 (bb_predicate_p): New.
4262 (bb_has_predicate): New.
4263 (bb_predicate): New.
4264 (set_bb_predicate): New.
4265 (bb_predicate_gimplified_stmts): New.
4266 (set_bb_predicate_gimplified_stmts): New.
4267 (add_bb_predicate_gimplified_stmts): New.
4268 (init_bb_predicate): New.
4269 (free_bb_predicate): New.
4270 (is_predicated): Use bb_predicate.
4271 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4272 (predicate_bbs): Same. Gimplify the condition of the basic blocks
4273 before processing their successors.
4274 (clean_predicate_lists): Removed.
4275 (find_phi_replacement_condition): Use bb_predicate.
4276 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
4277 computations.
4278 (insert_gimplified_predicates): New.
4279 (combine_blocks): Call insert_gimplified_predicates.
4280 (tree_if_conversion): Call free_bb_predicate instead of
4281 clean_predicate_lists.
4282
4283 2010-10-11 Paul Brook <paul@codesourcery.com>
4284
4285 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
4286 * config/arm/arm.c (all_architectures): Change v7e-m default to
4287 cortexm4.
4288 * config/arm/arm-cores.def: Add cortex-m4.
4289 * config/arm/arm-tune.md: Regenerate.
4290
4291 2010-06-11 Jan Hubicka <jh@suse.cz>
4292
4293 * ipa-pure-const.c (special_builtlin_state): New function.
4294 (check_call): Use it instead of special casign BUILT_IN_RETURN.
4295 (propagate_pure_const): Use it.
4296
4297 2010-06-11 Jan Hubicka <jh@suse.cz>
4298
4299 * df-problems.c (df_live_scratch): Convert to bitmap_head.
4300 (df_live_alloc): Initialize df_live_scratch when initializing
4301 problem_data.
4302 (df_live_transfer_function): Update uses of df_live_scratch.
4303 (df_live_free): Free problem_data; clear df_live_scratch before
4304 releasing the obstack.
4305 (df_md_free): Free problem data.
4306
4307 2010-06-11 Jan Hubicka <jh@suse.cz>
4308
4309 * doc/invoke.texi (Wsuggest-attribute): Document.
4310 (Wmissing-noreturn): Remove.
4311 * ipa-pure-const.c (warn_function_noreturn): New function.
4312 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
4313 warn_missing_noreturn.
4314 * common.opt (Wsuggest-attribute=noreturn): New.
4315 * tree-flow.h (warn_function_noreturn): Declare.
4316 * tree-cfg.c (execute_warn_function_noreturn): Use
4317 warn_function_noreturn.
4318 (gate_warn_function_noreturn): New.
4319 (pass_warn_function_noreturn): Update.
4320
4321 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4322
4323 * c-typeck.c (handle_warn_cast_qual): Add loc
4324 parameter. Improve warning message.
4325 (build_c_cast): Pass location to handle_warn_cast_qual.
4326
4327 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4328
4329 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
4330 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
4331 insn mnemonic.
4332 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
4333
4334 2010-06-10 Dodji Seketeli <dodji@redhat.com>
4335
4336 Fix bootstap on mips
4337 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
4338 be naming typedefs.
4339
4340 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
4341
4342 * system.h (helper_const_non_const_cast): New inline for
4343 gcc version <= 4.0.
4344 (CONST_CAST2): For gcc version <= 4.0 use
4345 new helper to do const/non-const casting.
4346
4347 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4348
4349 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
4350 * Makefile.in (OBJS-common): Include insn-enums.o.
4351 (insn-enums.o): New rule.
4352 (simple_generated_c): Add insn-enums.c.
4353 (build/genenums.o): New rule.
4354 (genprogmd): Add "enums".
4355 * genconstants.c (print_enum_type): Declare a C string array
4356 for each enum.
4357 * genenums.c: New file.
4358 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
4359 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
4360 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
4361
4362 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4363
4364 * doc/md.texi (define_enum_attr): Document.
4365 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
4366 * read-md.h (lookup_enum_type): Declare.
4367 * read-md.c (lookup_enum_type): New function.
4368 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
4369 * genattrtab.c (attr_desc): Add an enum_name field.
4370 (evaluate_eq_attr): Take the associated attribute as argument.
4371 Get the enum prefix from the enum_name field, if defined.
4372 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
4373 (simplify_test_exp): Pass attr to evaluate_eq_attr.
4374 (add_attr_value): New function, split out from...
4375 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
4376 (write_test_expr): Pass attr to evaluate_eq_attr.
4377 (write_attr_get): Use the enum_name as the enum tag, if defined.
4378 (write_attr_valueq): Use the enum_name as a prefix, if defined.
4379 (find_attr): Initialize enum_name.
4380 (main): Handle DEFINE_ENUM_ATTR.
4381 * gensupport.c (process_rtx): Likewise.
4382 * config/mips/mips.h (mips_tune_attr): Delete.
4383 * config/mips/mips.md (cpu): Use define_attr_enum.
4384
4385 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4386
4387 * doc/md.texi (define_c_enum, define_enum): Document.
4388 * read-md.h (md_constant): Add a parent_enum field.
4389 (enum_value, enum_type): New structures.
4390 (upcase_string, traverse_enum_types): Declare.
4391 * read-md.c (enum_types): New variable.
4392 (upcase_string, add_constant): New functions.
4393 (handle_constants): Don't create the hash table here.
4394 Use add_constant.
4395 (traverse_md_constants): Don't check for a null md_constants.
4396 (decimal_string, handle_enum, traverse_enum_types): New functions.
4397 (read_md_files): Initialize md_constants and md_enums.
4398 * genconstants.c (print_md_constant): Ignore info argument.
4399 Only print constants that belong to no enum.
4400 (print_enum_type): New function.
4401 (main): Don't pass stdout to print_md_constant. Call print_enum_type
4402 for each defined enum type.
4403 * config/mips/mips.md (processor): New define_enum.
4404 (unspec): New define_c_enum.
4405 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
4406 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
4407 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
4408 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
4409 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4410 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4411 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4412 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4413 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4414 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4415 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4416 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4417 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4418 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4419 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4420 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4421 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4422 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4423 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4424 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4425 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4426 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4427 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4428 (UNSPEC_RDDSP): Move to mips-dsp.md.
4429 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
4430 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
4431 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
4432 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
4433 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
4434 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
4435 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
4436 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
4437 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
4438 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
4439 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
4440 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
4441 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
4442 Moved to mips-dspr2.md.
4443 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
4444 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
4445 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
4446 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
4447 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
4448 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
4449 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4450 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4451 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4452 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4453 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4454 UNSPEC_LOONGSON_PSADBH)
4455 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4456 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4457 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
4458 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4459 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4460 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4461 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
4462 (cpu): Update comment.
4463 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
4464 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
4465 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
4466 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
4467 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
4468 UNSPEC_LOONGSON_PCMPEQ)
4469 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
4470 UNSPEC_LOONGSON_PINSR_0)
4471 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4472 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4473 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4474 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4475 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4476 UNSPEC_LOONGSON_PSADBH)
4477 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4478 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4479 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
4480 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4481 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4482 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4483 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
4484 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
4485 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
4486 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
4487 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
4488 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
4489 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
4490 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
4491 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
4492 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
4493 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
4494 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
4495 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
4496 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
4497 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
4498 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
4499 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
4500 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
4501 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
4502 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
4503 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4504 (UNSPEC_RDDSP): Moved from mips.md.
4505 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
4506 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
4507 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
4508 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
4509 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
4510 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
4511 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
4512 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
4513 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
4514 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
4515 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
4516 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
4517 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
4518 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
4519 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
4520 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
4521 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
4522 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
4523 (UNSPEC_SCC): Moved from mips.md.
4524 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
4525 "processor_type" to "processor".
4526 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
4527 * config/mips/mips.h (processor_type): Delete.
4528 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
4529 "processor_type" to "processor".
4530
4531 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4532
4533 * configure.ac (tm_include_list): Add insn-constants.h.
4534 * configure: Regenerate.
4535 * Makefile.in (GTM_H): Move insn-constants.h here from...
4536 (TM_H): ...here.
4537 * mkconfig.sh: Remove special handling for insn-constants.h.
4538
4539 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4540
4541 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
4542 (BUILD_MD): ...this new variable.
4543 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
4544 that include the old contents of simple_generated_h and
4545 simple_generated_c.
4546 (simple_generated_h, simple_generated_c): Include them. Add
4547 insn-constants.h.
4548 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
4549 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
4550 Remove these dependencies from the main rule and include
4551 insn-conditions.md in the command line only if it appears
4552 in the dependency list.
4553 (insn-constants.h, s-constants): Delete.
4554 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
4555 or gensupport.h.
4556 (build/genmddeps.o): Likewise.
4557 (genprogrtl): New variable that contains everything from genprogmd
4558 except mddeps and constants.
4559 (genprogmd): Redefine in terms of genprogrtl. Make these programs
4560 depend on $(BUILD_MD)
4561 (genprog): New variable. Make these programs depend on
4562 $(BUILD_ERRORS).
4563 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
4564 (main): Use read_md_files instead of init_rtx_reader_args.
4565 * genconstants.c: As for genmddeps.c.
4566 * read-md.h (read_skip_construct): Declare.
4567 * read-md.c (read_skip_construct): New function.
4568 (handle_file): Allow a null handle_directive, skipping the
4569 construct if so.
4570 (parse_include): Update the comment accordingly.
4571
4572 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4573
4574 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
4575 * genmddeps.c: Include read-md.h.
4576 (main): Call init_rtx_reader_args instead of init_md_reader_args.
4577 * genattr.c (main): Likewise.
4578 * genattrtab.c (main): Likewise.
4579 * genautomata.c (main): Likewise.
4580 * gencodes.c (main): Likewise.
4581 * genconditions.c (main): Likewise.
4582 * genconfig.c (main): Likewise.
4583 * genconstants.c (main): Likewise.
4584 * genemit.c (main): Likewise.
4585 * genextract.c (main): Likewise.
4586 * genflags.c (main): Likewise.
4587 * genopinit.c (main): Likewise.
4588 * genoutput.c (main): Likewise.
4589 * genpeep.c (main): Likewise.
4590 * genrecog.c (main): Likewise.
4591 * genpreds.c (main): Likewise.
4592 * gensupport.h (in_fname): Move to read-md.h.
4593 (init_md_reader_args_cb): Rename to...
4594 (init_rtx_reader_args_cb): ...this and return a bool.
4595 (init_md_reader_args): Rename to...
4596 (init_rtx_reader_args): ...this and return a bool.
4597 (include_callback): Move to read-md.h.
4598 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
4599 (file_name_list, first_dir_md_include): Move to read-md.c
4600 (first_bracket_include): Delete unused variable.
4601 (last_dir_md_include): Move to read-md.c.
4602 (process_include): Delete, moving code to read-md.c:handle_include.
4603 (process_rtx): Don't handle INCLUDE.
4604 (save_string): Delete.
4605 (rtx_handle_directive): New function.
4606 (init_md_reader_args_cb): Rename to...
4607 (init_rtx_reader_args_cb): ...this and return a boolean success value.
4608 Use read_md_args.
4609 (init_md_reader_args): Rename to...
4610 (init_rtx_reader_args): ...this and return a boolean success value.
4611 * rtl.def (INCLUDE): Delete.
4612 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
4613 argument.
4614 * read-rtl.c (read_conditions): Don't gobble ')' here.
4615 (read_mapping): Likewise.
4616 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
4617 Handle top-level non-rtx constructs here rather than in read_rtx_1.
4618 Store the whole queue in *X. Remove call to init_md_reader.
4619 (read_rtx_1): Rename to...
4620 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
4621 Don't handle top-level non-rtx constructs here. Don't handle (nil)
4622 here.
4623 (read_nested_rtx): New function. Handle (nil) here rather than
4624 in read_rtx_code.
4625 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
4626 gobble ')' here.
4627 * read-md.h (directive_handler_t): New type.
4628 (in_fname, include_callback): Moved from read-md.h.
4629 (read_constants, init_md_reader): Delete.
4630 (read_md_files): Declare.
4631 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
4632 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
4633 from gensupport.c.
4634 (read_constants): Rename to...
4635 (handle_constants): ...this. Don't gobble ')' here.
4636 (handle_include, handle_file, handle_toplevel_file)
4637 (parse_include): New functions, mostly taken from gensupport.c.
4638 (init_md_reader): Subsume into...
4639 (read_md_files): ...this new function.
4640
4641 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4642
4643 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4644 (unread_char): Decrement read_md_lineno after putting back '\n'.
4645 * read-md.c (fatal_with_file_and_line): Push back any characters
4646 that we decide not to add to the context.
4647 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
4648 fatal_expected_char in cases where '/' ends a line (for example).
4649 (read_name): Don't increment read_md_lineno here.
4650 (read_escape): Likewise.
4651 (read_quoted_string): Likewise.
4652 (read_braced_string): Likewise.
4653
4654 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4655
4656 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4657 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4658 * genconstants.c: Include read-md.h.
4659 * read-rtl.c (md_constants): Move to read-md.c.
4660 (md_name): Move to read-md.h.
4661 (initialize_iterators): Use leading_string_hash instead of def_hash
4662 and leading_string_eq_p instead of def_name_eq_p.
4663 (read_name): Move to read-md.c.
4664 (def_hash, def_name_eq_p): Delete.
4665 (read_constants, traverse_md_constants): Move to read-md.c.
4666 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4667 * read-md.h: Include hashtab.h.
4668 (md_name): Moved from read-rtl.c.
4669 (md_constant): Moved from read-md.h.
4670 (leading_string_hash, leading_string_eq_p, read_name)
4671 (read_constants, traverse_md_constants): Declare.
4672 * read-md.c (md_constants): Moved from read-rtl.c.
4673 (leading_string_hash, leading_string_eq_p): New functions.
4674 (read_name, read_constants, traverse_md_constants): Moved from
4675 read-rtl.c.
4676
4677 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4678
4679 * read-rtl.c (md_name): New structure.
4680 (read_name): Take an md_name instead of a buffer pointer.
4681 Use the "string" field instead of strcpy when expanding constants.
4682 (read_constants): Remove the tmp_char argument. Update the calls
4683 to read_name, using two local name buffers instead of the tmp_char
4684 argument. Merge the constant-creation code.
4685 (read_conditions): Remove the tmp_char argument. Update the calls
4686 to read_name, using a local name buffer instead of the tmp_char
4687 argument.
4688 (read_mapping): Replace tmp_char variable with a local name buffer.
4689 Update the calls to read_name.
4690 (read_rtx_1): Likewise. Update the calls to read_constants and
4691 read_conditions.
4692
4693 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4694
4695 * Makefile.in (build/read-md.o): Depend on errors.h.
4696 * read-md.h (error_with_line): Declare.
4697 * read-md.c: Include errors.h.
4698 (message_with_line_1): New function, extracted from...
4699 (message_with_line): ...here.
4700 (error_with_line): New function.
4701 * genattrtab.c: If a call to message_with_line is followed by
4702 "have_error = 1;", replace both statements with a call to
4703 error_with_line.
4704 * genoutput.c: Likewise.
4705 * genpreds.c: Likewise.
4706 * genrecog.c: If a call to message_with_line is followed by
4707 "error_count++;", replace both statements with a call to
4708 error_with_line.
4709 (errorcount): Delete.
4710 (main): Don't check it.
4711 * gensupport.c: If a call to message_with_line is followed by
4712 "errors = 1;", replace both statements with a call to error_with_line.
4713 (errors): Delete.
4714 (process_define_cond_exec): Check have_error instead of errors.
4715 (init_md_reader_args_cb): Likewise. Don't set errors.
4716
4717 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4718
4719 * read-md.h (read_md_file): Declare.
4720 (read_char, unread_char): New functions.
4721 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4722 (read_quoted_string, read_string): Remove FILE * argument.
4723 * read-md.c (read_md_file): New variable.
4724 (read_md_filename, read_md_lineno): Update comments and remove
4725 unnecessary initialization.
4726 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4727 (read_escape, read_quoted_string, read_braced_string, read_string):
4728 Remove FILE * argument. Update calls accordingly, using read_char
4729 and unread_char instead of getc and ungetc.
4730 * rtl.h (read_rtx): Remove FILE * argument.
4731 * read-rtl.c (iterator_group): Remove FILE * argument from
4732 "find_builtin".
4733 (iterator_traverse_data): Remove "infile" field.
4734 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
4735 (add_mapping, read_name, read_constants, read_conditions)
4736 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
4737 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
4738 Remove file arguments from all calls, using read_char and unread_char
4739 instead of getc and ungetc.
4740 * gensupport.c (process_include): Preserve read_md_file around
4741 the include. Set read_md_file to the handle of the included file.
4742 Update call to read_rtx.
4743 (init_md_reader_args_cb): Set read_md_file to the handle of the file
4744 and remove local FILE *. Update calls to read_rtx.
4745
4746 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4747
4748 * read-md.h (read_rtx_lineno): Rename to...
4749 (read_md_lineno): ...this.
4750 (read_rtx_filename): Rename to...
4751 (read_md_filename): ...this.
4752 (copy_rtx_ptr_loc): Rename to...
4753 (copy_md_ptr_loc): ...this.
4754 (print_rtx_ptr_loc): Rename to...
4755 (print_md_ptr_loc): ...this.
4756 * read-md.c: Likewise. Update references after renaming.
4757 (string_obstack): Replace RTL with MD in comment.
4758 (set_rtx_ptr_loc): Rename to...
4759 (set_md_ptr_loc): ...this.
4760 (get_rtx_ptr_loc): Rename to...
4761 (get_md_ptr_loc): ...this.
4762 * genconditions.c: Update references after renaming.
4763 * genemit.c: Likewise.
4764 * genoutput.c: Likewise.
4765 * genpreds.c: Likewise.
4766 * gensupport.c: Likewise.
4767 * read-rtl.c: Likewise.
4768
4769 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4770
4771 * Makefile.in (READ_MD_H): New variable.
4772 (BUILD_RTL): Add build/read-md.o.
4773 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
4774 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
4775 (build/genattrtab.o, build/genconditions.o build/genemit.o)
4776 (build/genextract.o, build/genflags.o, build/genoutput.o)
4777 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
4778 (build/read-md.o): New rule.
4779 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
4780 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
4781 * coretypes.h: ...here.
4782 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
4783 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
4784 * genattr.c: Include read-md.h.
4785 * genattrtab.c: Likewise.
4786 * genconditions.c: Likewise.
4787 * genemit.c: Likewise.
4788 * genextract.c: Likewise.
4789 * genflags.c: Likewise.
4790 * genoutput.c: Likewise.
4791 * genpreds.c: Likewise.
4792 * genrecog.c: Likewise.
4793 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
4794 (join_c_conditions, print_c_condition, read_rtx_filename)
4795 (read_rtx_lineno): Move to read-md.h.
4796 * read-rtl.c: Include read-md.h.
4797 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
4798 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
4799 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
4800 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
4801 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
4802 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
4803 (read_braced_string, read_string): Move to read-md.c.
4804 (read_rtx): Move some initialization to init_md_reader and call
4805 init_md_reader here.
4806 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
4807 Move to read-md.h.
4808 * gensupport.c: Include read-md.h.
4809 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
4810 * read-md.h, read-md.c: New files.
4811
4812 2010-06-10 Anatoly Sokolov <aesok@post.ru>
4813
4814 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4815 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4816 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
4817 * config/moxie/moxie.c (moxie_function_value): Make static.
4818 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
4819 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4820
4821 2010-06-10 Martin Jambor <mjambor@suse.cz>
4822
4823 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
4824 * dbgcnt.def (tree_sra): New counter.
4825 * tree-sra.c: Include dbgcnt.h.
4826 (gate_intra_sra): Check tree_sra debug counter.
4827
4828 2010-06-10 Martin Jambor <mjambor@suse.cz>
4829
4830 PR tree-optimization/44258
4831 * tree-sra.c (build_access_subtree): Return false iff there is a
4832 partial overlap.
4833 (build_access_trees): Likewise.
4834 (analyze_all_variable_accesses): Disqualify candidates if
4835 build_access_trees returns true for them.
4836
4837 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
4838
4839 PR debug/41371
4840 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4841 tail-recurse into canonical node. Fast-forward over
4842 non-canonical VALUEs.
4843
4844 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
4845
4846 PR boostrap/44470
4847 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4848 (*addsi_1_zext) <TYPE_LEA>: Likewise.
4849 (add lea splitter): Likewise.
4850 (add_zext lea splitter): Likewise.
4851
4852 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4853
4854 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4855
4856 2010-06-10 Jan Hubicka <jh@suse.cz>
4857
4858 * df-problems.c (df_live_problem_data): Add live_bitmaps.
4859 (df_live_alloc): Initialize problem data and live_osbtacks.
4860 (df_live_finalize): Remove obstack, problem data; do not
4861 clear all bitmaps.
4862 (df_live_top_dump, df_live_bottom_dump): Do not dump old
4863 data when not allocated.
4864 (df_live_verify_solution_start): Do not allocate problem data.
4865 (df_live_verify_solution_end): Check if out is allocated.
4866 (struct df_md_problem_data): New structure.
4867 (df_md_alloc): Allocate problem data.
4868 (df_md_free): Free problem data; do not clear bitmaps.
4869
4870 2010-06-10 Jan Beulich <jbeulich@novell.com>
4871
4872 PR bootstrap/37304
4873 * configure.ac: Replace $() with ${} when intending to expand
4874 variables rather than invoking commands.
4875 * configure: Re-generate.
4876
4877 2010-06-10 Jan Hubicka <jh@suse.cz>
4878
4879 PR rtl-optimization/44460
4880 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4881 TYPE_NEEDS_CONSTRUCTING sanity check.
4882
4883 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
4884
4885 * doc/include/fdl.texi: Move to GFDL version 1.3.
4886
4887 * doc/cpp.texi: Move to GFDL version 1.3.
4888 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
4889 * doc/gccint.texi: Move to GFDL version 1.3.
4890 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
4891 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
4892 * doc/invoke.texi: Move to GFDL version 1.3.
4893
4894 2010-06-09 Jan Hubicka <jh@suse.cz>
4895
4896 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4897 Break out from ...
4898 (propagate) ... here; swap the order.
4899
4900 2010-06-09 Jan Hubicka <jh@suse.cz>
4901
4902 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4903 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4904 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4905 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4906
4907 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4908
4909 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4910 Do not the gather memory reference in the outer loop if the step
4911 is not a constant.
4912
4913 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4914
4915 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4916 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4917 8 to 4. Minor change of the related comments.
4918
4919 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4920
4921 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4922 the scev analysis when the variable is not used outside the loop
4923 in a close phi node: call compute_overall_effect_of_inner_loop.
4924
4925 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4926
4927 * graphite-sese-to-poly.c (single_pred_cond): Renamed
4928 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
4929 (build_sese_conditions_before): Renamed call to single_pred_cond.
4930 (build_sese_conditions_after): Same.
4931
4932 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4933
4934 * graphite-poly.h: Fix comments and indentation.
4935 * graphite-sese-to-poly.c: Same.
4936 (build_sese_conditions_before): Compute stmt and gbb only when needed.
4937 * tree-chrec.c: Fix comments and indentation.
4938 (tree-ssa-loop-niter.c): Same.
4939
4940 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
4941
4942 PR rtl-optimization/42461
4943 * dce.c (deletable_insn_p): Return true for const or pure calls again.
4944 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4945
4946 2010-06-09 Jan Hubicka <jh@suse.cz>
4947
4948 * bitmap.c (bitmap_and): Walk array forward.
4949 (bitmap_and_compl_into): Likewise.
4950 (bitmap_xor): Likewise.
4951 (bitmap_xor_into): Likewise.
4952 (bitmap_equal_p): Likewise.
4953 (bitmap_intersect_p): Likewise.
4954 (bitmap_intersect_compl_p): Likewise.
4955 (bitmap_ior_and_into): Likewise.
4956 (bitmap_elt_copy): Likewise.
4957 (bitmap_and_compl): Likewise.
4958 (bitmap_elt_ior): Likewise.
4959
4960 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
4961
4962 * opts-common.c (prune_options): Ensure replacement argv array
4963 is correctly terminated by a NULL entry.
4964
4965 2010-06-09 Jan Hubicka <jh@suse.cz>
4966
4967 * cgraph.h (varpool_first_static_initializer,
4968 varpool_next_static_initializer): Make checking only when
4969 checking enabled.
4970 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4971 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4972 gcc_assert to gcc_checking_assert.
4973 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4974 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4975 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4976 op_iter_init_phiuse, op_iter_init_phidef,
4977 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4978 gcc_checking_assert.
4979 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4980 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4981 partition_is_global, live_on_entry, live_on_exit,
4982 live_merge_and_clear): Likewise.
4983 * system.h (gcc_checking_assert): New macro.
4984 * gimple.h (set_bb_seq): Use gcc_checking_assert.
4985
4986 2010-06-09 Jason Merrill <jason@redhat.com>
4987
4988 * Makefile.in (TAGS): Collect tags info from c-family.
4989
4990 2010-06-09 Jan Hubicka <jh@suse.cz>
4991
4992 * gimple.h (gcc_gimple_checking_assert): New macro.
4993 (gimple_set_def_ops, gimple_set_use_ops,
4994 gimple_set_vuse, gimple_set_vdef,
4995 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4996 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4997 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4998 gimple_asm_output_op, gimple_asm_output_op_ptr,
4999 gimple_asm_set_output_op, gimple_asm_clobber_op,
5000 gimple_asm_set_clobber_op, gimple_asm_label_op,
5001 gimple_asm_set_label_op, gimple_try_set_kind,
5002 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
5003 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
5004 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
5005 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
5006 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
5007 gimple_omp_for_set_initial, gimple_omp_for_final,
5008 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
5009 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
5010 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
5011 conditional with ENABLE_GIMPLE_CHECKING.
5012 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
5013
5014 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
5015
5016 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
5017 (get_computation_cost_at): Use it.
5018 (determine_use_iv_cost_condition): Likewise.
5019 (determine_iv_cost): Likewise.
5020
5021 2010-06-09 Richard Guenther <rguenther@suse.de>
5022
5023 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
5024 replace constants.
5025
5026 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
5027
5028 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
5029
5030 2010-06-09 Martin Jambor <mjambor@suse.cz>
5031
5032 PR tree-optimization/44423
5033 * tree-sra.c (dump_access): Dump also grp_assignment_read.
5034 (analyze_access_subtree): Pass negative allow_replacements to children
5035 if the current type is scalar.
5036
5037 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
5038
5039 PR testsuite/42843
5040 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
5041 * doc/plugins.texi (Plugin license check): Update information
5042 on type of plugin_is_GPL_compatible.
5043 * Makefile.in (PLUGINCC): Define as $(COMPILER).
5044 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
5045
5046 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
5047
5048 * config/arm/arm.c (thumb2_reorg): New function.
5049 (arm_reorg): Call it.
5050 * config/arm/thumb2.md (define_peephole2 for flag clobbering
5051 arithmetic operations): Delete.
5052
5053 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
5054
5055 PR target/44067
5056 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
5057 e500v2 target.
5058
5059 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
5060
5061 PR plugins/44459
5062 * gcc-plugin.h: Encapsulate all declarations in extern "C".
5063
5064 2010-06-08 Jan Hubicka <jh@suse.cz>
5065
5066 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
5067 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
5068
5069 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
5070
5071 PR tree-optimization/39874
5072 PR middle-end/28685
5073 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
5074 Declare.
5075 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
5076 same_bool_result_p): New.
5077 (and_var_with_comparison, and_var_with_comparison_1,
5078 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
5079 (or_var_with_comparison, or_var_with_comparison_1,
5080 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
5081 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
5082 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
5083 of combine_comparisons.
5084 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
5085
5086 2010-06-08 Anatoly Sokolov <aesok@post.ru>
5087
5088 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5089 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5090 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
5091 pdp11_function_value_regno_p): New functions.
5092 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5093 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5094
5095 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
5096
5097 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
5098 Thumb-2 in the MINUS case.
5099
5100 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5101
5102 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
5103
5104 * doc/gty.texi (GTY Options): Document typed GC allocation and
5105 variable_size GTY option.
5106
5107 * ggc-internal.h: New.
5108
5109 * ggc.h: Update copyright year.
5110 (digit_string): Move to stringpool.c.
5111 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
5112 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
5113 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
5114 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
5115 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
5116 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
5117 (ggc_force_collect, ggc_get_size, ggc_statistics)
5118 (ggc_print_common_statistics): Move to ggc-internal.h.
5119 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
5120 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
5121 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
5122 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
5123 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
5124 (ggc_alloc_zone_pass_stat): Remove.
5125 (ggc_internal_alloc_stat, ggc_internal_alloc)
5126 (ggc_internal_cleared_alloc_stat): New.
5127 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
5128 (ggc_internal_vec_alloc_stat)
5129 (ggc_internal_cleared_vec_alloc_stat)
5130 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
5131 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
5132 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
5133 (ggc_cleared_alloc_ptr_array_two_args): New.
5134 (htab_create_ggc, splay_tree_new_ggc): Redefine.
5135 (ggc_splay_alloc): Change the type of the first argument to
5136 enum gt_types_enum.
5137 (ggc_alloc_string): Make macro.
5138 (ggc_alloc_string_stat): New.
5139 (ggc_strdup): Redefine.
5140 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
5141 (ggc_alloc_rtvec_sized): New.
5142 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
5143 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
5144 (ggc_internal_cleared_alloc_zone_stat)
5145 (ggc_internal_zone_alloc_stat)
5146 (ggc_internal_zone_cleared_alloc_stat)
5147 (ggc_internal_zone_vec_alloc_stat)
5148 (ggc_alloc_zone_rtx_def_stat)
5149 (ggc_alloc_zone_tree_node_stat)
5150 (ggc_alloc_zone_cleared_tree_node_stat)
5151 (ggc_alloc_cleared_gimple_statement_d_stat): New.
5152
5153 * ggc-common.c: Include ggc-internal.h.
5154 (ggc_internal_cleared_alloc_stat): Rename from
5155 ggc_alloc_cleared_stat.
5156 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
5157 (ggc_calloc): Remove.
5158 (ggc_cleared_alloc_htab_ignore_args): New.
5159 (ggc_cleared_alloc_ptr_array_two_args): New.
5160 (ggc_splay_alloc): Add obj_type parameter.
5161 (init_ggc_heuristics): Formatting fixes.
5162
5163 * ggc-none.c: Update copyright year.
5164 (ggc_alloc_stat): Rename to ggc_alloc_stat.
5165 (ggc_alloc_cleared_stat): Rename to
5166 ggc_internal_cleared_alloc_stat.
5167 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5168
5169 * ggc-page.c: Update copyright year. Include ggc-internal.h.
5170 Remove references to ggc_alloc in comments.
5171 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
5172 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
5173 (new_ggc_zone, destroy_ggc_zone): Remove.
5174 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5175
5176 * ggc-zone.c: Include ggc-internal.h. Remove references to
5177 ggc_alloc in comments.
5178 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
5179 (ggc_internal_alloc_zone_pass_stat): New.
5180 (ggc_internal_cleared_alloc_zone_stat): New.
5181 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
5182 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
5183 (new_ggc_zone, destroy_ggc_zone): Remove.
5184
5185 * stringpool.c: Update copyright year. Include ggc-internal.h
5186 (digit_vector): Make static.
5187 (digit_string): Moved from ggc.h.
5188 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
5189 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
5190
5191 * Makefile.in (GGC_INTERNAL_H): New.
5192 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
5193 $(GGC_INTERNAL_H) to dependencies.
5194
5195 * gentype.c: Update copyright year.
5196 (walk_type): Accept variable_size GTY option.
5197 (USED_BY_TYPED_GC_P): New macro.
5198 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
5199 whitespace at the end of strings.
5200 (get_type_specifier, variable_size_p): New functions.
5201 (alloc_quantity, alloc_zone): New enums.
5202 (write_typed_alloc_def): New function.
5203 (write_typed_struct_alloc_def): Likewise.
5204 (write_typed_typed_typedef_alloc_def): Likewise.
5205 (write_typed_alloc_defns): Likewise.
5206 (output_typename, write_splay_tree_allocator_def): Likewise.
5207 (write_splay_tree_allocators): Likewise.
5208 (main): Call write_typed_alloc_defns and
5209 write_splay_tree_allocators.
5210
5211 * lto-streamer.h (lto_file_decl_data_ptr): New.
5212
5213 * passes.c (order): Define using cgraph_node_ptr.
5214
5215 * strinpool.c (struct string_pool_data): Declare nested_ptr using
5216 ht_identifier_ptr.
5217
5218 * gimple.h (union gimple_statement_d): Likewise.
5219
5220 * rtl.h (struct rtx_def): Likewise.
5221 (struct rtvec_def): Likewise.
5222
5223 * tree.h (union tree_node): Likewise.
5224
5225 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5226
5227 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5228
5229 * tree-scalar-evolution.c (scev_initialize): Likewise.
5230
5231 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5232
5233 * dwarf2asm.c (dw2_force_const_mem): Likewise.
5234
5235 * omp-low.c (lower_omp_critical): Likewise.
5236
5237 * bitmap.h (struct bitmap_head_def): Update comment to not
5238 reference ggc_alloc.
5239
5240 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5241
5242 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5243
5244 * ipa-prop.c (duplicate_ggc_array): Rename to
5245 duplicate_ipa_jump_func_array. Use typed GC allocation.
5246 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5247
5248 * gimple.c (gimple_alloc_stat): Use
5249 ggc_alloc_cleared_gimple_statement_d_stat.
5250
5251 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5252
5253 * tree.c (make_node_stat): Use
5254 ggc_alloc_zone_cleared_tree_node_stat.
5255 (make_tree_vec_stat): Likewise.
5256 (build_vl_exp_stat): Likewise.
5257 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5258 (make_tree_binfo_stat): Likewise.
5259 (tree_cons_stat): Likewise.
5260
5261 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5262 (shallow_copy_rtx_stat): Likewise.
5263 (make_node_stat): Likewise.
5264
5265 * lto-symtab.c: Fix comment.
5266
5267 * tree-cfg.c (create_bb): Update comment to not reference
5268 ggc_alloc_cleared.
5269 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5270
5271 * varpool.c (varpool_node): Use typed GC allocation.
5272 (varpool_extra_name_alias): Likewise.
5273
5274 * varasm.c (emutls_decl): Likewise.
5275 (get_unnamed_section): Likewise.
5276 (get_noswitch_section): Likewise.
5277 (get_section): Likewise.
5278 (get_block_for_section): Likewise.
5279 (build_constant_desc): Likewise.
5280 (create_constant_pool): Likewise.
5281 (force_const_mem): Likewise.
5282
5283 * tree.c (build_vl_exp_stat): Likewise.
5284 (build_real): Likewise.
5285 (build_string): Likewise.
5286 (decl_debug_expr_insert): Likewise.
5287 (decl_value_expr_insert): Likewise.
5288 (type_hash_add): Likewise.
5289 (build_omp_clause): Likewise.
5290
5291 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
5292
5293 * tree-ssa.c (init_tree_ssa): Likewise.
5294
5295 * tree-ssa-structalias.c (heapvar_insert): Likewise.
5296
5297 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5298
5299 * tree-ssa-loop-niter.c (record_estimate): Likewise.
5300
5301 * tree-ssa-alias.c (get_ptr_info): Likewise.
5302
5303 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5304
5305 * tree-phinodes.c (allocate_phi_node): Likewise.
5306
5307 * tree-iterator.c (tsi_link_before): Likewise.
5308 (tsi_link_after): Likewise.
5309
5310 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5311
5312 * tree-dfa.c (create_var_ann): Likewise.
5313
5314 * tree-cfg.c (create_bb): Likewise.
5315
5316 * toplev.c (alloc_for_identifier_to_locale): Likewise.
5317 (general_init): Likewise.
5318
5319 * stringpool.c (stringpool_ggc_alloc): Likewise.
5320 (gt_pch_save_stringpool): Likewise.
5321
5322 * sese.c (if_region_set_false_region): Likewise.
5323
5324 * passes.c (do_per_function_toporder): Likewise.
5325
5326 * optabs.c (set_optab_libfunc): Likewise.
5327 (set_conv_libfunc): Likewise.
5328
5329 * lto-symtab.c (lto_symtab_register_decl): Likewise.
5330
5331 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5332 (input_eh_region): Likewise.
5333 (input_eh_lp): Likewise.
5334 (make_new_block): Likewise.
5335 (unpack_ts_real_cst_value_fields): Likewise.
5336
5337 * lto-section-in.c (lto_new_in_decl_state): Likewise.
5338
5339 * lto-cgraph.c (input_node_opt_summary): Likewise.
5340
5341 * loop-init.c (loop_optimizer_init): Likewise.
5342
5343 * lambda.h (lambda_vector_new): Likewise.
5344
5345 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
5346
5347 * ira.c (update_equiv_regs): Likewise.
5348
5349 * ipa.c (cgraph_node_set_new): Likewise.
5350 (cgraph_node_set_add): Likewise.
5351 (varpool_node_set_new): Likewise.
5352 (varpool_node_set_add): Likewise.
5353
5354 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
5355 (duplicate_ipa_jump_func_array): Likewise.
5356 (ipa_read_node_info): Likewise.
5357
5358 * ipa-cp.c (ipcp_create_replace_map): Likewise.
5359
5360 * integrate.c (get_hard_reg_initial_val): Likewise.
5361
5362 * gimple.c (gimple_alloc_stat): Likewise.
5363 (gimple_build_omp_for): Likewise.
5364 (gimple_seq_alloc): Likewise.
5365 (gimple_copy): Likewise.
5366
5367 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
5368 (gsi_insert_after_without_update): Likewise.
5369
5370 * function.c (add_frame_space): Likewise.
5371 (insert_temp_slot_address): Likewise.
5372 (assign_stack_temp_for_type): Likewise.
5373 (allocate_struct_function): Likewise.
5374 (types_used_by_var_decl_insert): Likewise.
5375
5376 * except.c (init_eh_for_function): Likewise.
5377 (gen_eh_region): Likewise.
5378 (gen_eh_region_catch): Likewise.
5379 (gen_eh_landing_pad): Likewise.
5380 (add_call_site): Likewise.
5381
5382 * emit-rtl.c (get_mem_attrs): Likewise.
5383 (get_reg_attrs): Likewise.
5384 (start_sequence): Likewise.
5385 (init_emit): Likewise.
5386
5387 * dwarf2out.c (new_cfi): Likewise.
5388 (queue_reg_save): Likewise.
5389 (dwarf2out_frame_init): Likewise.
5390 (new_loc_descr): Likewise.
5391 (find_AT_string): Likewise.
5392 (new_die): Likewise.
5393 (add_var_loc_to_decl): Likewise.
5394 (clone_die): Likewise.
5395 (clone_as_declaration): Likewise.
5396 (break_out_comdat_types): Likewise.
5397 (new_loc_list): Likewise.
5398 (loc_descriptor): Likewise.
5399 (add_loc_descr_to_each): Likewise.
5400 (add_const_value_attribute): Likewise.
5401 (tree_add_const_value_attribute): Likewise.
5402 (add_comp_dir_attribute): Likewise.
5403 (add_name_and_src_coords_attributes): Likewise.
5404 (lookup_filename): Likewise.
5405 (store_vcall_insn): Likewise.
5406 (dwarf2out_init): Likewise.
5407
5408 * dbxout.c (dbxout_init): Likewise.
5409
5410 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5411
5412 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5413
5414 * config/score/score7.c (score7_output_external): Likewise.
5415
5416 * config/score/score3.c (score3_output_external): Likewise.
5417
5418 * config/s390/s390.c (s390_init_machine_status): Likewise.
5419
5420 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
5421 (rs6000_init_machine_status): Likewise.
5422 (output_toc): Likewise.
5423
5424 * config/pa/pa.c (pa_init_machine_status): Likewise.
5425 (get_deferred_plabel): Likewise.
5426
5427 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
5428
5429 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
5430
5431 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
5432
5433 * config/mep/mep.c (mep_init_machine_status): Likewise.
5434 (mep_note_pragma_flag): Likewise.
5435
5436 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
5437
5438 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
5439
5440 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
5441
5442 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
5443 (i386_pe_maybe_record_exported_symbol): Likewise.
5444
5445 * config/i386/i386.c (get_dllimport_decl): Likewise.
5446 (ix86_init_machine_status): Likewise.
5447 (assign_386_stack_local): Likewise.
5448
5449 * config/frv/frv.c (frv_init_machine_status): Likewise.
5450
5451 * config/darwin.c (machopic_indirection_name): Likewise.
5452
5453 * config/cris/cris.c (cris_init_machine_status): Likewise.
5454
5455 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
5456
5457 * config/avr/avr.c (avr_init_machine_status): Likewise.
5458
5459 * config/arm/arm.c (arm_init_machine_status): Likewise.
5460
5461 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
5462 (alpha_need_linkage): Likewise.
5463 (alpha_use_linkage): Likewise.
5464
5465 * cgraph.c (cgraph_allocate_node): Likewise.
5466 (cgraph_create_edge_1): Likewise.
5467 (cgraph_create_indirect_edge): Likewise.
5468 (cgraph_add_asm_node): Likewise.
5469
5470 * cfgrtl.c (init_rtl_bb_info): Likewise.
5471
5472 * cfgloop.c (alloc_loop): Likewise.
5473 (rescan_loop_exit): Likewise.
5474
5475 * cfg.c (init_flow): Likewise.
5476 (alloc_block): Likewise.
5477 (unchecked_make_edge): Likewise.
5478
5479 * c-parser.c (c_parse_init): Likewise.
5480 (c_parse_file): Likewise.
5481
5482 * c-decl.c (bind): Likewise.
5483 (record_inline_static): Likewise.
5484 (push_scope): Likewise.
5485 (make_label): Likewise.
5486 (lookup_label_for_goto): Likewise.
5487 (finish_struct): Likewise.
5488 (finish_enum): Likewise.
5489 (c_push_function_context): Likewise.
5490
5491 * bitmap.c (bitmap_element_allocate): Likewise.
5492 (bitmap_gc_alloc_stat): Likewise.
5493
5494 * alias.c (record_alias_subset): Likewise.
5495 (init_alias_analysis): Likewise.
5496
5497 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
5498
5499 * fold-const.c (fold_comparison): Remove redundant parenthesis.
5500 * tree-inline.c (expand_call_inline): Pass translated return value of
5501 cgraph_inline_failed_string to diagnostic function.
5502
5503 2010-06-08 Andrew Pinski <pinskia@gmail.com>
5504 Shujing Zhao <pearly.zhao@oracle.com>
5505
5506 PR c/37724
5507 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
5508 implicit bad conversions is initialization.
5509 (error_init): Use gmsgid instead of msgid for argument name and change
5510 the call for error.
5511 (pedwarn_init): Use gmsgid instead of msgid for argument name and
5512 change the call for pedwarn.
5513 (warning_init): Use gmsgid instead of msgid for argument name and
5514 change the call for warning.
5515
5516 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
5517
5518 * config/mips/mips-protos.h (mips_print_operand): Delete.
5519 (mips_print_operand_address): Delete.
5520 * config/mips/mips.h (mips_print_operand_punct): Delete.
5521 (PRINT_OPERAND): Delete.
5522 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5523 (PRINT_OPERAND_ADDRESS): Delete.
5524 * config/mips/mips.c (mips_print_operand_punct): Make static.
5525 (mips_print_operand_address): Make static.
5526 (mips_print_operand): Make static. Call
5527 mips_print_operand_punct_valid_p.
5528 (mips_print_operand_punct_valid_p): New function.
5529 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5530 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5531
5532 2010-06-07 Jan Hubicka <jh@suse.cz>
5533
5534 PR middle-end/44454
5535 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
5536 are allocated.
5537
5538 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
5539
5540 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
5541 name of RECORD.
5542
5543 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5544
5545 * doc/sourcebuild.texi (Effective-Target Keywords, Other
5546 attributes): Document gas.
5547
5548 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
5549
5550 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
5551 <TYPE_LEA>: Split instruction.
5552 <default>: Remove alternative 2 handling.
5553 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
5554 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
5555 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
5556
5557 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
5558 (ashift_zext lea splitter): Use DImode for multiplication.
5559
5560 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
5561 to generate addition.
5562
5563 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5564
5565 * common.opt (fira-verbose): Use Var.
5566 (fpcc-struct-return): Use Init instead of VarExists.
5567 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
5568 toplev.c.
5569 * flags.h (flag_signed_char, flag_short_enums,
5570 flag_pcc_struct_return, flag_ira_verbose,
5571 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
5572 * toplev.c (flag_detailed_statistics, flag_signed_char,
5573 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
5574 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
5575 * toplev.h (flag_crossjumping, flag_if_conversion,
5576 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
5577 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
5578 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
5579 flag_cprop_registers, time_report, flag_ira_loop_pressure,
5580 flag_ira_coalesce, flag_ira_move_spills,
5581 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
5582
5583 2010-06-07 Jan Hubicka <jh@suse.cz>
5584
5585 * df-core.c (df_analyze_problem): Do verification after allocation.
5586
5587 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
5588 (df_lr_alloc): Initialize problem data; move bitmaps to
5589 lr_bitmaps obstack.
5590 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
5591 (df_lr_verify_solution_start): Do not initialize problem data;
5592 allocate bitmaps in lr_bitmaps.
5593 (df_lr_verify_solution_end): Do not free problem data.
5594
5595 2010-06-07 Jan Hubicka <jh@suse.cz>
5596
5597 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
5598 if caller is noreturn.
5599 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
5600 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
5601 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
5602 * ipa-pure-const.c (check_decl): Add IPA parameter.
5603 (state_from_flags): New function.
5604 (better_state, worse_state): New functions.
5605 (check_call): When in IPA mode, do not care about callees.
5606 (check_load, check_store): Update.
5607 (check_ipa_load, check_ipa_store): New.
5608 (check_stmt): When in IPA mode, use IPA checkers.
5609 (analyze_function): Use state_from_flags.
5610 (propagate): Check indirect edges and references.
5611
5612 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
5613
5614 PR rtl-optimization/44404
5615 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
5616 of count_occurrences to see if it's safe to modify mem_insn.
5617
5618 2010-06-07 Richard Guenther <rguenther@suse.de>
5619
5620 * gimplify.c (gimplify_cleanup_point_expr): For empty body
5621 and EH-only cleanup drop the cleanup instead of inserting it
5622 unconditionally.
5623
5624 2010-06-07 Ira Rosen <irar@il.ibm.com>
5625
5626 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
5627 documentation.
5628 * targhooks.c (default_builtin_vectorization_cost): New function.
5629 * targhooks.h (default_builtin_vectorization_cost): Declare.
5630 * target.h (enum vect_cost_for_stmt): Define.
5631 (builtin_vectorization_cost): Change argument and comment.
5632 * tree-vectorizer.h: Remove cost model macros.
5633 * tree-vect-loop.c: Include target.h.
5634 (vect_get_cost): New function.
5635 (vect_estimate_min_profitable_iters): Replace cost model macros with
5636 calls to vect_get_cost.
5637 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5638 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5639 default implementation.
5640 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5641 calls to target hook builtin_vectorization_cost.
5642 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5643 Likewise.
5644 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5645 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5646 implementation to return costs.
5647 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5648 * config/spu/spu.h: Remove vectorizer cost model macros.
5649 * config/i386/i386.h: Likewise.
5650 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5651 a call to target hook builtin_vectorization_cost.
5652
5653 2010-06-06 Sriraman Tallam <tmsriram@google.com>
5654
5655 PR target/44319
5656 * config/i386/i386.c (override_options): Turn zee pass on for level 2
5657 and above and defer till target is known.
5658 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5659 turn off otherwise.
5660
5661 2010-05-25 Jan Hubicka <jh@suse.cz>
5662
5663 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5664 (df_compact_blocks): Likewise.
5665 * df.h (struct df): Turn hardware_regs_used,
5666 regular_block_artificial_uses, eh_block_artificial_uses,
5667 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5668 bitmap_head.
5669 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5670 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5671 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5672 df_scan_blocks, df_insn_delete, df_insn_rescan,
5673 df_insn_rescan_debug_internal, df_insn_rescan_all,
5674 df_process_deferred_rescans, df_process_deferred_rescans,
5675 df_notes_rescan, df_get_call_refs, df_get_call_refs,
5676 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5677 df_record_entry_block_defs, df_record_exit_block_uses,
5678 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5679 df_scan_verify): Update.
5680
5681 2010-05-25 Dodji Seketeli <dodji@redhat.com>
5682
5683 PR c++/44188
5684 * c-common.c (is_typedef_decl): Move this definition ...
5685 * tree.c (is_typedef_decl): ... here.
5686 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5687 * c-common.h (is_typedef_decl): Move this declaration ...
5688 * tree.h (is_typedef_decl): ... here.
5689 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5690 * dwarf2out.c (is_naming_typedef_decl): New function.
5691 (gen_tagged_type_die): Split out of ...
5692 (gen_type_die_with_usage): ... this function. When an anonymous
5693 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5694 is emitted for the typedef.
5695 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5696 anonymous tagged types.
5697
5698 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
5699
5700 PR c/20000
5701 * c-decl.c (grokdeclarator): Delete warning.
5702
5703 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
5704
5705 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
5706 newly built CALL_EXPR.
5707 * tree-profile.c (tree_profiling): Don't profile functions produced
5708 for built-in stuff.
5709
5710 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
5711
5712 PR bootstrap/44427
5713 PR bootstrap/44428
5714 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
5715 endianness-independent.
5716
5717 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5718
5719 * c-common.c: Move to c-family/.
5720 * c-common.def: Likewise.
5721 * c-common.h: Likewise.
5722 * c-cppbuiltin.c: Likewise.
5723 * c-dump.c: Likewise.
5724 * c-format.c: Likewise.
5725 * c-format.h : Likewise.
5726 * c-gimplify.c: Likewise.
5727 * c-lex.c: Likewise.
5728 * c-omp.c: Likewise.
5729 * c.opt: Likewise.
5730 * c-opts.c: Likewise.
5731 * c-pch.c: Likewise.
5732 * c-ppoutput.c: Likewise.
5733 * c-pragma.c: Likewise.
5734 * c-pragma.h: Likewise.
5735 * c-pretty-print.c: Likewise.
5736 * c-pretty-print.h: Likewise.
5737 * c-semantics.c: Likewise.
5738 * stub-objc.c: Likewise.
5739
5740 * gengtype.c (get_file_langdir): Special-case files in c-family/.
5741 (get_output_file_with_visibility): Fix name for c-common.h.
5742 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
5743
5744 * c-tree.h: Update include path for moved files.
5745 * c-lang.c: Likewise.
5746 * c-lang.h: Likewise.
5747 * c-parser.c: Likewise.
5748 * c-convert.c: Likewise.
5749 * c-decl.c: Likewise.
5750 * c-objc-common.c: Likewise.
5751 * configure.ac: Make sure c-family/ exists in the build directory.
5752 * configure: Regenerate.
5753 * Makefile.in: Update paths for moved files. Regroup files per
5754 location and update dependencies. Move generated_files down after
5755 ALL_GTFILES_H.
5756
5757 * config/spu/spu-c.c: Update paths for moved files.
5758 * config/mep/mep-pragma.c: Likewise.
5759 * config/darwin-c.c: Likewise.
5760 * config/i386/msformat-c.c: Likewise.
5761 * config/i386/i386-c.c: Likewise.
5762 * config/avr/avr-c.c: Likewise.
5763 * config/sol2-c.c: Likewise.
5764 * config/ia64/ia64-c.c: Likewise.
5765 * config/rs6000/rs6000-c.c: Likewise.
5766 * config/arm/arm.c: Likewise.
5767 * config/arm/arm-c.c: Likewise.
5768 * config/h8300/h8300.c: Likewise.
5769 * config/v850/v850-c.c: Likewise.
5770
5771 * config/t-darwin: Fix dependencies for moved files.
5772 * config/t-sol2: Fix dependencies for moved files.
5773 * config/mep/t-mep: Fix dependencies for moved files.
5774 * config/ia64/t-ia64: Fix dependencies for moved files.
5775 * config/rs6000/t-rs6000: Fix dependencies for moved files.
5776 * config/v850/t-v850: Fix dependencies for moved files.
5777 * config/v850/t-v850e: Fix dependencies for moved files.
5778
5779 * config/m32c/m32c-pragma.c
5780
5781 * po/exgettext: Look in c-family/ also.
5782
5783 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
5784
5785 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
5786 (mark_control_dependent_edges_necessary): Call it instead of marking
5787 the last statement manually.
5788 (propagate_necessity): Likewise.
5789
5790 2010-06-05 Jan Hubicka <jh@suse.cz>
5791
5792 * basic-block.h (compute_dominance_frontiers): Updated.
5793 (compute_idf): Likewise.
5794
5795 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
5796 for dominance frontiers.
5797 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
5798 (insert_updated_phi_nodes_for): Likewise.
5799 (update_ssa): Likewise.
5800 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5801 (compute_dominance_frontiers): Likewise.
5802 (compute_idf): Likewise.
5803 * df-problems.c (df_md_local_compute): Likewise.
5804
5805 2010-06-05 Anatoly Sokolov <aesok@post.ru>
5806
5807 * target.h (struct gcc_target): Add memory_move_cost field.
5808 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
5809 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
5810 * targhooks.c (default_memory_move_cost): New function.
5811 * targhooks.h (default_memory_move_cost): Declare function.
5812 * reload.h (memory_move_cost): Declare.
5813 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5814 * reginfo.c (memory_move_cost): New function.
5815 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5816 * ira.h (ira_memory_move_cost): Update comment.
5817 * ira.c: (ira_memory_move_cost): Update comment.
5818 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
5819 with memory_move_cost.
5820 * postreload.c (reload_cse_simplify_set): (Ditto.).
5821 * reload1.c (choose_reload_regs): (Ditto.).
5822 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
5823 (MEMORY_MOVE_COST): Revise documentation.
5824
5825 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5826 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5827 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
5828 type of 'in' argument to bool.
5829 (TARGET_MEMORY_MOVE_COST): Define.
5830
5831 2010-06-05 Jan Hubicka <jh@suse.cz>
5832
5833 * ipa-pure-const.c (propagate): Fix typo in handling of functions
5834 that cannot return. Be more careful when merging the results with
5835 previously known ones.
5836
5837 2010-06-05 Matthias Klose <doko@ubuntu.com>
5838
5839 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5840 function to add the -iplugindir option.
5841 (find_plugindir_spec_function): Add new declaration and function.
5842 (static_spec_func): Use it for "find-plugindir".
5843
5844 2010-06-05 Jakub Jelinek <jakub@redhat.com>
5845
5846 PR c++/44361
5847 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5848 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5849 statement expression.
5850
5851 2010-06-05 Jan Hubicka <jh@suse.cz>
5852
5853 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5854 (df_rd_problem_data): Convert sparse_invalidated_by_call,
5855 dense_invalidated_by_call to bitmap head.
5856 (df_rd_alloc, df_rd_bb_local_compute_process_def,
5857 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5858 df_rd_start_dump, df_lr_verify_transfer_functions,
5859 df_live_verify_transfer_functions, df_chain_create_bb,
5860 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5861 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5862 df_simulate_one_insn_forwards, df_md_alloc,
5863 df_md_bb_local_compute_process_def,
5864 df_md_bb_local_compute_process_def, df_md_local_compute,
5865 df_md_transfer_function df_md_free): Update.
5866
5867 2010-06-05 Joseph Myers <joseph@codesourcery.com>
5868
5869 PR c/44322
5870 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5871 target type for ADDR_EXPR; require no changes to qualifiers except
5872 for function types.
5873 * c-tree.h (c_build_type_variant): Remove.
5874
5875 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5876
5877 * genautomata.c (get_excl_set): Do work per element, not per char.
5878 (check_presence_pattern_sets): Similar.
5879 (check_absence_pattern_sets): Similar.
5880
5881 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5882
5883 * genautomata.c (curr_state_pass_num): Delete.
5884 (min_issue_delay_pass_states): Delete.
5885 (min_issue_delay): Delete.
5886 (initiate_min_issue_delay_pass_states): Delete.
5887 (output_min_issue_delay_table): Compute min_issue_delay_vect
5888 using a breadth-first search variant.
5889 (output_tables): Don't call initiate_min_issue_delay_pass_states.
5890
5891 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
5892
5893 PR boostrap/44421
5894 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5895 (df_byte_lr_bb_local_compute): Likewise.
5896
5897 2010-06-03 Jason Merrill <jason@redhat.com>
5898
5899 Implement noexcept operator (5.3.7)
5900 * c-common.c (c_common_reswords): Add noexcept.
5901 * c-common.h (enum rid): Add RID_NOEXCEPT.
5902
5903 2010-06-04 Joseph Myers <joseph@codesourcery.com>
5904
5905 * config/darwin-driver.c (darwin_default_min_version): Use
5906 GCC-specific formats in diagnostics.
5907 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5908 diagnostics.
5909 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5910 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5911 eval_spec_function, handle_braces, process_brace_body, main,
5912 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5913 getenv_spec_function, compare_version_strings,
5914 version_compare_spec_function): Use GCC-specific formats in
5915 diagnostics.
5916
5917 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5918
5919 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5920 that operand 0 and operand 1 are equal.
5921 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5922 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5923 and operand 1 are equal.
5924 <default>: Ditto. Remove ??? comment.
5925 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5926 and operand 1 are equal.
5927 <default>: Ditto. Remove ??? comment.
5928 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5929 are equal.
5930 (*add<mode>_4) <default>: Ditto.
5931 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5932
5933 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
5934
5935 * config/i386/i386-protos.h (ix86_print_operand): Declare.
5936 * config/i386/i386.c (ix86_print_operand): Make non-static.
5937 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5938 * output.h (output_operand): Declare.
5939 * final.c (output_operand): Make non-static.
5940
5941 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
5942
5943 PR rtl-optimization/44013
5944 * sched-deps.c (add_dependence_list_and_free): Don't free lists
5945 when processing debug insns.
5946
5947 PR debug/41371
5948 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5949 recursing. Check that recursion is bounded. Rename inner var
5950 to avoid hiding incoming argument.
5951
5952 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5953
5954 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5955 operands[2] == 255.
5956 (*addqi_3): Ditto.
5957 (*addqi_4): Ditto.
5958 (*addqi_5): Ditto.
5959 (*addqi_ext_1_rex64): Ditto.
5960 (*addqi_ext_1): Ditto.
5961
5962 (*addqi_4): Check for incdec_operand in QImode.
5963
5964 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5965 using SWI mode iterator.
5966 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5967 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5968 mode iterator.
5969 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5970 using SWI mode iterator.
5971
5972 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5973
5974 PR c/25880
5975 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5976 * c-format.c (gcc_diag_flag_specs): Add hash.
5977 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5978 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5979 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5980 pp_c_cv_qualifiers. Handle qualifiers spelling here.
5981 (pp_c_type_qualifier_list): Call the function above.
5982 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5983 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5984 (WARN_FOR_QUALIFIERS): New macro.
5985 (convert_for_assignment): Use it.
5986
5987 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
5988
5989 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5990
5991 2010-06-04 Jan Hubicka <jh@suse.cz>
5992
5993 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5994 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5995 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5996 DF_BYTE_LR_OUT): Update for embedded bitmaps.
5997 * fwprop.c (single_def_use_enter_block): Likewise.
5998 * ddg.c (create_ddg_dep_from_intra_loop_link,
5999 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
6000 * loop-iv.c (latch_dominating_def): Likewise.
6001 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
6002 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
6003 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
6004 df_rd_transfer_function, df_rd_top_dump,
6005 df_rd_bottom_dump): Update.
6006 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
6007 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
6008 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
6009 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
6010 df_lr_verify_solution_start, df_lr_verify_solution_end,
6011 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
6012 df_live_free_bb_info, df_live_alloc, df_live_reset,
6013 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
6014 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
6015 df_live_verify_solution_start, df_live_verify_solution_end,
6016 df_live_verify_transfer_functions, df_chain_create_bb,
6017 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
6018 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6019 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6020 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
6021 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
6022 df_byte_lr_transfer_function, df_byte_lr_top_dump,
6023 df_byte_lr_bottom_dump, df_create_unused_note,
6024 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
6025 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
6026 df_md_transfer_function, df_md_init, df_md_confluence_0,
6027 df_md_confluence_n,
6028 df_md_top_dump, df_md_bottom_dump): Update.
6029 (struct df_lr_problem_data): Embedd bitmap headers.
6030
6031 2010-06-04 Jan Hubicka <jh@suse.cz>
6032
6033 * dce.c (dce_process_block): Do not re-scan already marked
6034 instructions.
6035
6036 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
6037
6038 PR rtl-optimization/39871
6039 PR rtl-optimization/40615
6040 PR rtl-optimization/42500
6041 PR rtl-optimization/42502
6042 * ira.c (init_reg_equiv_memory_loc: New function.
6043 (ira): Call it twice.
6044 * reload.h (calculate_elim_costs_all_insns): Declare.
6045 * ira-costs.c: Include "reload.h".
6046 (regno_equiv_gains): New static variable.
6047 (init_costs): Allocate it.
6048 (finish_costs): Free it.
6049 (ira_costs): Call calculate_elim_costs_all_insns.
6050 (find_costs_and_classes): Take estimated elimination costs
6051 into account.
6052 (ira_adjust_equiv_reg_cost): New function.
6053 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
6054 * reload1.c (init_eliminable_invariants, free_reg_equiv,
6055 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
6056 (elim_bb): New static variable.
6057 (reload): Move code out of here into init_eliminable_invariants and
6058 free_reg_equiv. Call them.
6059 (calculate_elim_costs_all_insns): New function.
6060 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
6061 all callers changed. If FOR_COSTS is true, don't call alter_reg,
6062 but call note_reg_elim_costly if we turned a valid memory address
6063 into an invalid one.
6064 * Makefile.in (ira-costs.o): Depend on reload.h.
6065
6066 2010-06-04 Julian Brown <julian@codesourcery.com>
6067
6068 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
6069 for pool ranges.
6070
6071 2010-06-04 Richard Guenther <rguenther@suse.de>
6072
6073 PR lto/41584
6074 * cgraph.h (struct varpool_node): Add lto_file_data field.
6075 * lto-cgraph.c (input_varpool_node): Initialize it.
6076
6077 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6078
6079 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
6080 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
6081 predicate in "type" attribute calculation.
6082 (*addsi_1_zext): Ditto.
6083 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
6084 (*addsi_2_zext): Ditto.
6085 (*add<mode>_3): Ditto.
6086 (*addsi_3_zext): Ditto.
6087 (*add<mode>_5): Ditto.
6088
6089 2010-06-03 Jan Hubicka <jh@suse.cz>
6090
6091 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
6092 of bitmap_bit_p.
6093 * cfganal.c (compute_dominance_frontiers_1): Likewise.
6094
6095 2010-06-03 Jan Hubicka <jh@suse.cz>
6096
6097 * df-problems.c (df_create_unused_note, df_note_bb_compute):
6098 micro-optimize the checks when to add new note.
6099
6100 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
6101
6102 * final.c (output_asm_insn): Call
6103 targetm.asm_out.print_operand_punct_valid_p. Update comments.
6104 (output_operand): Call targetm.asm_out.print_operand. Update comments.
6105 (output_address): Call targetm.asm_out.print_operand_address.
6106 Update comments.
6107 * target.h (struct gcc_target): Add print_operand,
6108 print_operand_address, and print_operand_punct_valid_p fields.
6109 * targhooks.h (default_print_operand): Declare.
6110 (default_print_operand_address): Declare.
6111 (default_print_operand_punct_valid_p): Declare.
6112 * targhooks.c (default_print_operand): Define.
6113 (default_print_operand_address): Define.
6114 (default_print_operand_punct_valid_p): Define.
6115 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
6116 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
6117 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6118 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
6119 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
6120 * vmsdbgout.c (addr_const_to_string): Update comment.
6121 * config/i386/i386.c (print_operand): Rename to...
6122 (ix86_print_operand): ...this. Make static.
6123 (print_operand_address): Rename to...
6124 (ix86_print_operand_address): ...this. Make static. Call
6125 ix86_print_operand instead of PRINT_OPERAND.
6126 (ix86_print_operand_punct_valid_p): New function.
6127 (TARGET_PRINT_OPERAND): Define.
6128 (TARGET_PRINT_OPERAND_ADDRESS): Define.
6129 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6130 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
6131 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6132 (PRINT_OPERAND): Delete.
6133 (PRINT_OPERAND_ADDRESS): Delete.
6134 * config/i386/i386-protos.h (print_operand): Delete prototype.
6135 (print_operand_address): Delete prototype.
6136
6137 2010-06-03 Richard Guenther <rguenther@suse.de>
6138
6139 PR tree-optimization/44403
6140 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6141 Preserve pointer qualifiers.
6142 (vect_create_data_ref_ptr): Likewise.
6143
6144 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
6145
6146 PR c++/44294
6147 * defaults.h (MAX_FIXED_MODE_SIZE): New.
6148
6149 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
6150
6151 2010-06-03 Jakub Jelinek <jakub@redhat.com>
6152
6153 PR debug/44375
6154 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
6155 return false if merging the bbs would lead to goto_locus
6156 location being lost from the IL.
6157
6158 2010-06-03 Jan Hubicka <jh@suse.cz>
6159 Jakub Jelinek <jakub@redhat.com>
6160
6161 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
6162 set->regs[i] is NULL or has just one entry.
6163
6164 2010-06-03 Jan Hubicka <jh@suse.cz>
6165
6166 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
6167 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
6168
6169 2010-06-03 Paul Brook <paul@codesourcery.com>
6170
6171 * config/arm/arm.c (FL_TUNE): Define.
6172 (arm_default_cpu, arm_cpu_select): Remove.
6173 (all_cores): Populate core field.
6174 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
6175 (arm_find_cpu): New function.
6176 (arm_handle_option): Lookup cpu/architecture names.
6177 (arm_override_options): Cleanup mcpu/march/mtune handling.
6178 (arm_file_start): Ditto.
6179
6180 2010-06-03 Alan Modra <amodra@gmail.com>
6181
6182 PR target/44169
6183 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
6184 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
6185 rtx to gen_load_toc_v4_PIC_1b. Tidy.
6186 (rs6000_emit_load_toc_table): Likewise.
6187
6188 2010-06-02 Jan Hubicka <jh@suse.cz>
6189
6190 * passes.c (init_optimization_passes): Put ipa reference
6191 after ipa pure-const.
6192
6193 2010-06-02 Jan Hubicka <jh@suse.cz>
6194
6195 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
6196 calls_read_all and calls_write_all.
6197 (get_reference_optimization_summary): Fix formatting.
6198 (is_proper_for_analysis): Check that decl is not readonly.
6199 (propagate_bits): Check CONST/PURE/noreturn flags.
6200 (ipa_init): Move all_module_statics to optimization_summary_obstack.
6201 (analyze_function): Ignore indirect edges.
6202 (copy_global_bitmap): For all module statics, do nothing.
6203 (generate_summary): Do not print calls_read_all/calls_write_all.
6204 (read_write_all_from_decl): Take node as argument; check
6205 cgraph_node_cannot_return.
6206 (propagate): Reorganize read_all/write_all computation;
6207 check indirect edges; check ecf flags; use all_module_statics
6208 in the results; do not free all_module_statics.
6209 (stream_out_bitmap): Handle all_module_statics.
6210 (ipa_reference_write_optimization_summary): Likewise; use
6211 varpool/cgraph encoders to get boundaries.
6212 (ipa_reference_read_optimization_summary): Read in all_module_statics;
6213 use it when possible.
6214
6215 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6216
6217 PR target/44218
6218 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6219 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6220
6221 * doc/extend.texi (powerpc builtins): Document vec_recip,
6222 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6223
6224 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6225 (rs6000_emit_swrsqrt): Ditto.
6226 (rs6000_emit_swdivsf): Delete.
6227 (rs6000_emit_swdivdf): Ditto.
6228 (rs6000_emit_swrsqrtsf): Ditto.
6229
6230 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6231 describe the reciprocal estimate support for each type.
6232 (recip_options): Map -mrecip=<opt> into option bits.
6233 (gen_2arg_fn_t): New typedef for binary rtx gen function.
6234 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6235 reciprocal estimate instructions.
6236 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6237 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6238 Set up rs6000_recip_bits based on the -mrecip* options. Print the
6239 cost information if -mdebug=cost or -mdebug=reg.
6240 (rs6000_override_options): Set -mrecip-precision for power6, and
6241 power7 machines. If -mvsx or -mdfp, enable various options that
6242 came in previous instruction set ISAs, unless the option was
6243 explicitly disabled by the command line option. Parse
6244 -mrecip=<opt> options.
6245 (rs6000_builtin_vectorized_function): Add support for vectorizing
6246 the reciprocal estimate builtins and expansions.
6247 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6248 (bdesc_2arg): Add reciprocal estimate builtins.
6249 (bdesc_1arg): Add reciprocal square root estimate builtins.
6250 (rs6000_expand_builtin): Rewrite to use a switch statement,
6251 instead of multiple if/then/elses. Add reciprocal estimate builtins.
6252 (rs6000_init_builtins): Create declarations for reciprocal
6253 estimate builtins.
6254 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6255 sized, prefer traditional floating point registers, if integer
6256 vector types, prefer altivec registers. Don't actually look at
6257 the memory address any more.
6258 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6259 builtins.
6260 (rs6000_load_constant_and_splat): New helper function to load up
6261 the constant for reciprocal estimate instructions.
6262 (rs6000_emit_madd): New helper function for generating
6263 multiply/add type instructions, based on the current switches.
6264 (rs6000_emit_msub): Ditto.
6265 (rs6000_emit_mnsub): Ditto.
6266 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6267 replace a divide with a reciprocal estimate and fixup, adding
6268 support for machines with high precision and vectors.
6269 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6270 low precision machines.
6271 (rs6000_emit_swdiv): New common function to be called to replace a
6272 division with reciprocal estimate and fixup.
6273 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
6274 for double and vector types. Add support for high precision machines.
6275
6276 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6277 the reciprocal estimate instructions can be generated.
6278 (TARGET_FRE): Ditto.
6279 (TARGET_FRSQRTES): Ditto.
6280 (TARGET_FRSQRTE): Ditto.
6281 (RS6000_RECIP_*): New macros for reciprocal estimate support.
6282
6283 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
6284 square root estimate on vectors.
6285 (re<mode>2): New insn for reciprocal division estimate on vectors.
6286
6287 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
6288 New builtin.
6289 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
6290 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
6291 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
6292 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
6293 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
6294 (RS6000_BUILTIN_RSQRT): Ditto.
6295 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
6296 floating point builtin.
6297
6298 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6299 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
6300 __RECIP_PRECISION__ based on the command line switches.
6301 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
6302
6303 * config/rs6000/rs6000.opt (-mrecip): Document add support for
6304 replacing division instructions with reciprocal estimate and fixup.
6305 (-mrecip=<opt>): New option.
6306 (-mrecip-precision): Ditto.
6307
6308 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
6309 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
6310 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
6311 precision scalar.
6312
6313 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
6314 (UNSPEC_VREFP): Ditto.
6315 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
6316 conterparts with regard to support of -mno-fused-madd and -ffast-math.
6317 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
6318 reciprocal estimate instructions to be generated.
6319 (altivec_vrefp): Ditto.
6320
6321 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
6322 estimate support.
6323 (rreg): New mode attribute for reciprocal estimate support.
6324 (recip<mode>3): New insn for division using reciprocal estimate
6325 and fixup builtins.
6326 (divide define_split): New define_split to convert floating point
6327 division to use reciprocal estimate if the user used the
6328 appropriate options and the split is run when we can add new
6329 pseudo registers for the fixup.
6330 (rsqrt<mode>2): New insn for reciprocal square root support.
6331 (recipsf3): Move into recip<mode>3.
6332 (recipdf3): Ditto.
6333 (fres): Use TARGET_FRES.
6334 (rsqrtsf2): Move into rsqrt<mode>2.
6335 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
6336 (copysignsf3): Add support for VSX.
6337 (fred): Use TARGET_FRE.
6338 (fred_fpr): Ditto.
6339 (rsqrtdf_internal1): New function for frsqrte instruciton.
6340
6341 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
6342 (vec_rsqrt): Ditto.
6343
6344 2010-06-03 Richard Guenther <rguenther@suse.de>
6345
6346 PR middle-end/44291
6347 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
6348 (set_user_assembler_libfunc): Likewise.
6349
6350 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6351
6352 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
6353 defaults.h.
6354 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
6355 to defaults.h
6356 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
6357 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
6358 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
6359 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
6360 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
6361 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
6362 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
6363 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
6364 * defaults.h: Updated for above mentioned changes.
6365
6366 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
6367
6368 * c-common.c: Remove header include of tm_p.h.
6369 * Makefile.in (c-common.o): Remove TM_P_H dependency.
6370
6371 2010-06-02 Jakub Jelinek <jakub@redhat.com>
6372
6373 * tree.h (struct tree_decl_map): New type.
6374 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
6375 (tree_decl_map_hash): New prototype.
6376 (debug_expr_for_decl, value_expr_for_decl): Change into
6377 tree_decl_map hashtab from tree_map.
6378 (init_ttree): Adjust initialization.
6379 (tree_decl_map_hash): New function.
6380 (decl_debug_expr_lookup, decl_debug_expr_insert,
6381 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
6382
6383 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6384
6385 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
6386 linker emulations.
6387 * configure: Regenerate.
6388 * config.in: Regenerate.
6389
6390 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
6391 (X86_64_EMULATION): Define.
6392 (TARGET_LD_EMULATION): Use them.
6393
6394 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
6395 (SPARC64_EMULATION): Define.
6396 (LINK_ARCH_SPEC): Use them.
6397
6398 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6399
6400 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
6401 smallest_mode_for_size for computing the precision types of new
6402 graphite IVs. Do not call lang_hooks.types.type_for_size.
6403
6404 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6405
6406 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
6407 information.
6408 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
6409
6410 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6411
6412 PR middle-end/44363
6413 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
6414 return false instead.
6415
6416 2010-06-02 Jan Hubicka <jh@suse.cz>
6417
6418 PR middle-end/44295
6419 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
6420 create new cgraph node to check callee.
6421
6422 2010-06-02 Richard Guenther <rguenther@suse.de>
6423
6424 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
6425
6426 2010-06-02 Richard Guenther <rguenther@suse.de>
6427
6428 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
6429 (lto_wrapper_cleanup): ... this. Do not exit.
6430 (fatal): Adjust. Exit here.
6431 (fatal_perror): Likewise.
6432 (fatal_signal): New function.
6433 (main): Set up signal handlers to cleanup temporary files.
6434 * Makefile.in (lto-wrapper.o): Adjust dependencies.
6435
6436 2010-06-02 Richard Guenther <rguenther@suse.de>
6437
6438 PR tree-optimization/44377
6439 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
6440
6441 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6442
6443 * config/s390/2097.md (z10_fhex): Remove insn reservation.
6444 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
6445 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
6446 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
6447 instruction.
6448 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
6449
6450 2010-06-02 Jan Hubicka <jh@suse.cz>
6451
6452 * bitmap.c (bitmap_descriptor): Add search_iter.
6453 (bitmap_find_bit): Increment it.
6454 (print_statistics): Print it.
6455
6456 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
6457
6458 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
6459 instead of gimple_build_call_vec. Delete unnecessary local variable.
6460
6461 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6462
6463 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
6464 change from yesterday.
6465
6466 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6467
6468 * c-ada-spec.c: Clean up redundant includes.
6469
6470 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
6471
6472 * gimplify.c: Do not include except.h and optabs.h.
6473 (gimplify_body): Do not initialize RTL profiling.
6474 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
6475 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
6476 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
6477 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
6478 langhooks.h.
6479
6480 * tree-pretty-print.h: Include pretty-print.h.
6481 * gimple-pretty-print.h: Include pretty-print.h.
6482
6483 * tree-pretty-print.c: Do not include diagnostic.h.
6484 * tree-vrp.c: Likewise.
6485 * tree-tailcall.c: Likewise
6486 * tree-scalar-evolution.c: Likewise
6487 * tree-ssa-dse.c: Likewise
6488 * tree-chrec.c: Likewise
6489 * tree-ssa-sccvn.c: Likewise
6490 * tree-ssa-copyrename.c: Likewise
6491 * tree-nomudflap.c: Likewise
6492 * tree-call-cdce.c: Likewise
6493 * tree-stdarg.c: Likewise
6494 * tree-ssa-math-opts.c: Likewise
6495 * tree-nrv.c: Likewise
6496 * tree-ssa-sink.c: Likewise
6497 * tree-browser.c: Likewise
6498 * tree-ssa-loop-ivcanon.c: Likewise
6499 * tree-ssa-loop.c: Likewise
6500 * tree-parloops.c: Likewise
6501 * tree-ssa-address.c: Likewise
6502 * tree-ssa-ifcombine.c: Likewise
6503 * tree-if-conv.c: Likewise
6504 * tree-data-ref.c: Likewise
6505 * tree-affine.c: Likewise
6506 * tree-ssa-phiopt.c: Likewise
6507 * tree-ssa-coalesce.c: Likewise
6508 * tree-ssa-pre.c: Likewise
6509 * tree-ssa-live.c: Likewise
6510 * tree-predcom.c: Likewise
6511 * tree-ssa-forwprop.c: Likewise
6512 * tree-ssa-dce.c: Likewise
6513 * tree-ssa-ter.c: Likewise
6514 * tree-ssa-loop-prefetch.c: Likewise
6515 * tree-optimize.c: Likewise
6516 * tree-ssa-phiprop.c: Likewise
6517 * tree-object-size.c: Likewise
6518 * tree-outof-ssa.c: Likewise
6519 * tree-ssa-structalias.c: Likewise
6520 * tree-switch-conversion.c: Likewise
6521 * tree-ssa-reassoc.c: Likewise
6522 * tree-ssa-operands.c: Likewise
6523 * tree-vectorizer.c: Likewise
6524 * tree-vect-data-refs.c: Likewise
6525 * tree-vect-generic.c: Likewise
6526 * tree-vect-stmts.c: Likewise
6527 * tree-vect-patterns.c: Likewise
6528 * tree-vect-slp.c: Likewise
6529 * tree-vect-loop.c: Likewise
6530 * tree-ssa-loop-ivopts.c: Likewise
6531 * tree-ssa-loop-im.c: Likewise
6532 * tree-ssa-loop-niter.c: Likewise
6533 * tree-ssa-loop-unswitch.c: Likewise
6534 * tree-ssa-loop-manip.c: Likewise
6535 * tree-ssa-loop-ch.c: Likewise
6536 * tree-dump.c: Likewise
6537 * tree-complex.c: Likewise
6538
6539 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
6540 * tree-ssa-uninit.c: Likewise
6541 * tree-ssa-threadupdate.c: Likewise
6542 * tree-ssa-uncprop.c: Likewise
6543 * tree-ssa-ccp.c: Likewise
6544 * tree-ssa-dom.c: Likewise
6545 * tree-ssa-propagate.c: Likewise
6546 * tree-ssa-alias.c: Likewise
6547 * tree-dfa.c: Likewise
6548 * tree-cfgcleanup.c: Likewise
6549 * tree-sra.c: Likewise
6550 * tree-ssa-copy.c: Likewise
6551 * tree-ssa.c: Likewise
6552 * tree-profile.c: Likewise
6553 * tree-cfg.c: Likewise
6554 * tree-ssa-threadedge.c: Likewise
6555 * tree-vect-loop-manip.c: Likewise
6556
6557 * tree-inline.c: Do not include diagnostic.h and expr.h.
6558 Include rtl.h.
6559 (copy_decl_for_dup_finish): Do not use NULL_RTX.
6560
6561 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
6562 * tree-loop-distribution.c: Likewise.
6563
6564 2010-06-01 Jan Hubicka <jh@suse.cz>
6565
6566 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
6567
6568 2010-06-01 Jan Hubicka <jh@suse.cz>
6569
6570 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
6571 remove return value.
6572 (split_bbs_on_noreturn_calls) .... here.
6573 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
6574 * tree-flow.h (fixup_noreturn_call): New.
6575
6576 2010-06-01 Jan Hubicka <jh@suse.cz>
6577
6578 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
6579
6580 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
6581
6582 * tree.h (build_nt_call_list): Delete.
6583 * tree.c (build_nt_call_list): Delete.
6584
6585 2010-06-01 Jan Hubicka <jh@suse.cz>
6586
6587 * fwprop.c: Make emit-rtl.h include last.
6588 * rtlanal.c: Include emit-rtl.h.
6589 * genautomata.c: Output emit-rtl include into insn-automata.c
6590 * df-scan.c: Include emit-rtl.h.
6591 * haifa-sched.c: Indlude emit-rtl.h.
6592 * mode-switching.c: Indlude emit-rtl.h.
6593 * graph.c: Indlude emit-rtl.h.
6594 * sel-sched.c: Include emit-rtl.h.
6595 * sel-sched-ir.c: Include emit-rtl.h.
6596 * ira-build.c: Include emit-rtl.h.
6597 * emit-rtl.c: (first_insn, last_insn): Remove defines.
6598 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
6599 Move to emit-rtl.h.
6600 (set_new_first_and_last_insn, get_last_insn_anywhere,
6601 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
6602 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
6603 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
6604 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
6605 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
6606 Use accessor functions.
6607 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6608 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6609 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6610 mem_expr_equal_p): Move here from rtl.h.
6611 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
6612 Move here from emit-rtl.c; make inline.
6613 * cfglayout.h: Include emit-rtl.h.
6614 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6615 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6616 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6617 mem_expr_equal_p, get_insns, set_first-insn,
6618 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
6619 * reg-stack.c: Include emit-rtl.h.
6620 * dce.c: Likewise.
6621
6622 2010-06-01 Jan Hubicka <jh@suse.cz>
6623
6624 * cgraph.h (tree_function_versioning): Update prototype.
6625 (cgraph_function_versioning): Update prototype.
6626 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
6627 bitmap.
6628 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
6629 (cgraph_materialize_clone, save_inline_function_body): Update use of
6630 tree_function_versioning.
6631 * tree-inline.c (copy_bb): Look for previous copied block to link
6632 after; fix debug output.
6633 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
6634 (copy_body): Likewise.
6635 (expand_call_inline): Update use of copy_body.
6636 (tree_function_versioning): Update use of copy body; accept
6637 blocks_to_copy and new_entry.
6638
6639 2010-06-01 Jan Hubicka <jh@suse.cz>
6640
6641 * gegenrtl.c: Remove unnecesary prototypes.
6642 (gendecl): Remove.
6643 (gendef): Produce static inline.
6644 (gencode): Remove.
6645 (main): Do not decode parameters; generate header only.
6646 * Makefile.in (genrtl.c): Remove.
6647
6648 2010-06-01 Jan Hubicka <jh@suse.cz>
6649
6650 * tree-switch-conversion.c (build_one_array): Make it readonly.
6651
6652 2010-06-01 Richard Guenther <rguenther@suse.de>
6653
6654 * optabs.c (init_optabs): Guard all accesses to reinit.
6655 * ipa-pure-const.c (propagate): Fix another typo.
6656 * opts.c (common_handle_option): Split assignment to bool.
6657 * c-opts.c (c_common_handle_option): Likewise.
6658
6659 2010-06-01 Arnaud Charlet <charlet@adacore.com>
6660 Matthew Gingell <gingell@adacore.com>
6661
6662 * doc/invoke.texi: Mention -fdump-ada-spec.
6663 * tree-dump.c (dump_files): Add ada-spec.
6664 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6665 * tree-pass.h (tree_dump_index): Add TDI_ada.
6666 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6667 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6668 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6669 * c-decl.c: Include c-ada-spec.h.
6670 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6671 functions.
6672 (c_write_global_declarations): Add handling of -fdump-ada-spec.
6673 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6674 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6675 * c-ada-spec.h, c-ada-spec.c: New files.
6676
6677 2010-06-01 Richard Guenther <rguenther@suse.de>
6678
6679 PR lto/43853
6680 * ipa-pure-const.c (get_function_state): Hand back varying state
6681 if we do not have one.
6682 (has_function_state): New function.
6683 (duplicate_node_data): Adjust.
6684 (remove_node_data): Likewise.
6685 (pure_const_write_summary): Likewise.
6686 (propagate): Likewise. Fix typo.
6687
6688 2010-06-01 Jan Hubicka <jh@suse.cz>
6689
6690 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6691 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6692 (execute_all_ipa_transforms): Do not play with the states.
6693
6694 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
6695
6696 * config/arm/t-linux-androideabi: New.
6697 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
6698
6699 2010-06-01 Jan Hubicka <jh@suse.cz>
6700
6701 * tree-inline.c (estimate_num_insns): For stdarg functions look
6702 into call statement to count cost of argument passing.
6703
6704 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
6705
6706 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
6707 argument for fprintf.
6708 (ix86_output_addr_diff_elt): Likewise.
6709 (x86_function_profiler): Likewise.
6710 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
6711 (LPREFIX): Likewise.
6712 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6713
6714 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6715
6716 PR target/44338
6717 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
6718 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
6719 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
6720 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
6721 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
6722 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
6723 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
6724 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
6725 TARGET_FUSED_MADD.
6726
6727 2010-05-31 Jan Hubicka <jh@suse.cz>
6728
6729 * tree.h (tree_range_check_failed): Declare noreturn.
6730
6731 2010-05-31 Jan Hubicka <jh@suse.cz>
6732
6733 * gimple.c (gimple_call_builtin_p): New function.
6734 * gimple.h (gimple_call_builtin_p): Declare.
6735 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
6736 to exit.
6737 (execute_warn_function_return): BUILT_IN_RETURN is return.
6738 (split_critical_edges): Return edges are not critical.
6739 (is_ctrl_altering_stmt): Builtin_in_return is altering.
6740 (gimple_verify_flow_info): Handle built_in_return.
6741 (execute_warn_function_return): Handle built_in_return.
6742 * ipa-pure-const.c (check_call): Ignore builtin_return.
6743
6744 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6745
6746 PR middle-end/44337
6747 * expr.c (expand_assignment): Don't store anything for out-of-bounds
6748 array accesses with non-MEM.
6749
6750 PR tree-optimization/44182
6751 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
6752 newly needs to end a bb is followed by debug stmts, instead return
6753 true from the function at the end.
6754 (maybe_move_debug_stmts_to_successors): New function.
6755 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
6756
6757 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
6758
6759 PR target/44161
6760 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
6761
6762 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
6763
6764 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
6765 for nested functions in non-optimized compilation.
6766
6767 2010-05-31 Richard Guenther <rguenther@suse.de>
6768
6769 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
6770
6771 2010-05-30 Jan Hubicka <jh@suse.cz>
6772
6773 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
6774
6775 2010-05-30 Richard Guenther <rguenther@suse.de>
6776
6777 PR lto/42975
6778 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
6779 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
6780 no longer needed.
6781
6782 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
6783
6784 * config/darwin.c (output_objc_section_asm_op): Add comment.
6785 (name_needs_quotes): Add '_' to list of valid comment chars.
6786 (machopic_output_function_base_name): Remove unneeded quotes.
6787 (darwin_encode_section_info): Adjust asm whitespace.
6788 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
6789 (ASM_OUTPUT_LOCAL): Ditto.
6790 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
6791 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
6792 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
6793
6794 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
6795
6796 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
6797 RS6000_OUTPUT_BASENAME unconditionally.
6798 (rs6000_output_function_epilogue): Likewise.
6799
6800 2010-05-30 Jan Hubicka <jh@suse.cz>
6801
6802 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
6803 nodes.
6804
6805 2010-05-30 Richard Guenther <rguenther@suse.de>
6806
6807 * tree-cfg.c (verify_gimple_assign_single): Implement
6808 verification for COND_EXPR rhs.
6809
6810 2010-05-30 Jan Hubicka <jh@suse.cz>
6811
6812 * cgraph.h (cgraph_dump_file): Declare.
6813 * cgraphunit.c (cgraph_dump_file): Export.
6814 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
6815
6816 2010-05-30 Jan Hubicka <jh@suse.cz>
6817
6818 * dwarf2out.c (reference_to_unused,
6819 premark_types_used_by_global_vars_helper): Avoid creation of new
6820 varpool nodes.
6821
6822 2010-05-30 Jan Hubicka <jh@suse.cz>
6823
6824 * cgraph.h (cgraph_node_cannot_return,
6825 cgraph_edge_cannot_lead_to_return): New functions.
6826 * cgraph.c (cgraph_node_cannot_return,
6827 cgraph_edge_cannot_lead_to_return): Use them.
6828 * ipa-pure-const.c (pure_const_names): New static var.
6829 (check_call): Handle calls not leading to return.
6830 (pure_const_read_summary): Dump info read.
6831 (propagate): Dump info about propagation process; ignore side effects
6832 of functions not leading to exit; fix handling of pure functions.
6833
6834 2010-05-30 Jan Hubicka <jh@suse.cz>
6835
6836 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6837 for tail call epilogues.
6838
6839 2010-05-30 Jan Hubicka <jh@suse.cz>
6840
6841 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6842 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6843 dump files.
6844
6845 2010-05-29 Jan Hubicka <jh@suse.cz>
6846
6847 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6848 node; remove references in node we no longer keep in cgrpah but need
6849 body of.
6850
6851 2010-05-29 Jan Hubicka <jh@suse.cz>
6852
6853 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6854
6855 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6856
6857 PR target/44165
6858 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6859
6860 2010-05-29 Jan Hubicka <jh@suse.cz>
6861
6862 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6863 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6864 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6865 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6866 debug_names_replaced_by, debug_update_ssa): Likewise.
6867 * sbitmap.c (debug_sbitmap): Likewise.
6868 * genrecog.c (debug_decision, debug_decision_list): Likewise.
6869 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6870 debug_tree_chain): Likewise.
6871 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6872 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6873 * optabs.c (debug_optab_libfuncs): Likewise.
6874 (verify_loop_closed_ssa): Likewise.
6875 * value-prof.c (verify_histograms): Likewise.
6876 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6877 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6878 * cfghooks.c (verify_flow_info): Likewise.
6879 * fold-const.c (debug_fold_checksum): Likewise.
6880 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6881 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6882 Likewise.
6883 * omega.c (debug_omega_problem): Likewise.
6884 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6885 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6886 * dominance.c (verify_dominators, debug_dominance_info,
6887 debug_dominance_tree): Likewise.
6888 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6889 * df_regno_debug, df_ref_debug,
6890 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6891 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6892 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6893 * sel-sched.c (debug_state): Likewise.
6894 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6895 Likewise.
6896 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6897 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6898 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6899 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6900 Likewise.
6901 * c-pretty-print.c (debug_c_tree): Likewise.
6902 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6903 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6904 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6905 * ebitmap.c (debug_ebitmap): Likewise.
6906 * function.c (debug_find_var_in_block_tree): Likewise.
6907 * print-rtl.c (debug_rtx): Likewise.
6908 (debug_rtx_count): Likewise.
6909 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6910 * stor-layout.c (debug_rli): Likewise.
6911 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6912 * tree-data-ref.c (debug_data_references,
6913 debug_data_dependence_relations, debug_data_reference,
6914 debug_data_dependence_relation, debug_rdg_vertex,
6915 debug_rdg_component, debug_rdg): Likewise.
6916 * tree-affine.c (debug_aff): Likewise.
6917 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6918 Likewise.
6919 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6920 * emit-rtl.c (verify_rtl_sharing): Likewise.
6921 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6922 debug_value_expressions): Likewise.
6923 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6924 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6925 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6926 * cfglayout.c (verify_insn_chain): Likewise.
6927 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6928 debug_clast_stmt, debug_generated_program): Likewise.
6929 * ggc-page.c (debug_print_page_list): Likewise.
6930 * tree-ssa-ter.c (debug_ter): Likewise.
6931 * graphite-dependences.c (debug_pddr): Likewise.
6932 * sched-deps.c (debug_ds): Likewise.
6933 * tree-ssa.c (verify_ssa): Likewise.
6934 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6935 debug_scattering_functions, debug_iteration_domains, debug_pdr,
6936 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6937 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6938 * tree-inline.c (debug_find_tree): Likewise.
6939 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6940 debug_ppl_powerset_matrix): Likewise.
6941 * var-tracking.c (debug_dv): Likewise.
6942 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6943 * cfgloop.c (verify_loop_structure): Likewise.
6944 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6945 * c-common.c (verify_sequence_points): Likewise.
6946 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6947 debug_candidates, debug_rgn_dependencies): Likewise.
6948 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6949 * debug_constraint_graph, debug_solution_for_var,
6950 debug_sa_points_to_info): Likewise.
6951 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6952 Likewie.
6953 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6954 debug_loops, debug_loop, debug_loop_num): Likewise.
6955 * passes.c (debug_pass): Likewise.
6956 (dump_properties): Likewise; add cfglayout property.
6957 (debug_properties): Likewise.
6958 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6959 * varpool.c (debug_varpool): Likewise.
6960 * regcprop.c (debug_value_data): Likewise.
6961 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6962 debug_immediate_uses_for): Likewise.
6963
6964 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6965
6966 PR bootstrap/44315
6967 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6968 Filter out insn-flags.h.
6969
6970 2010-05-29 Jan Hubicka <jh@suse.cz>
6971
6972 * cgraph.h (struct varpool_node_set_def,
6973 struct cgraph_node_set_def): Remove unused AUX pointer.
6974 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6975 VEC_empty macro.
6976
6977 2010-05-29 Jan Hubicka <jh@suse.cz>
6978
6979 PR middle-end/44324
6980 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6981
6982 2010-05-29 Richard Guenther <rguenther@suse.de>
6983
6984 * lto-streamer.c (cached_bp): New global variable.
6985 (bitpack_create): Return the cached bitpack, if available.
6986 (bitpack_delete): Clear and cache the bitpack, if appropriate.
6987 (bp_pack_value): Remove redundant asserts.
6988
6989 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6990
6991 PR middle-end/44306
6992 * tree-if-conv.c (is_true_predicate): New.
6993 (is_predicated): Use is_true_predicate.
6994 (add_to_predicate_list): Same. Do not use unshare_expr.
6995 (add_to_dst_predicate_list): Same.
6996
6997 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6998
6999 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
7000 field on edges.
7001 (predicate_bbs): Same.
7002 (clean_predicate_lists): Same.
7003 (find_phi_replacement_condition): Do not AND the predicate from
7004 edge->aux.
7005
7006 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
7007
7008 PR bootstrap/44315
7009 * Makefile.in (build/gencondmd.o): Add a missing `\'.
7010
7011 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7012
7013 PR target/44261
7014 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
7015 (negdf2): Adjust expander pattern and use negdf2_slow.
7016 (negsf2): Likewise.
7017
7018 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
7019
7020 * basic-block.h (struct control_flow_graph): Move last_label_uid field
7021 up.
7022 * df.h (struct df_base_ref): Move regno field up.
7023 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
7024 * expr.h (struct separate_ops): Move location field up.
7025 * optabs.h (struct optab_d): Move libcall_basename field down.
7026 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
7027 * config/i386/i386.h (struct machine_function): Convert call_abi field
7028 into a bitfield. Move cfa field to the end of the structure.
7029
7030 2010-05-29 Jan Hubicka <jh@suse.cz>
7031
7032 * varpool.c (varpool_get_node): Fix lookup.
7033
7034 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7035
7036 * config/spu/spu-protos.h: Do not include rtl.h. Protect
7037 RTL specific prototypes with #ifdef RTX_CODE.
7038 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
7039 * config/spu/t-spu-elf: Fix dependencies.
7040
7041 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
7042
7043 2010-05-29 Mike Stump <mikestump@comcast.net>
7044
7045 PR bootstrap/44315
7046 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
7047 TM_H when building to avoid dependency loops.
7048
7049 2010-05-29 Jan Hubicka <jh@suse.cz>
7050
7051 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
7052 refs and body; not the whole node for masters of materialized clones.
7053
7054 2010-05-29 Mike Stump <mikestump@comcast.net>
7055
7056 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
7057
7058 2010-05-29 Jan Hubicka <jh@suse.cz>
7059
7060 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
7061 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
7062 use of clone_function_name.
7063 * cgraph.h (cgraph_create_virtual_clone,
7064 cgraph_function_versioning): update prototypes.
7065 (clone_function_name): Declare.
7066 * ipa-cp.c (ipcp_insert_stage): Update call of
7067 cgraph_create_virtual_clone.
7068 * omp-low.c (create_omp_child_function_name): Use
7069 cgraph_create_virtual_clone.
7070 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
7071 (cgraph_function_versioning): Take SUFFIX argument; produce new name
7072 and make decl local.
7073
7074 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7075
7076 * vec.h: Include statistics.h
7077 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
7078 with VEC_H.
7079
7080 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7081
7082 * c-lex.c: Do not include c-tree.h.
7083 * c-pretty-print.c: Likewise.
7084 * c-opts.c: Likewise.
7085 * c-gimplify.c: Likewise.
7086 * c-common.c: Likewise.
7087 * c-dump.c: Likewise. Include c-common.h.
7088
7089 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7090
7091 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
7092 before including diagnostic-core.h.
7093 (c_cpp_error): New prototype moved from c-tree.h.
7094 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
7095 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
7096 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
7097 (c_cpp_error): Prototype moved to c-common.h.
7098 * Makefile.in: Update dependency for C_COMMON_H.
7099
7100 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7101
7102 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
7103 * c-common.c (c_register_addr_space): Remove here.
7104 * c-decl.c (c_register_addr_space): Re-add here.
7105
7106 2010-05-28 Mike Stump <mikestump@comcast.net>
7107
7108 * config/darwin-c.c: Remove c-tree.h include.
7109
7110 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7111
7112 * gcc.c: Include diagnostic.h.
7113 (error_count): Remove. All users changed to use errorcount.
7114 (programname): Remove. All users changed to use progname.
7115 (fancy_abort, internal_error, fatal_error, error, warning, inform,
7116 fnotice): Remove.
7117 (execute): Don't include "Internal error" and bug reporting
7118 information in argument of internal_error call.
7119 (process_command): Don't increment error_count after calling
7120 perror_with_name.
7121 (input_filename): Rename to gcc_input_filename. All users
7122 changed.
7123 (main): Call diagnostic_initialize. Register delete_temp_files
7124 with atexit. Use seen_error to test for errors.
7125 * gcc.h: Include diagnostic-core.h.
7126 (fatal_error, error, warning): Remove.
7127 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
7128 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
7129 (gcc.o): Update dependencies.
7130
7131 2010-05-28 Jeff Law <law@redhat.com>
7132
7133 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
7134 functions.
7135 * ira.h (ira_bad_reload_regno): Declare
7136 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
7137
7138 * ira-color.c (update_curr_costs): Free updated hard reg costs.
7139 (ira_reassign_conflict_allocnos): Remove bogus asserts.
7140 (allocno_reload_assign): Likewise.
7141
7142 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
7143
7144 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
7145 build1_stat.
7146
7147 2010-05-28 Richard Guenther <rguenther@suse.de>
7148
7149 PR lto/44312
7150 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
7151 Stream fixed-point constants mode.
7152 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
7153 and TYPE_PRECISION.
7154 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
7155 Stream fixed-point constants mode.
7156 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
7157 and TYPE_PRECISION.
7158
7159 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7160
7161 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
7162 only place it was called from.
7163 (number_of_latch_executions): Do not return chrec_dont_know when the
7164 may_be_zero is a runtime condition: instead, return a COND_EXPR
7165 including the may_be_zero condition.
7166 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
7167 of nb_iterations.
7168 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
7169 COND_EXPRs.
7170
7171 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7172
7173 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
7174 generate COND_EXPRs for degenerate_phi_result.
7175
7176 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7177
7178 PR middle-end/44293
7179 * tree-if-conv.c (if_convertible_loop_p): Check the
7180 if-convertibility of phi nodes in non predicated BBs.
7181
7182 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7183
7184 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
7185
7186 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7187
7188 PR driver/15303
7189 * gcc.c (inform, warning, inform): New functions.
7190 (fatal_ice): Rename to internal_error; change cmsgid parameter to
7191 gmsgid. All callers changed.
7192 (notice): Rename to fnotice; add parameter fp. All callers changed.
7193 (fatal_error): Rename to fatal_signal. All users changed.
7194 (fatal): Rename to fatal_error; change cmsgid parameter to
7195 gmsgid. All callers changed.
7196 (process_command): Use warning instead of error for warnings.
7197 (end_going_arg): Don't use _() around argument of error.
7198 (do_spec_1): Use inform for message from %n specs. Use warning
7199 instead of error for warnings.
7200 (main): Use inform for comparison messages. Use warning for
7201 message about unused linker input.
7202 (error): Increment error_count. Print "error: ".
7203 * gcc.h (fatal): Change to fatal_error.
7204 (warning): Declare.
7205 * config/darwin-driver.c (darwin_default_min_version): Use warning
7206 instead of fprintf for warnings.
7207 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
7208
7209 2010-05-28 Julian Brown <julian@codesourcery.com>
7210
7211 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
7212 (*thumb2_addsi3_compare0_scratch): New.
7213 * config/arm/constraints.md (Pv): New.
7214 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7215 for ARM mode only.
7216 (*addsi3_compare0_scratch): Likewise.
7217
7218 2010-05-28 Jan Hubicka <jh@suse.cz>
7219
7220 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7221 check.
7222 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7223 only on local statics.
7224
7225 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
7226
7227 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7228
7229 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
7230
7231 PR bootstrap/44314
7232 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7233 (OPTION_GLIBC): Define.
7234
7235 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7236
7237 PR debug/41048
7238 * dwarf2out.c (double_int_type_size_in_bits): New function.
7239 (round_up_to_align): Change first argument and return value to
7240 double_int.
7241 (field_byte_offset): Work internally on double_ints.
7242
7243 PR target/43636
7244 * builtins.c (expand_movstr): Use a temporary pseudo instead
7245 of target even when target is not NULL and not const0_rtx, but
7246 fails movstr predicate.
7247 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7248
7249 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7250
7251 * final.c (rest_of_clean_state): Use %m in errors instead of
7252 strerror (errno).
7253 * gengtype.c (read_input_list, close_output_files): Use xstrerror
7254 instead of strerror.
7255 * toplev.c (process_options): Use %m in errors instead of strerror
7256 (errno).
7257 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7258 (errno).
7259
7260 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
7261
7262 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7263 (ix86_canonical_va_list_type): Make static. Add declaration.
7264 (ix86_enum_va_list): Make static. Reindent.
7265 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7266 (ix86_canonical_va_list_type): Ditto.
7267 (ix86_enum_va_list): Ditto.
7268
7269 2010-05-28 Richard Guenther <rguenther@suse.de>
7270
7271 * lto-wrapper.c (run_gcc): With -save-temps generate a
7272 user-visible ltrans filename. Fixup ltrans unit numbering.
7273
7274 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
7275
7276 * c-common.c (c_common_nodes_and_builtins): Replace use
7277 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7278 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7279 to ix86_enum_va_list.
7280 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7281 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
7282 (TARGET_ENUM_VA_LIST_P): Add hook description.
7283 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
7284 * target.h (gcc_target): Add enum_va_list hook.
7285
7286 PR bootstrap/44299
7287 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
7288 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
7289 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
7290
7291 2010-05-28 Alan Modra <amodra@gmail.com>
7292
7293 PR target/44266
7294 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7295 emit_library_call machinery to set up __tls_get_addr calls.
7296
7297 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7298
7299 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
7300
7301 2010-05-28 Dodji Seketeli <dodji@redhat.com>
7302
7303 Revert fix for PR c++/44188
7304 * c-common.c (is_typedef_decl): Revert the moving of this
7305 definition ...
7306 * tree.c (is_typedef_decl): ... here.
7307 (typdef_variant_p): Revert the moving of this definition
7308 here from gcc/cp/tree.c.
7309 * c-common.h (is_typedef_decl): Revert the moving of this
7310 declaration ...
7311 * tree.h (is_typedef_decl): ... here.
7312 (typedef_variant_p): Revert the moving of this declaration here
7313 from gcc/cp/cp-tree.h
7314 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
7315 (gen_tagged_type_die): Revert the splitting out of ...
7316 (gen_type_die_with_usage): ... this function. Revert the anonymous
7317 tagged type handling.
7318 (gen_typedef_die): Revert emitting DW_TAG_typedef for
7319 typedefs naming anonymous tagged types.
7320
7321 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7322
7323 * config/rs6000/rs6000-modes.def (PSImode): Delete.
7324
7325 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7326
7327 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
7328 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
7329 throughout.
7330 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
7331 "xer" to "ca".
7332 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
7333 XER_REGS to CA_REGS throughout.
7334 * config/rs6000/rs6000.h: Same.
7335 (ADDITIONAL_REGISTER_NAMES): Add "xer".
7336 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
7337 that mode_iterator "P" is the size for arithmetic carries as well.
7338 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
7339
7340 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7341
7342 PR bootstrap/44255
7343 * combine.c (struct rtx_subst_pair): Define unconditionally.
7344 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
7345 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
7346 Call make_compound_operation on pair->to.
7347 (propagate_for_debug): Don't call make_compound_operation here.
7348 Always use simplify_replace_fn_rtx.
7349
7350 2010-05-27 Sterling Augustine <sterling@tensilica.com>
7351
7352 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
7353 * config/xtensa/xtensa.c (override_options): Check
7354 TARGET_FORCE_NO_PIC and set flag_pic.
7355 * config/xtensa/xtensa.opt: Document -mforce-no-pic
7356
7357 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7358
7359 PR bootstrap/44299
7360 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
7361 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
7362
7363 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7364
7365 * diagnostic-core.h: New. Contents moved from diagnostic.h and
7366 toplev.h.
7367 * diagnostic.c: Don't include toplev.h.
7368 (progname): Define. Moved from toplev.c.
7369 (seen_error): New function.
7370 * diagnostic.h: Include diagnostic-core.h.
7371 (diagnostic_t, emit_diagnostic): Don't declare here.
7372 * toplev.c (progname): Move to toplev.c.
7373 (emit_debug_global_declarations, compile_file, finalize,
7374 do_compile, toplev_main): Use seen_error.
7375 * toplev.h: Include diagnostic-core.h.
7376 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
7377 internal_error, warning, warning_at, error, error_n, error_at,
7378 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
7379 verbatim, fnotice, progname): Move to diagnostic-core.h.
7380 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
7381 (expand_builtin_expect): Use seen_error.
7382 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
7383 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
7384 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
7385 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
7386 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
7387 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
7388 errorcount for errors.
7389 * c-opts.c (c_common_finish): Use seen_error.
7390 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7391 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
7392 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
7393 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
7394 (get_coverage_counts): Use seen_error.
7395 * dwarf2out.c (dwarf2out_finish): Use seen_error.
7396 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
7397 gimplify_body): Use seen_error.
7398 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
7399 * ipa-pure-const.c (gate_pure_const): Use seen_error.
7400 * ipa-reference.c (gate_reference): Use seen_error.
7401 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
7402 * lambda-code.c: Include diagnostic-core.h instead of
7403 diagnostic.h.
7404 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7405 * lto-compress.c: Include diagnostic-core.h instead of
7406 diagnostic.h.
7407 * lto-section-in.c: Include diagnostic-core.h instead of
7408 diagnostic.h.
7409 * lto-streamer-out.c: Include diagnostic-core.h instead of
7410 diagnostic.h.
7411 * lto-streamer.c: Include diagnostic-core.h instead of
7412 diagnostic.h.
7413 (gate_lto_out): Use seen_error.
7414 * matrix-reorg.c: Include diagnostic-core.h instead of
7415 diagnostic.h.
7416 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
7417 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
7418 (gate_expand_omp, lower_omp_1): Use seen_error.
7419 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
7420 (rest_of_decl_compilation, rest_of_type_compilation,
7421 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
7422 * tree-cfg.c (label_to_block_fn): Use seen_error.
7423 * tree-inline.c (optimize_inline_calls): Use seen_error.
7424 * tree-mudflap.c (mudflap_finish_file): Use
7425 seen_error.
7426 * tree-optimize.c (gate_all_optimizations,
7427 gate_all_early_local_passes, gate_all_early_optimizations): Use
7428 seen_error.
7429 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
7430 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
7431 (varpool_remove_unreferenced_decls,
7432 varpool_assemble_pending_decls): Use seen_error.
7433 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
7434 (TOPLEV_H, DIAGNOSTIC_H): Update.
7435 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
7436 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
7437 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
7438 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
7439 coverage.o, lambda-code.o): Update dependencies.
7440
7441 2010-05-25 Dodji Seketeli <dodji@redhat.com>
7442
7443 PR c++/44188
7444 * c-common.c (is_typedef_decl): Move this definition ...
7445 * tree.c (is_typedef_decl): ... here.
7446 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7447 * c-common.h (is_typedef_decl): Move this declaration ...
7448 * tree.h (is_typedef_decl): ... here.
7449 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7450 * dwarf2out.c (is_naming_typedef_decl): New function.
7451 (gen_tagged_type_die): Split out of ...
7452 (gen_type_die_with_usage): ... this function. When an anonymous
7453 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7454 is emitted for the typedef.
7455 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7456 anonymous tagged types.
7457
7458 2010-05-27 Jason Merrill <jason@redhat.com>
7459
7460 * print-tree.c (debug_vec_tree): New fn.
7461 (print_vec_tree): New fn.
7462 * tree.h: Declare them.
7463 * gdbinit.in (pvt): New command.
7464
7465 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
7466
7467 * gdbinit.in (pdd): New command.
7468
7469 2010-05-27 Jan Hubicka <jh@suse.cz>
7470
7471 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
7472 (update_caller_keys): Return early if there are no callers;
7473 only update fibheap when decresing the key.
7474 (update_callee_keys): Avoid recursion.
7475 (decide_inlining_of_small_functions): When badness does not match;
7476 re-insert into fibheap.
7477
7478 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
7479
7480 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
7481 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
7482 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
7483 (ALL_HOST_OBJS): Now a union of the above two.
7484 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
7485 all files in ALL_HOST_FRONTEND_OBJS.
7486 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
7487
7488 * c-common.c: Pretend to be a backend file by undefining
7489 IN_GCC_FRONTEND (still need rtl.h here).
7490
7491 2010-05-27 Jan Hubicka <jh@suse.cz>
7492
7493 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
7494 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
7495
7496 2010-05-27 Jan Hubicka <jh@suse.cz>
7497
7498 * sched-ebb.c: Rename struct deps to struct deps_desc.
7499 * ddg.c: Likewise.
7500 * sel-sched-ir.c: Likewise.
7501 * sched-deps.c: Likewise.
7502 * sched-int.h: Likewise.
7503 * sched-rgn.c: Likewise.
7504
7505 2010-05-27 Jon Beniston <jon@beniston.com>
7506
7507 PR 43726
7508 * config/lm32/lm32.h: Remove definition of
7509 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
7510
7511 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
7512
7513 PR lto/44230
7514 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
7515
7516 2010-05-27 Richard Guenther <rguenther@suse.de>
7517
7518 PR tree-optimization/44284
7519 * tree-vect-stmts.c (vectorizable_assignment): Handle
7520 sign-changing conversions as simple copy.
7521
7522 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7523
7524 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
7525 Bionic C library.
7526 (__gthread_active_p): Check for pthread_create if compiling against
7527 Bionic C library.
7528
7529 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7530
7531 Support compilation for Android platform. Reimplement -mandroid.
7532
7533 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
7534 (*android*): Set ANDROID_DEFAULT.
7535 (arm*-*-linux*): Include linux-android.h.
7536 (arm*-*-eabi*): Don't include previous -mandroid implementation.
7537 * config/arm/eabi.h: Remove, move Android-specific parts ...
7538 * config/linux-android.h: ... here. New file.
7539 * config/arm/eabi.opt: Rename to ...
7540 * config/linux-android.opt: ... this.
7541 (mandroid): Allow -mno-android option. Initialize based on
7542 ANDROID_DEFAULT.
7543 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
7544 Move logic to corresponding LINUX_TARGET_* macros.
7545 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
7546 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
7547 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
7548 Android definitions.
7549 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
7550 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
7551 Document.
7552
7553 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7554
7555 Add support for Bionic C library
7556
7557 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
7558 macro.
7559 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
7560 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
7561
7562 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
7563 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
7564 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
7565 to support multiple C libraries. Handle Bionic.
7566 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
7567 (BIONIC_DYNAMIC_LINKER64): Define.
7568 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
7569 Update.
7570 (TARGET_HAS_SINCOS): Enable for Bionic.
7571
7572 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
7573 the last option specified on command line take effect.
7574 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
7575 (mbionic): New.
7576 (mglibc, muclibc): Update.
7577
7578 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
7579 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
7580 DEFAULT_LIBC.
7581
7582 * doc/invoke.texi (-mglibc, -muclibc): Update.
7583 (-mbionic): Document.
7584
7585 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7586
7587 * c-common.h (c_register_addr_space): Add prototype.
7588 (ADDR_SPACE_KEYWORD): Remove.
7589 * c-common.c (c_register_addr_space): New function.
7590 (c_addr_space_name): Reimplement.
7591 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
7592
7593 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
7594 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
7595
7596 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
7597 Remove TARGET_ADDR_SPACE_KEYWORDS.
7598
7599 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7600
7601 * input.c: New file.
7602 * input.h (main_input_filename): Move declaration to toplev.h.
7603 * toplev.c (input_location, line_table): Move to input.c
7604 * toplev.h (main_input_filename): Move declaration from input.h.
7605 * tree.c (expand_location): Move to input.c.
7606 * Makefile.in (OBJS-common): Add input.o.
7607 (input.o): Add dependencies.
7608
7609 2010-05-27 Richard Guenther <rguenther@suse.de>
7610
7611 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
7612 for non-existant files.
7613 (fork_execute): Mark args_name file as deleted.
7614
7615 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7616
7617 PR bootstrp/44287
7618 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
7619 (narrow_signed_type): Likewise.
7620
7621 2010-05-26 Jan Hubicka <jh@suse.cz>
7622
7623 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
7624 edge only when checking is enabled; check using former_clone_of;
7625 check inline clones too.
7626 (cgraph_materialize_clone): Record former_clone_of pointer.
7627 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
7628 combining redirections; dump args_to_skip bitmap
7629 (cgraph_materialize_all_clones): Do no redirection here.
7630 * ipa-inline.c (inline_transform): Do redirection here.
7631 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
7632 cheking only).
7633
7634 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7635
7636 * config/avr/avr-c.c: Do not include regs.h.
7637 Include cpplib.h for cpp_define and tree.h for c-common.h.
7638 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7639 * config/avr/t-avr: Fix dependencies for avr-c.o.
7640
7641 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7642
7643 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7644 string instead of SYMBOL_REF rtx.
7645 * rtl.h (set_stack_check_libfunc): Move prototype from here...
7646 * libfuncs.h: ...to here. Adjust for explow.c change.
7647
7648 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7649
7650 * pretty-print.c: Don't include ggc.h.
7651 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7652 (identifier_to_locale): Use them for allocation.
7653 * pretty-print.h (identifier_to_locale_alloc,
7654 identifier_to_locale_free): Declare.
7655 * toplev.c (alloc_for_identifier_to_locale): New.
7656 (general_init): Set identifier_to_locale_alloc and
7657 identifier_to_locale_free.
7658 * Makefile.in (pretty-print.o): Update dependencies.
7659
7660 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7661
7662 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7663 pointer types if they have different alignment or mode.
7664
7665 2010-05-26 Anatoly Sokolov <aesok@post.ru>
7666
7667 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7668 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7669 * config/sparc/sparc-protos.h (function_value): Remove declaration.
7670 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7671 sparc_function_value_regno_p): New functions.
7672 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7673 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7674 (function_value): Rename to...
7675 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7676 argument to 'outgoing'.
7677 (function_arg_record_value, function_arg_union_value,
7678 function_arg_vector_value): Update comment.
7679
7680 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7681
7682 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7683 (fde_needed_for_eh_p): New predicate.
7684 (output_call_frame_info): Use it throughout to decide whether FDEs
7685 are needed for EH purpose.
7686 (dwarf2out_begin_prologue): Reorder assignments.
7687
7688 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7689
7690 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7691 special case loop->header.
7692 (is_predicated): New.
7693 (if_convertible_loop_p): Call it.
7694
7695 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7696
7697 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
7698 iterator in parameter. Do not generate code during the analysis.
7699 (tree_if_convert_cond_stmt): Removed.
7700 (tree_if_convert_stmt): Removed.
7701 (predicate_bbs): New.
7702 (if_convertible_loop_p): Call predicate_bbs.
7703 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
7704 now contains all the analysis part.
7705
7706 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7707
7708 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
7709 statements in the analysis part.
7710 (tree_if_convert_stmt): Update comment.
7711 (remove_conditions_and_labels): New.
7712 (combine_blocks): Call remove_conditions_and_labels.
7713 (tree_if_conversion): Update comment.
7714
7715 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7716
7717 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
7718 than 2 predecessors or more than 2 successors.
7719
7720 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7721
7722 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
7723 of loops in which the data dependence analysis fails.
7724
7725 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7726
7727 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
7728 CDI_POST_DOMINATORS.
7729 (tree_if_conversion): Same.
7730
7731 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7732
7733 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
7734
7735 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7736
7737 * tree-if-conv.c: Update copyright years. Fix comments.
7738 Fix indentation.
7739
7740 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
7741
7742 * builtin-types.def (BT_INT128): New primitive type.
7743 (BT_UINT128): Likewise.
7744 * c-common.c (c_common_r): Add __int128 keyword.
7745 (c_common_type_for_size): Handle __int128.
7746 (c_common_type_for_mode): Likewise.
7747 (c_common_signed_or_unsigned_type): Likewise.
7748 (c_common_nodes_and_builtins): Add builtin type
7749 if target supports 128-bit integer scalar.
7750 * c-common.h (enum rid): Add RID_INT128.
7751 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
7752 if target supports 128-bit integer scalar.
7753 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
7754 (finish_declspecs): Likewise.
7755 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
7756 (c_token_starts_declspecs): Likewise.
7757 (c_parser_declspecs): Likewise.
7758 (c_parser_attributes): Likewise.
7759 (c_parser_objc_selector): Likewise.
7760 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
7761 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
7762 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
7763 * tree.c (make_or_reuse_type): Likewise.
7764 (make_unsigned_type): Likewise.
7765 (build_common_tree_nodes_2): Likewise.
7766 * tree.h (enum integer_type_kind): Add itk_int128 and
7767 itk_unsigned_int128.
7768 (int128_integer_type_node): New define.
7769 (int128_unsigned_type_node): New define.
7770 * doc/extend.texi: Add documentation about __int128 type.
7771
7772 2010-05-26 Richard Guenther <rguenther@suse.de>
7773
7774 * tree-ssa-sccvn.c (copy_nary): Adjust.
7775 (copy_phis): Rename to ...
7776 (copy_phi): ... this. Adjust.
7777 (copy_references): Rename to ...
7778 (copy_reference): ... this. Adjust.
7779 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
7780 result into the valid table.
7781
7782 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7783
7784 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
7785 insn-config.h, insn-codes.h, recog.h, and optabs.h.
7786
7787 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7788
7789 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
7790
7791 2010-05-26 Richard Guenther <rguenther@suse.de>
7792
7793 * opts.c (common_handle_option): Handle OPT_Ofast.
7794
7795 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7796
7797 * diagnostic.c: Don't include opts.h.
7798 (permissive_error_option): Define.
7799 (diagnostic_initialize): Take n_opts parameter. Allocate memory
7800 for classify_diagnostic. Don't use memset for
7801 classify_diagnostic. Initialize new and recently added fields.
7802 (diagnostic_classify_diagnostic): Use context->n_opts instead of
7803 N_OPTS.
7804 (diagnostic_report_diagnostic): Pass context parameter to
7805 diagnostic_report_warnings_p. Use option_enabled and option_name
7806 hooks from context.
7807 (emit_diagnostic): Use permissive_error_option.
7808 (permerror): Likewise.
7809 * diagnostic.h: Don't include options.h.
7810 (struct diagnostic_context): Add n_opts, opt_permissive,
7811 inhibit_warnings, warn_system_headers, option_enabled and
7812 option_name fields. Change classify_diagnostic to a pointer.
7813 * opts-diagnostic.h: New file.
7814 * opts.c: Include opts-diagnostic.h.
7815 (common_handle_option): Set global_dc fields for -Wfatal-errors,
7816 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
7817 (option_name): New function.
7818 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
7819 (c_common_handle_option): Set global_dc->permissive for
7820 -fpermissive.
7821 * c-common.c (c_cpp_error): Save and restore
7822 global_dc->warn_system_headers, not variable warn_system_headers.
7823 * toplev.c: Include opts-diagnostic.h.
7824 (general_init): Update call to diagnostic_initialize. Set
7825 global_dc->show_column, global_dc->option_enabled and
7826 global_dc->option_name.
7827 (process_options): Don't set global_dc fields here.
7828 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7829 (diagnostic.o, opts.o, toplev.o): Update dependencies.
7830
7831 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7832
7833 * config/picochip/picochip.md (movsi): Split a movsi from a
7834 const after reload.
7835
7836 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7837
7838 * ggc-zone.c: Update copyright year.
7839 (poison_region): Mark memory for Valgrind as undefined before
7840 memset () call and inaccessible afterwards.
7841 (ggc_pch_total_size): Change type of i to int.
7842
7843 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7844
7845 * ggc-common.c (ggc_free_overhead): Allow empty slot.
7846
7847 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7848
7849 * ggc-common.c: Update copyright year.
7850 (ggc_rlimit_bound): Remove prototype. Compile only if
7851 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7852 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7853 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
7854 (ggc_min_heapsize_heuristic): Likewise.
7855
7856 2010-05-26 Richard Guenther <rguenther@suse.de>
7857
7858 PR rtl-optimization/44164
7859 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7860 no-common access-path disambiguation.
7861 (indirect_ref_may_alias_decl_p): Adjust.
7862 (indirect_refs_may_alias_p): Likewise.
7863 (refs_may_alias_p_1): Likewise.
7864
7865 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7866
7867 * c-typeck.c: Do not include expr.h.
7868
7869 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7870
7871 * rtl.h (decl_default_tls_model): Move prototype from here...
7872 * output.h: ...to here.
7873 * c-decl.c: Do not include rtl.h.
7874 * c-pragma.c: Likewise.
7875 * c-parser.c: Likewise.
7876 * c-gimplify.c: Likewise. And also not hard-reg-set.
7877 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
7878 FIXME note for it. Add a FIXME note for expr.h.
7879 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7880 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7881 defined.
7882
7883 2010-05-26 Jakub Jelinek <jakub@redhat.com>
7884
7885 PR target/44199
7886 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7887 or total_size is larger than red zone size for non-V4 ABI, emit a
7888 stack_tie resp. frame_tie insn before stack pointer restore.
7889 * config/rs6000/rs6000.md (frame_tie): New insn.
7890
7891 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
7892
7893 * function.h (struct function): Add can_throw_non_call_exceptions bit.
7894 * lto-streamer-in.c (input_function): Stream it in.
7895 * lto-streamer-out.c (output_function): Stream it out.
7896 * function.c (allocate_struct_function): Set it.
7897 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7898 for flag_non_call_exceptions.
7899 * cfgbuild.c (control_flow_insn_p): Likewise.
7900 (make_edges): Likewise.
7901 * cfgexpand.c (expand_stack_alignment): Likewise.
7902 * combine.c (distribute_notes): Likewise.
7903 * cse.c (cse_extended_basic_block): Likewise.
7904 * except.c (insn_could_throw_p): Likewise.
7905 * gcse.c (simple_mem): Likewise.
7906 * ipa-pure-const.c (check_call): Likewise.
7907 (check_stmt ): Likewise.
7908 * lower-subreg.c (lower-subreg.c): Likewise.
7909 * optabs.c (emit_libcall_block): Likewise.
7910 (prepare_cmp_insn): Likewise.
7911 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7912 * postreload.c (rest_of_handle_postreload): Likewise.
7913 * reload1.c (reload_as_needed): Likewise.
7914 (emit_input_reload_insns): Likewise.
7915 (emit_output_reload_insns): Likewise.
7916 (fixup_abnormal_edges): Likewise.
7917 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7918 * store-motion.c (find_moveable_store): Likewise.
7919 * tree-eh.c (stmt_could_throw_p): Likewise.
7920 (tree_could_throw_p): Likewise.
7921 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7922 * config/arm/arm.c (arm_expand_prologue): Likewise.
7923 (thumb1_expand_prologue): Likewise.
7924 * config/rx/rx.md (cbranchsf4): Likewise.
7925 (cmpsf): Likewise.
7926 * config/s390/s390.c (s390_emit_prologue): Likewise.
7927 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7928 (inline_forbidden_into_p): New predicate.
7929 (expand_call_inline): Use it to forbid inlining.
7930 (tree_can_inline_p): Likewise.
7931
7932 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7933
7934 * config/i386/i386-c.c: Do not include rtl.h.
7935 * config/i386/t-i386: Update dependencies.
7936
7937 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7938
7939 * attribs.c: Do not include rtl.h.
7940 * Makefile.in: Update dependencies.
7941
7942 2010-05-25 Anatoly Sokolov <aesok@post.ru>
7943
7944 * double-int.h (double_int_and): New.
7945 * combine.c (try_combine): Clean up, use double_int_* and
7946 immed_double_int_const functions.
7947
7948 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7949
7950 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7951 stderr to /dev/null instead of grep -q.
7952 * configure: Regenerate.
7953
7954 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7955
7956 * Makefile.in (EXCEPT_H): Fix typo.
7957
7958 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
7959
7960 * ira-build.c (update_conflict_hard_reg_costs): New.
7961 (ira_build): Call update_conflict_hard_reg_costs.
7962
7963 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7964
7965 PR debug/41371
7966 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7967 ENABLE_CHECKING.
7968 (intersect_loc_chains): Walk the s2var's loc_chain together
7969 with s1node chain as long as the locations are equal, don't
7970 call find_loc_in_1pdv in that case.
7971
7972 PR debug/42801
7973 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7974 (copy_bind_expr): ... instead of here.
7975 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7976 if the block hasn't been remapped.
7977 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7978 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7979
7980 2010-05-25 Richard Guenther <rguenther@suse.de>
7981
7982 PR middle-end/44069
7983 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7984 out-of-bounds array accesses.
7985
7986 2010-05-25 Richard Guenther <rguenther@suse.de>
7987
7988 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7989 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7990 (run_gcc): Re-organize to make cleanup easier.
7991
7992 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7993
7994 * config/s390/s390.c (optimization_options): Fix and move the
7995 flag_prefetch_loop_arrays override ...
7996 (override_options): ... here.
7997
7998 2010-05-25 Joseph Myers <joseph@codesourcery.com>
7999
8000 * diagnostic.c: Don't include plugin.h.
8001 (diagnostic_report_diagnostic): Don't handle plugins specially
8002 here. Pass context to internal_error callback.
8003 * diagnostic.h (struct diagnostic_context): Add context parameter
8004 to internal_error callback.
8005 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
8006 * plugin.h (struct diagnostic_context): Declare.
8007 (warn_if_plugins, plugins_internal_error_function): Declare.
8008 * toplev.c (general_init): Set global_dc->internal_error.
8009 * Makefile.in (diagnostic.o): Update dependencies.
8010
8011 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
8012
8013 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
8014 * config/rs6000/t-darwin64: New.
8015 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
8016 build crt2.
8017
8018 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
8019
8020 PR 44203
8021 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
8022 match the original (and intended) behaviour before r159557. This
8023 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
8024 in two ways.
8025
8026 2010-05-25 Richard Guenther <rguenther@suse.de>
8027
8028 * doc/invoke.texi: Document -Ofast.
8029 * target.h (struct gcc_target): Add handle_ofast.
8030 * target-def.h (TARGET_HANDLE_OFAST): Add.
8031 (TARGET_INITIALIZER): Adjust.
8032 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
8033 * common.opt (Ofast): Add.
8034
8035 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8036
8037 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
8038 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
8039
8040 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8041
8042 PR target/43610
8043 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
8044 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
8045 false_rtx. Use false_rtx to compute the correct *ptest for reversed
8046 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
8047
8048 2010-05-25 Jakub Jelinek <jakub@redhat.com>
8049
8050 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
8051 DW_OP_minus with negated offset instead of DW_OP_plus.
8052 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
8053
8054 2010-05-25 Wei Guozhi <carrot@google.com>
8055
8056 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
8057 tst instruction and a new alternative.
8058 * config/arm/constraints.md (Pu): New constraint.
8059
8060 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
8061
8062 * function.c (assign_stack_local_1): Initialize variable
8063 to avoid warning when bootstrapping at -O3.
8064
8065 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
8066
8067 * configure.ac (all_lang_makefiles): Remove everything related to it.
8068 * configure: Regenerate.
8069 * Makefile.in: Fix reference to ada Make-lang.in.
8070 Remove support for LANG_MAKEFILES.
8071
8072 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
8073 Sandra Loosemore <sandra@codesourcery.com>
8074
8075 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
8076 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
8077 description. Add arm_neon_fp16_ok.
8078 (Add Options): Add arm_neon and arm_neon_fp16.
8079
8080 2010-05-24 Joseph Myers <joseph@codesourcery.com>
8081
8082 * diagnostic.c: Don't include flags.h.
8083 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
8084 context parameters. Check flags in the context passed as a parameter.
8085 (diagnostic_build_prefix): Add context parameter. Check
8086 show_column flag in context.
8087 (diagnostic_action_after_output): Check fatal_errors flag in context.
8088 (diagnostic_report_current_module): Check show_column flag in context.
8089 (default_diagnostic_starter): Update call to
8090 diagnostic_build_prefix.
8091 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
8092 (emit_diagnostic): Pass context to permissive_error_kind.
8093 (permerror): Pass context to permissive_error_kind.
8094 * diagnostic.h (struct diagnostic_context): Add show_column,
8095 pedantic_errors, permissive and fatal_errors fields.
8096 (diagnostic_build_prefix): Update prototype.
8097 * langhooks.c
8098 * toplev.c (process_options): Set flags in global_dc from
8099 flag_show_column, flag_pedantic_errors, flag_permissive,
8100 flag_fatal_errors.
8101 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
8102 to diagnostic_build_prefix.
8103 * Makefile.in (diagnostic.o): Update dependencies.
8104
8105 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
8106
8107 * config/i386/ia32intrin.h (__crc32q): Define only if
8108 __SSE4_2__ is defined.
8109
8110 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
8111
8112 PR target/44132
8113 PR middle-end/43602
8114 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
8115 DECL_VISIBILITY_SPECIFIED.
8116 (emutls_decl): Set DECL_PRESERVE_P and copy
8117 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
8118 (emutls_finalize_control_var): New callback.
8119 (emutls_finish): Finalize emutls control variables.
8120 * toplev.c (compile_file): Move the call to emutls_finish ()
8121 before varpool_assemble_pending_decls ().
8122
8123 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
8124
8125 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
8126 added to the preprocessor condition.
8127
8128 2010-05-24 Paul Brook <paul@codesourcery.com>
8129
8130 * gengtype-lex.l: Add HARD_REG_SET.
8131 * expr.c (expand_expr_real_1): Record writes to hard registers.
8132 * function.c (rtl_data): Add asm_clobbers.
8133 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
8134 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
8135 Use crtl->asm_clobbers.
8136
8137 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8138
8139 * doc/makefile.texi (Makefile): Mention stages 'profile'
8140 and 'feedback' for profiledbootstrap.
8141
8142 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
8143
8144 PR target/44245
8145 * config/i386/i386.c (def_builtin): Properly check
8146 OPTION_MASK_ISA_64BIT.
8147
8148 2010-05-23 Joseph Myers <joseph@codesourcery.com>
8149
8150 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
8151 typedefs with different but compatible types. Allow duplicate
8152 typedefs with the same type except for pedantic non-C1X, but give
8153 warning for variably modified types.
8154 * c-typeck.c (tagged_types_tu_compatible_p,
8155 function_types_compatible_p, type_lists_compatible_p,
8156 comptypes_internal): Add parameter different_types_p; set
8157 *different_types_p for different but compatible types. All
8158 callers changed.
8159 (comptypes_check_different_types): New.
8160 * c-tree.h (comptypes_check_different_types): Declare.
8161
8162 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8163
8164 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
8165 * jump.c: Include basic-block.h.
8166 * profile.c: Likewise.
8167 * tree-profile.c: Likewise.
8168 * coverage.c: Likewise.
8169 * basic-block.h (optimize_function_for_size_p): Move to function.h.
8170 (optimize_function_for_speed_p): Likewise.
8171 * function.h (optimize_function_for_size_p,
8172 optimize_function_for_speed_p): Moved here from basic-block.h.
8173 * Makefile.in: Update dependencies.
8174
8175 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8176
8177 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
8178 before calling make; allow override through $MAKE.
8179 * doc/invoke.texi (Optimize Options): Document override.
8180
8181 2010-05-23 Anatoly Sokolov <aesok@post.ru>
8182
8183 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
8184 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8185 (rs6000_mode_dependent_address_ptr): Make static.
8186 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8187 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
8188 Remove.
8189
8190 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
8191
8192 PR target/43869
8193 * config/i386/i386.c: Make sure that the correct regparm is passed.
8194
8195 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8196
8197 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
8198 * sbitmap.c: ...to here to internalize sbitmap element access.
8199 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
8200 Explain why basic-block.h is included.
8201 * function.h: Include tm.h for CUMULATIVE_ARGS.
8202 * Makefile.in: Update dependencies.
8203
8204 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8205
8206 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
8207 New core types.
8208 * sbitmap.h (struct sbitmap_def): Do not typedef here.
8209 * sbitmap.c: Include sbitmap.h.
8210 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
8211 hard-reg-set.h. Split everything related to regsets out from here...
8212 * regset.h: ...to here. New file.
8213 * df.h: Include regset.h and sbitmap.h.
8214 * tree-flow.h: Likewise.
8215 * cfgloop.h: Likewise.
8216 * except.h: Do not include sbitmap.h. Include hashtab.h.
8217 * cgraph.h: Include vec.h and function.h.
8218 * reload.h (struct insn_chain): Change types of live_throughout
8219 and dead_or_set from regset_head to bitmap_head.
8220 (compute_use_by_pseudos): Be defined also if regset.h is not included.
8221 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8222 spilled_regs from regset_head to bitmap_head to avoid dependency
8223 in regset.h.
8224 * sel-sched-ir.h: Include regset.h.
8225 * reload.c: Include df.h before reload.h.
8226 * caller-save.c: Likewise.
8227 * reload1.c: Likewise.
8228 * ira.c: Likewise.
8229 (mark_elimination): Update type of r to bitmap, consistent with
8230 DF_LR_IN.
8231 * dominance.c: Include bitmap.h.
8232 * modulo-sched.c: Include df.h.
8233 * cfganal.c: Include bitmap.h and sbitmap.h.
8234 * cfgbuild.c: Include sbitmap.h.
8235 * lcm.c: Include sbitmap.h.
8236 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8237 * domwalk.c: Include sbitmap.h, exclude ggc.h.
8238 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8239 * cselib.c: Include bitmap.h.
8240 * tree-optimize.c: Include regset.h.
8241 * stmt.c: Include bitmap.h.
8242 * Makefile.in: Update dependencies.
8243
8244 2010-05-22 Jan Hubicka <jh@suse.cz>
8245
8246 * cgraph.h (struct varpool_node): Add same_comdat_group.
8247 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8248 pointer.
8249 (output_varpool): Update call of lto_output_varpool_node.
8250 (input_varpool): Read same_comdat_group pointer.
8251 (input_varpool_1): Fixup same_comdat_group pointer.
8252 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8253 group is needed, all are.
8254 * varpool.c (varpool_remove_node): Remove node from same comdat group
8255 linklist too.
8256 (varpool_analyze_pending_decls): Walk same comdat groups.
8257
8258 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8259
8260 * rtl.h (union rtunion_def): Remove rt_bit member.
8261 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8262 * print-rtl (print_rtx): Do not print the member.
8263 * gengtype.c (adjust_field_rtx_def): Do not handle it.
8264 * gengenrtl.c (type_from_format): Likewise.
8265 (accessor_from_format): Likewise.
8266
8267 2010-05-22 Joseph Myers <joseph@codesourcery.com>
8268
8269 * dbgcnt.c: Include toplev.h instead of errors.h.
8270 * ira-emit.c: Don't include errors.h.
8271 * ira.c: Include toplev.h instead of errors.h.
8272 * lto-compress.c: Include toplev.h instead of errors.h.
8273 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8274 ira.o, dbgcnt.o): Update dependencies.
8275
8276 2010-05-22 Richard Guenther <rguenther@suse.de>
8277
8278 * gimple.c (gimple_types_compatible_p): Check type qualifications
8279 before merging pointer to complete and pointer to incomplete type.
8280 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8281 we use our own resolution algorithm. The gold linker plugin
8282 doesn't do the job we want it to do here.
8283
8284 2010-05-22 Anatoly Sokolov <aesok@post.ru>
8285
8286 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8287 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8288 (sparc_mode_dependent_address_p): New function.
8289
8290 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8291
8292 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
8293
8294 * timevar.c: Do not include any core headers.
8295 (timevar_print): De-i18n-ize.
8296 (print_time): Likewise.
8297 * timevar.h (timevar_push, timevar_pop): Make inline functions.
8298
8299 2010-05-21 Joseph Myers <joseph@codesourcery.com>
8300
8301 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
8302 langhooks-def.h.
8303 (diagnostic_initialize): Initialize x_data not last_function.
8304 (diagnostic_report_current_function): Move to tree-diagnostic.c.
8305 (default_diagnostic_starter): Call
8306 diagnostic_report_current_module not
8307 diagnostic_report_current_function.
8308 (diagnostic_report_diagnostic): Initialize x_data not
8309 abstract_origin.
8310 (verbatim): Likewise.
8311 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
8312 x_data.
8313 (struct diagnostic_context): Change last_function to x_data.
8314 (diagnostic_auxiliary_data): Replace with
8315 diagnostic_context_auxiliary_data and
8316 diagnostic_info_auxiliary_data.
8317 (diagnostic_last_function_changed, diagnostic_set_last_function,
8318 diagnostic_report_current_function): Move to tree-diagnostic.h.
8319 (print_declaration, dump_generic_node, print_generic_stmt,
8320 print_generic_stmt_indented, print_generic_expr,
8321 print_generic_decl, debug_c_tree, dump_omp_clauses,
8322 print_call_name, debug_generic_expr, debug_generic_stmt,
8323 debug_tree_chain, default_tree_printer): Move to
8324 tree-pretty-print.h.
8325 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
8326 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
8327 gimple-pretty-print.h.
8328 * pretty-print.c: Don't include tree.h
8329 (pp_base_format): Don't handle %K here.
8330 (pp_base_tree_identifier): Move to tree-pretty-print.c.
8331 * pretty-print.h (text_info): Change abstract_origin to x_data.
8332 (pp_tree_identifier, pp_unsupported_tree,
8333 pp_base_tree_identifier): Move to tree-pretty-print.h.
8334 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
8335 tree-pretty-print.h: New files.
8336 * tree-pretty-print.c: Include tree-pretty-print.h.
8337 (percent_K_format): New. Moved from pretty-print.c.
8338 (pp_base_tree_identifier): Move from pretty-print.c.
8339 * c-objc-common.c: Include tree-pretty-print.h.
8340 (c_tree_printer): Handle %K here.
8341 * langhooks.c: Include tree-diagnostic.h.
8342 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
8343 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
8344 (default_tree_printer): Handle %K using percent_K_format.
8345 (general_init): Use default_tree_diagnostic_starter.
8346 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
8347 (free_lang_data): Use default_tree_diagnostic_starter.
8348 * c-pretty-print.c: Include tree-pretty-print.h.
8349 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8350 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8351 * dwarf2out.c: Include tree-pretty-print.h.
8352 * except.c: Include tree-pretty-print.h.
8353 * gimple-pretty-print.c: Include tree-pretty-print.h and
8354 gimple-pretty-print.h.
8355 * gimplify.c: Include tree-pretty-print.h.
8356 * graphite-poly.c: Include tree-pretty-print.h and
8357 gimple-pretty-print.h.
8358 * ipa-cp.c: Include tree-pretty-print.h.
8359 * ipa-inline.c: Include gimple-pretty-print.h.
8360 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8361 * ipa-pure-const.c: Include gimple-pretty-print.h.
8362 * ipa-struct-reorg.c: Include tree-pretty-print.h and
8363 gimple-pretty-print.h.
8364 * ipa-type-escape.c: Include tree-pretty-print.h.
8365 * print-rtl.c: Include tree-pretty-print.h.
8366 * print-tree.c: Include gimple-pretty-print.h.
8367 * sese.c: Include tree-pretty-print.h.
8368 * tree-affine.c: Include tree-pretty-print.h.
8369 * tree-browser.c: Include tree-pretty-print.h.
8370 * tree-call-cdce.c: Include gimple-pretty-print.h.
8371 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8372 * tree-chrec.c: Include tree-pretty-print.h.
8373 * tree-data-ref.c: Include tree-pretty-print.h and
8374 gimple-pretty-print.h.
8375 * tree-dfa.c: Include tree-pretty-print.h.
8376 * tree-if-conv.c: Include tree-pretty-print.h and
8377 gimple-pretty-print.h.
8378 * tree-inline.c: Include tree-pretty-print.h.
8379 * tree-into-ssa.c: Include tree-pretty-print.h and
8380 gimple-pretty-print.h.
8381 * tree-nrv.c: Include tree-pretty-print.h.
8382 * tree-object-size.c: Include tree-pretty-print.h and
8383 gimple-pretty-print.h.
8384 * tree-outof-ssa.c: Include tree-pretty-print.h and
8385 gimple-pretty-print.h.
8386 * tree-parloops.c: Include tree-pretty-print.h and
8387 gimple-pretty-print.h.
8388 * tree-predcom.c: Include tree-pretty-print.h and
8389 gimple-pretty-print.h.
8390 * tree-scalar-evolution.c: Include tree-pretty-print.h and
8391 gimple-pretty-print.h.
8392 * tree-sra.c: Include tree-pretty-print.h.
8393 * tree-ssa-address.c: Include tree-pretty-print.h.
8394 * tree-ssa-alias.c: Include tree-pretty-print.h.
8395 * tree-ssa-ccp.c: Include tree-pretty-print.h and
8396 gimple-pretty-print.h.
8397 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
8398 * tree-ssa-copy.c: Include tree-pretty-print.h and
8399 gimple-pretty-print.h.
8400 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
8401 * tree-ssa-dce.c: Include tree-pretty-print.h and
8402 gimple-pretty-print.h.
8403 * tree-ssa-dom.c: Include tree-pretty-print.h and
8404 gimple-pretty-print.h.
8405 * tree-ssa-dse.c: Include gimple-pretty-print.h.
8406 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
8407 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
8408 * tree-ssa-live.c: Include tree-pretty-print.h and
8409 gimple-pretty-print.h.
8410 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
8411 gimple-pretty-print.h.
8412 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
8413 gimple-pretty-print.h.
8414 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
8415 gimple-pretty-print.h.
8416 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
8417 gimple-pretty-print.h.
8418 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
8419 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
8420 * tree-ssa-operands.c: Include tree-pretty-print.h and
8421 gimple-pretty-print.h.
8422 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
8423 gimple-pretty-print.h.
8424 * tree-ssa-pre.c: Include tree-pretty-print.h and
8425 gimple-pretty-print.h.
8426 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
8427 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
8428 gimple-pretty-print.h.
8429 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
8430 gimple-pretty-print.h.
8431 * tree-ssa-sink.c: Include gimple-pretty-print.h.
8432 * tree-ssa-ter.c: Include tree-pretty-print.h and
8433 gimple-pretty-print.h.
8434 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
8435 * tree-ssa.c: Include tree-pretty-print.h and
8436 gimple-pretty-print.h.
8437 * tree-stdarg.c: Include gimple-pretty-print.h.
8438 * tree-switch-conversion.c: Include gimple-pretty-print.h.
8439 * tree-tailcall.c: Include tree-pretty-print.h and
8440 gimple-pretty-print.h.
8441 * tree-vect-data-refs.c: Include tree-pretty-print.h and
8442 gimple-pretty-print.h.
8443 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
8444 gimple-pretty-print.h.
8445 * tree-vect-loop.c: Include tree-pretty-print.h and
8446 gimple-pretty-print.h.
8447 * tree-vect-patterns.c: Include gimple-pretty-print.h.
8448 * tree-vect-slp.c: Include tree-pretty-print.h and
8449 gimple-pretty-print.h.
8450 * tree-vect-stmts.c: Include tree-pretty-print.h and
8451 gimple-pretty-print.h.
8452 * tree-vectorizer.c: Include tree-pretty-print.h.
8453 * tree-vrp.c: Include tree-pretty-print.h and
8454 gimple-pretty-print.h.
8455 * value-prof.c: Include tree-pretty-print.h and
8456 gimple-pretty-print.h.
8457 * var-tracking.c: Include tree-pretty-print.h.
8458 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
8459 (tree-diagnostic.o): New dependencies.
8460 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
8461 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
8462 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
8463 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
8464 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
8465 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
8466 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
8467 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
8468 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
8469 tree-ssa-address.o, tree-ssa-loop-niter.o,
8470 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
8471 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
8472 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
8473 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
8474 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
8475 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
8476 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
8477 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
8478 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
8479 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
8480 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
8481 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
8482 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
8483 tree-switch-conversion.o, var-tracking.o, value-prof.o,
8484 cfgexpand.o, pretty-print.o): Update dependencies.
8485
8486 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
8487
8488 * tree-ssa-structalias.c: Remove tm_p.h from include.
8489
8490 2010-05-21 Jeff Law <law@redhat.com>
8491
8492 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
8493
8494 2010-05-21 Jason Merrill <jason@redhat.com>
8495
8496 * tree-eh.c (cleanup_is_dead_in): New.
8497 (lower_try_finally): Don't generate a dead cleanup region.
8498 (lower_cleanup): Likewise.
8499
8500 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8501
8502 PR debug/44223
8503 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
8504 unchain each use from the cyclic next_regno_use chain first.
8505
8506 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8507
8508 * real: Do not include gmp.h, mpfr.h, and mpc.h.
8509 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
8510 (real_value_negate, real_value_abs): New prototypes.
8511 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
8512 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
8513 new include file for interface between MPFR and REAL_VALUE_TYPE.
8514 * real.c: Include realmpfr.h.
8515 (real_arithmetic2): Remove legacy function.
8516 (real_value_negate): New.
8517 (real_value_abs): New.
8518 (mfpr_from_real, real_from_mpfr): Move from here...
8519 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
8520 * builtins.c: Include realmpfr.h.
8521 * fold-const.c: Include realmpfr.h.
8522 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
8523 (fold_negate_const): Likewise.
8524 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
8525 * toplev.c: Include realmpfr.h.
8526 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
8527 and real_value_negate.
8528 * fixed-value.c (check_real_for_fixed_mode): Likewise.
8529 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
8530 (vfp3_const_double_index): Likewise.
8531 (arm_print_operand): Likewise.
8532 * Makefile.in: Update dependencies.
8533
8534 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8535
8536 * config/s390/s390.c (override_options): Increase the default
8537 of max-completely-peel-times.
8538
8539 2010-05-21 Julian Brown <julian@codesourcery.com>
8540 Mark Mitchell <mark@codesourcery.com>
8541
8542 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
8543 sibling calls for Thumb-1.
8544 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
8545 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
8546 Thumb-2.
8547 (*call_insn, *call_value_insn): Don't use for Thumb-2.
8548 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
8549 for Thumb-2.
8550 (return): New expander.
8551 (*arm_return): New name for ARM return insn.
8552 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
8553
8554 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
8555
8556 * config.gcc (sparc64-*-rtems*): New target.
8557
8558 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8559
8560 * tree.c (build_function_decl_skip_args): Fix grammar.
8561 (build_function_type_list_1): Fix typos, adjust formatting.
8562
8563 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8564
8565 * tree.h: Include real.h and fixed-value.h as basic datatypes.
8566 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
8567 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
8568 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
8569 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
8570 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
8571 tree-pretty-print.c, tree-loop-distribution.c,
8572 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
8573 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
8574 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
8575 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
8576 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
8577 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
8578 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
8579 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
8580 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
8581 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
8582 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
8583 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
8584 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
8585 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
8586 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
8587 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
8588 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
8589 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
8590 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
8591 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
8592 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
8593 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
8594 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
8595 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
8596 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
8597 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
8598 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
8599 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
8600 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
8601 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
8602 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
8603 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
8604 config/score/score7.c, config/score/score.c, config/arm/arm.c,
8605 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
8606 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
8607 config/bfin/bfin.c: Clean up redundant includes.
8608 * Makefile.in: Update accordingly.
8609
8610 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8611
8612 PR middle-end/44204
8613 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
8614 statement has no arguments.
8615
8616 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
8617
8618 PR/44139
8619 * varasm.c (emutls_decl): Merge attributes to new decl.
8620
8621 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
8622
8623 PR middle-end/44101
8624 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
8625 around the uniquized constructor if its type requires a conversion.
8626
8627 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8628
8629 PR debug/44205
8630 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
8631 at -O0 goto_locus of any of the incoming edges differs from
8632 goto_locus of outgoing edge, or gimple_location of any of the
8633 labels differs.
8634
8635 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
8636
8637 * ira.c (ira_non_ordered_class_hard_regs): Define.
8638 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8639 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8640 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8641 cost of unaligned hard regs when allocating multi-reg pseudos.
8642
8643 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
8644
8645 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8646 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8647 for TARGET_NO_FLOAT.
8648 * config/mips/mips.c (mips_file_start): Expand conditional expression
8649 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8650 (mips_override_options): Move -mno-float override -msoft-float and
8651 -mhard-float.
8652 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8653 Condition(TARGET_SUPPORTS_NO_FLOAT).
8654 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8655 __mips_no_float here.
8656 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8657 (TARGET_SUPPORTS_NO_FLOAT): Define.
8658 * config/mips/sdemtk.opt: Delete.
8659
8660 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
8661
8662 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8663
8664 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
8665
8666 PR target/43733
8667 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8668 * configure: Regenerate.
8669 * config.in: Regenerate.
8670 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8671 instead of sahf only for 64bit targets.
8672
8673 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8674
8675 PR debug/44178
8676 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8677 setup_ref_regs for DEBUG_INSNs.
8678
8679 2010-05-20 Jan Hubicka <jh@suse.cz>
8680
8681 PR middle-end/44197
8682 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8683
8684 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
8685
8686 PR bootstrap/43870
8687 * df-scan.c (df_ref_compare): Stabilize sort.
8688
8689 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8690
8691 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8692 argument. Don't use DW_OP_piece if offset is non-zero,
8693 put offset into second DW_OP_bit_piece argument.
8694 (dw_sra_loc_expr): Adjust callers. For memory expressions
8695 compute offset.
8696
8697 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
8698
8699 PR target/44202
8700 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
8701 settings for 16-bit-constant "addo" alternative.
8702
8703 2010-05-19 James E. Wilson <wilson@codesourcery.com>
8704
8705 * config/mips/mips-dsp.md (add<DSPV:mode>3,
8706 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
8707
8708 PR target/43764
8709 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
8710 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
8711 Use it.
8712
8713 2010-05-19 Joseph Myers <joseph@codesourcery.com>
8714
8715 * diagnostic.c (FLOAT, FFS): Don't undefine.
8716 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
8717 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
8718 include ordering.
8719
8720 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
8721
8722 * combine.c (propagate_for_debug): Call make_compound_operation
8723 on the source value.
8724 (try_combine): When implementing a split chosen by find_split_point,
8725 either copy i2src or set it to null. Assert that i2src is not null
8726 before substituting into CALL_INSN_FUNCTION_USAGE.
8727
8728 2010-05-19 Anatoly Sokolov <aesok@post.ru>
8729
8730 * double-int.h (double_int_ior): New function.
8731 * tree.h (build_int_cst_wide_type): Remove.
8732 * tree.c (build_int_cst_wide_type): Remove.
8733 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
8734 of build_int_cst_wide_type.
8735 * stor-layout.c (set_sizetype): (Ditto.).
8736 * dojump.c (do_jump): Use build_int_cstu instead of
8737 build_int_cst_wide_type.
8738
8739 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8740
8741 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
8742 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
8743 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
8744 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
8745 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
8746 propagate the 'data' argument to copy_tree_r.
8747 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
8748 Propagate 'data' argument to walk_tree.
8749 (copy_if_shared): New function.
8750 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
8751 (unmark_visited): New function.
8752 (unshare_body): Call copy_if_shared instead of doing it manually.
8753 (unvisit_body): Call unmark_visited instead of doing it manually.
8754
8755 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
8756
8757 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
8758 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
8759 * hooks.c: Likewise.
8760 * target-def.h (TARGET_FOLD_BUILTIN): Define to
8761 hook_tree_tree_int_treep_bool_null.
8762 * target.h (struct gcc_target): Update signature of fold_builtin
8763 field.
8764 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
8765 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
8766 instead of the call expression.
8767 (fold_builtin_call_array): Pass n and argarray directly.
8768 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
8769 consing a list.
8770 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
8771 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
8772 `i' and use it in place of `arity'.
8773 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
8774 Dereference `args' directly.
8775 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
8776
8777 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8778
8779 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8780 3dnow, sse3, sse2.
8781 (Directives): Document optional dg-require-effective-target
8782 selector.
8783
8784 2010-05-19 Richard Guenther <rguenther@suse.de>
8785
8786 PR lto/44196
8787 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
8788
8789 2010-05-19 Richard Guenther <rguenther@suse.de>
8790
8791 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
8792 * common.opt (fwhopr=): New.
8793 * opts.c (common_handle_option): Handle OPT_fwhopr.
8794 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
8795 * collect2.c (main): Match -fwhopr*.
8796 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
8797 Execute ltrans stage in parallel when jobs is bigger than 1.
8798
8799 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8800
8801 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8802 pentiumpro on Solaris 8/x86 with Sun as.
8803 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
8804 hidden alias bug.
8805 (gcc_cv_as_ix86_quad): Check for .quad directive.
8806 * configure: Regenerate.
8807 * config.in: Regenerate.
8808 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
8809
8810 2010-05-19 Martin Jambor <mjambor@suse.cz>
8811
8812 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
8813 also for indirect edges. Actual printing moved...
8814 (ipa_print_node_jump_functions_for_edge): ...here.
8815 (ipa_compute_jump_functions): Renamed to
8816 ipa_compute_jump_functions_for_edge and made static.
8817 (ipa_compute_jump_functions): New function.
8818 (make_edge_direct_to_target): Check if the number of arguments on
8819 the newly direct edge is the same as the number of parametrs of
8820 the callee.
8821 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
8822 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
8823 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8824 analysis functions unconditionally, call the new
8825 ipa_analyze_params_uses on the node instead of every edge.
8826
8827 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
8828
8829 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8830 to tree.
8831 (dump_mem_ref): Adopt debug code to handle a tree as step. This
8832 also checks for a constant int vs. non-constant but
8833 loop-invariant steps.
8834 (find_or_create_group): Change the sort algorithm to only consider
8835 steps that are constant ints.
8836 (idx_analyze_ref): Adopt code to handle a tree instead of a
8837 HOST_WIDE_INT for step.
8838 (gather_memory_references_ref): Handle tree instead of int and be
8839 prepared to see a NULL_TREE.
8840 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8841 prefetches if the step cannot be calculated at compile time.
8842 (issue_prefetch_ref): Issue prefetches for non-constant but
8843 loop-invariant steps.
8844
8845 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8846
8847 Revert:
8848 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8849
8850 * tree.h (build_call_list): Remove.
8851 * tree.c (build_call_list): Remove.
8852
8853 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8854
8855 * tree.h (build_call_list): Remove.
8856 * tree.c (build_call_list): Remove.
8857
8858 2010-05-18 Jan Hubicka <jh@suse.cz>
8859
8860 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8861
8862 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
8863
8864 PR rtl-optimization/43332
8865 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8866
8867 2010-05-18 Anatoly Sokolov <aesok@post.ru>
8868
8869 * tree.h (build_int_cstu): Implement as static inline.
8870 * tree.c (build_int_cstu): Remove function.
8871 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8872 sign extended.
8873
8874 2010-05-18 Richard Guenther <rguenther@suse.de>
8875
8876 PR lto/44143
8877 * lto-wrapper.c (verbose): New variable. Initialize from -v.
8878 (debug): Initialize from -save-temps.
8879 (collect_execute): Print command-line when verbose.
8880 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
8881 for ltrans invocation. Produce -dumpbase flag again.
8882 (process_args): Remove.
8883 (main): Simplify.
8884 * collect2.c (maybe_run_lto_and_relink): Only pass object
8885 files to lto-wrapper.
8886 * gcc.c (LINK_COMMAND_SPEC): Likewise.
8887
8888 2010-05-18 Jan Hubicka <jh@suse.cz>
8889
8890 * opts.c (decode_options): Do not disable whopr at ipa_cp.
8891 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8892
8893 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8894
8895 PR lto/44184
8896 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8897 in a GIMPLE_ASM.
8898 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8899 in a GIMPLE_ASM.
8900
8901 2010-05-18 Jakub Jelinek <jakub@redhat.com>
8902
8903 PR debug/41371
8904 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8905 rtx_equal_p inline.
8906
8907 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8908
8909 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8910 lto-macho as lto_binary_reader.
8911
8912 * darwin.c (darwin_asm_named_section): Do not add assembler comment
8913 after .section directive; just print it before the directive instead.
8914
8915 2010-05-17 Jan Hubicka <jh@suse.cz>
8916
8917 * cgraph.c (cgraph_create_virtual_clone): Only check
8918 versionable_function_p when not in wpa and checking is enabled.
8919 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8920 there are no more functions to materialize.
8921
8922 2010-05-17 Jan Hubicka <jh@suse.cz>
8923
8924 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8925 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8926 New functions.
8927 (output_cgraph): Call output_cgraph_opt_summary.
8928 (input_cgrpah): Call input_cgraph_opt_summary.
8929 (output_cgraph_opt_summary_p, output_node_opt_summary,
8930 input_node_opt_summary, input_cgraph_opt_section): New functions.
8931 * lto-section-in.c (lto_section_name): Add cgraphopt.
8932 * tree-inline.c (tree_function_versioning): Handle parm_num.
8933 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8934 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8935
8936 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8937
8938 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8939 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8940 the insn to prefetch ratio heuristic to loops with known trip count.
8941
8942 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8943
8944 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8945 (schedule_prefetches): Do not generate a prefetch if the unroll factor
8946 is far from what is required by the prefetch.
8947
8948 2010-05-17 Jan Hubicka <jh@suse.cz>
8949
8950 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8951 (ipcp_estimate_growth): Likewise.
8952 (ipcp_const_param_count): Likewise.
8953 (ipcp_insert_stage): Likewise.
8954 * ipa-prop.c (visit_load_for_mod_analysis): New function.
8955 (visit_store_addr_for_mod_analysis): Set used flag.
8956 (ipa_detect_param_modifications): Set used flag for SSE params;
8957 update use of walk_stmt_load_store_addr_ops.
8958 (ipa_print_node_params): Print used flag.
8959 (ipa_write_node_info): Stream used flag.
8960 (ipa_read_node_info): Likewise.
8961 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8962 (ipa_is_param_used): New function.
8963 (lto_ipa_fixup_call_notes): Remove unused declaration.
8964
8965 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8966
8967 PR target/44074
8968 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8969 * configure: Regenerate.
8970 * config.in: Regenerate.
8971 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8972 !HAVE_AS_IX86_REP_LOCK_PREFIX.
8973 Don't emit whitespace.
8974 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8975 (*rep_movsi): Likewise.
8976 (*rep_movsi_rex64): Likewise.
8977 (*rep_movqi): Likewise.
8978 (*rep_movqi_rex64): Likewise.
8979 (*rep_stosdi_rex64): Likewise.
8980 (*rep_stossi): Likewise.
8981 (*rep_stossi_rex64): Likewise.
8982 (*rep_stosqi): Likewise.
8983 (*rep_stosqi_rex64): Likewise.
8984 (*cmpstrnqi_nz_1): Use {%;} after repz.
8985 (*cmpstrnqi_nz_rex_1): Likewise.
8986 (*cmpstrnqi_1): Likewise.
8987 (*cmpstrnqi_rex_1): Likewise.
8988 (*strlenqi_1): Use {%;} after repnz.
8989 (*strlenqi_rex_1): Likewise.
8990 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8991 (*sync_compare_and_swap<mode>): Likewise.
8992 (sync_double_compare_and_swap<mode>): Likewise.
8993 (*sync_double_compare_and_swapdi_pic): Likewise.
8994 (sync_old_add<mode>): Likewise.
8995 (sync_add<mode>): Likewise.
8996 (sync_sub<mode>): Likewise.
8997 (sync_<code><mode>): Likewise.
8998
8999 2010-05-17 Martin Jambor <mjambor@suse.cz>
9000
9001 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
9002 otr_token and polymorphic.
9003 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
9004 (cgraph_clone_edge): Copy the above fields.
9005 * tree.c (get_binfo_at_offset): New function.
9006 * tree.h (get_binfo_at_offset): Declare.
9007 * ipa-prop.h (enum jump_func_type): Added known_type jump function
9008 type, reordered items, updated comments.
9009 (union jump_func_value): Added base_type field, reordered fields.
9010 (enum ipa_lattice_type): Moved down in the file.
9011 (struct ipa_param_descriptor): New field polymorphic.
9012 (ipa_is_param_polymorphic): New function.
9013 * ipa-prop.c: Include gimple.h and gimple-fold.h.
9014 (ipa_print_node_jump_functions): Print known type jump functions.
9015 (compute_complex_pass_through): Renamed to...
9016 (compute_complex_assign_jump_func): this.
9017 (compute_complex_ancestor_jump_func): New function.
9018 (compute_known_type_jump_func): Likewise.
9019 (compute_scalar_jump_functions): Create known type and complex ancestor
9020 jump functions.
9021 (ipa_note_param_call): New parameter polymorphic, set the corresponding
9022 flag in the call note accordingly.
9023 (ipa_analyze_call_uses): Renamed to...
9024 (ipa_analyze_indirect_call_uses): this. New parameter target, define
9025 variable var only in the block where it is used.
9026 (ipa_analyze_virtual_call_uses): New function.
9027 (ipa_analyze_call_uses): Likewise.
9028 (combine_known_type_and_ancestor_jfs): Likewise.
9029 (update_jump_functions_after_inlining): Implemented handling of a
9030 number of new jump function types combination.
9031 (print_edge_addition_message): Removed.
9032 (make_edge_direct_to_target): New function.
9033 (try_make_edge_direct_simple_call): Likewise.
9034 (try_make_edge_direct_virtual_call): Likewise.
9035 (update_call_notes_after_inlining): Renamed to...
9036 (update_indirect_edges_after_inlining): this. Moved edge creation for
9037 indirect calls to try_make_edge_direct_simple_call, also calls
9038 try_make_edge_direct_virtual_call for virtual calls.
9039 (ipa_print_node_params): Changed the header message.
9040 (ipa_write_jump_function): Stream also known type jump functions.
9041 (ipa_read_jump_function): Likewise.
9042 (ipa_write_indirect_edge_info): Stream new fields in
9043 cgraph_indirect_call_info.
9044 (ipa_read_indirect_edge_info): Likewise.
9045 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
9046 GIMPLE_FOLD_H.
9047
9048 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9049
9050 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
9051
9052 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
9053
9054 * tree.h (CALL_EXPR_ARGS): Delete.
9055 (call_expr_arglist): Delete.
9056 * tree.c (call_expr_arglist): Delete.
9057 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
9058 targetm.fold_builtin.
9059 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
9060 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
9061 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
9062 arglist parameter. Use CALL_EXPR_ARG.
9063 (picochip_expand_builtin_3op): Likewise.
9064 (picochip_expand_builtin_2opvoid): Likewise.
9065 (picochip_expand_array_get): Likewise.
9066 (picochip_expand_array_put): Likewise.
9067 (picochip_expand_array_testport): Likewise.
9068 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
9069 rather than arglist.
9070 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
9071 CALL_EXPR_ARGS.
9072 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
9073 than TREE_VALUE and TREE_CHAIN.
9074 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
9075 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
9076 the arglist.
9077
9078 2010-05-17 Jakub Jelinek <jakub@redhat.com>
9079
9080 PR bootstrap/42347
9081 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
9082 to have no fallthru edge.
9083
9084 PR middle-end/44102
9085 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
9086 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
9087 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
9088 add BARRIER after previous bb if needed.
9089
9090 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
9091
9092 * tree.c (build_function_type_list_1): Remove bogus assert condition.
9093
9094 2010-05-17 Alan Modra <amodra@gmail.com>
9095
9096 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
9097 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
9098 with copy_reg rtx param.
9099 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
9100 Correct cases where code for ABI_V4 did not initialise the reg
9101 used to access frame. Also leave frame_reg_rtx as sp for large
9102 frames that save no regs.
9103
9104 2010-05-17 Martin Jambor <mjambor@suse.cz>
9105
9106 PR middle-end/44133
9107 * tree-sra.c (create_access_replacement): New parameter rename, mark
9108 the replaement for renaming only when it is true.
9109 (get_access_replacement): Pass true in the rename parameter of
9110 create_access_replacement.
9111 (get_unrenamed_access_replacement): New function.
9112 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
9113 replacement declaration from it.
9114
9115 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
9116
9117 * function.c (try_fit_stack_local, add_frame_space): New static
9118 functions.
9119 (assign_stack_local_1): Use them. Look for opportunities to use
9120 space previously wasted on alignment.
9121 * function.h (struct frame_space): New.
9122 (struct rtl_data): Add FRAME_SPACE_LIST member.
9123 * reload1.c (something_was_spilled): New static variable.
9124 (alter_reg): Set it.
9125 (reload): Test it in addition to testing if the frame size changed.
9126
9127 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
9128
9129 * config/s390/s390.c: Define sane prefetch settings and activate
9130 flag_prefetch_loop_arrays on -O3.
9131 * config/s390/s390.h: Declare that read can use write prefetch.
9132
9133 2010-05-17 Jakub Jelinek <jakub@redhat.com>
9134
9135 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
9136 build.
9137
9138 2010-05-16 Jan Hubicka <jh@suse.cz>
9139
9140 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
9141 function body; do not check stdarg field of struct function.
9142
9143 2010-05-16 Jan Hubicka <jh@suse.cz>
9144
9145 * cgraph.c (dump_cgraph_node): Dump versionable flag.
9146 * cgraph.h (cgraph_local_info): Add versionable flag.
9147 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
9148 (ipcp_versionable_function_p): Use it.
9149 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
9150 versionable flag.
9151
9152 2010-05-16 Jan Hubicka <jh@suse.cz>
9153
9154 * cgraph.c (cgraph_clone_node): Take decl argument and insert
9155 clone into hash when it is different from orig.
9156 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
9157 * cgraph.h (cgraph_clone_node): Update prototype.
9158 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
9159 (lto_cgraph_encoder_delete): Delete body map.
9160 (lto_cgraph_encoder_size): Move to header.
9161 (lto_cgraph_encoder_encode_body_p,
9162 lto_set_cgraph_encoder_encode_body): New.
9163 (lto_output_node): Do not take written_decls argument; output clone_of
9164 pointer.
9165 (add_node_to): Add include_body_argument; call
9166 lto_set_cgraph_encoder_encode_body on master of the clone.
9167 (add_references): Update use of add_node_to.
9168 (compute_ltrans_boundary): Likewise.
9169 (output_cgraph): Do not create written_decls bitmap.
9170 (input_node): Take nodes argument; stream in clone_of correctly.
9171 (input_cgraph_1): Update use of input_node.
9172 * lto-streamer-out.c (lto_output): Use encoder info to decide
9173 what bodies to output.
9174 * ipa-inline.c (cgraph_clone_inlined_nodes,
9175 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
9176 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
9177 (lto_cgraph_encoder_size): Define here.
9178 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
9179 Declare.
9180
9181 2010-05-16 Richard Guenther <rguenther@suse.de>
9182
9183 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
9184 -fipa-type-escape.
9185 * ipa-type-escape.c (gate_type_escape_vars): Run when
9186 -fipa-struct-reorg runs.
9187 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
9188 * common.opt (fipa-type-escape): Remove.
9189
9190 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9191
9192 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
9193 (decode_options): Likewise.
9194 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
9195
9196 2010-05-16 Jan Hubicka <jh@suse.cz>
9197
9198 * ipa.c (function_and_variable_visibility): Also bring local all
9199 aliases.
9200
9201 2010-05-16 Richard Guenther <rguenther@suse.de>
9202
9203 * alias.c (nonoverlapping_memrefs_p): Remove use of
9204 IPA type-escape information.
9205
9206 2010-05-16 Joseph Myers <joseph@codesourcery.com>
9207
9208 * c-common.c (c_common_reswords): Add _Static_assert for C.
9209 * c-parser.c (c_token_starts_declaration,
9210 c_parser_next_token_starts_declaration,
9211 c_parser_static_assert_declaration_no_semi,
9212 c_parser_static_assert_declaration): New.
9213 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
9214 Handle static assertions if static_assert_ok.
9215 (c_parser_external_declaration, c_parser_declaration_or_fndef,
9216 c_parser_compound_statement_nostart, c_parser_label,
9217 c_parser_for_statement, c_parser_objc_methodprotolist,
9218 c_parser_omp_for_loop): All callers of
9219 c_parser_declaration_or_fndef changed.
9220 (c_parser_struct_declaration): Handle static assertions.
9221 (c_parser_compound_statement_nostart): Use
9222 c_parser_next_token_starts_declaration and
9223 c_token_starts_declaration to detect start of declarations.
9224 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9225 Likewise.
9226
9227 2010-05-16 Anatoly Sokolov <aesok@post.ru>
9228
9229 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9230 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9231 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9232 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9233 (mmix_function_outgoing_value): Rename to...
9234 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9235 (mmix_function_value_regno_p): Make static.
9236 (mmix_libcall_value): New function.
9237 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9238 mmix_function_value_regno_p): Remove declaration.
9239
9240 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9241
9242 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9243 BUILT_IN_ALLOCA if stack checking is enabled.
9244
9245 2010-05-16 Richard Guenther <rguenther@suse.de>
9246
9247 * var-tracking.c (vars_copy_1): Inline ...
9248 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
9249 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
9250 (variable_merge_over_cur): Adjust. Merge asserts.
9251 (variable_merge_over_src): Likewise.
9252 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9253 (variable_post_merge_new_vals): Merge asserts.
9254 (variable_post_merge_perm_vals): Likewise.
9255 (find_mem_expr_in_1pdv): Likewise.
9256 (dataflow_set_different_value): Remove.
9257 (onepart_variable_different_p): Merge asserts.
9258 (variable_different_p): Likewise.
9259 (dataflow_set_different_1): Inline ...
9260 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
9261 (emit_notes_for_differences_1): Merge asserts.
9262
9263 2010-05-16 Richard Guenther <rguenther@suse.de>
9264
9265 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9266 * optabs.c (libfunc_decl_hash): Likewise.
9267 * varasm.c (emutls_decl): Likewise.
9268
9269 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
9270
9271 * c-decl.c: Don't include gimple.h.
9272 (merge_decls): Do not copy gimple_body.
9273
9274 2010-05-15 Jason Merrill <jason@redhat.com>
9275
9276 * c.opt: Add -fnothrow-opt.
9277
9278 2010-05-15 Jan Hubicka <jh@suse.cz>
9279
9280 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9281 analyzed.
9282 * passes.c (ipa_write_summaries): Write all analyzed nodes.
9283
9284 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
9285
9286 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
9287 * Makefile.in: Add it.
9288 Fix all other Makefile dependencies for changes below.
9289 * tree.h: Include it instead of defining VEC primitives here.
9290 * gimple.h: Likewise.
9291 * rtl.h: Likewise.
9292 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
9293 * except.h: Include vecir.h, break dependence on tree.h.
9294
9295 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
9296 Move from here...
9297 * tree-iterator.c: ...to here.
9298 * tree-iterator.h: Fix file introduction comment. Add extern markers.
9299
9300 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
9301 tm_p.h.
9302 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
9303 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
9304 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
9305 tree-mudflap.h, and target.h.
9306 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
9307 predict.h, tree-inline.h, gimple.h, and langhooks.h.
9308 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
9309 Add FIXME for why gimple.h is still included (should be unnecessary
9310 since GCC 4.5 gimplification unit-at-a-time).
9311 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
9312 * c-pragma.c: Add FIXME for why function.h needs to be included just
9313 for cfun, at front-end level.
9314 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
9315 Do not include ggc.h, but include vecprim.h for VEC(char).
9316 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
9317 Explain why target.h is included.
9318 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
9319 Explain why gimple.h is included.
9320 * c-ppoutput.c: Do not include tm.h.
9321 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
9322 * c-parses.c: Explain why rtl.h is included, and that this (and only
9323 this) is also why tm.h must be included.
9324 Do not include except.h.
9325 * c-lang.c: Do not include ggc.h.
9326
9327 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
9328
9329 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
9330
9331 2010-05-15 Joseph Myers <joseph@codesourcery.com>
9332
9333 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
9334 unions by default if those structs and unions have no tags. Do
9335 not condition anonymous struct and unions handling on flag_iso.
9336 Allow anonymous structs and unions for C1X.
9337 (finish_struct): Do not diagnose lack of named fields when
9338 anonymous structs and unions present for C1X. Accept flexible
9339 array members in structure with anonymous structs or unions but no
9340 directly named fields.
9341 * doc/extend.texi (Unnamed Fields): Update.
9342
9343 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
9344
9345 * gimple.h (compare_field_offset): Rename into...
9346 (gimple_compare_field_offset): ...this.
9347 * gimple.c (compare_field_offset): Rename into...
9348 (gimple_compare_field_offset): ...this. Compare the full access if
9349 the offset is self-referential.
9350 (gimple_types_compatible_p): Adjust for above renaming.
9351 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
9352 DECL_NONADDRESSABLE_P flag of fields before merging them.
9353
9354 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
9355
9356 * tree.h (ctor_to_list): Delete.
9357 * tree.c (ctor_to_list): Delete.
9358
9359 2010-05-15 Jan Hubicka <jh@suse.cz>
9360
9361 * ipa-reference.c: Include toplev.h
9362 (is_proper_for_analysis): Only add to all_module_statics
9363 if it is allocated.
9364 (write_node_summary_p, stream_out_bitmap,
9365 ipa_reference_write_optimization_summary,
9366 ipa_reference_read_optimization_summary): New.
9367 (struct ipa_opt_pass_d pass_ipa_reference): Add
9368 optimization summary streaming.
9369 * lto-cgraph.c (referenced_from_this_partition_p,
9370 reachable_from_this_partition_p): New functions.
9371 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9372 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
9373 * opts.c (decode_options): Enable ipa_reference.
9374 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
9375 * lto-streamer.h (referenced_from_this_partition_p,
9376 reachable_from_this_partition_p): Declare.
9377
9378 2010-05-15 Richard Guenther <rguenther@suse.de>
9379
9380 PR tree-optimization/44038
9381 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
9382 taking the address of a V_C_E of a constant.
9383
9384 2010-05-14 Jan Hubicka <jh@suse.cz>
9385
9386 * tree.h (memory_identifier_string): Remove.
9387 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
9388 (ipa_reference_global_vars_info_d): Remove statics_not_read and
9389 statics_not_written.
9390 (ipa_reference_optimization_summary_d): New structure.
9391 (ipa_reference_optimization_summary_t): New type and vector.
9392 (ipa_reference_vars_info_d): Embedd structures instead of using
9393 pointers.
9394 (reference_vars_to_consider): Remove out of GGC space.
9395 (module_statics_escape): Remove.
9396 (global_info_obstack): Rename to ...
9397 (optimization_summary_obstack): ... this one.
9398 (initialization_status_t): Remove.
9399 (memory_identifier_string): Remove.
9400 (get_reference_vars_info): Fix indenting.
9401 (set_reference_vars_info): Likewise.
9402 (get_reference_optimization_summary): New.
9403 (set_reference_optimization_summary): New.
9404 (get_global_reference_vars_info): Remove.
9405 (ipa_reference_get_read_global): Remove.
9406 (ipa_reference_get_written_global): Remove.
9407 (ipa_reference_get_not_read_global): Update.
9408 (ipa_reference_get_not_written_global): Update.
9409 (is_proper_for_analysis): Outlaw addressable.
9410 (propagate_bits): Update for new datastructures.
9411 (analyze_variable): Remove.
9412 (init_function_info): Update for new datastructures.
9413 (clean_function_local_data): Remove.
9414 (clean_function): Remove.
9415 (copy_global_bitmap): Use optimizations_summary_obstack.
9416 (duplicate_node_data): Duplicate optimization summary only.
9417 (remove_node_data): Remove optimization summary only.
9418 (generate_summary): Do not analyze variables; do not compute
9419 module_statics_escape; do not prune solutions by it.
9420 (read_write_all_from_decl): Fix typos in comments.
9421 (propagate): Doscover readonly and nonaddressable first;
9422 update for new datastructures; share global bitmaps.
9423 * ipa-reference.h (ipa_reference_get_read_global,
9424 ipa_reference_get_written_global): Remove.
9425 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
9426 * Makefile.in: Remove ipa-refereference from GT files.
9427
9428 2010-05-14 Jakub Jelinek <jakub@redhat.com>
9429
9430 PR debug/44112
9431 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
9432 for all SYMBOL_REF_DECLs.
9433
9434 2010-05-14 Jan Hubicka <jh@suse.cz>
9435
9436 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
9437 (varpool_all_refs_explicit_p): New inline function.
9438 * ipa-reference.c: Update comment.
9439 (module_statics_written): Remove.
9440 (get_static_decl): Remove.
9441 (ipa_init): Do not initialize module_statics_written.
9442 (analyze_function): Likewise.
9443 (generate_summary): Likewise; do not compute module_statics_readonly
9444 and do not update variable flags.
9445 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
9446 * ipa.c: Inlucde flags.h
9447 (cgraph_local_node_p): New.
9448 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
9449 promote functions to local.
9450 (ipa_discover_readonly_nonaddressable_vars): New function.
9451 (function_and_variable_visibility): Use cgraph_local_node_p.
9452 * varpool.c (varpool_finalize_decl): Set force_output for
9453 DECL_PRESERVE_P vars.
9454
9455 2010-05-14 Jan Hubicka <jh@suse.cz>
9456
9457 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
9458
9459 2010-05-14 Richard Guenther <rguenther@suse.de>
9460
9461 PR tree-optimization/44119
9462 * tree-ssa-pre.c (eliminate): Properly mark replacement of
9463 a PHI node necessary.
9464
9465 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
9466
9467 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
9468
9469 2010-05-14 Jason Merrill <jason@redhat.com>
9470
9471 PR c++/44127
9472 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
9473 (gimple_call_set_nothrow): New.
9474 * gimple.c (gimple_build_call_from_tree): Call it.
9475 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
9476
9477 PR c++/44127
9478 * gimplify.c (gimplify_seq_add_stmt): No longer static.
9479 * gimple.h: Declare it.
9480 * gimple.c (gimple_build_eh_filter): No ops.
9481
9482 2010-05-14 Jan Hubicka <jh@suse.cz>
9483
9484 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
9485 nodes already in queue.
9486 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
9487 re-enqueueing node.
9488
9489 2010-05-14 Jakub Jelinek <jakub@redhat.com>
9490
9491 PR debug/44136
9492 * cfgexpand.c (expand_debug_expr): If non-memory op0
9493 has BLKmode, return NULL.
9494
9495 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
9496
9497 * config.gcc: Add support for --with-cpu option for bdver1.
9498 * config/i386/i386.h (TARGET_BDVER1): New macro.
9499 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
9500 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9501 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
9502 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9503 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
9504 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
9505 (processor_type): Add PROCESSOR_BDVER1.
9506 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
9507 processor_type in config/i386/i386.h.
9508 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
9509 movaps <reg, reg> instead of movapd <reg, reg> when replacing
9510 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
9511 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
9512 to emit packed xor instead of packed double/packed integer
9513 xor for SSE and AVX when moving a zero value.
9514 * config/i386/sse.md: Add check for
9515 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
9516 movapd/movdqa for SSE and AVX.
9517 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
9518 single logical operations i.e and, or and xor instead of packed double
9519 logical operations for SSE and AVX.
9520 * config/i386/i386-c.c (ix86_target_macros_internal):
9521 Add PROCESSOR_BDVER1.
9522 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
9523 (has_fma4, has_xop): New.
9524 * config/i386/i386.c (bdver1_cost): New variable.
9525 (m_BDVER1): New macro.
9526 (m_AMD_MULTIPLE): Add m_BDVER1.
9527 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
9528 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
9529 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
9530 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
9531 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
9532 x86_tune_sse_partial_reg_dependency,
9533 x86_tune_sse_unaligned_load_optimal,
9534 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
9535 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
9536 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
9537 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
9538 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
9539 Enable/disable for bdver1.
9540 (processor_target_table): Add bdver1_cost.
9541 (cpu_names): Add bdver1.
9542 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
9543 processor_alias_table.
9544 (ix86_expand_vector_move_misalign): Change.
9545 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
9546 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
9547 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
9548 of movupd/movdqu for SSE and AVX.
9549 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
9550 (ix86_tune_adjust_cost): Add code for bdver1.
9551 (standard_sse_constant_opcode): Add check for
9552 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
9553 of packed double xor for SSE and AVX.
9554
9555 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
9556
9557 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
9558 result to unsigned.
9559
9560 2010-05-14 Tristan Gingold <gingold@adacore.com>
9561
9562 * toplev.c (default_debug_hooks): Remove this variable.
9563 (process_options): Remove assignments to default_debug_hooks.
9564
9565 2010-05-14 Martin Jambor <mjambor@suse.cz>
9566
9567 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
9568 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
9569 * langhooks.h (struct lang_hooks_for_decls): Removed field
9570 fold_obj_type_ref.
9571 * tree.c (free_lang_data): Remove assignment to
9572 lang_hooks.fold_obj_type_ref.
9573 * tree.def (OBJ_TYPE_REF): Update comment.
9574
9575 2010-05-14 Richard Guenther <rguenther@suse.de>
9576
9577 PR tree-optimization/44124
9578 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
9579
9580 2010-05-14 Alan Modra <amodra@gmail.com>
9581
9582 PR target/44075
9583 * config/rs6000/rs6000.c (struct machine_function): Reorder
9584 fields for better packing. Add lr_save_state.
9585 (rs6000_ra_ever_killed): Return lr_save_state if set.
9586 (rs6000_emit_eh_reg_restore): Set lr_save_state.
9587
9588 2010-05-13 Jan Hubicka <jh@suse.cz>
9589
9590 * varpool.c (decide_is_variable_needed): Drop code checking
9591 TREE_SYMBOL_REFERENCED.
9592
9593 2010-05-13 Jan Hubicka <jh@suse.cz>
9594
9595 * final.c (output_addr_const): Do not call mark_decl_referenced.
9596 * cgraphunit.c (process_function_and_variable_attributes): Use
9597 mark_needed_node dirrectly.
9598 (assemble_thunk): Do not call mark_decl_referenced.
9599
9600 2010-05-13 Anatoly Sokolov <aesok@post.ru>
9601
9602 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
9603
9604 2010-05-13 Jeff Law <law@redhat.com>
9605
9606 * ira-conflicts.c (print_allocno_conflicts): New function broken out
9607 from...
9608 (print_conflicts): Call print_allocno_conflicts.
9609
9610 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9611
9612 PR debug/44104
9613 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
9614 if it is NULL.
9615
9616 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
9617
9618 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
9619 t-mingw-w64 or t-mingw-w32 for multilib configuration.
9620 * config/i386/t-mingw-w32: New.
9621 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
9622
9623 2010-05-13 Martin Jambor <mjambor@suse.cz>
9624
9625 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
9626 gimple-fold.c).
9627 * gimple-fold.c (get_base_binfo_for_type): New function.
9628 (gimple_get_relevant_ref_binfo): Likewise.
9629 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9630 (gimple_fold_obj_type_ref): Likewise.
9631 (fold_gimple_call): Simplify condition for folding virtual calls
9632 and call gimple_fold_obj_type_ref.
9633 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
9634 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9635
9636 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
9637
9638 * config/rs6000/rs6000-protos.h
9639 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9640 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9641 (rs6000_debug_mode_dependent_address)
9642 (rs6000_mode_dependent_address_ptr): Likewise.
9643
9644 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9645
9646 PR debug/43983
9647 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9648 by SRA.
9649 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9650 * tree-sra.c (create_access_replacement): Call unshare_expr before
9651 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9652 * dwarf2out.c: Include tree-flow.h.
9653 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9654 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9655 Handle DW_OP_bit_piece.
9656 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9657 construct_piece_list, adjust_piece_list): New functions.
9658 (add_var_loc_to_decl): Handle SRA optimized variables.
9659 Adjust for var_loc_note to loc field renaming.
9660 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9661 in VAR_LOCATION note.
9662 (new_loc_descr_op_bit_piece): New function.
9663 (dw_sra_loc_expr): New function.
9664 (dw_loc_list): Use it. Don't handle the last range after the
9665 loop, handle it inside of the loop. Adjust for var_loc_note
9666 to loc field renaming.
9667 (add_location_or_const_value_attribute): Only special case
9668 single entry loc lists if loc is NOTE_P. Adjust for
9669 var_loc_note to loc field renaming.
9670 (dwarf2out_var_location): Don't set newloc->var_loc_note
9671 and newloc->next here.
9672
9673 2010-05-12 Jan Hubicka <jh@suse.cz>
9674
9675 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9676 flag.
9677 * cgraph.h (cgraph_only_called_directly_p,
9678 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9679 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9680 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9681 (assemble
9682 * ipa.c (cgraph_remove_unreachable_nodes): Use
9683 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9684 flags.
9685 * tree-inline.c (copy_bb): Check address_taken flag.
9686 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9687 externally_visible flag.
9688
9689 2010-05-12 Jason Merrill <jason@redhat.com>
9690
9691 PR bootstrap/44048
9692 PR target/44099
9693 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9694 * sdbout.c (plain_type_1): Likewise.
9695 * dwarf2out.c (is_base_type): Likewise.
9696 (gen_type_die_with_usage): Likewise. Generate
9697 DW_TAG_unspecified_type for any LANG_TYPE.
9698
9699 2010-05-12 Jan Hubicka <jh@suse.cz>
9700
9701 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
9702 indrect edges too.
9703 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
9704 (cgraph_clone_edge): Update.
9705 (cgraph_node_remove_callees): Remove indirect calls too.
9706 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
9707 (cgraph_create_indirect_edge): Update prototype.
9708 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
9709 is_proper_for_analysis.
9710 (add_new_function, visited_nodes, function_insertion_hook_holder,
9711 get_local_reference_vars_info, mark_address_taken, mark_address,
9712 mark_load, mark_store, check_asm_memory_clobber, check_call,
9713 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
9714 (ipa_init): Do not initialize visited_nodes;
9715 function_insertion_hook_holder.
9716 (analyze_variable): Rewrite.
9717 (analyze_function): Rewrite.
9718 (copy_local_bitmap): Remove.
9719 (duplicate_node_dat): Do not duplicate local info.
9720 (generate_summary): Simplify to only walk cgraph.
9721 (write_node_summary_p, ipa_reference_write_summary,
9722 ipa_reference_read_summary): Remove.
9723 (propagate): Do not remove function insertion;
9724 generate summary.
9725 (pass_ipa_reference): NULLify summary handling fields.
9726 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
9727 (input_edge): Input ecf_flags.
9728 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
9729 (update_indirect_edges_after_inlining): Ignore edges with unknown
9730 param.
9731
9732 2010-05-12 Sriraman Tallam <tmsriram@google.com>
9733
9734 * implicit-zee.c: New file.
9735 * tree-pass.h (pass_implicit_zee): Declare.
9736 * passes.c (init_optimization_passes): Add zee pass.
9737 * common.opt (fzee): New flag.
9738 * timevar.def (TV_ZEE): Define.
9739 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
9740 and beyond.
9741 * Makefile.in (implicit-zee.o): Add new build file.
9742
9743 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9744 Nathan Froyd <froydnj@codesourcery.com>
9745
9746 * c-common.c (sync_resolve_params): Remove write-only variable.
9747
9748 2010-05-12 Anatoly Sokolov <aesok@post.ru>
9749
9750 * target.h (struct gcc_target): Add mode_dependent_address_p field.
9751 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9752 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
9753 * targhooks.c (default_mode_dependent_address_p): New function.
9754 * targhooks.h (default_mode_dependent_address_p): Declare function.
9755 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9756 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
9757 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
9758 target hook. Change return type to bool.
9759 * recog.h (mode_dependent_address_p): Change return type to bool.
9760
9761 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9762 Nathan Froyd <froydnj@codesourcery.com>
9763
9764 * tree-mudflap.c (build_function_type_0, build_function_type_1,
9765 build_function_type_2, build_function_type_3): Remove.
9766 (mudflap_init): Use build_function_type_list.
9767
9768 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9769 Nathan Froyd <froydnj@codesourcery.com>
9770
9771 * coverage.c (build_fn_info_value): Call build_constructor instead of
9772 build_constructor_from_list.
9773 (build_ctr_info_value): Likewise.
9774 (build_gcov_info): Likewise.
9775
9776 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
9777
9778 * tree.c (build_constructor): Compute TREE_CONSTANT for the
9779 resultant constructor.
9780 (build_constructor_single): Don't set TREE_CONSTANT.
9781 (build_constructor_from_list): Don't compute TREE_CONSTANT.
9782
9783 2010-05-12 Jan Hubicka <jh@suse.cz>
9784
9785 * cgraph.h (struct varpool_node): Add aux.
9786 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
9787 * varpool.c (varpool_remove_node): Do not remove initializer.
9788 (varpool_reset_queue): Export.
9789 (varpool_finalize_decl): Volatile vars are forced to be output.
9790 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
9791 replaced decl.
9792 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
9793 process_references, varpool_can_remove_if_no_refs): New functions.
9794 (cgraph_remove_unreachable_nodes): Handle variables too.
9795
9796 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
9797
9798 PR target/44088
9799 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
9800
9801 2010-05-12 Jakub Jelinek <jakub@redhat.com>
9802
9803 PR middle-end/44085
9804 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
9805 change value of ORT_TASK.
9806 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
9807 (omp_notice_threadprivate_variable): New function.
9808 (omp_notice_variable): Call it for threadprivate variables.
9809 If enclosing ctx is a task, print enclosing task rather than
9810 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
9811 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
9812 if task has untied clause.
9813
9814 PR debug/42278
9815 * dwarf2out.c (base_type_die): Don't add name attribute here.
9816 (modified_type_die): Instead of sizetype use
9817 its underlying original type. If a DW_TAG_base_type doesn't
9818 have name added, add __unknown__.
9819 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
9820 always call force_type_die instead.
9821
9822 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
9823
9824 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
9825 for __stack_chk_guard.
9826
9827 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9828
9829 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9830 don't call start_source_file debug hook here...
9831 (finish_options): ... but here, after outputting predefined and
9832 command line defines and undefs.
9833
9834 PR middle-end/44071
9835 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9836 no fallthru edge.
9837 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9838 optimizing away empty bb with no successors, move over its
9839 footer chain to fallthru predecessor.
9840 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9841 (rtl_split_edge): For asm goto call patch_jump_insn even if
9842 splitting fallthru edge.
9843
9844 PR c++/44059
9845 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9846 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9847 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9848 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9849 on DW.ref.* decls.
9850
9851 PR c++/44062
9852 * c-parser.c (c_parser_expression): Mark LHS of a comma
9853 expression as read if it is a decl, handled component or
9854 COMPOUND_EXPR with that on the RHS.
9855 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9856 if it is a decl or handled component.
9857
9858 2010-05-11 Jan Hubicka <jh@suse.cz>
9859
9860 * lto-symtab.c (lto_symtab_free): New function.
9861 * lto-streamer.h (lto_symtab_free): Declare.
9862
9863 2010-05-11 Jan Hubicka <jh@suse.cz>
9864
9865 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9866 that if function is needed it is reachable.
9867 (lto_output_node): See if it the function is reachable or referenced.
9868 (output_cgraph): Update call of lto_output_node.
9869 * lto-streamer.h (reachable_from_other_partition_p): Declare.
9870
9871 2010-05-11 Jan Hubicka <jh@suse.cz>
9872
9873 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9874 Mark as used.
9875
9876 2010-05-11 Jan Hubicka <jh@suse.cz>
9877
9878 PR tree-optimize/44063
9879 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9880 queue.
9881 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9882 limits.
9883 (estimate_function_body_sizes): Compute sizes even when disregarding.
9884
9885 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
9886
9887 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9888
9889 2010-05-11 Jan Hubicka <jh@suse.cz>
9890
9891 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9892 into every boundary.
9893
9894 2010-05-11 Jan Hubicka <jh@suse.cz>
9895
9896 * matrix-reorg.c (matrix_reorg): Rebuild edges.
9897
9898 2010-05-11 Jan Hubicka <jh@suse.cz>
9899
9900 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9901 lto_streamer_cache_delete): Put nodes into heap.
9902 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9903 heap.
9904
9905 2010-05-11 Jan Hubicka <jh@suse.cz>
9906
9907 * cgraphbuild.c (cgraph_rebuild_references): New.
9908 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9909 out extern inlines.
9910 * cgraph.h (cgraph_rebuild_references): Declare.
9911 * tree-inline.c (tree_function_versioning): Use it.
9912 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9913
9914 2010-05-11 Jan Hubicka <jh@suse.cz>
9915
9916 * cgraph.c: Include ipa-utils.h
9917 (cgraph_create_virtual_clone): Update references.
9918 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9919
9920 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9921
9922 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9923 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9924 cache size.
9925
9926 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9927
9928 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9929
9930 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9931
9932 * gcc.c (execute): For -### don't quote arguments that
9933 contain just alphanumerics and _/-. characters.
9934 * doc/invoke.texi: Document that change for -###.
9935
9936 PR debug/44023
9937 * df-problems.c (struct dead_debug): Add to_rescan field.
9938 (dead_debug_init): Clear to_rescan field.
9939 (dead_debug_finish): Rescan all debug insns in to_rescan
9940 bitmap and free the bitmap.
9941 (dead_debug_insert_before): Instead of rescanning debug insns
9942 immediately queue their rescanning until dead_debug_finish.
9943 (df_note_bb_compute): After dead_debug_add do continue instead
9944 of break.
9945
9946 2010-05-10 Jakub Jelinek <jakub@redhat.com>
9947
9948 PR debug/44028
9949 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9950 clear also INSN_REG_USE_LIST.
9951
9952 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9953
9954 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9955
9956 2010-05-10 Jan Hubicka <jh@suse.cz>
9957
9958 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9959 commited change.
9960
9961 2010-05-10 Jan Hubicka <jh@suse.cz>
9962
9963 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9964 Allocate encoders.
9965 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9966 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9967 (lto_streamer_cache_create): Init alloc pool.
9968 (lto_streamer_cache_delete): Free alloc pool.
9969 * lto-streamer.h: Include alloc pool.
9970 (lto_streamer_cache_d): Use alloc pool.
9971 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9972
9973 2010-05-10 Jan Hubicka <jh@suse.cz>
9974
9975 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9976 * cgraphbuild.c: Include except.h
9977 (record_type_list, record_eh_tables): New function.
9978 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9979
9980 2010-05-10 Jan Hubicka <jh@suse.cz>
9981
9982 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9983 __frame_dummy_init_array_entry, force_to_data): Attribute as used
9984 rather than unused.
9985
9986 2010-05-10 Michael Matz <matz@suse.de>
9987
9988 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9989 (can_reassociate_p): Use FLOAT_TYPE_P.
9990 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9991 (vect_force_simple_reduction): ... this.
9992 * tree-parloops.c (gather_scalar_reductions): Use
9993 vect_force_simple_reduction.
9994 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9995 vect_is_simple_reduction, add modify argument, if true rewrite
9996 "a-b" into "a+(-b)".
9997 (vect_is_simple_reduction, vect_force_simple_reduction): New
9998 functions.
9999 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
10000
10001 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
10002 Vladimir Makarov <vmakarov@redhat.com>
10003
10004 PR rtl-optimization/44012
10005 * ira-build.c (remove_unnecessary_allocnos): Nullify
10006 regno_allocno_map of the removed allocno.
10007
10008 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10009
10010 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
10011 to /dev/null.
10012 * configure: Regenerate.
10013
10014 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10015
10016 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
10017 unused.
10018 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
10019 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
10020 support in Sun ld.
10021 * configure: Regenerate.
10022
10023 2010-05-10 Richard Guenther <rguenther@suse.de>
10024
10025 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
10026 marked if the entry identifier is marked.
10027
10028 2010-05-10 Richard Guenther <rguenther@suse.de>
10029
10030 * c-common.c (struct c_common_attributes): Add fnspec attribute.
10031 (handle_fnspec_attribute): New function.
10032 * gimple.h (gimple_call_return_flags): Declare.
10033 (gimple_call_arg_flags): Likewise.
10034 * gimple.c (gimple_call_arg_flags): New function.
10035 (gimple_call_return_flags): Likewise.
10036 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
10037 New argument flags.
10038 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
10039 return value flags.
10040 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
10041 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
10042 main work to ...
10043 (make_heapvar_for): ... this new function.
10044 (handle_rhs_call): Handle fnspec attribute argument specifiers.
10045 (handle_lhs_call): Likewise.
10046 (find_func_aliases): Adjust.
10047
10048 2010-05-10 Richard Guenther <rguenther@suse.de>
10049
10050 PR tree-optimization/44050
10051 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
10052
10053 2010-05-10 Wei Guozhi <carrot@google.com>
10054
10055 PR target/42879
10056 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
10057
10058 2010-05-09 Joseph Myers <joseph@codesourcery.com>
10059
10060 PR c/10676
10061 * c-typeck.c (lookup_field): Take a type directly. Update
10062 recursive calls.
10063 (build_component_ref): Update call to lookup_field.
10064 (set_init_label): Use lookup_field to find initialized field.
10065 Handle returned list of fields like a sequence of designators.
10066
10067 2010-05-09 Richard Guenther <rguenther@suse.de>
10068
10069 PR middle-end/44024
10070 * fold-const.c (tree_single_nonzero_warnv_p): Properly
10071 handle &FUNCTION_DECL.
10072
10073 2010-05-09 Joseph Myers <joseph@codesourcery.com>
10074
10075 PR c/4784
10076 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
10077 structures and unions recursively.
10078 (detect_field_duplicates): Move duplicate detection with a hash to
10079 detect_field_duplicates_hash. Always use a hash if anonymous
10080 structures or unions are present.
10081 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
10082 give errors.
10083
10084 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
10085
10086 PR target/44046
10087 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
10088 detect Atom, Core 2 and Core i7.
10089
10090 2010-05-09 Richard Guenther <rguenther@suse.de>
10091
10092 * gcc.c (store_arg): Handle temporary file deletion for
10093 joined arguments.
10094
10095 2010-05-09 Richard Guenther <rguenther@suse.de>
10096
10097 PR middle-end/44043
10098 * ipa-inline.c (estimate_function_body_sizes): Return after
10099 disregarding inline limits.
10100
10101 2010-05-09 Richard Guenther <rguenther@suse.de>
10102
10103 * gcc.c (store_arg): Revert last change.
10104
10105 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
10106
10107 PR middle-end/28685
10108 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
10109 (optimize_ops_list): Call it.
10110
10111 2010-05-08 Richard Guenther <rguenther@suse.de>
10112
10113 PR tree-optimization/44030
10114 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
10115 NECESSARY flag if we propagate from a inserted expression.
10116
10117 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
10118
10119 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
10120 domain types as equal if they are both PLACEHOLDER_EXPRs.
10121
10122 2010-05-08 Richard Guenther <rguenther@suse.de>
10123
10124 * lto-wrapper.c (run_gcc): Remove linker output from
10125 command line for LTRANS invocation.
10126
10127 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10128
10129 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10130 lto-macho as lto_binary_reader.
10131 * target.h (struct gcc_target): New hooks lto_start and lto_end.
10132 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
10133 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
10134 in lto_start and lto_end calls.
10135 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
10136 magic numbers.
10137 (scan_prog_file): Update is_elf_or_coff call.
10138 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
10139
10140 * collect2.c (main): Fix enum comparison.
10141
10142 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
10143 Add prototypes.
10144 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
10145 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
10146 and TARGET_ASM_LTO_END.
10147 * darwin.c: Include obstack.h and lto-streamer.h.
10148 (lto_section_names_offset, lto_section_names_obstack,
10149 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
10150 global variables.
10151 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
10152 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
10153 to a temporary file.
10154 (darwin_asm_lto_end): New function. Restore asm_out_file.
10155 (darwin_asm_named_section): For LTO sections, replace the name with
10156 the offset of the section name in a string table, and build this
10157 table.
10158 (darwin_file_start): Initialize global vars for LTO support.
10159 (darwin_file_end): If output to asm_out_file was redirected, append it
10160 to the proper asm_out_file here. Add the section names section.
10161
10162 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10163
10164 * c-pragma.c (pending_weak_d, pending_weak): New.
10165 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
10166 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
10167 handle_pragma_weak): Update the uses of pending_weaks.
10168
10169 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10170
10171 PR documentation/44016
10172 * doc/standards.texi (Standards): Link to unversioned
10173 cxx0x_status.html page.
10174
10175 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
10176
10177 PR target/43708
10178 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
10179 in addition to TREE_USED, to avoid "set but unused" warnings.
10180
10181 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10182
10183 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
10184 (is_loop_prefetching_profitable): Do not insert prefetches
10185 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
10186 times the prefetch ahead distance.
10187
10188 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10189
10190 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
10191 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
10192 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
10193 the unroll_factor.
10194
10195 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10196
10197 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
10198 a diagnostic info when the insn-to-mem ratio is too small.
10199
10200 2010-05-07 Richard Guenther <rguenther@suse.de>
10201
10202 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
10203 the linker plugin.
10204 (store_arg): Queue temp_filename for deletion instead of
10205 the whole argument.
10206
10207 2010-05-07 Richard Guenther <rguenther@suse.de>
10208
10209 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
10210 (run_gcc): Handle LTRANS phase invocation.
10211 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
10212
10213 2010-05-07 Jakub Jelinek <jakub@redhat.com>
10214
10215 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10216 this is also meaningful on PARM_DECLs and RESULT_DECLs.
10217
10218 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10219
10220 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10221
10222 2010-05-07 Richard Guenther <rguenther@suse.de>
10223
10224 PR tree-optimization/44020
10225 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10226 code when PRE is not yet initialized.
10227
10228 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10229
10230 * config/mips/dbxmdebug.h: Remove.
10231 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10232
10233 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
10234
10235 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10236 with null pointer and also warn about ordered comparison of zero with
10237 pointer if -Wextra.
10238
10239 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10240
10241 * graphite-blocking.c
10242 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10243 * graphite-clast-to-gimple.c
10244 (clast_to_gcc_expression): Same.
10245 (precision_for_value): Same.
10246 (precision_for_interval): Same.
10247 (gcc_type_for_interval): Same.
10248 (graphite_create_new_guard): Same.
10249 (compute_bounds_for_level): Same.
10250 (graphite_create_new_loop_guard): Same.
10251 * graphite-interchange.c
10252 (build_linearized_memory_access): Same.
10253 (pdr_stride_in_loop): Same.
10254 (memory_strides_in_loop_1): Same.
10255 (memory_strides_in_loop): Same.
10256 (extend_scattering): Same.
10257 (psct_scattering_dim_for_loop_depth): Same.
10258 (pbb_number_of_iterations): Same.
10259 * graphite-poly.h
10260 (debug_iteration_domains): Same.
10261 * graphite-ppl.c
10262 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10263 (ppl_set_inhomogeneous_gmp): Same.
10264 (ppl_strip_loop): Same.
10265 (ppl_lexico_compare_linear_expressions): Same.
10266 (ppl_read_polyhedron_matrix): Same.
10267 (ppl_max_for_le_pointset): Same.
10268 * graphite-ppl.h
10269 (ppl_read_polyhedron_matrix): Same.
10270 (tree_int_to_gmp): Same.
10271 (gmp_cst_to_tree): Same.
10272 (ppl_set_inhomogeneous): Same.
10273 (ppl_set_inhomogeneous_tree): Same.
10274 (ppl_set_coef): Same.
10275 (ppl_set_coef_tree): Same.
10276 * graphite-sese-to-poly.c
10277 (build_pbb_scattering_polyhedrons): Same.
10278 (build_scop_scattering): Same.
10279 (scan_tree_for_params_right_scev): Same.
10280 (scan_tree_for_params): Same.
10281 (find_params_in_bb): Same.
10282 (find_scop_parameters): Same.
10283 (add_upper_bounds_from_estimated_nit): Same.
10284 (build_loop_iteration_domains): Same.
10285 (add_condition_to_domain): Same.
10286 (pdr_add_memory_accesses): Same.
10287
10288 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10289
10290 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
10291 CLooG's value_* macros to their respective mpz_* counterparts.
10292 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
10293 (graphite_create_new_loop_guard): Same.
10294 * graphite-interchange.c (build_linearized_memory_access): Same.
10295 (pdr_stride_in_loop): Same.
10296 (memory_strides_in_loop_1): Same.
10297 (1st_interchange_profitable_p): Same.
10298 * graphite-poly.c (extend_scattering): Same.
10299 (psct_scattering_dim_for_loop_depth): Same.
10300 (pbb_number_of_iterations): Same.
10301 (pbb_number_of_iterations_at_time): Same.
10302 * graphite-poly.h (new_1st_loop): Same.
10303 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
10304 (oppose_constraint): Same.
10305 (insert_constraint_into_matrix): Same.
10306 (ppl_set_inhomogeneous_gmp): Same.
10307 (ppl_set_coef_gmp): Same.
10308 (ppl_strip_loop): Same.
10309 (ppl_lexico_compare_linear_expressions): Same.
10310 (ppl_max_for_le_pointset): Same.
10311 (ppl_min_for_le_pointset): Same.
10312 (ppl_build_realtion): Same.
10313 * graphite-ppl.h (gmp_cst_to_tree): Same.
10314 (ppl_set_inhomogeneous): Same.
10315 (ppl_set_inhomogeneous_tree): Same.
10316 (ppl_set_coef): Same.
10317 (ppl_set_coef_tree): Same.
10318 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10319 (build_scop_scattering): Same.
10320 (add_value_to_dim): Same.
10321 (scan_tree_for_params_right_scev): Same.
10322 (scan_tree_for_params_int): Same.
10323 (scan_tree_for_params): Same.
10324 (find_params_in_bb): Same.
10325 (find_scop_parameters): Same.
10326 (add_upper_bounds_from_estimated_nit): Same.
10327 (build_loop_iteration_domains): Same.
10328 (create_linear_expr_from_tree): Same.
10329 (add_condition_to_domain): Same.
10330 (pdr_add_memory_accesses): Same.
10331
10332 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
10333 Jason Merrill <jason@redhat.com>
10334
10335 * c-common.c (c_common_reswords): Add nullptr.
10336 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
10337 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
10338 (gen_type_die_with_usage): Likewise.
10339 * dbxout.c (dbxout_type): Likewise.
10340 * sdbout.c (plain_type_1): Likewise.
10341
10342 2010-05-06 Jason Merrill <jason@redhat.com>
10343
10344 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
10345 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
10346 ret appropriately.
10347 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
10348
10349 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
10350 stripping WITH_SIZE_EXPR.
10351 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
10352 change.
10353
10354 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10355
10356 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
10357 list of obsolete configurations.
10358 Disabled check for obsolete configurations.
10359 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
10360 Removed support for previous versions.
10361 * config/mips/iris.h: Removed.
10362 * config/mips/iris5.h: Removed.
10363 * config/mips/iris6.h: Merged old iris.h contents.
10364 (TARGET_IRIX): Removed.
10365 (DRIVER_SELF_SPECS): Removed mabi=32.
10366 (IDENT_ASM_OP): Removed undef.
10367 (STARTFILE_SPEC): Removed mabi=32.
10368 (ENDFILE_SPEC): Likewise.
10369 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
10370 (MACHINE_TYPE): Update for IRIX 6.5.
10371 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
10372 TARGET_IRIX by TARGET_IRIX6.
10373 (mips_file_start): Likewise.
10374 (mips_output_external): Remove IRIX 5/6 O32 support.
10375 (mips_output_function_prologue): Likewise.
10376 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
10377 TARGET_IRIX6.
10378 (TARGET_CPU_CPP_BUILTINS): Likewise.
10379 (TARGET_IRIX): Removed.
10380 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
10381 (MULTILIB_DIRNAMES): Removed 32.
10382 (MULTILIB_OSDIRNAMES): Removed ../lib.
10383 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
10384 (Specific, mips-sgi-irix5): Document removal.
10385 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
10386 Remove references to older IRIX 6 releases and the O32 ABI.
10387
10388 2010-05-06 Jakub Jelinek <jakub@redhat.com>
10389
10390 PR bootstrap/43994
10391 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
10392 instead of DF_REF_REAL_REG.
10393
10394 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
10395
10396 PR target/43888
10397 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
10398 handling to still return true for x64 targets.
10399
10400 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10401
10402 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
10403
10404 2010-05-06 Jan Hubicka <jh@suse.cz>
10405
10406 PR tree-optimization/43791
10407 * ipa-inline.c (update_caller_keys): Remove bogus
10408 disregard_inline_limits check.
10409
10410 2010-05-06 Michael Matz <matz@suse.de>
10411
10412 PR tree-optimization/43984
10413 * tree-ssa-pre.c (inserted_phi_names): Remove.
10414 (inserted_exprs): Change to bitmap.
10415 (create_expression_by_pieces): Set bits, don't append to vector.
10416 (insert_into_preds_of_block): Don't handle inserted_phi_names.
10417 (eliminate): Don't look at inserted_phi_names, remove deleted
10418 insns from inserted_exprs.
10419 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
10420 (init_pre, fini_pre): Allocate and free bitmaps.
10421 (execute_pre): Insert insns on edges before elimination.
10422
10423 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10424
10425 * tree.c (initializer_zerop): Handle STRING_CST.
10426
10427 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
10428
10429 PR 40989
10430 * doc/invoke.texi (Wimplicit): Document as C only.
10431 * opts.c (common_handle_option): Add argument kind.
10432 (handle_option): Rename as read_cmdline_option. Factor out code to...
10433 (handle_option): ... here. New.
10434 (handle_options): Rename as read_cmdline_options.
10435 (decode_options): Update call.
10436 (set_option): Use option index instead of option pointer. Classify
10437 diagnostics correctly.
10438 (enable_warning_as_error): Call handle_option.
10439 * opts.h (set_option): Update declaration.
10440 (handle_option): Declare.
10441 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
10442 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
10443 * c-opts.c (set_Wimplicit): Delete.
10444 (c_family_lang_mask): New static constant.
10445 (c_common_handle_option): Add argument kind. Use handle_option
10446 instead of set_Wimplicit.
10447 (c_common_post_options): warn_implicit and warn_implicit_int
10448 are disabled by default.
10449 * c-common.c (warn_implicit): Do not define here.
10450 * c-common.h (warn_implicit): Do not declare here.
10451 (c_common_handle_option): Update declaration.
10452 * lto-opts.c (lto_reissue_options): Update call to set_option.
10453
10454 2010-05-06 Richard Guenther <rguenther@suse.de>
10455
10456 PR tree-optimization/43571
10457 * domwalk.c (walk_dominator_tree): Walk the dominator
10458 sons in more optimal order.
10459
10460 2010-05-06 Richard Guenther <rguenther@suse.de>
10461
10462 PR tree-optimization/43934
10463 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
10464 (stmt_cost): Likewise.
10465 (extract_true_false_args_from_phi): New helper.
10466 (determine_max_movement): For PHI nodes verify we can hoist them
10467 and compute their cost.
10468 (determine_invariantness_stmt): Handle PHI nodes.
10469 (move_computations_stmt): Likewise. Hoist PHI nodes in
10470 if-converted form using COND_EXPRs.
10471 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
10472 (tree_ssa_lim): Likewise.
10473 * tree-flow.h (tree_ssa_lim): Adjust prototype.
10474 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
10475
10476 2010-05-06 Richard Guenther <rguenther@suse.de>
10477
10478 PR tree-optimization/43987
10479 * tree-ssa-structalias.c (could_have_pointers): For possibly
10480 address-taken variables force pointers to be recorded.
10481 (create_variable_info_for_1): Likewise.
10482 (push_fields_onto_fieldstack): Pass in wheter all fields
10483 must have pointers.
10484 (find_func_aliases): Query types instead of vars whether
10485 they contain pointers where appropriate.
10486
10487 2010-05-06 Jan Hubicka <jh@suse.cz>
10488
10489 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
10490 (record_reference, mark_address, mark_load, mark_store): Record
10491 references.
10492 (record_references_in_initializer): Update call of record_references.
10493 (rebuild_cgraph_edges): Remove all references before rebuiding.
10494 * cgraph.c (cgraph_create_node): Clear ref list.
10495 (cgraph_remove_node): Remove references.
10496 (dump_cgraph_node): Dump references.
10497 (cgraph_clone_node): Clone references.
10498 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
10499 (struct cgraph_node, varpool_node): Add ref_lst.
10500 * ipa-ref.c: New file.
10501 * ipa-ref.h: New file.
10502 * ipa-ref-inline.h: New file.
10503 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
10504 (referenced_from_other_partition_p): New function.
10505 (lto_output_varpool_node): Take set arugment; call
10506 referenced_from_other_partition.
10507 (lto_output_ref): New.
10508 (add_references): New.
10509 (output_refs): New.
10510 (output_cgraph): Compute boundary based on references; output refs.
10511 (output_varpool): Accept cgraph_node_set argument.
10512 (input_ref): New.
10513 (input_refs): New.
10514 (input_cgraph): Call input_refs.
10515 * lto-section-in.c (lto_section_name): Add refs.
10516 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
10517 (ipa-ref.o): New file.
10518 * varpool.c (varpool_node): Clear ipa ref list.
10519 (varpool_remove_node): Remove references.
10520 (dump_varpool_node): Dump references.
10521 (varpool_assemble_decl): Only compile finalized ones.
10522 (varpool_extra_name_alias): Initialize ref list.
10523 * lto-streamer.c (lto-get_section_name): Add .refs section.
10524 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
10525 (referenced_from_other_partition_p): Declared.
10526
10527 2010-05-06 Ira Rosen <irar@il.ibm.com>
10528
10529 PR tree-optimization/43901
10530 * tree-vect-stmts.c (vectorizable_call): Assert that vector
10531 type is not NULL if it's transformation phase, and return
10532 FALSE if it's analysis.
10533 (vectorizable_conversion, vectorizable_operation,
10534 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
10535
10536 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
10537
10538 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10539 Delete.
10540 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10541 New define.
10542 * config/mips/mips-protos.h
10543 (mips_small_register_classes_for_mode_p): Delete prototype.
10544
10545 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
10546
10547 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
10548 * config/arm/arm.c (multiple_operation_profitable_p,
10549 compute_offset_order): New static functions.
10550 (load_multiple_sequence, store_multiple_sequence): Use them.
10551 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
10552 memory offsets, not register numbers.
10553 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
10554
10555 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
10556
10557 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
10558 (get_pending_sizes, put_pending_size, put_pending_sizes):
10559 Update the uses of pending_sizes.
10560 * c-decl.c (store_parm_decls): Likewise.
10561 * c-tree.h (struct c_arg_info): Likewise.
10562 * tree.h: Update the prototype for get_pending_sizes and
10563 put_pending_sizes.
10564
10565 2010-05-05 Jason Merrill <jason@redhat.com>
10566
10567 PR debug/43370
10568 * c-common.c (handle_aligned_attribute): Respect
10569 ATTR_FLAG_TYPE_IN_PLACE.
10570
10571 PR testsuite/43758
10572 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
10573 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10574 (TARGET_INITIALIZER): Use it.
10575 * c-common.c (attribute_takes_identifier_p): Call it.
10576 * c-common.h: Update prototype.
10577 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
10578 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10579
10580 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10581
10582 PR debug/43950
10583 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
10584 DW_ID_down_case for Fortran compilation units.
10585
10586 2010-05-05 Jan Hubicka <jh@suse.cz>
10587
10588 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
10589 handle aliases.
10590
10591 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
10592
10593 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
10594 a variable-sized RESULT_DECL.
10595
10596 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
10597
10598 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
10599
10600 2010-05-05 Jason Merrill <jason@redhat.com>
10601
10602 PR c++/43787
10603 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
10604 returns GS_OK.
10605 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
10606
10607 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
10608 Jakub Jelinek <jakub@redhat.com>
10609
10610 PR debug/43478
10611 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
10612 (dead_debug_init, dead_debug_finish): New functions.
10613 (dead_debug_add, dead_debug_insert_before): Likewise.
10614 (df_note_bb_compute): Initialize a dead_debug object, add dead
10615 debug uses to it, insert debug bind insns before death insns,
10616 reset debug insns that refer to pending uses at the end.
10617 * rtl.h (make_debug_expr_from_rtl): New prototype.
10618 * varasm.c (make_debug_expr_from_rtl): New function.
10619
10620 2010-05-05 Jan Hubicka <jh@suse.cz>
10621
10622 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
10623 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10624 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10625 lto_varpool_encoder_deref, lto_varpool_encoder_size,
10626 lto_varpool_encoder_encode_initializer_p,
10627 lto_set_varpool_encoder_encode_initializer): New functions.
10628 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
10629 call output_varpool.
10630 (input_varpool_node): Do not always set analyzed.
10631 (input_cgraph_1): Return vector of cgraph nodes.
10632 (input_varpool_1): Return vector of varpools.
10633 (input_cgraph): Free the vectors.
10634 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10635 output only initializers needed.
10636 (lto_output): Only call output_cgraph.
10637 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10638 * lto-section-out.c (lto_new_out_decl_state): Initialize
10639 state->varpool_node_encoder.
10640 * lto-streamer.h (lto_varpool_encoder_d): New.
10641 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10642 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10643 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10644 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10645 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10646 Declare.
10647 (output_varpool, input_varpool): Remove declarations.
10648
10649 2010-05-05 Jan Hubicka <jh@suse.cz>
10650
10651 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10652 with body can prevail.
10653
10654 2010-05-05 Jan Hubicka <jh@suse.cz>
10655
10656 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10657 size.
10658
10659 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10660
10661 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10662
10663 * gengtype.h (erro_at_line): Constify pos argument.
10664
10665 * gengtype.c: Include hashtab.h.
10666 (enum gc_used): Document GC_MAYBE_POINTED_TO.
10667 (error_at_line): Constify pos argument.
10668 (do_typedef): Initialize p->opt field.
10669 (get_file_gtfilename): Fix comment typo.
10670 (struct walk_type_data): Constify line field.
10671 (get_output_file_for_structure): New function.
10672 (write_local_func_for_structure): Constify orig_s argument.
10673 Use get_output_file_for_structure.
10674 (write_func_for_structure): Use get_output_file_for_structure.
10675 (INDENT): New define.
10676 (dump_pair, dump_type, dump_type_list, dump_typekind)
10677 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10678 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10679 functions.
10680 (seen_types): New variable.
10681 (main): New variable do_dump. Process "-d" command line option.
10682 Call dump_everything if dump requested.
10683
10684 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10685
10686 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10687 in a temporary instead of invoking the macro multiple times.
10688 (track_expr_p): Likewise.
10689
10690 2010-05-04 Neil Vachharajani <nvachhar@google.com>
10691
10692 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10693 per new semantics.
10694 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10695 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
10696 conditions for printing notes.
10697 * common.opt (-Wcoverage-mismatch): Allow negative, default to
10698 true, update documentation.
10699 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
10700
10701 2010-05-04 Jakub Jelinek <jakub@redhat.com>
10702
10703 PR c/43981
10704 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
10705 on dimen.
10706
10707 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10708
10709 PR target/43799
10710 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
10711 (*sse_prologue_save_insn1): Likewise.
10712 (SSE prologue save splitter): Likewise.
10713
10714 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
10715
10716 * tree.c (free_lang_data_in_one_sizepos): New inline function.
10717 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
10718 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
10719 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
10720 all decls. Call it on DECL_FIELD_OFFSET of fields.
10721 (find_decls_types_r): Follow DECL_VALUE_EXPR.
10722 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
10723
10724 2010-05-04 Martin Jambor <mjambor@suse.cz>
10725
10726 * tree-sra.c (build_access_from_expr_1): The first parameter type
10727 changed to simple tree.
10728 (build_access_from_expr): Likewise, gsi parameter was eliminated.
10729 (scan_assign_result): Renamed to assignment_mod_result, enum elements
10730 renamed as well.
10731 (build_accesses_from_assign): Removed all parameters except for a
10732 simple gimple statement. Now returns a simple bool.
10733 (scan_function): All non-analysis parts moved to separate functions
10734 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
10735 parameters and updated both callers.
10736 (sra_modify_expr): Removed parameter data.
10737 (sra_modify_function_body): New function.
10738 (perform_intra_sra): Call sra_modify_function_body to modify the
10739 function body.
10740 (replace_removed_params_ssa_names): Parameter data changed into
10741 adjustments vector.
10742 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
10743 changed the parameter dont_convert to convert with the opposite
10744 meaning.
10745 (sra_ipa_modify_assign): Parameter data changed into adjustments
10746 vector, return value changed to bool.
10747 (ipa_sra_modify_function_body): New function.
10748 (sra_ipa_reset_debug_stmts): Updated a comment.
10749 (modify_function): Use ipa_sra_modify_function_body to modify function
10750 body.
10751
10752 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10753
10754 PR middle-end/43671
10755 * alias.c (true_dependence): Handle the same VALUE in x and mem.
10756 (canon_true_dependence): Likewise.
10757 (write_dependence_p): Likewise.
10758
10759 2010-05-04 Jan Hubicka <jh@suse.cz>
10760
10761 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
10762 * cgraphbuild.c: Include ipa-utils.h
10763 (record_reference_ctx): New struct.
10764 (record_reference): Simplify to work on initializers; not statements.
10765 (mark_address, mark_load, mark_store): New.
10766 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10767 walk PHI nodes too.
10768 (record_references_in_initializer): Update use of record_reference.
10769 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10770 walk PHI nodes too.
10771
10772 2010-05-04 Jan Hubicka <jh@suse.cz>
10773
10774 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
10775 node will be removed anyway.
10776 (lto_varpool_replace_node): Allow also unanalyzed nodes;
10777 relink aliases of node into prevailing node.
10778 * varpool.c (varpool_remove_node): Remove aliases properly;
10779 when removing node, remove all its aliases too; remove DECL_INITIAL
10780 of removed node; ggc_free the varpool node.
10781
10782 2010-05-04 Richard Guenther <rguenther@suse.de>
10783
10784 PR tree-optimization/43879
10785 * tree-ssa-structalias.c (alias_get_name): Use
10786 DECL_ASSEMBLER_NAME if available.
10787 (create_function_info_for): Return the varinfo node.
10788 (ipa_pta_execute): Associate same-body aliases and extra names
10789 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
10790
10791 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
10792
10793 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
10794
10795 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
10796
10797 PR bootstrap/43964
10798 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
10799 only if HONOR_REG_ALLOC_ORDER is not defined.
10800
10801 2010-05-04 Richard Guenther <rguenther@suse.de>
10802
10803 PR tree-optimization/43949
10804 * tree-vrp.c (extract_range_from_binary_expr): Only handle
10805 TRUNC_MOD_EXPR.
10806
10807 2010-04-26 Jason Merrill <jason@redhat.com>
10808
10809 * c.opt (-fstrict-enums): New.
10810 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
10811
10812 2010-05-03 David Ung <davidu@mips.com>
10813 James E. Wilson <wilson@codesourcery.com>
10814
10815 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
10816 emit the trap instruction before the divide for TUNE_74K.
10817
10818 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
10819
10820 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
10821 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
10822 based on the above, for new target hook.
10823
10824 * hooks.c (hook_bool_mode_true): New generic hook.
10825 * hooks.h (hook_bool_mode_true): Add prototype.
10826
10827 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
10828 target hook.
10829 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10830 target hook, set to hook_bool_mode_false.
10831 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10832 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10833 with targetm.small_register_classes_for_mode_p.
10834 (find_reusable_reload): Likewise.
10835 (combine_reloads): Likewise.
10836 * reload1.c (reload_as_needed): Likewise.
10837 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10838 * ifcvt.c (noce_process_if_block, check_cond_move_block,
10839 dead_or_predicable): Likewise.
10840 * regmove.c (optimize_reg_copy_1): Likewise.
10841 * calls.c (prepare_call_address): Likewise.
10842 (precompute_register_parameters): Likewise.
10843
10844 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10845 hook definition.
10846 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10847 implementation of the hook that considers all register classes
10848 small except for SH64.
10849 (sh_override_options): Use the new hook.
10850 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10851 Add prototype.
10852
10853 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10854 hook definition.
10855 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10856 implementation of the hook that considers all register classes
10857 small for THUMB1.
10858 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10859 Add prototype.
10860
10861 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10862 hook definition.
10863 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10864 implementation of the hook that considers all register classes
10865 small for MIPS16.
10866 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10867 Add prototype.
10868
10869 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10870 hook definition.
10871 * config/m32c/m32c.h: Likewise.
10872 * config/pdp11/pdp11.h: Likewise.
10873 * config/avr/avr.h: Likewise.
10874 * config/xtensa/xtensa.h: Likewise.
10875 * config/m68hc11/m68hc11.h: Likewise.
10876 * config/mn10300/mn10300.h: Likewise.
10877 * config/mcore/mcore.h: Likewise.
10878 * config/h8300/h8300.h: Likewise.
10879 * config/bfin/bfin.h: Likewise.
10880
10881 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10882 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10883
10884 2010-05-03 Anatoly Sokolov <aesok@post.ru>
10885
10886 * double-int.h (tree_to_double_int): Remove macro.
10887 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10888 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10889 (tree_to_double_int): New function.
10890 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10891 Move ...
10892 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10893
10894 2010-05-03 Richard Guenther <rguenther@suse.de>
10895
10896 PR tree-optimization/43971
10897 * tree-ssa-structalias.c (get_constraint_for_1): Fix
10898 constraints in the !flag_delete_null_pointer_checks case.
10899
10900 2010-05-03 Jakub Jelinek <jakub@redhat.com>
10901
10902 PR debug/43972
10903 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10904 result mode matches original rtl mode.
10905
10906 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
10907
10908 PR target/43888
10909 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10910
10911 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10912
10913 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10914 when processing flag options.
10915
10916 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10917
10918 * gcov-iov.c (main): Change format string placeholder
10919 from %#08x to 0x%08x.
10920 * genchecksum.c (dosum): Change format string placeholder
10921 from %#02x to 0x%02x.
10922
10923 2010-05-02 Richard Guenther <rguenther@suse.de>
10924
10925 PR tree-optimization/43879
10926 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10927
10928 2010-05-02 Bruno Haible <bruno@clisp.org>
10929
10930 * doc/extend.texi (Function Attributes): Fix a typo.
10931
10932 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10933
10934 Revert:
10935 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10936 placeholder from 0x%x to %#x.
10937 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10938 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10939 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10940 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10941 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10942 * config/i386/i386.c (ix86_target_string): Ditto.
10943 * config/i386/i386.c (output_pic_addr_const): Ditto.
10944 (print_operand): Ditto.
10945
10946 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10947
10948 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10949 placeholder from 0x%x to %#x.
10950 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10951 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10952 (ASM_OUTPUT_DEBUG_DATA): Ditto.
10953 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10954 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10955 * optc-gen.awk: Ditto.
10956 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10957 (HOST_WIDE_INT_PRINT_HEX): Ditto.
10958 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10959 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10960
10961 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10962
10963 * target.h (struct calls): Add function_value_regno_p field.
10964 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10965 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10966 * targhooks.c (default_function_value_regno_p): New function.
10967 * targhooks.h (default_function_value_regno_p): Declare function.
10968 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10969 * builtins.c. (apply_result_size): (Ditto.).
10970 * combine.c. (likely_spilled_retval_p): (Ditto.).
10971 * mode-switching.c. Include 'target.h'.
10972 (create_pre_exit): Use function_value_regno_p hook.
10973 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10974 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10975 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10976
10977 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10978 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10979 (ix86_function_value_regno_p): Declare as static, change argument
10980 type to const unsigned int.
10981 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10982
10983 2010-05-01 Richard Guenther <rguenther@suse.de>
10984
10985 PR tree-optimization/43949
10986 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10987 types.
10988 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10989
10990 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10991
10992 * rtl.h (CONST_DOUBLE_P): Define.
10993 (rtx_to_double_int): Declare.
10994 * emit-rtl.c (rtx_to_double_int): New function.
10995 * dwarf2out.c (insert_double): New function.
10996 (loc_descriptor, add_const_value_attribute): Clean up, use
10997 rtx_to_double_int and insert_double functions.
10998
10999 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
11000
11001 * doc/extend.texi (Inline): Add missing return keyword to examples.
11002 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
11003 "command-line".
11004
11005 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
11006
11007 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
11008 the variable part of the offset as well. Use highest_pow2_factor for
11009 all alignment checks.
11010
11011 2010-04-30 Richard Guenther <rguenther@suse.de>
11012
11013 PR tree-optimization/43879
11014 * tree-ssa-structalias.c (type_could_have_pointers): Functions
11015 can have pointers.
11016
11017 2010-04-30 Jan Hubicka <jh@suse.cz>
11018
11019 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
11020 varpool.
11021 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
11022
11023 2010-04-30 Jan Hubicka <jh@suse.cz>
11024
11025 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
11026 New.
11027 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
11028 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
11029 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
11030 cgraph_node_set_needs_ltrans_p): Remove.
11031
11032 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
11033
11034 * sdbout.c: Include vec.h, do not include varray.h.
11035 (deferred_global_decls, sdbout_global_decl,
11036 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
11037 * toplev.c: Do not include varray.h.
11038 (dump_memory_report): Do not dump VARRAY statistics.
11039 * gengtype.c (open_base_file): Ignore varray.h.
11040 * Makefile.in: Update for abovementioned changes.
11041 Remove all traces of varray.c and varray.h.
11042 * varray.c: Remove file.
11043 * varray.h: Remove file.
11044
11045 2010-04-30 Jan Hubicka <jh@suse.cz>
11046
11047 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
11048 references.
11049
11050 2010-04-30 Jan Hubicka <jh@suse.cz>
11051
11052 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
11053 needed.
11054
11055 2010-04-30 Richard Guenther <rguenther@suse.de>
11056
11057 * tree-ssa-structalias.c (get_constraint_for_1): Generate
11058 constraints for CONSTRUCTOR.
11059
11060 2010-04-30 Richard Guenther <rguenther@suse.de>
11061
11062 PR lto/43946
11063 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
11064 first after all lowering passes.
11065
11066 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
11067
11068 * toplev.c: Include varray.h for statistics dumping.
11069 * tree.h: Do not declare varray_head_tag.
11070 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
11071 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
11072 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
11073 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
11074 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
11075 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
11076 c-common.c, c-common.h, reg-stack.c, basic-block.h,
11077 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
11078 include varray.h.
11079 * Makefile.in: Update for abovementioned changes.
11080
11081 2010-04-30 Jakub Jelinek <jakub@redhat.com>
11082
11083 PR debug/43942
11084 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
11085
11086 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
11087
11088 * config/picochip/picochip.c (picochip_legitimize_address): Define.
11089 Use this function to do machine-specific conversion.
11090 (picochip_legitimize_reload_address): Likewise.
11091 (picochip_legitimate_address_p): Check valid base register only if
11092 strict.
11093 (picochip_check_conditional_copy): Check for modw only if opnd is
11094 register.
11095 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
11096 to call the function in c.
11097 * config/picochip/picochip-protos.h
11098 (picochip_legitimize_reload_address): Define.
11099 * config/picochip/picochip.md (supported_compare1): Define.
11100
11101 2010-04-30 Jan Hubicka <jh@suse.cz>
11102
11103 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
11104 (cgraph_global_info): Remove inlined.
11105 (LTO_cgraph_tag_names): Remove.
11106 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
11107 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
11108 simplify cgraph tags and document.
11109 (lto_output_node): Use only LTO_cgraph_unavail_node and
11110 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
11111 for_functions_valid, global info, process and output flags.
11112 (input_overwrite_node): Initialize estimated stack size and
11113 estimated growth. Do not read flags we no longer store.
11114 (input_node): Likewise do not read info no longer stored.
11115 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
11116 flag.
11117
11118 2010-04-30 Richard Guenther <rguenther@suse.de>
11119
11120 PR tree-optimization/43879
11121 * tree-ssa-structalias.c (get_constraint_for_1): Properly
11122 handle non-zero initializers.
11123
11124 2010-04-30 Richard Guenther <rguenther@suse.de>
11125
11126 * builtins.c (fold_builtin_1): Delete free (0).
11127
11128 2010-04-29 Jan Hubicka <jh@suse.cz>
11129
11130 * gengtype.c (open_base_files): Add lto-streamer.h
11131 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
11132 (pass_ipa_cp): GGC collect.
11133 * toplev. (compile_file): Do not output symbols.
11134 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
11135 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
11136 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
11137 * lto-section-in.c: Include ggc.h
11138 (lto_new_in_decl_state): Alloc in GGC.
11139 (lto_delete_in_decl_state): Likewise.
11140 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
11141 Collect.
11142
11143 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11144
11145 PR target/42895
11146 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
11147 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
11148 (HONOR_REG_ALLOC_ORDER): Describe new macro.
11149 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
11150 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
11151 account only if HONOR_REG_ALLOC_ORDER is not defined.
11152 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
11153 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
11154
11155 2010-04-29 Jon Grant <04@jguk.org>
11156
11157 * collect2.c (vflag): Change type from int to bool.
11158 (debug): Likewise.
11159 (helpflag): New global bool.
11160 (main): Set vflag and debug with boolean, not integer truth values.
11161 Accept new "--help" option and output usage text if found.
11162 * collect2.h (vflag): Update prototype.
11163 (debug): Likewise.
11164
11165 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11166
11167 PR bootstrap/43936
11168 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
11169
11170 2010-04-29 Richard Guenther <rguenther@suse.de>
11171
11172 PR bootstrap/43935
11173 * plugin.h (invoke_plugin_callbacks): Annotate arguments
11174 with ATTRIBUTE_UNUSED.
11175
11176 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11177
11178 PR target/43921
11179 * config/i386/i386.c (get_some_local_dynamic_name): Replace
11180 INSN_P with NONDEBUG_INSN_P.
11181 (distance_non_agu_define): Likewise.
11182 (distance_agu_use): Likewise.
11183
11184 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11185
11186 From Dominique d'Humieres <dominiq@lps.ens.fr>
11187 PR bootstrap/43858
11188 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
11189 test_set.
11190
11191 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
11192
11193 * plugin.h (invoke_plugin_callbacks): New inline function.
11194 * plugin.c (flag_plugin_added): New global flag.
11195 (add_new_plugin): Initialize above flag.
11196 (invoke_plugin_callbacks): Rename to ...
11197 (invoke_plugin_callbacks_full): ... this.
11198
11199 2010-04-28 Jan Hubicka <jh@suse.cz>
11200
11201 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
11202 (lto_varpool_replace_node): New.
11203 (lto_symtab_resolve_symbols): Resolve varpool nodes.
11204 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
11205 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
11206 * cgraph.h (varpool_node_ptr): New type.
11207 (varpool_node_ptr): New vector.
11208 (varpool_node_set_def): New structure.
11209 (varpool_node_set): New type.
11210 (varpool_node_set): New vector.
11211 (varpool_node_set_element_def): New structure.
11212 (varpool_node_set_element, const_varpool_node_set_element): New types.
11213 (varpool_node_set_iterator): New type.
11214 (varpool_node): Add prev pointers, add used_from_other_partition,
11215 in_other_partition.
11216 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11217 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11218 varpool_get_node, varpool_remove_node): Declare.
11219 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11220 varpool_node_set_size): New inlines.
11221 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11222 * tree-pass.h (varpool_node_set_def): Forward declare.
11223 (ipa_opt_pass_d): Summary writting takes vnode sets too.
11224 (ipa_write_optimization_summaries): Update prototype.
11225 * ipa-cp.c (ipcp_write_summary): Update.
11226 * ipa-reference.c (ipa_reference_write_summary): Update.
11227 * lto-cgraph.c (lto_output_varpool_node): New static function.
11228 (output_varpool): New function.
11229 (input_varpool_node): New static function.
11230 (input_varpool_1): New function.
11231 (input_cgraph): Input varpool.
11232 * ipa-pure-const.c (pure_const_write_summary): Update.
11233 * lto-streamer-out.c (lto_output): Update, output varpool too.
11234 (write_global_stream): Kill WPA hack.
11235 (produce_asm_for_decls): Update.
11236 (output_alias_pair_p): Handle variables.
11237 (output_unreferenced_globals): Output only needed partition of varpool.
11238 * ipa-inline.c (inline_write_summary): Update.
11239 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11240 cgraph.
11241 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11242 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11243 varpool_node_set_new, varpool_node_set_add,
11244 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11245 debug_varpool_node_set): New functions.
11246 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11247 (execute_one_pass): Process new decls too.
11248 (ipa_write_summaries_2): Pass around vsets.
11249 (ipa_write_summaries_1): Likewise.
11250 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11251 to add.
11252 (ipa_write_optimization_summaries_1): Pass around vsets.
11253 (ipa_write_optimization_summaries): Likewise.
11254 * varpool.c (varpool_get_node): New.
11255 (varpool_node): Update doubly linked lists.
11256 (varpool_remove_node): New.
11257 (dump_varpool_node): More dumping.
11258 (varpool_enqueue_needed_node): Update doubly linked lists.
11259 (decide_is_variable_needed): Kill ltrans hack.
11260 (varpool_finalize_decl): Kill lto hack.
11261 (varpool_assemble_decl): Skip decls in other partitions.
11262 (varpool_assemble_pending_decls): Update doubly linkes lists.
11263 (varpool_empty_needed_queue): Likewise.
11264 (varpool_extra_name_alias): Likewise.
11265 * lto-streamer.c (lto_get_section_name): Add vars section.
11266 * lto-streamer.h (lto_section_type): Update.
11267 (output_varpool, input_varpool): Declare.
11268
11269 2010-04-28 Mike Stump <mikestump@comcast.net>
11270
11271 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11272
11273 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11274
11275 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11276 record or union type with RECORD_OR_UNION_TYPE_P predicate.
11277 (lto_input_ts_type_tree_pointers): Likewise.
11278 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11279 (lto_output_ts_type_tree_pointers): Likewise.
11280
11281 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11282
11283 Uniquization of constants at the Tree level
11284 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
11285 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
11286 bit to the end.
11287 (tree_output_constant_def): Declare.
11288 * gimplify.c (gimplify_init_constructor): When using block copy, first
11289 uniquize the constant constructor on the RHS.
11290 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11291 DECL_IN_CONSTANT_POOL flag.
11292 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
11293 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
11294 constant pool.
11295 (assemble_variable): Deal with symbols belonging to the tree constant
11296 pool.
11297 (get_constant_section): Add ALIGN parameter and simplify.
11298 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
11299 (assemble_constant_contents): Use the expression of the VAR_DECL.
11300 (output_constant_def_contents): Use the alignment of the VAR_DECL.
11301 (tree_output_constant_def): New global function.
11302 (mark_constant): Use the expression of the VAR_DECL.
11303 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
11304 its expression.
11305 (output_object_block): Likewise and assemble the expression.
11306
11307 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11308
11309 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
11310 hash_tree, eq_tree): New tree hash table.
11311 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
11312 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
11313 lto_orig_address_remove): Reimplement.
11314
11315 2010-04-28 Xinliang David Li <davidxl@google.com>
11316
11317 PR c/42643
11318 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
11319 (compute_uninit_opnds_pos): New function.
11320 (is_non_loop_exit_postdominating): New function.
11321 (compute_control_dep_chain): New function.
11322 (find_pdom): New function.
11323 (convert_control_dep_chain_into_preds): New function.
11324 (find_predicates): New function.
11325 (find_control_equiv_block): New function.
11326 (collect_phi_def_edges): New function.
11327 (find_def_preds): New function.
11328 (find_dom): New function.
11329 (dump_predicates): New function.
11330 (get_cmp_code): New function.
11331 (is_value_included_in): New function.
11332 (find_matching_predicate_in_rest_chains): New function.
11333 (use_pred_not_overlap_with_undef_path_pred): New function.
11334 (is_use_properly_guarded): New function.
11335 (normalize_cond_1): New function.
11336 (is_and_or_or): New function.
11337 (normalize_cond): New function.
11338 (is_gcond_subset_of): New function.
11339 (is_subset_of_any): New function.
11340 (is_or_set_subset_of): New function.
11341 (is_and_set_subset_of): New function.
11342 (is_norm_cond_subset_of): New function.
11343 (is_pred_expr_subset_of): New function.
11344 (is_pred_chain_subset_of): New function.
11345 (is_included_in): New function.
11346 (is_superset_of): New function.
11347 (find_uninit_use): New function.
11348 (warn_uninitialized_phi): New function.
11349 (compute_possibly_undefined_names): New function.
11350 (ssa_undefined_value_p): New function.
11351 (execute_late_warn_uninitialized): New function.
11352 * tree-ssa.c (ssa_undefined_value_p): Removed.
11353 (warn_uninit): Changed to extern.
11354 (warn_uninitialized_phi): Removed.
11355 (warn_uninitialized_vars): Changed to extern.
11356 (execute_late_warn_uninitialized): Removed
11357 * tree-flow.h: Add new prototypes.
11358 * timevar.def: Add new time variable.
11359 * Makefile.in: Add new build file.
11360
11361 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
11362
11363 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11364 type if available.
11365
11366 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11367
11368 PR target/22224
11369 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
11370
11371 2010-04-28 Martin Jambor <mjambor@suse.cz>
11372
11373 * cgraph.h (struct cgraph_node): New field indirect_calls.
11374 (struct cgraph_indirect_call_info): New type.
11375 (struct cgraph_edge): Removed field indirect_call. New fields
11376 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
11377 (cgraph_create_indirect_edge): Declare.
11378 (cgraph_make_edge_direct): Likewise.
11379 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
11380 * ipa-prop.h (struct ipa_param_call_note): Removed.
11381 (struct ipa_node_params): Removed field param_calls.
11382 (ipa_create_all_structures_for_iinln): Declare.
11383 * cgraph.c: Described indirect edges and uids in initial comment.
11384 (cgraph_add_edge_to_call_site_hash): New function.
11385 (cgraph_edge): Search also among the indirect edges, use
11386 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
11387 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
11388 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
11389 site hash.
11390 (initialize_inline_failed): Assign a reason to indirect edges.
11391 (cgraph_create_edge_1): New function.
11392 (cgraph_create_edge): Moved some functionality to
11393 cgraph_create_edge_1.
11394 (cgraph_create_indirect_edge): New function.
11395 (cgraph_edge_remove_callee): Add an assert checking for
11396 non-indirectness.
11397 (cgraph_edge_remove_caller): Special-case indirect edges.
11398 (cgraph_remove_edge): Likewise.
11399 (cgraph_set_edge_callee): New function.
11400 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
11401 (cgraph_make_edge_direct): New function.
11402 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
11403 the declaration of the call statement matches.
11404 (cgraph_node_remove_callees): Special-case indirect edges.
11405 (cgraph_clone_edge): Likewise.
11406 (cgraph_clone_node): Clone also the indirect edges.
11407 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
11408 indirect_call, dump count of indirect_calls edges.
11409 * ipa-prop.c (iinlining_processed_edges): New variable.
11410 (ipa_note_param_call): Create indirect edges instead of
11411 creating notes. New parameter node.
11412 (ipa_analyze_call_uses): New parameter node, pass it on to
11413 ipa_note_param_call.
11414 (ipa_analyze_stmt_uses): Likewise.
11415 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
11416 (print_edge_addition_message): Work on edges rather than on notes.
11417 (update_call_notes_after_inlining): Likewise, renamed to
11418 update_indirect_edges_after_inlining.
11419 (ipa_create_all_structures_for_iinln): New function.
11420 (ipa_free_node_params_substructures): Do not free notes.
11421 (ipa_edge_duplication_hook): Propagate bits within
11422 iinlining_processed_edges bitmap.
11423 (ipa_node_duplication_hook): Do not duplicate notes.
11424 (free_all_ipa_structures_after_ipa_cp): Renamed to
11425 ipa_free_all_structures_after_ipa_cp.
11426 (free_all_ipa_structures_after_iinln): Renamed to
11427 ipa_free_all_structures_after_iinln.
11428 (ipa_write_param_call_note): Removed.
11429 (ipa_read_param_call_note): Removed.
11430 (ipa_write_indirect_edge_info): New function.
11431 (ipa_read_indirect_edge_info): Likewise.
11432 (ipa_write_node_info): Do not stream notes, do stream information
11433 in indirect edges.
11434 (ipa_read_node_info): Likewise.
11435 (lto_ipa_fixup_call_notes): Removed.
11436 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
11437 * ipa-inline.c (pass_ipa_inline): Likewise.
11438 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
11439 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
11440 * tree-inline.c (copy_bb): Removed an unnecessary double check for
11441 is_gimple_call.
11442 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
11443 edges.
11444 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
11445 (output_cgraph): Stream also indirect edges.
11446 (lto_output_edge): Added capability to stream indirect edges.
11447 (input_edge): Likewise.
11448 (input_cgraph_1): Likewise.
11449 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
11450 of indirect edges.
11451
11452 2010-04-28 Richard Guenther <rguenther@suse.de>
11453
11454 PR tree-optimization/43879
11455 PR tree-optimization/43909
11456 * tree-ssa-structalias.c (struct variable_info): Add
11457 only_restrict_pointers flag.
11458 (new_var_info): Initialize it. Increment stats.total_vars here.
11459 (create_function_info_for): Do not increment stats.total_vars here.
11460 (get_function_part_constraint): Fix build with C++.
11461 (insert_into_field_list): Remove.
11462 (push_fields_onto_fieldstack): Properly merge fields.
11463 (create_variable_info_for): Split and simplify.
11464 (create_variable_info_for_1): New piece.
11465 (intra_create_variable_infos): Properly make restrict constraints
11466 from parameters.
11467
11468 2010-04-28 Richard Guenther <rguenther@suse.de>
11469
11470 PR c++/43880
11471 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
11472
11473 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
11474 Jan Hubicka <hubicka@ucw.cz>
11475
11476 * doc/invoke.texi (-Wsuggest-attribute=const,
11477 -Wsuggest-attribute=pure): Document.
11478 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
11479 (function_always_visible_to_compiler_p,
11480 suggest_attribute, warn_function_pure, warn_function_const):
11481 New functions.
11482 (check_call): Improve debug info.
11483 (analyze_function): Do not check availability.
11484 (add_new_function): Check availability.
11485 (propagate): Output warnings.
11486 (skip_function_for_local_pure_const): New function.
11487 (local_pure_const): Use it; output warnings.
11488 * common.opt (Wsuggest-attribute=const,
11489 Wsuggest-attribute=pure): New.
11490
11491 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11492
11493 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
11494 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
11495 or DW_CFA_def_cfa_offset{,_sf}.
11496
11497 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
11498
11499 * tree.h: Fix truncated long macros.
11500
11501 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
11502
11503 * collect2.c (TARGET_64BIT): Redefine to target's default.
11504 * tlink.c: Likewise.
11505 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
11506 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
11507 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
11508 for underscoring __USER_LABEL_PREFIX__.
11509 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
11510 (SUB_LINK_ENTRY32): New.
11511 (SUB_LINK_ENTRY64): New.
11512 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
11513 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
11514 (SUB_LINK_ENTRY64): New.
11515 (SUB_LINK_ENTRY): New.
11516 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
11517 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
11518 x64 target is choosen.
11519 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
11520 * configure: Regenerated.
11521 * configure.ac (leading-mingw64-underscores): Option added.
11522
11523 2010-04-27 Jan Hubicka <jh@suse.cz>
11524
11525 * doc/invoke.texi (-fipa-profile): Document.
11526 * opts.c (decode_options): Enable ipa-profile at -O1.
11527 * timevar.def (TV_IPA_PROFILE): Define.
11528 * common.opt (fipa-profile): Add.
11529 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
11530 flag for clones.
11531 (cgraph_propagate_frequency): Handle only local ones.
11532 * tree-pass.h (pass_ipa_profile): Declare.
11533 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
11534 (pass_ipa_profile): Use TV_IPA_PROFILE.
11535 * ipa.c (ipa_profile): New function.
11536 (gate_ipa_profile): Likewise.
11537 (pass_ipa_profile): New global variable.
11538 * passes.c (pass_ipa_profile): New.
11539
11540 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
11541
11542 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
11543
11544 2010-04-27 Martin Jambor <mjambor@suse.cz>
11545
11546 PR middle-end/43812
11547 * ipa.c (dissolve_same_comdat_group_list): New function.
11548 (function_and_variable_visibility): Call
11549 dissolve_same_comdat_group_list when comdat group contains external or
11550 newly local nodes.
11551 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
11552 lists are circular and that they contain only DECL_ONE_ONLY nodes.
11553
11554 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
11555
11556 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
11557 (const_hash_1) <VECTOR_CST>: New case.
11558 (compare_constant) <VECTOR_CST>: Likewise.
11559 <ADDR_EXPR>: Deal with LABEL_REFs.
11560 (copy_constant) <VECTOR_CST>: New case.
11561
11562 2010-04-27 Jan Hubicka <jh@suse.cz>
11563
11564 * cgraph.c (cgraph_propagate_frequency): New function.
11565 * cgraph.h (cgraph_propagate_frequency): Declare.
11566 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
11567 cgraph_propagate_frequency.
11568
11569 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11570
11571 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
11572
11573 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
11574
11575 PR target/40657
11576 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
11577 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
11578 here to determine which regs to push and how much stack to reserve.
11579
11580 2010-04-27 Jie Zhang <jie@codesourcery.com>
11581
11582 * doc/gimple.texi (gimple_statement_with_ops): Remove
11583 addresses_taken field.
11584 (gimple_statement_with_memory_ops): Likewise.
11585
11586 2010-04-27 Jan Hubicka <jh@suse.cz>
11587
11588 * tree-inline.c (eni_inlining_weights): Remove.
11589 (estimate_num_insns): Special case more builtins.
11590
11591 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
11592
11593 PR c/32207
11594 * c-typeck.c (build_binary_op): Move forward check for comparison
11595 pointer with null pointer constant and adjust the diagnostic message.
11596
11597 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
11598
11599 PR lto/42776
11600 * configure.ac (gcc_cv_as_section_has_align): Set if installed
11601 binutils supports extended .section directive needed by LTO, or
11602 warn if older binutils found.
11603 (LTO_BINARY_READER): New AC_SUBST'd variable.
11604 (LTO_USE_LIBELF): Likewise.
11605 * gcc/config.gcc (lto_binary_reader): New target-specific configure
11606 variable.
11607 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
11608 (LTO_USE_LIBELF): Likewise.
11609 * configure: Regenerate.
11610
11611 * collect2.c (is_elf): Rename from this ...
11612 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
11613 object files in addition to ELF-formatted ones.
11614 (scan_prog_file): Caller updated. Also allow for LTO info marker
11615 symbol to be prefixed or not by an extra underscore.
11616
11617 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
11618 * config/i386/winnt.c: Also #include lto-streamer.h
11619 (i386_pe_asm_named_section): Specify 1-byte section alignment for
11620 LTO named sections.
11621 (i386_pe_asm_output_aligned_decl_common): Add comment.
11622 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
11623
11624 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
11625
11626 PR target/43889
11627 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
11628 Add missing earlyclobber for second alternative.
11629
11630 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
11631
11632 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
11633 bits for artificial defs at the top of the block.
11634 * fwprop.c (single_def_use_enter_block): Don't call it.
11635
11636 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
11637
11638 PR 43715
11639 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11640 instead of "$gcc_cv_objdump -T".
11641 Use "-undefined dynamic_lookup" on darwin.
11642 * gcc/configure: Regenerate.
11643
11644 2010-04-26 Jakub Jelinek <jakub@redhat.com>
11645
11646 PR c/43893
11647 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11648
11649 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11650
11651 * c-parser.c (struct c_token): Move location field up.
11652 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11653 (struct c_declspecs): Convert typespec_word, storage_class, and
11654 default_int_p into bitfields.
11655 (struct c_declarator): Move loc field up.
11656
11657 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11658
11659 * cfgloop.h (struct loop): Move can_be_parallel field up.
11660 * ipa-prop.h (struct ip_node_params): Move bitfields up.
11661 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11662 down.
11663 (struct iv_cand): Convert pos field into a bitfield.
11664 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11665 field up.
11666 (struct _stmt_vec_info): Shuffle fields for better packing.
11667
11668 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11669
11670 * varasm.c (IN_NAMED_SECTION): Remove guard.
11671 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11672 (IN_NAMED_SECTION_P): ...this.
11673 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11674 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11675
11676 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11677
11678 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11679 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
11680 of shadowing it. Fix comments.
11681
11682 2010-04-26 Jan Hubicka <jh@suse.cz>
11683
11684 * cgraph.c (cgraph_create_node): Set node frequency to normal.
11685 (cgraph_clone_node): Copy function frequency.
11686 * cgraph.h (node_frequency): New enum
11687 (struct cgraph_node): Add.
11688 * final.c (rest_of_clean_state): Update.
11689 * lto-cgraph.c (lto_output_node): Output node frequency.
11690 (input_overwrite_node): Input node frequency.
11691 * tre-ssa-loop-ivopts (computation_cost): Update.
11692 * lto-streamer-out.c (output_function): Do not output function
11693 frequency.
11694 * predict.c (maybe_hot_frequency_p): Update and handle functions
11695 executed once.
11696 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11697 attribute lookup.
11698 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
11699 (compute_function_frequency): Set noreturn functions to be executed
11700 once.
11701 (choose_function_section): Update.
11702 * lto-streamer-in.c (input_function): Do not input function frequency.
11703 * function.c (allocate_struct_function): Do not initialize function
11704 frequency.
11705 * function.h (function_frequency): Remove.
11706 (struct function): Remove function frequency.
11707 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
11708 (try_update): Update.
11709 * tree-inline.c (initialize_cfun): Do not update function frequency.
11710 * passes.c (pass_init_dump_file): Update.
11711 * i386.c (ix86_compute_frame_layout): Update.
11712 (ix86_pad_returns): Update.
11713
11714 2010-04-26 Jie Zhang <jie@codesourcery.com>
11715
11716 PR tree-optimization/43833
11717 * tree-vrp.c (range_int_cst_p): New.
11718 (range_int_cst_singleton_p): New.
11719 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
11720 when both operands are constants. Use range_int_cst_p in
11721 BIT_IOR_EXPR case.
11722
11723 2010-04-26 Jan Hubicka <jh@suse.cz>
11724
11725 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
11726
11727 2010-04-26 Richard Guenther <rguenther@suse.de>
11728
11729 PR lto/43080
11730 * gimple.c (gimple_decl_printable_name): Deal gracefully
11731 with a NULL DECL_NAME.
11732
11733 2010-04-26 Richard Guenther <rguenther@suse.de>
11734
11735 PR lto/42425
11736 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
11737 if emitting debug information and it is either a function
11738 or a namespace decl.
11739
11740 2010-04-26 Ira Rosen <irar@il.ibm.com>
11741
11742 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
11743 determine if the statement is vectorizable, and a macro to access it.
11744 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11745 Skip statements that can't be vectorized. If the analysis fails,
11746 mark the statement as unvectorizable if vectorizing basic block.
11747 (vect_compute_data_refs_alignment): Likewise.
11748 (vect_verify_datarefs_alignment): Skip statements marked as
11749 unvectorizable. Add print.
11750 (vect_analyze_group_access): Skip statements that can't be
11751 vectorized. If the analysis fails, mark the statement as
11752 unvectorizable if vectorizing basic block.
11753 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
11754 * tree-vect-stmts.c (vectorizable_store): Fix the number of
11755 generated stmts for SLP.
11756 (new_stmt_vec_info): Initialize the new field.
11757 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
11758 statements marked as unvectorizable.
11759
11760 2010-04-25 Joseph Myers <joseph@codesourcery.com>
11761
11762 * c-common.c (flag_isoc1x): New.
11763 (flag_isoc99): Update comment.
11764 * c-common.h (flag_isoc1x): New.
11765 (flag_isoc99): Update comment.
11766 * c-cppbuiltin.c (builtin_define_float_constants): Also define
11767 __<type>_DECIMAL_DIG__.
11768 * c-opts.c (set_std_c1x): New.
11769 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
11770 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
11771 * c.opt (-std=c1x, -std=gnu1x): New options.
11772 * doc/cpp.texi: Mention -std=c1x.
11773 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
11774 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
11775 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
11776 * doc/standards.texi: Mention C1X.
11777 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
11778 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
11779 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11780 Define for C1X.
11781
11782 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
11783
11784 * config/i386/gmon-sol2.c (_mcleanup): Change format string
11785 placeholder from 0x%x to %#x.
11786 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11787 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11788 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11789 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11790 * config/i386/i386.c (ix86_target_string): Ditto.
11791 (output_pic_addr_const): Ditto.
11792 (print_operand): Ditto.
11793
11794 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
11795
11796 * combine.c (find_split_point): Add third argument. Use it
11797 to find nested multiply-accumulate instructions. Adjust calls.
11798 (try_combine): Adjust call to find_split_point.
11799
11800 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
11801
11802 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
11803
11804 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
11805
11806 PR tree-optimization/41442
11807 * fold-const.c (merge_truthop_with_opposite_arm): New function.
11808 (fold_binary_loc): Call it.
11809
11810 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11811
11812 * toplev.c (general_init): Set default for fdiagnostics-show-option.
11813 * opts.c (common_handle_option): Allow disabling it.
11814 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
11815
11816 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
11817
11818 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
11819 between modes if both types are integral.
11820
11821 2010-04-23 Richard Guenther <rguenther@suse.de>
11822
11823 PR tree-optimization/43572
11824 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
11825
11826 2010-04-23 Richard Guenther <rguenther@suse.de>
11827
11828 PR lto/43455
11829 * tree-inline.c (tree_can_inline_p): Also check compatibility
11830 of return types.
11831
11832 2010-04-23 Martin Jambor <mjambor@suse.cz>
11833
11834 PR tree-optimization/43846
11835 * tree-sra.c (struct access): New flag grp_assignment_read.
11836 (build_accesses_from_assign): Set grp_assignment_read.
11837 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11838 (enum mark_read_status): New type.
11839 (analyze_access_subtree): Propagate grp_assignment_read, create
11840 accesses also if both direct_read and root->grp_assignment_read.
11841
11842 2010-04-23 Martin Jambor <mjambor@suse.cz>
11843
11844 PR middle-end/43835
11845 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11846 function does not have type attributes.
11847
11848 2010-04-23 Richard Guenther <rguenther@suse.de>
11849
11850 PR lto/42653
11851 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11852 of FUNCTION_DECLs.
11853
11854 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11855
11856 * sese.h (create_if_region_on_edge): Remove.
11857
11858 * sese.c (create_if_region_on_edge): Make static.
11859
11860 * tree-inline.c: Do not include ggc.h.
11861
11862 * expr.c: Do not include ggc.h.
11863
11864 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11865 dependencies.
11866
11867 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
11868
11869 PR target/43744
11870 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11871 in the middle of insns for casesi_worker_2.
11872
11873 2010-04-22 David Edelsohn <edelsohn@gnu.org>
11874
11875 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11876
11877 2010-04-22 Ira Rosen <irar@il.ibm.com>
11878
11879 PR tree-optimization/43842
11880 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11881 loop unrolling in update of exit phis. Fix comment.
11882 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11883 least two reduction statements in the loop before starting SLP
11884 analysis.
11885
11886 2010-04-22 Nick Clifton <nickc@redhat.com>
11887
11888 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11889
11890 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
11891
11892 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11893 to simplify a + ~a.
11894
11895 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11896
11897 * tree-parloops.c (loop_parallel_p): New argument
11898 parloop_obstack. Pass it down.
11899 (parallelize_loops): New variable parloop_obstack. Initialize it,
11900 pass it down, free it.
11901
11902 * tree-loop-linear.c (linear_transform_loops): Pass down
11903 lambda_obstack.
11904
11905 * tree-data-ref.h (lambda_compute_access_matrices): New argument
11906 of type struct obstack *.
11907
11908 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11909 scratch_obstack. Initialize it, pass down, free it.
11910
11911 * lambda.h (lambda_loop_new): Remove.
11912 (lambda_matrix_new, lambda_matrix_inverse)
11913 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11914 argument of type struct obstack *.
11915
11916 * lambda-trans.c (lambda_trans_matrix_new): New argument
11917 lambda_obstack. Pass it down, use obstack allocation for ret.
11918 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
11919 it down.
11920
11921 * lambda-mat.c (lambda_matrix_get_column)
11922 (lambda_matrix_project_to_null): Remove.
11923 (lambda_matrix_new): New argument lambda_obstack. Use obstack
11924 allocation for mat.
11925 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11926 lambda_obstack.
11927
11928 * lambda-code.c (lambda_loop_new): New function.
11929 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11930 (lambda_compute_auxillary_space, lambda_compute_target_space)
11931 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11932 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11933 (build_access_matrix): New argument lambda_obstack. Use obstack
11934 allocation for am.
11935 (lambda_compute_step_signs, lambda_compute_access_matrices): New
11936 argument lambda_obstack. Pass it down.
11937
11938 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11939
11940 * optabs.h (expand_widening_mult): Declare.
11941
11942 2010-04-22 Richard Guenther <rguenther@suse.de>
11943
11944 PR tree-optimization/43845
11945 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11946 lookup the CALL_EXPR function and arguments.
11947
11948 2010-04-22 Nick Clifton <nickc@redhat.com>
11949
11950 * config/stormy16/stormy16.c
11951 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11952 * config/stormy16/stormy16.h: Tidy up formatting.
11953 (DONT_USE_BUILTIN_SETJMP): Remove definition.
11954 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11955 (ineqbranchsi): Delete pattern.
11956 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11957 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11958 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11959 stormy16-lib2-ucmpsi2.c.
11960
11961 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11962
11963 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11964 df_simulate_find_noclobber_defs as appropriate. Keep track of an
11965 extra set merge_set_noclobber, and use it to relax the final test
11966 slightly.
11967 * df.h (df_simulate_find_noclobber_defs): Declare.
11968 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11969 conditional defs.
11970 (df_simulate_find_noclobber_defs): New function.
11971
11972 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
11973
11974 * config/i386/i386.md: Use {} around multi-line preparation statements.
11975
11976 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11977
11978 * c-tree.h (push_init_level, pop_init_level, set_init_index)
11979 (process_init_element): New argument of type struct obstack *.
11980
11981 * c-typeck.c (push_init_level, pop_init_level, set_designator)
11982 (set_init_index, set_init_label, set_nonincremental_init)
11983 (set_nonincremental_init_from_string, find_init_member)
11984 (output_init_element, output_pending_init_elements)
11985 (process_init_element): New argument braced_init_obstack. Pass it
11986 down.
11987 (push_range_stack, add_pending_init): New argument
11988 braced_init_obstack. Use obstack allocation.
11989
11990 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11991 braced_init_obstack. Pass it down.
11992 (c_parser_braced_init): New variables ret, braced_init_obstack.
11993 Initialize obstack, pass it down and finally free it.
11994
11995 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11996
11997 PR middle-end/29274
11998 * tree-pass.h (pass_optimize_widening_mul): Declare.
11999 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
12000 gate_optimize_widening_mul): New static functions.
12001 (pass_optimize_widening_mul): New.
12002 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
12003 <case MULT_EXPR>: Remove support for widening multiplies.
12004 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
12005 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
12006 simplify_gen_unary rather than directly building extensions.
12007 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
12008 WIDEN_MULT_EXPR.
12009 * expmed.c (expand_widening_mult): New function.
12010 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
12011
12012 2010-04-21 Jan Hubicka <jh@suse.cz>
12013
12014 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
12015 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
12016 * lto-wpa-fixup.c: Remove.
12017 * Makefile.in (lto-wpa-fixup.o): Remove.
12018 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
12019 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
12020 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
12021
12022 2010-04-21 Jan Hubicka <jh@suse.cz>
12023
12024 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
12025 add write_optimization_summary, read_optimization_summary.
12026 (ipa_write_summaries_of_cgraph_node_set): Remove.
12027 (ipa_write_optimization_summaries): Declare.
12028 (ipa_read_optimization_summaries): Declare.
12029 * ipa-cp.c (pass_ipa_cp): Update.
12030 * ipa-reference.c (pass_ipa_reference): Update.
12031 * ipa-pure-const.c (pass_ipa_pure_const): Update.
12032 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
12033 Update.
12034 * ipa-inline.c (pass_ipa_inline): Update.
12035 * ipa.c (pass_ipa_whole_program): Update.
12036 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
12037 * passes.c (ipa_write_summaries_1): Do not test wpa.
12038 (ipa_write_optimization_summaries_1): New.
12039 (ipa_write_optimization_summaries): New.
12040 (ipa_read_summaries): Do not test ltrans.
12041 (ipa_read_optimization_summaries_1): New.
12042 (ipa_read_optimization_summaries): New.
12043
12044 2010-04-21 Jan Hubicka <jh@suse.cz>
12045
12046 * lto-cgraph.c (lto_output_node): Do not output comdat groups
12047 for boundary nodes.
12048 (output_cgraph): Do not arrange comdat groups for boundary nodes.
12049
12050 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12051
12052 PR debug/40040
12053 * dwarf2out.c (add_name_and_src_coords_attributes): Add
12054 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
12055
12056 2010-04-21 Jan Hubicka <jh@suse.cz>
12057
12058 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
12059
12060 2010-04-21 Jan Hubicka <jh@suse.cz>
12061
12062 * varpool.c (decide_is_variable_needed): Variable is always needed
12063 during ltrans.
12064
12065 2010-04-21 Jan Hubicka <jh@suse.cz>
12066
12067 * opts.c (decode_options): Enable pure-const pass for whopr.
12068
12069 2010-04-21 Jan Hubicka <jh@suse.cz>
12070
12071 * cgraph.c (dump_cgraph_node): Dump also assembler name.
12072 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
12073 at WPA dumping.
12074 (cgraph_decide_inlining): Do not expect callee to be removed in all
12075 cases.
12076
12077 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
12078
12079 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
12080
12081 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
12082
12083 * config/i386/i386.md (x86_shrd): Add athlon_decode and
12084 amdfam10_decode attributes.
12085
12086 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12087
12088 PR middle-end/43570
12089 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
12090 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
12091 (lower_copyprivate_clauses): Use private var in outer
12092 context instead of original var. Make sure the types
12093 are correct for VLAs.
12094
12095 2010-04-21 Richard Guenther <rguenther@suse.de>
12096
12097 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
12098 to non-pointer objects.
12099
12100 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12101
12102 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
12103 last chain entry if it starts with the still current label.
12104 (add_location_or_const_value_attribute): Check that
12105 loc_list->first->next is NULL instead of comparing ->first with ->last.
12106 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
12107 to add_var_loc_to_decl.
12108
12109 * dwarf2out.c (output_call_frame_info): For dw_cie_version
12110 >= 4 add also address size and segment size fields into CIE header.
12111
12112 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
12113 long as address size is the same as sizeof (void *) and
12114 segment size is 0.
12115 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
12116 address size or segment size is unexpected, return DW_EH_PE_omit.
12117 (classify_object_over_fdes): If get_cie_encoding returned
12118 DW_EH_PE_omit, return -1.
12119 (init_object): If classify_object_over_fdes returned -1,
12120 pretend there were no FDEs at all.
12121
12122 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
12123
12124 * config/i386/i386.md (bswap<mode>2): Macroize expander from
12125 bswap{si,di}2 using SWI48 mode iterator.
12126 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
12127 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
12128 set modrm attribute of bswap insn to 0 and remove length attribute.
12129 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
12130 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
12131 set mode attribute to <MODE> and remove length attribute.
12132
12133 2010-04-20 James E. Wilson <wilson@codesourcery.com>
12134
12135 PR rtl-optimization/43520
12136 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
12137 zero available registers.
12138
12139 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12140
12141 * builtins.c (fold_builtin_cproj): Fold more cases.
12142
12143 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12144
12145 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
12146 (fold_builtin_1): Fold builtin cproj.
12147 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
12148 Use ATTR_CONST_NOTHROW_LIST.
12149
12150 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
12151
12152 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
12153 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
12154 ffsi2_no_cmove for !TARGET_CMOVE.
12155 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
12156 (ffssi2): Remove expander.
12157 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
12158 mode iterator.
12159 (ctz<mode>2): Ditto from ctz{si,di}2.
12160 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
12161 mode iterator.
12162 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
12163 mode iterator.
12164
12165 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12166
12167 * dwarf2out.c (AT_linkage_name): Define.
12168 (clone_as_declaration): Handle DW_AT_linkage_name.
12169 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
12170 of DW_AT_MIPS_linkage_name.
12171 (move_linkage_attr): Likewise.
12172 (dwarf2out_finish): Likewise.
12173
12174 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
12175
12176 PR middle-end/41952
12177 * fold-const.c (fold_comparison): New folding rule.
12178
12179 2010-04-20 Anatoly Sokolov <aesok@post.ru>
12180
12181 * double-int.h (double_int_setbit): Declare.
12182 * double-int.c (double_int_setbit): New function.
12183 * rtl.h (immed_double_int_const): Declare.
12184 * emit-rtl.c (immed_double_int_const): New function.
12185 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
12186 and immed_double_int_const functions.
12187 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
12188 expand_copysign_bit): (Ditto.).
12189 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
12190 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
12191 * dojump.c (prefer_and_bit_test): (Ditto.).
12192 * expr.c (convert_modes, reduce_to_bit_field_precision,
12193 const_vector_from_tree): (Ditto.).
12194 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12195
12196 2010-04-20 Jan Hubicka <jh@suse.cz>
12197
12198 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
12199 (dump_cgraph_node): Dump new flags.
12200 * cgraph.h (struct cgraph_node): Add flags
12201 reachable_from_other_partition and in_other_partition.
12202 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
12203 other partition can not be removed.
12204 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
12205 the other partition must be output; silence sanity checking on
12206 leaking functions bodies from other paritition.
12207 * lto-cgraph.c (reachable_from_other_partition_p): New function.
12208 (lto_output_node): Output new flags; do not sanity check that inline
12209 clones are output; drop lto_forced_extern_inline_p code; do not mock
12210 visibility flags at partition boundaries.
12211 (add_node_to): New function.
12212 (output_cgraph): Use it to sort functions so masters appear before
12213 clones.
12214 (input_overwrite_node): Input new flags.
12215 * passes.c (ipa_write_summaries): Do not call
12216 lto_new_extern_inline_states.
12217 * lto-section-out.c (forced_extern_inline,
12218 lto_new_extern_inline_states lto_delete_extern_inline_states,
12219 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12220 * lto-streamer.h (lto_new_extern_inline_states,
12221 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12222 lto_forced_extern_inline_p): Kill.
12223
12224 2010-04-20 Richard Guenther <rguenther@suse.de>
12225
12226 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12227 from vars that can have pointers.
12228 (process_constraint): Dump useless constraints.
12229
12230 2010-04-20 Richard Guenther <rguenther@suse.de>
12231
12232 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12233 (dump_sa_points_to_info): Remove asserts.
12234 (init_base_vars): nothing_id isn't an escape point nor does it
12235 have pointers.
12236
12237 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12238
12239 * tree.h (TYPE_REF_IS_RVALUE): Define.
12240 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12241 should_move_die_to_comdat, prune_unused_types_walk): Handle
12242 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12243 (modified_type_die, gen_reference_type_die): Emit
12244 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12245 if TYPE_REF_IS_RVALUE and -gdwarf-4.
12246
12247 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12248
12249 PR target/43635
12250 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12251 calls for -fpic -m31 if they have been sibcall optimized.
12252
12253 2010-04-19 James E. Wilson <wilson@codesourcery.com>
12254
12255 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12256 ar.lc fixed and call-used.
12257
12258 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12259
12260 2010-04-19 Jan Hubicka <jh@suse.cz>
12261
12262 * opts.c (decode_options): Disable whpr incompatible passes.
12263 * lto/lto.c (lto_1_to_1_map): Skip clones.
12264 (read_cgraph_and_symbols): Do not mark everything as needed.
12265 (do_whole_program_analysis): Do map only after optimizing;
12266 set proper cgraph_state; use passmanager.
12267
12268 2010-04-19 DJ Delorie <dj@redhat.com>
12269
12270 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12271 POINTER_PLUS_EXPR and fix them.
12272
12273 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
12274
12275 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12276 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12277 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12278 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12279 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12280 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12281 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
12282 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
12283 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
12284 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
12285 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
12286
12287 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
12288
12289 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
12290 (check_cond_move_block): Likewise.
12291 (cond_move_process_if_block): Likewise.
12292 (noce_find_if_block): Improve formatting.
12293 (find_if_header): Pass 0 to memset and tweak conditions.
12294 (cond_exec_find_if_block): Fix long lines and tweak conditions.
12295
12296 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12297
12298 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
12299 for -gdwarf-4.
12300
12301 PR middle-end/43337
12302 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
12303 with non-local decl doesn't need chain.
12304
12305 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
12306
12307 * ira-color.c (allocno_reload_assign): Avoid accumulating
12308 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
12309
12310 2010-04-19 Martin Jambor <mjambor@suse.cz>
12311
12312 * gimple.h (create_tmp_reg): Declare.
12313 * gimplify.c (create_tmp_reg): New function.
12314 (gimplify_return_expr): Use create_tmp_reg.
12315 (gimplify_omp_atomic): Likewise.
12316 (gimple_regimplify_operands): Likewise.
12317 * tree-dfa.c (make_rename_temp): Likewise.
12318 * tree-predcom.c (predcom_tmp_var): Likewise.
12319 (reassociate_to_the_same_stmt): Likewise.
12320 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
12321 (get_replaced_param_substitute): Likewise.
12322 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12323 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
12324 * tree-ssa-pre.c (get_representative_for): Likewise.
12325 (create_expression_by_pieces): Likewise.
12326 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12327 (create_tailcall_accumulator): Likewise.
12328
12329 2010-04-19 Martin Jambor <mjambor@suse.cz>
12330
12331 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
12332 new_stmt.
12333 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
12334
12335 2010-04-19 Richard Guenther <rguenther@suse.de>
12336
12337 PR tree-optimization/43796
12338 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
12339 from SCEV in the lattice.
12340 (vrp_visit_phi_node): Dump change.
12341
12342 2010-04-19 Richard Guenther <rguenther@suse.de>
12343
12344 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
12345 * configure: Re-generated.
12346
12347 2010-04-19 Richard Guenther <rguenther@suse.de>
12348
12349 PR tree-optimization/43783
12350 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
12351 constant ARRAY_REF operands two and three if possible.
12352
12353 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
12354
12355 PR target/43766
12356 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
12357
12358 2010-04-19 Jie Zhang <jie@codesourcery.com>
12359
12360 PR target/43662
12361 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
12362
12363 2010-04-19 Ira Rosen <irar@il.ibm.com>
12364
12365 PR tree-optimization/37027
12366 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
12367 and macro to access it.
12368 (vectorizable_reduction): Add argument.
12369 (vect_get_slp_defs): Likewise.
12370 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
12371 statements for possible use in SLP.
12372 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
12373 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
12374 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
12375 add new argument.
12376 (vectorizable_reduction): Likewise.
12377 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
12378 vect_get_slp_defs.
12379 (vectorizable_type_demotion, vectorizable_type_promotion,
12380 vectorizable_store): Likewise.
12381 (vect_analyze_stmt): Update call to vectorizable_reduction.
12382 (vect_transform_stmt): Likewise.
12383 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
12384 (vect_build_slp_tree): Fix indentation. Check that there are no loads
12385 from different interleaving chains in same node.
12386 (vect_slp_rearrange_stmts): New function.
12387 (vect_supported_load_permutation_p): Allow load permutations for
12388 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
12389 inside SLP nodes if necessary.
12390 (vect_analyze_slp_instance): Handle reductions.
12391 (vect_analyze_slp): Try to build SLP instances originating from groups
12392 of reductions.
12393 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
12394 (vect_get_constant_vectors): Create initial vectors for reductions
12395 according to reduction code. Add new argument.
12396 (vect_get_slp_defs): Add new argument, pass it to
12397 vect_get_constant_vectors.
12398 (vect_schedule_slp_instance): Remove SLP tree root statements.
12399
12400 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12401
12402 * tree.h (ENUM_IS_SCOPED): Define.
12403 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
12404 for ENUM_IS_SCOPED enums.
12405
12406 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
12407
12408 * fold-const.c (fold_comparison): Use ssizetype.
12409 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
12410 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
12411 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
12412 * tree-object-size.c (compute_object_sizes): Use size_type_node.
12413
12414 * tree.h (initialize_sizetypes): Remove parameter.
12415 (build_common_tree_nodes): Remove second parameter.
12416 * stor-layout.c (initialize_sizetypes): Remove parameter.
12417 Always create an unsigned type.
12418 (set_sizetype): Assert that the passed type is unsigned and simplify.
12419 * tree.c (build_common_tree_nodes): Remove second parameter.
12420 Adjust call to initialize_sizetypes.
12421 * c-decl.c (c_init_decl_processing): Remove second argument in call to
12422 build_common_tree_nodes.
12423
12424 2010-04-18 Matthias Klose <doko@ubuntu.com>
12425
12426 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
12427
12428 2010-04-18 Ira Rosen <irar@il.ibm.com>
12429
12430 PR tree-optimization/43771
12431 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
12432 load permutation doesn't have gaps.
12433
12434 2010-04-18 Jan Hubicka <jh@suse.cz>
12435
12436 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
12437 (sse_prologue_save_insn expander): Use new pattern.
12438 (sse_prologue_save_insn1): New pattern and splitter.
12439 (sse_prologue_save_insn): Update to deal also with 64bit aligned
12440 blocks.
12441 * i386.c (setup_incoming_varargs_64): Do not compute jump
12442 destination here.
12443 (ix86_gimplify_va_arg): Update alignment needed.
12444 (ix86_local_alignment): Do not align all local arrays to 128bit.
12445
12446 2010-04-17 Jan Hubicka <jh@suse.cz>
12447
12448 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
12449
12450 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12451
12452 * arm.md (negdi2): Remove redundant code to force values into a
12453 register.
12454
12455 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12456
12457 * arm/bpabi.S: Add EABI alignment attributes to objects.
12458 * arm/bpabi-v6m.S: Likewise.
12459 * arm/crti.asm: Likewise.
12460 * arm/crtn.asm: Likewise.
12461 * arm/lib1funcs.asm: Likewise.
12462 * arm/libunwind.S: Likewise.
12463
12464 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12465
12466 * arm-protos.h (tune_params): New structure.
12467 * arm.c (current_tune): New variable.
12468 (arm_constant_limit): Delete.
12469 (struct processors): Add pointer to the tune parameters.
12470 (arm_slowmul_tune): New tuning option.
12471 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
12472 (all_cores): Adjust to pick up the tuning model.
12473 (arm_constant_limit): New function.
12474 (arm_override_options): Select the appropriate tuning model. Delete
12475 initialization of arm_const_limit.
12476 (arm_split_constant): Use the new constant-limit model.
12477 (arm_rtx_costs): Pick up the current tuning model.
12478 * arm.md (is_strongarm, is_xscale): Delete.
12479 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
12480 for Xscale variant architectures.
12481 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
12482
12483 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12484
12485 * config/arm/arm.c (arm_gen_constant): Remove unused variable
12486 can_shift.
12487 (arm_rtx_costs_1): Remove unused variable extra_cost.
12488 (arm_unwind_emit_set): Use variable offset.
12489 (thumb1_output_casesi): Remove unused variable flags.
12490
12491 2010-04-16 Jeff Law <law@redhat.com>
12492
12493 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
12494 needing assignment rather than doing a two-phase assignment. Remove
12495 unused variable 'm'.
12496
12497 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12498
12499 PR bootstrap/43767
12500 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
12501
12502 2010-04-16 Doug Kwan <dougkwan@google.com>
12503
12504 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
12505 (next_operand_entry_id): New static variable.
12506 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
12507 (add_to_ops_vec): Assigned unique ID to operand entry.
12508 (struct oecount_s): New field ID.
12509 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
12510 (undistribute_ops_list): Assign unique IDs to oecounts.
12511 (init_reassoc): reset next_operand_entry_id.
12512
12513 2010-04-16 Doug Kwan <dougkwan@google.com>
12514
12515 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
12516 missing left parenthesis.
12517
12518 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
12519
12520 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
12521 *btdi_rex64 using SWI48 mode iterator.
12522 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
12523 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
12524 *jcc_btdi_mask_rex64.
12525
12526 2010-04-16 Anatoly Sokolov <aesok@post.ru>
12527
12528 * double-int.h (tree_to_double_int): Convert to macro.
12529 * double-int.c (tree_to_double_int): Remove.
12530
12531 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12532
12533 PR debug/43762
12534 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
12535 with want_address 2 and in case a single element list might be
12536 possible, call it again with want_address 0.
12537
12538 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12539
12540 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
12541 case 'W' print operands for HI mode.
12542 * config/h8300/h8300.h (Y0, Y2) : New constraints.
12543 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
12544 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
12545 * config/h8300/predicate.md (bit_register_indirect_operand): New.
12546
12547 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
12548
12549 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
12550 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
12551 #xx:3 and #xx:4 mode.
12552
12553 * config/h8300/h8300.md (inverted load with HImode dest): Add
12554 support for H8300SX.
12555
12556 * config/h8300/predicate.md (bit_operand): Allow immediate values that
12557 satisfy 'U' constraint.
12558
12559 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12560
12561 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
12562 * configure: Regenerate.
12563 * config.in: Regenerate.
12564 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
12565 works.
12566
12567 2010-04-16 Richard Guenther <rguenther@suse.de>
12568
12569 * tree.h (struct tree_decl_minimal): Move pt_uid ...
12570 (struct tree_decl_common): ... here.
12571 (DECL_PT_UID): Adjust.
12572 (SET_DECL_PT_UID): Likewise.
12573 (DECL_PT_UID_SET_P): Likewise.
12574
12575 2010-04-16 Richard Guenther <rguenther@suse.de>
12576
12577 PR tree-optimization/43572
12578 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
12579 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
12580 * tree-flow.h (is_call_clobbered): Remove.
12581 * tree-flow-inline.h (is_call_clobbered): Likewise.
12582 * tree-dfa.c (dump_variable): Do not dump call clobber state.
12583 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
12584 (execute_return_slot_opt): Adjust.
12585 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
12586 check for call clobbered vars here.
12587 (find_tail_calls): Move tailcall verification to the
12588 proper place.
12589
12590 2010-04-16 Diego Novillo <dnovillo@google.com>
12591
12592 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
12593
12594 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12595
12596 PR target/40603
12597 * config/arm/arm.md (cbranchqi4): New pattern.
12598 * config/arm/predicates.md (const0_operand,
12599 cbranchqi4_comparison_operator): New predicates.
12600
12601 2010-04-16 Richard Guenther <rguenther@suse.de>
12602
12603 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
12604 (dump_gimple_stmt): Likewise.
12605
12606 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12607
12608 * recog.h (struct recog_data): New field is_operator.
12609 (struct insn_operand_data): New field is_operator.
12610 * recog.c (extract_insn): Set recog_data.is_operator.
12611 * genoutput.c (output_operand_data): Emit code to set the
12612 is_operator field.
12613 * reload.c (find_reloads): Use it rather than testing for an
12614 empty constraint string.
12615
12616 PR target/41514
12617 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
12618 If the previous insn is a cbranchsi4_insn with the same arguments,
12619 omit the compare instruction.
12620
12621 * config/arm/arm.md (addsi3_cbranch): If destination is a high
12622 register, inputs must be low registers and we need a low register
12623 scratch. Handle alternative 2 like alternative 3.
12624
12625 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12626
12627 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
12628 don't call get_addr on both. If one expression is a VALUE and
12629 the other a REG, check VALUE's locs if the REG isn't among them.
12630
12631 2010-04-16 Christian Bruel <christian.bruel@st.com>
12632
12633 * config/sh/sh.h (sh_frame_pointer_required): New function.
12634 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
12635 (flag_omit_frame_pointer) Set.
12636 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12637 (rounded_frame_size): Adjust size with outgoing_args_size.
12638 (sh_set_return_address): Must return from stack pointer.
12639 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12640 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12641 (ACCUMULATE_OUTGOING_ARGS): Define.
12642 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12643 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12644
12645 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12646
12647 PR target/43471
12648 * config/sh/sh.c (sh_legitimize_reload_address): Use
12649 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12650 Remove a unneeded check for offset_base.
12651
12652 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
12653
12654 * configure: Regenerated.
12655
12656 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12657
12658 * config/s390/s390.c (s390_call_save_register_used): Switch back
12659 to HARD_REGNO_NREGS.
12660
12661 2010-04-15 Richard Guenther <rguenther@suse.de>
12662
12663 * alias.c (alias_set_subset_of): Handle alias-set zero
12664 child properly.
12665
12666 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
12667 Julian Brown <julian@codesourcery.com>
12668
12669 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12670 alternatives according to use of high and low regs.
12671 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12672 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12673 optimizing for size on Thumb-2.
12674
12675 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
12676
12677 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12678
12679 2010-04-15 Richard Guenther <rguenther@suse.de>
12680
12681 * tree-ssa-structalias.c (struct variable_info): Add
12682 is_fn_info flag.
12683 (new_var_info): Initialize it.
12684 (dump_constraints): Support printing last added constraints.
12685 (debug_constraints): Adjust.
12686 (dump_constraint_graph): Likewise.
12687 (make_heapvar_for): Check for NULL cfun.
12688 (get_function_part_constraint): New function.
12689 (get_fi_for_callee): Likewise.
12690 (find_func_aliases): Properly implement IPA PTA constraints.
12691 (process_ipa_clobber): New function.
12692 (find_func_clobbers): Likewise.
12693 (insert_into_field_list_sorted): Remove.
12694 (create_function_info_for): Properly allocate vars for IPA mode.
12695 Do not use insert_into_field_list_sorted.
12696 (create_variable_info_for): Properly generate constraints for
12697 global vars in IPA mode.
12698 (dump_solution_for_var): Always dump the solution.
12699 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
12700 (find_what_var_points_to): Adjust.
12701 (pt_solution_set): Change.
12702 (pt_solution_ior_into): New function.
12703 (pt_solution_empty_p): Export.
12704 (pt_solution_includes_global): Adjust.
12705 (pt_solution_includes_1): Likewise.
12706 (pt_solutions_intersect_1): Likewise.
12707 (dump_sa_points_to_info): Check some invariants.
12708 (solve_constraints): Move constraint dumping ...
12709 (compute_points_to_sets): ... here.
12710 (ipa_pta_execute): ... and here.
12711 (compute_may_aliases): Do not re-compute points-to info
12712 locally if IPA info is available.
12713 (ipa_escaped_pt): New global var.
12714 (ipa_pta_execute): Properly implement IPA PTA.
12715 * tree-into-ssa.c (dump_decl_set): Support dumping
12716 decls not in referenced-vars.
12717 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
12718 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
12719 (dump_points_to_solution): Likewise.
12720 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
12721 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
12722 (remap_gimple_stmt): Reset call clobber/use information if necessary.
12723 (copy_decl_to_var): Copy DECL_PT_UID.
12724 (copy_result_decl_to_var): Likewise.
12725 * tree.c (make_node_stat): Initialize DECL_PT_UID.
12726 (copy_node_stat): Copy it.
12727 * tree.h (DECL_PT_UID): New macro.
12728 (SET_DECL_PT_UID): Likewise.
12729 (DECL_PT_UID_SET_P): Likewise.
12730 (struct tree_decl_minimal): Add pt_uid member.
12731 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
12732 (pt_solution_empty_p): Declare.
12733 (pt_solution_set): Adjust.
12734 (ipa_escaped_pt): Declare.
12735 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
12736 * gimple-pretty-print.c (pp_points_to_solution): New function.
12737 (dump_gimple_call): Dump call clobber/use information.
12738 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
12739 * tree-pass.h (TDF_ALIAS): New dump option.
12740 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
12741 * doc/invoke.texi (-fipa-pta): Update documentation.
12742
12743 2010-04-15 Richard Guenther <rguenther@suse.de>
12744
12745 * Makefile.in (OBJS-common): Add gimple-fold.o.
12746 (gimple-fold.o): New rule.
12747 * tree.h (maybe_fold_offset_to_reference,
12748 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
12749 prototypes ...
12750 * gimple.h: ... here.
12751 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
12752 may_propagate_address_into_dereference): Move prototypes ...
12753 * gimple.h: ... here.
12754 * tree-ssa-ccp.c (get_symbol_constant_value,
12755 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
12756 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
12757 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
12758 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
12759 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
12760 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
12761 gimplify_and_update_call_from_tree): Move ...
12762 * gimple-fold.c: ... here. New file.
12763 (ccp_fold_builtin): Rename to ...
12764 (gimple_fold_builtin): ... this.
12765 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
12766
12767 2010-04-15 Richard Guenther <rguenther@suse.de>
12768
12769 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
12770 fit_double_type, force_fit_type_double, add_double_with_sign,
12771 neg_double, mul_double_with_sign, lshift_double, rshift_double,
12772 lrotate_double, rrotate_double, div_and_round_double): Move ...
12773 * double-int.c: ... here.
12774 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
12775 add_double, neg_double, mul_double_with_sign, mul_double,
12776 lshift_double, rshift_double, lrotate_double, rrotate_double,
12777 div_and_round_double): Move prototypes ...
12778 * double-int.h: ... here.
12779
12780 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
12781
12782 PR target/43742
12783 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
12784 matching constraints to ensure inputs match the output.
12785
12786 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12787
12788 PR target/43742
12789 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
12790 in an input-only operand.
12791
12792 2010-04-15 Anatoly Sokolov <aesok@post.ru>
12793
12794 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
12795 (double_int_not, double_int_lshift, double_int_rshift): Declare.
12796 (double_int_negative_p): Convert to static inline function.
12797 * double-int.c (double_int_lshift, double_int_lshift): New functions.
12798 (double_int_negative_p): Remove.
12799 * tree.h (lshift_double, rshift_double):
12800 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
12801 * fold-const.c (fold_convert_const_int_from_real,
12802 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
12803 (lshift_double): Change type of arith argument to bool.
12804 (rshift_double): Change type of arith argument to bool. Correct
12805 comment.
12806 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12807
12808 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
12809
12810 PR target/21803
12811 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
12812 at the start and end of the then/else blocks, and omit them from the
12813 conversion.
12814 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
12815 argument; all callers changed. Pass zero to old_insns_match_p instead.
12816 (flow_find_head_matching_sequence): New function.
12817 (old_insns_match_p): Check REG_EH_REGION notes for calls.
12818 * basic-block.h (flow_find_cross_jump,
12819 flow_find_head_matching_sequence): Declare functions.
12820
12821 2010-04-14 Jason Merrill <jason@redhat.com>
12822
12823 PR c++/36625
12824 * c-common.c (attribute_takes_identifier_p): New fn.
12825 * c-common.h: Declare it.
12826
12827 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12828
12829 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12830 splitter condition.
12831 (*udivmod<mode>4): Ditto.
12832
12833 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12834
12835 * config/i386/i386.md (maxmin_int): Rename code attribute from
12836 maxminiprefix and update all users.
12837 (maxmin_float): Ditto from maxminfprefix.
12838 (logic): Ditto from logicprefix.
12839 (absneg_mnemonic): Ditto from absnegprefix.
12840 * config/i386/mmx.md: Update all users of maxminiprefix,
12841 maxminfprefix and logicprefix for rename.
12842 * config/i386/sse.md: Ditto.
12843 * config/i386/sync.md (sync_<code><mode>): Update for
12844 logicprefix rename.
12845
12846 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12847
12848 PR 42966
12849 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12850 warnings converted to errors.
12851
12852 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12853
12854 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12855 used insn_type variable.
12856 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12857 to avoid set-but-not-used warning.
12858
12859 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12860
12861 * df-core.c (df_ref_debug): Change format string placeholder
12862 from 0x%x to %#x.
12863 * dwarf2asm.c (dw2_asm_output_data_raw,
12864 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12865 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12866 * dwarf2out.c (output_cfi, output_cfi_directive,
12867 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12868 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12869 Ditto.
12870 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12871 * print-rtl.c (print_rtx): Ditto.
12872
12873 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12874
12875 PR middle-end/42694
12876 * builtins.c (expand_builtin_pow_root): New function to expand pow
12877 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12878 series of sqrt and cbrt calls under -ffast-math.
12879 (expand_builtin_pow): Call it.
12880
12881 2010-04-14 Michael Matz <matz@suse.de>
12882
12883 PR tree-optimization/42963
12884 * tree-cfg.c (touched_switch_bbs): New static variable.
12885 (group_case_labels_stmt): New function broken out from ...
12886 (group_case_labels): ... here, use the above.
12887 (start_recording_case_labels): Allocate touched_switch_bbs.
12888 (end_recording_case_labels): Deallocate it, call
12889 group_case_labels_stmt.
12890 (gimple_redirect_edge_and_branch): Remember index of affected BB.
12891
12892 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12893
12894 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12895 from insn template.
12896
12897 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12898
12899 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12900
12901 2010-04-13 Jan Hubicka <jh@suse.cz>
12902
12903 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12904 of optimized out static functions.
12905 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12906 cost computation. Also sanity check for overflows.
12907 (update_caller_keys): Update cgraph_edge_badness call; properly
12908 update fibheap and sanity check that it is up to date.
12909 (add_new_edges_to_heap): Update cgraph_edge_badness.
12910 (cgraph_decide_inlining_of_small_function): Likewise;
12911 add sanity checking that badness in heap is up to date;
12912 improve dumping of reason; Update badness of calls to the
12913 offline copy of function currently inlined; dump badness
12914 of functions not inlined because of unit growth limits.
12915
12916 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12917
12918 PR middle-end/32628
12919 * c-common.c (pointer_int_sum): Disregard overflow that occured only
12920 because of sign-extension change when converting to sizetype here...
12921 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12922
12923 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12924 the folding to constants. Remove redundant final conversion.
12925 (fold_binary) <associate>: Do not associate if the re-association of
12926 constants alone overflows.
12927 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12928 to the end of the list.
12929 (multiple_of_p) <COND_EXPR>: New case.
12930
12931 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
12932
12933 * opt-functions.awk (opt_sanitized_name): New.
12934 (opt_enum): New.
12935 * optc-gen.awk: Use it
12936 * opth-gen.awk: Use it.
12937
12938 2010-04-13 Martin Jambor <mjambor@suse.cz>
12939
12940 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12941 (sra_modify_assign): Delete stmts loading dead data even if racc has no
12942 children. Call replace_uses_with_default_def_ssa_name to handle
12943 SSA_NAES on lhs.
12944
12945 2010-04-13 Michael Matz <matz@suse.de>
12946
12947 PR middle-end/43730
12948 * builtins.c (expand_builtin_interclass_mathfn): Also create
12949 a register if the predicate doesn't match.
12950
12951 2010-04-13 Diego Novillo <dnovillo@google.com>
12952
12953 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12954 * c-pch.c: Include timevar.h.
12955 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12956 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12957 * ggc-common.c: Include timevar.h.
12958 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12959 * timevar.def (TV_PCH_SAVE): Define.
12960 (TV_PCH_CPP_SAVE): Define.
12961 (TV_PCH_PTR_REALLOC): Define.
12962 (TV_PCH_PTR_SORT): Define.
12963 (TV_PCH_RESTORE): Define.
12964 (TV_PCH_CPP_RESTORE): Define.
12965
12966 2010-04-13 Michael Matz <matz@suse.de>
12967
12968 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12969 into MINUS_EXPRs.
12970 (can_reassociate_p): New function.
12971 (break_up_subtract_bb, reassociate_bb): Use it.
12972
12973 2010-04-13 Richard Guenther <rguenther@suse.de>
12974
12975 PR bootstrap/43737
12976 * builtins.c (c_readstr): Fix assert.
12977
12978 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
12979
12980 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12981 when generating cltd insn.
12982
12983 (*ashl<mode>3_1): Remove special handling for register operand 2.
12984 (*ashlsi3_1_zext): Ditto.
12985 (*ashlhi3_1): Ditto.
12986 (*ashlhi3_1_lea): Ditto.
12987 (*ashlqi3_1): Ditto.
12988 (*ashlqi3_1_lea): Ditto.
12989 (*<shiftrt_insn><mode>3_1): Ditto.
12990 (*<shiftrt_insn>si3_1_zext): Ditto.
12991 (*<shiftrt_insn>qi3_1_slp): Ditto.
12992 (*<rotate_insn><mode>3_1): Ditto.
12993 (*<rotate_insn>si3_1_zext): Ditto.
12994 (*<rotate_insn>qi3_1_slp): Ditto.
12995
12996 2010-04-13 Richard Guenther <rguenther@suse.de>
12997
12998 * tree-ssa-structalias.c (callused_id): Remove.
12999 (call_stmt_vars): New.
13000 (get_call_vi): Likewise.
13001 (lookup_call_use_vi): Likewise.
13002 (lookup_call_clobber_vi): Likewise.
13003 (get_call_use_vi): Likewise.
13004 (get_call_clobber_vi): Likewise.
13005 (make_transitive_closure_constraints): Likewise.
13006 (handle_const_call): Adjust to do per-call call-used handling.
13007 (handle_pure_call): Likewise.
13008 (find_what_var_points_to): Remove general callused handling.
13009 (init_base_vars): Likewise.
13010 (init_alias_vars): Initialize call_stmt_vars.
13011 (compute_points_to_sets): Process call-used and call-clobbered
13012 vars for call statements.
13013 (delete_points_to_sets): Free call_stmt_vars.
13014
13015 2010-04-13 Richard Guenther <rguenther@suse.de>
13016
13017 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13018 Only add RW dependence for dependence distance zero.
13019 Adjust maximal vectorization factor according to dependences.
13020 Move alignment handling ...
13021 (vect_find_same_alignment_drs): ... here. New function.
13022 (vect_analyze_data_ref_dependences): Adjust.
13023 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
13024 (vect_analyze_data_refs): Adjust minimal vectorization factor
13025 according to data references.
13026 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
13027 dependences before determining the vectorization factor.
13028 Analyze alignment after determining the vectorization factor.
13029 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
13030 dependences before alignment.
13031 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
13032 Adjust prototype.
13033 (vect_analyze_data_refs): Likewise.
13034 (MAX_VECTORIZATION_FACTOR): New define.
13035
13036 2010-04-13 Duncan Sands <baldrick@free.fr>
13037
13038 * except.h (lang_eh_type_covers): Remove.
13039 * except.c (lang_eh_type_covers): Likewise.
13040
13041 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13042 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13043
13044 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
13045 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
13046 UNITS_PER_LONG where it is ABI relevant.
13047 (s390_return_addr_rtx): Likewise.
13048 (s390_back_chain_rtx): Likewise.
13049 (s390_frame_area): Likewise.
13050 (s390_frame_info): Likewise.
13051 (s390_initial_elimination_offset): Likewise.
13052 (save_gprs): Likewise.
13053 (s390_emit_prologue): Likewise.
13054 (s390_emit_epilogue): Likewise.
13055 (s390_function_arg_advance): Likewise.
13056 (s390_function_arg): Likewise.
13057 (s390_va_start): Likewise.
13058 (s390_gimplify_va_arg): Likewise.
13059 (s390_function_profiler): Likewise.
13060 (s390_optimize_prologue): Likewise.
13061 (s390_rtx_costs): Likewise.
13062 (s390_secondary_reload): Likewise.
13063 (s390_promote_function_mode): Likewise.
13064 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
13065 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
13066 registers available.
13067 (s390_unwind_word_mode): New function.
13068 (s390_function_value): Split 64 bit values into register pair if
13069 used as return value.
13070 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
13071 function call parameters. Handle parallels.
13072 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
13073 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
13074 (DWARF_CIE_DATA_ALIGNMENT): New macro.
13075 (s390_expand_setmem): Remove unused variable src_addr.
13076 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
13077 deal with 64 bit registers.
13078 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
13079 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
13080 (UNITS_PER_LONG): New macro.
13081 * libjava/include/s390-signal.h: Define extended ucontext
13082 structure containing the upper halfs of the 64 bit registers.
13083
13084 2010-04-13 Simon Baldwin <simonb@google.com>
13085
13086 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
13087
13088 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
13089
13090 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
13091 rvalue on the RHS if the LHS is of a non-renamable type.
13092 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
13093
13094 2010-04-13 Matthias Klose <doko@ubuntu.com>
13095
13096 * gcc.c (cc1_options): Handle -iplugindir before processing
13097 the cc1 spec. Only add -iplugindir once.
13098 (cpp_unique_options): Add -iplugindir option if -fplugin* options
13099 found.
13100 * common.opt (iplugindir): Remove `Separate' property, initialize.
13101 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
13102 option.
13103 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
13104 (distclean): Remove plugin dir.
13105 * doc/invoke.texi: Document -iplugindir.
13106
13107 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
13108
13109 * doc/plugins.texi (Loading Plugins): Document short
13110 -fplugin=foo option.
13111 (Plugin API): Mention default_plugin_dir_name function.
13112
13113 * gcc.c (find_file_spec_function): Add new declaration.
13114 (static_spec_func): Use it for "find-file".
13115 (find_file_spec_function): Add new function.
13116 (cc1_options): Add -iplugindir option if -fplugin* options found.
13117
13118 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
13119
13120 * plugin.c (add_new_plugin): Updated comment, and handle short
13121 plugin name.
13122 (default_plugin_dir_name): Added new function.
13123
13124 * common.opt (iplugindir): New option to set the plugin directory.
13125
13126 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
13127
13128 * config/i386/i386.md (any_rotate): New code iterator.
13129 (rotate_insn): New code attribute.
13130 (rotate): Ditto.
13131 (SWIM124): New mode iterator.
13132 (<rotate_insn>ti3): New expander.
13133 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
13134 any_rotate code iterator.
13135 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
13136 using any_rotate code iterator and SWIM124 mode iterator.
13137 (ix86_rotlti3): New insn_and_split pattern.
13138 (ix86_rotrti3): Ditto.
13139 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
13140 ix86_rotl{di,ti}3 patterns.
13141 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
13142 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
13143 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
13144 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
13145 code iterator and SWI mode iterator.
13146 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
13147 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
13148 code iterator.
13149 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
13150 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
13151 (bswap rotatert splitter): Add splitter.
13152 (bswap splitter): Macroize splitter using any_rotate code iterator.
13153 Add insn predicate to split only for TARGET_USE_XCHGB or when
13154 optimizing function for size.
13155
13156 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13157
13158 * config/pa/pa.c (emit_move_sequence): Remove use of
13159 deleted variable flag_argument_noalias.
13160
13161 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13162
13163 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
13164 configurations.
13165 Add to unsupported targets list.
13166 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
13167 sparc*-sun-solaris2.[567]* from target lists.
13168 * configure: Regenerate.
13169 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
13170 removal.
13171 Remove Solaris 7 patch references.
13172 (Specific, sparc-sun-solaris2.7): Removed.
13173 (sparc-sun-solaris2*): Update Solaris 7 example.
13174 (sparc64-*-solaris2*): Likewise.
13175
13176 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13177
13178 * config.build (alpha*-dec-osf4*): Remove.
13179 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
13180 of obsolete configurations.
13181 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
13182 support.
13183 * config/alpha/t-osf4: Renamed to ...
13184 * config/alpha/t-osf5: ... this.
13185 * config/alpha/osf.h: Renamed to ...
13186 * config/alpha/osf5.h: ... this.
13187 Merged old osf5.h contents.
13188 Update comments.
13189 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
13190 (EXTRA_SPECS): Removed.
13191 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
13192 reflect removal of Tru64 UNIX V4.0/V5.0 support.
13193 Document that.
13194
13195 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13196
13197 * doc/contrib.texi (Contributors, Rainer Orth): Update.
13198
13199 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
13200
13201 PR/43702
13202 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
13203 __thiscall convention.
13204
13205 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13206
13207 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
13208 orig_base.
13209 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
13210
13211 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13212
13213 * function.c (assign_parms_initialize_all): Add unused attribute
13214 to fntype.
13215
13216 2010-04-12 Richard Guenther <rguenther@suse.de>
13217
13218 * gsstruct.def (GSS_CALL): New.
13219 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13220 * gimple.h: Include tree-ssa-alias.h.
13221 (struct gimple_statement_call): New.
13222 (union gimple_statement_struct_d): Add gimple_call member.
13223 (gimple_call_reset_alias_info): Declare.
13224 (gimple_call_use_set): New function.
13225 (gimple_call_clobber_set): Likewise.
13226 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13227 * gimple.c (gimple_call_reset_alias_info): New function.
13228 (gimple_build_call_1): Call it.
13229 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13230 * tree-inline.c (remap_gimple_stmt): Likewise.
13231 (expand_call_inline): Remove callused handling.
13232 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13233 * tree-dfa.c (dump_variable): Likewise.
13234 * tree-parloops.c (parallelize_loops): Likewise.
13235 * tree-ssa.c (init_tree_ssa): Likewise.
13236 (delete_tree_ssa): Likewise.
13237 * tree-flow-inline.h (is_call_used): Remove.
13238 * tree-flow.h (struct gimple_df): Remove callused member.
13239 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13240 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13241 (ref_maybe_used_by_call_p_1): Simplify.
13242 (call_may_clobber_ref_p_1): Likewise.
13243 * tree-ssa-structalias.c (compute_points_to_sets): Set
13244 the call stmt used and clobbered sets.
13245 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13246 (find_tail_calls): Verify the tail call.
13247
13248 2010-04-12 Richard Guenther <rguenther@suse.de>
13249
13250 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13251 single-iteration always-inline inlining.
13252 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13253 (cgraph_decide_inlining): Do not handle always-inline specially.
13254 (try_inline): Remove always-inline cycle detection special case.
13255 Do not recurse on always-inlines.
13256 (cgraph_early_inlining): Do not iterate if not optimizing.
13257 (cgraph_gate_early_inlining): remove.
13258 (pass_early_inline): Run unconditionally.
13259 (gate_cgraph_decide_inlining): New function.
13260 (pass_ipa_inline): Use it. Do not run the IPA inliner if
13261 not inlining or optimizing.
13262 (cgraph_decide_inlining_of_small_functions): Also consider
13263 always-inline functions.
13264 (cgraph_default_inline_p): Return true for nodes which should
13265 disregard inline limits.
13266 (estimate_function_body_sizes): Assume zero size and time for
13267 nodes which are marked as disregarding inline limits.
13268 (cgraph_decide_recursive_inlining): Do not perform recursive
13269 inlining on always-inline nodes.
13270
13271 2010-04-12 Jakub Jelinek <jakub@redhat.com>
13272
13273 PR bootstrap/43699
13274 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13275 for exprs satisfying handled_component_p.
13276
13277 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
13278
13279 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13280 non-constant aggregate elements.
13281
13282 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
13283 is a real initialization.
13284
13285 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
13286
13287 PR c/36774
13288 * c-decl.c (start_function): Move forward check for nested function.
13289
13290 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
13291
13292 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
13293 * config/sh/sh.c: Include reload.h.
13294 (sh_legitimize_reload_address): New.
13295 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
13296 sh_legitimize_reload_address.
13297
13298 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13299
13300 * config/sh/sh.md (*movqi_pop): New insn pattern.
13301 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
13302
13303 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13304
13305 * config/i386/i386.md (any_shiftrt): New code iterator.
13306 (shiftrt_insn): New code attribute.
13307 (shiftrt): Ditto.
13308 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
13309 using any_shiftrt code iterator.
13310 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
13311 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
13312 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
13313 pattern from corresponding peephole2 patterns.
13314 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
13315 using any_shiftrt code iterator.
13316 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
13317 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
13318 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
13319 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
13320 *{ashr,lshr}<mode>3_cmp_zext.
13321 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
13322
13323 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13324
13325 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
13326 scratch register.
13327 (*lshr<mode>3_cconly): Ditto.
13328
13329 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13330
13331 * config/i386/i386.md (lshr<mode>3): Macroize expander from
13332 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13333 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13334 pattern from *lshr{di,ti}3_1 and corresponding splitters using
13335 DWI mode iterator.
13336 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13337 from corresponding peephole2 patterns.
13338 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
13339 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
13340 and *lshrdi3_1_rex64 using SWI mode iterator.
13341 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
13342 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
13343 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
13344 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
13345 and *lshrdi3_cmp_rex64 using SWI mode iterator.
13346 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
13347 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
13348 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
13349 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
13350 SWI mode iterator.
13351
13352 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
13353
13354 * config/i386/i386.md (ashr<mode>3): Macroize expander from
13355 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13356 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13357 pattern from *ashr{di,ti}3_1 and corresponding splitters using
13358 DWI mode iterator.
13359 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13360 from corresponding peephole2 patterns.
13361 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
13362 (ashrsi3_cvt): Rename from ashrsi3_31.
13363 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
13364 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
13365 and x86_64_shift_adj_3 using SWI48 mode iterator.
13366 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
13367 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
13368 and *ashrdi3_1_rex64 using SWI mode iterator.
13369 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
13370 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
13371 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
13372 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
13373 and *ashrdi3_cmp_rex64 using SWI mode iterator.
13374 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
13375 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
13376 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
13377 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
13378 SWI mode iterator.
13379 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
13380 * config/i386/i386.c (ix86_split_ashr): Update for renamed
13381 x86_shift<mode>_adj_3 expanders.
13382
13383 2010-04-10 Wei Guozhi <carrot@google.com>
13384
13385 PR target/42601
13386 * config/arm/arm.c (arm_pic_static_addr): New function.
13387 (legitimize_pic_address): Call arm_pic_static_addr when it detects
13388 a static symbol.
13389 (arm_output_addr_const_extra): Output expression for new pattern.
13390 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
13391
13392 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
13393
13394 * ira-costs.c (record_reg_classes): Ignore alternatives that are
13395 not enabled.
13396
13397 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
13398 * web.c: Include "insn-config.h" and "recog.h".
13399 (union_match_dups): New function.
13400 (web_main): Call it.
13401 (union_defs): Don't try to recognize match_dups.
13402
13403 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
13404 if doing so would replace the entire pattern.
13405
13406 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13407
13408 PR target/43707
13409 PR target/43709
13410 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
13411 and splitter pattern. Change splitter operand 1 predicate to
13412 nonmemory_operand.
13413
13414 2010-04-09 Martin Jambor <mjambor@suse.cz>
13415
13416 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
13417 lattices are addresses of CONST_DECLs with the same initial value.
13418 (ipcp_print_all_lattices): Print values of CONST_DECLs.
13419 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
13420
13421 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
13422 Bernd Schmidt <bernds@codesourcery.com>
13423
13424 * loop-invariant.c (replace_uses): New static function.
13425 (move_invariant_reg): Use it to ensure we can replace the uses.
13426
13427 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
13428
13429 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
13430 function template.
13431 (picochip_override_options): Enable section anchors only above -O1.
13432 (picochip_reorg): Fixed a couple of build warnings.
13433
13434 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13435
13436 * configure.ac (plugin -rdynamic test): Log result.
13437 * configure: Regenerate.
13438 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
13439 (RDYNAMIC_SPEC): Define.
13440 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
13441
13442 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13443
13444 * configure.ac: Determine Sun ld version numbers.
13445 (comdat_group): Restrict GNU ld version checks to gld.
13446 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
13447 (enable_comdat): Support --enable-comdat.
13448 * configure: Regenerate.
13449 * doc/install.texi (Configuration): Document --enable-comdat.
13450
13451 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13452
13453 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
13454 * config/sol2-gld.h: ... here.
13455 * config.gcc (sparc*-*-solaris2*): Reflect this.
13456 (i[34567]86-*-solaris2*): Use it.
13457
13458 2010-04-09 Steve Ellcey <sje@cup.hp.com>
13459
13460 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
13461 setup_clocks_p.
13462 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
13463
13464 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13465
13466 PR 42965
13467 * diagnostic.c (diagnostic_initialize): Initialize
13468 some_warnings_are_errors.
13469 (diagnostic_finish): New.
13470 (diagnostic_action_after_output): Call it before exiting.
13471 (diagnostic_report_diagnostic): Do not print message here. Set
13472 some_warnings_are_errors.
13473 * diagnostic.h (diagnostic_context): Delete
13474 issue_warnings_are_errors_message. Add some_warnings_are_errors.
13475 (diagnostic_finish): Declare.
13476 * toplev.c (toplev_main): Call it before exit.
13477
13478 2010-04-09 Jason Merrill <jason@redhat.com>
13479
13480 PR c++/42623
13481 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
13482 for incomplete type.
13483
13484 PR c++/41788
13485 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
13486 based on a warning flag.
13487
13488 2010-04-09 Richard Guenther <rguenther@suse.de>
13489
13490 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
13491
13492 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
13493
13494 PR bootstrap/43684
13495 * varasm.c (default_assemble_visibility): Wrap vars that are
13496 set, but unused, by targets without GAS.
13497 * config/rs6000/rs6000.c (paired_emit_vector_compare):
13498 Remove set, but unused, vars.
13499 (rs6000_legitimize_tls_address): Likewise.
13500 (altivec_expand_dst_builtin): Likewise.
13501 * config/darwin.c (machopic_classify_symbol): Likewise.
13502 (machopic_indirection_name): Likewise.
13503
13504 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13505
13506 * config/i386/i386.md (DWI): New mode iterator.
13507 (S): New mode attribute.
13508 (shift_operand): Ditto.
13509 (shift_immediate_operand): Ditto.
13510 (ashl_input_operand): Ditto.
13511 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
13512 using SDWIM mode iterator.
13513 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
13514 pattern from *ashl{di,ti}3_1 and corresponding splitters using
13515 DWI mode iterator.
13516 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
13517 from corresponding peephole2 patterns.
13518 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
13519 and x86_64_shift_adj_1 using SWI48 mode iterator.
13520 (x86_shift<mode>_adj_2): Ditto.
13521 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
13522 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
13523 using SWI48 mode iterator.
13524 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
13525 *ashldi3_cmp_rex64 using SWI mode iterator.
13526 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
13527 *ashldi3_cconly_rex64 using SWI mode iterator.
13528 * config/i386/i386.c (ix86_split_ashl): Update for renamed
13529 x86_shift<mode>_adj_{1,2}.
13530 (ix86_split_ashr): Ditto.
13531 (ix86_split_lshr): Ditto.
13532
13533 2010-04-09 Richard Guenther <rguenther@suse.de>
13534
13535 * target.h (builtin_conversion): Pass in input and output types.
13536 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
13537 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
13538 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
13539 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
13540
13541 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
13542 Handle AVX modes.
13543 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
13544
13545 2010-04-09 Richard Guenther <rguenther@suse.de>
13546
13547 PR target/43152
13548 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
13549
13550 2010-04-09 Richard Guenther <rguenther@suse.de>
13551
13552 * tree-vectorizer.h (struct _stmt_vec_info): Document
13553 that vectype is the type of the LHS.
13554 (supportable_widening_operation, supportable_narrowing_operation):
13555 Get both input and output vector types as arguments.
13556 (vect_is_simple_use_1): Declare.
13557 (get_same_sized_vectype): Likewise.
13558 * tree-vect-loop.c (vect_determine_vectorization_factor):
13559 Set STMT_VINFO_VECTYPE to the vector type of the def.
13560 (vectorizable_reduction): Adjust.
13561 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
13562 Adjust. Specify the output vector type.
13563 (vect_pattern_recog_1): Adjust.
13564 * tree-vect-stmts.c (get_same_sized_vectype): New function.
13565 (vectorizable_call): Adjust.
13566 (vectorizable_conversion): Likewise.
13567 (vectorizable_operation): Likewise.
13568 (vectorizable_type_demotion): Likewise.
13569 (vectorizable_type_promotion): Likewise.
13570 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
13571 the def.
13572 (vect_is_simple_use_1): New function.
13573 (supportable_widening_operation): Get both input and output
13574 vector types.
13575 (supportable_narrowing_operation): Likewise.
13576 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
13577
13578 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
13579
13580 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
13581 __thiscall and _thiscall as predefined macros.
13582 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
13583 thiscall attribute handling.
13584 (ix86_comp_type_attributes): Likewise.
13585 (ix86_function_regparm): Likewise.
13586 (ix86_return_pops_args): Likewise.
13587 (init_cumulative_args): Likewise.
13588 (find_drap_reg): Likewise.
13589 (ix86_static_chain): Likewise.
13590 (x86_this_parameter): Likewise.
13591 (x86_output_mi_thunk): Likewise.
13592 (ix86_attribute_table): Add description for thiscall attribute.
13593 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
13594 * doc/extend.texi: Add documentation for thiscall.
13595
13596 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13597
13598 PR c++/28584
13599 * c.opt (Wint-to-pointer-cast): Available in C++.
13600 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
13601
13602 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
13603
13604 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
13605 * calls.c (expand_call): Pass the function type to aggregate_value_p.
13606 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
13607 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
13608 function type instead. Reorder and simplify checks.
13609
13610 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
13611
13612 2010-04-08 Jing Yu <jingyu@google.com>
13613 Zdenek Dvorak <ook@ucw.cz>
13614
13615 PR tree-optimization/42720
13616 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
13617 loop unswitch conditions here from ...
13618 (tree_unswitch_single_loop): ... here.
13619
13620 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13621
13622 * tree-if-conv.c: Fix comments and simplify logic.
13623
13624 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13625
13626 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
13627 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
13628 (main_tree_if_conversion): Update call to tree_if_conversion.
13629
13630 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13631
13632 PR 42485
13633 * doc/invoke.texi (-b,-V): Delete.
13634 * doc/tm.texi: Do not mention -b.
13635 * gcc.c (display_help): Delete -b and -V.
13636 (process_command): Delete -b and -V.
13637 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13638
13639 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
13640 Wolfgang Gellerich <gellerich@de.ibm.com>
13641
13642 Implement target hook for loop unrolling
13643 * target.h (loop_unroll_adjust): Add a new target hook function.
13644 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13645 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13646 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13647 (s390_loop_unroll_adjust): Implement the new target hook for s390.
13648 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13649 target hook.
13650 (decide_unroll_stupid): Likewise.
13651
13652 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13653
13654 PR target/43643
13655 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13656
13657 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13658
13659 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13660 (Specific, *-*-solaris2*): Likewise.
13661 Don't prefer Sun as over GNU as.
13662
13663 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
13664
13665 * config/s390/s390.c (override_options): Adjust the z10 defaults
13666 for max-unroll-times, max-completely-peeled-insns
13667 and max-completely-peel-times.
13668
13669 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13670
13671 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13672 instructions for z10.
13673 (s390_expand_setmem): Likewise.
13674 (s390_expand_cmpmem): Likewise.
13675
13676 2010-04-08 Richard Guenther <rguenther@suse.de>
13677
13678 PR tree-optimization/43679
13679 * tree-ssa-pre.c (eliminate): Only propagate copies.
13680
13681 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13682
13683 PR bootstrap/43681
13684 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13685 set but not used variable warning.
13686
13687 2010-04-08 Wei Guozhi <carrot@google.com>
13688
13689 PR target/41653
13690 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13691 (arm_size_rtx_costs): Call the new function when optimized for size.
13692
13693 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13694
13695 PR debug/43670
13696 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13697 op0 is not a MEM, just return NULL instead of assertion
13698 failure.
13699 (discover_nonconstant_array_refs): Don't walk debug stmts.
13700
13701 2010-04-08 Doug Kwan <dougkwan@google.com>
13702
13703 * configure.ac: Recognize gold and do not use its version number
13704 to test ld features.
13705 * configure: Regenerate.
13706
13707 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
13708
13709 PR middle-end/40815
13710 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
13711 (negate_value): Move code to push elements to broken_up_substracts ...
13712 (eliminate_plus_minus_pair): ... here. Push operands that have no
13713 negative pair to plus_negates.
13714 (repropagate_negates, init_reassoc, fini_reassoc): Update.
13715
13716 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13717
13718 * doc/install.texi (Configuration): Move description of
13719 --enable-lto, --with-libelf*, --enable-gold from Java section to
13720 general section.
13721
13722 * doc/generic.texi (Working with declarations)
13723 (Function Properties, C and C++ Trees): Fix typos.
13724 * doc/sourcebuild.texi (Top Level): Likewise.
13725
13726 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13727
13728 PR c/18624
13729 * tree.h (DECL_READ_P): Define.
13730 (struct tree_decl_common): Add decl_read_flag.
13731 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
13732 a set but not used warning.
13733 (merge_decls): Merge DECL_READ_P flag.
13734 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
13735 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
13736 * c-common.c (handle_used_attribute, handle_unused_attribute):
13737 Likewise.
13738 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
13739 New prototypes.
13740 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
13741 New functions.
13742 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
13743 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
13744 c_parser_binary_expression, c_parser_cast_expression,
13745 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
13746 Call default_function_array_read_conversion instead of
13747 default_function_array_conversion where needed.
13748 (c_parser_unary_expression, c_parser_conditional_expression,
13749 c_parser_postfix_expression_after_primary, c_parser_initelt):
13750 Likewise. Call mark_exp_read where needed.
13751 (c_parser_statement_after_labels, c_parser_asm_operands,
13752 c_parser_typeof_specifier, c_parser_sizeof_expression,
13753 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
13754 where needed.
13755 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
13756 New.
13757 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
13758 (warn_unused_but_set_parameter): Default to warn_unused
13759 && extra_warnings.
13760 * doc/invoke.texi: Document -Wunused-but-set-variable and
13761 -Wunused-but-set-parameter.
13762
13763 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
13764 used count variable.
13765 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
13766 when operandN variables aren't used in the body of the expander
13767 or splitter.
13768 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
13769 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
13770 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
13771 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
13772 FOR_EACH_IMM_USE_ON_STMT): Likewise.
13773 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
13774 * tree.c (PROCESS_ARG): Likewise.
13775
13776 2010-04-07 Simon Baldwin <simonb@google.com>
13777
13778 * diagnostic.h (diagnostic_override_option_index): New macro to
13779 set a diagnostic's option_index.
13780 * c-tree.h (c_cpp_error): Add warning reason argument.
13781 * opts.c (_warning_as_error_callback): New.
13782 (register_warning_as_error_callback): Store callback for
13783 warnings enabled via enable_warning_as_error.
13784 (enable_warning_as_error): Call callback, minor code tidy.
13785 * opts.h (register_warning_as_error_callback): Declare.
13786 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
13787 response to -Werror=.
13788 (c_common_init_options): Register warning_as_error_callback in opts.c.
13789 * common.opt: Add -Wno-cpp option.
13790 * c-common.c (struct reason_option_codes_t): Map cpp warning
13791 reason codes to gcc option indexes.
13792 * (c_option_controlling_cpp_error): New function, lookup the gcc
13793 option index for a cpp warning reason code.
13794 * (c_cpp_error): Add warning reason argument, call
13795 c_option_controlling_cpp_error for diagnostic_override_option_index.
13796 * doc/invoke.texi: Document -Wno-cpp.
13797
13798 2010-04-07 Richard Guenther <rguenther@suse.de>
13799
13800 * ipa-reference.c (mark_load): Use get_base_address.
13801 (mark_store): Likewise.
13802
13803 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
13804 inserting GIMPLE_NOPs into the IL.
13805 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13806 Explicitly strip handled components and indirect references.
13807
13808 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
13809 folding address expressions.
13810 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
13811 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
13812 operand_equal_p to compare decls.
13813 (ptr_deref_may_alias_decl_p): Likewise.
13814 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
13815 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
13816 Handle reversed comparison ops.
13817 * tree-sra.c (asm_visit_addr): Use get_base_address.
13818 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
13819 * ipa-reference.c (mark_address): Use get_base_address.
13820
13821 2010-04-07 Richard Guenther <rguenther@suse.de>
13822
13823 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
13824 Propagate constants everywhere.
13825
13826 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13827
13828 PR debug/43516
13829 * tree.c (MAX_INT_CACHED_PREC): Define.
13830 (nonstandard_integer_type_cache): New array.
13831 (build_nonstandard_integer_type): Cache results for precision
13832 <= MAX_INT_CACHED_PREC.
13833
13834 2010-04-07 Richard Guenther <rguenther@suse.de>
13835
13836 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13837 -fargument-noalias-global, -fargument-noalias-anything): Remove.
13838 * common.opt: Likewise.
13839 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13840 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13841 (nonoverlapping_memrefs_p): Likewise.
13842 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13843 * opts.c (common_handle_option): Handle OPT_fargument_alias,
13844 OPT_fargument_noalias, OPT_fargument_noalias_anything and
13845 OPT_fargument_noalias_global for backward compatibility.
13846
13847 2010-04-07 Richard Guenther <rguenther@suse.de>
13848
13849 PR tree-optimization/43270
13850 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13851 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13852 * tree-ssa-pre.c (phi_translate_1): Adjust.
13853 (fully_constant_expression): Split out vn_reference handling to ...
13854 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13855 Fold reads from constant strings.
13856 (vn_reference_lookup): Handle fully constant references.
13857 (vn_reference_lookup_pieces): Likewise.
13858 * Makefile.in (expmed.o-warn): Add -Wno-error.
13859
13860 2010-04-07 Martin Jambor <mjambor@suse.cz>
13861
13862 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13863
13864 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
13865
13866 PR driver/41594
13867 * gcc.c: Add -static-libstdc++ to list of recognized options.
13868
13869 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13870
13871 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13872
13873 2010-04-07 Richard Guenther <rguenther@suse.de>
13874
13875 PR middle-end/42617
13876 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13877 bases build simple mem attributes to retain points-to information.
13878
13879 2010-04-07 Richard Guenther <rguenther@suse.de>
13880
13881 PR middle-end/42617
13882 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13883 preserve points-to related information.
13884
13885 2010-04-07 Richard Guenther <rguenther@suse.de>
13886
13887 PR middle-end/42617
13888 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13889 discard plain indirect references.
13890 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13891 * tree.c (tree_nop_conversion): Likewise.
13892
13893 2010-04-07 Dodji Seketeli <dodji@redhat.com>
13894
13895 PR debug/43628
13896 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13897
13898 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
13899
13900 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13901 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13902
13903 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13904
13905 * tree-if-conv.c: Fix indentation and comments.
13906
13907 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13908
13909 * tree-if-conv.c: Sort static functions in topological order.
13910
13911 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13912
13913 * tree-if-conv.c: Fix indentation and comments.
13914
13915 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13916
13917 PR middle-end/43519
13918 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13919 lang_hooks.types.type_for_size instead of
13920 build_nonstandard_integer_type.
13921 When converting an unsigned type to signed, double its precision.
13922 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13923 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13924 (graphite_create_new_loop_guard): When ub + 1 wraps around,
13925 use lb <= ub.
13926
13927 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13928
13929 PR middle-end/43519
13930 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13931 POINTER_PLUS_EXPR for pointer types.
13932
13933 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13934
13935 PR middle-end/43519
13936 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13937 * graphite-clast-to-gimple.c: Include langhooks.h.
13938 (max_signed_precision_type): New.
13939 (max_precision_type): Takes two types as arguments.
13940 (precision_for_value): New.
13941 (precision_for_interval): New.
13942 (gcc_type_for_interval): New.
13943 (gcc_type_for_value): New.
13944 (gcc_type_for_clast_term): New.
13945 (gcc_type_for_clast_red): New.
13946 (gcc_type_for_clast_bin): New.
13947 (gcc_type_for_clast_expr): Split up into several functions.
13948 (gcc_type_for_clast_eq): Rewritten.
13949 (compute_bounds_for_level): New.
13950 (compute_type_for_level_1): New.
13951 (compute_type_for_level): New.
13952 (gcc_type_for_cloog_iv): Removed.
13953 (gcc_type_for_iv_of_clast_loop): Rewritten.
13954 (graphite_create_new_loop): Compute the lower and upper bound types
13955 with gcc_type_for_clast_expr.
13956 (graphite_create_new_loop_guard): Same.
13957 (find_cloog_iv_in_expr): Removed.
13958 (compute_cloog_iv_types_1): Removed.
13959 (compute_cloog_iv_types): Removed.
13960 (gloog): Do not call compute_cloog_iv_types.
13961 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13962 GBB_CLOOG_IV_TYPES.
13963 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13964 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13965 (GBB_CLOOG_IV_TYPES): Removed.
13966
13967 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13968
13969 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13970 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13971 (detect_commutative_reduction): Same.
13972
13973 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13974
13975 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13976 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
13977 argument.
13978 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13979 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13980 (rewrite_commutative_reductions_out_of_ssa): Same.
13981 * passes.c (execute_function_todo): Call verify_ssa for every pass
13982 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
13983 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13984 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13985 with an extra argument.
13986 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
13987 verify_ssa only when the extra argument is true.
13988 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13989 with an extra argument.
13990 (tree_transform_and_unroll_loop): Same.
13991
13992 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13993
13994 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13995 for all the passes of the LNO having LOOP_CLOSED_SSA.
13996 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13997 * tree-loop-distribution.c (pass_loop_distribution): Same.
13998 * tree-pass.h (TODO_verify_loops): Removed.
13999 * tree-ssa-loop.c (pass_tree_loop_init): Same.
14000 (pass_lim): Same.
14001 (pass_tree_unswitch): Same.
14002 (pass_predcom): Same.
14003 (pass_vectorize): Same.
14004 (pass_linear_transform): Same.
14005 (pass_graphite_transforms): Same.
14006 (pass_iv_canon): Same.
14007 (pass_complete_unroll): Same.
14008 (pass_complete_unrolli): Same.
14009 (pass_parallelize_loops): Same.
14010 (pass_loop_prefetch): Same.
14011 (pass_iv_optimize): Same.
14012
14013 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
14014
14015 PR middle-end/32824
14016 * passes.c (init_optimization_passes): Move pass_lim before
14017 pass_copy_prop and pass_dce_loop.
14018
14019 2010-04-06 Jakub Jelinek <jakub@redhat.com>
14020
14021 PR target/43667
14022 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
14023 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
14024 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
14025 MULTI_* defines for 4 argument vpermil2p* builtins.
14026
14027 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14028
14029 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
14030 * config/i386/i386.c (x86_maybe_negate_const_int): New.
14031 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
14032 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
14033 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
14034 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
14035 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
14036 Use x86_maybe_negate_const_int to output insn mnemonic.
14037 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
14038 check from instruction predicate. Update comments.
14039 * config/i386/sync.md (sync_add<mode>): Use
14040 x86_maybe_negate_const_int to output insn mnemonic.
14041
14042 2010-04-06 Jan Hubicka <jh@suse.cz>
14043
14044 PR tree-optimization/42906
14045 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
14046 IGNORE_SELF argument. Set visited_control_parents for fully
14047 processed BBs.
14048 (find_obviously_necessary_stmts): Update call of
14049 mark_control_dependent_edges_necessary.
14050 (propagate_necessity): Likewise. Handle PHI edges more curefully.
14051
14052 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14053
14054 * config/i386/i386.md: Remove comment about 'e' and 'E'
14055 operand modifier.
14056
14057 2010-04-06 Richard Guenther <rguenther@suse.de>
14058
14059 PR tree-optimization/43627
14060 * tree-vrp.c (extract_range_from_unary_expr): Widenings
14061 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
14062 not varying.
14063
14064 2010-04-06 Jakub Jelinek <jakub@redhat.com>
14065
14066 * BASE-VER: Change to 4.6.0.
14067
14068 PR target/43638
14069 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
14070 handling.
14071
14072 2010-04-06 Richard Guenther <rguenther@suse.de>
14073
14074 PR middle-end/43661
14075 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
14076
14077 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14078
14079 * doc/invoke.texi (Optimize Options): Document that LTO
14080 won't remove object access purely due to incompatible
14081 declarations.
14082
14083 2010-04-04 Matthias Klose <doko@ubuntu.com>
14084
14085 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
14086 Initialize variable.
14087
14088 2010-04-03 Richard Guenther <rguenther@suse.de>
14089
14090 PR middle-end/42509
14091 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
14092 require a non-NULL MEM_OFFSET.
14093
14094 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
14095
14096 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
14097 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
14098 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
14099 config/alpha/predicates.md, config/arm/arm.md,
14100 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
14101 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
14102 config/darwin9.h, config/darwin.c, config/darwin.h,
14103 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
14104 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
14105 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
14106 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
14107 config/mips/mips.md, config/mn10300/mn10300.c,
14108 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
14109 config/rs6000/aix.h, config/rs6000/dfp.md,
14110 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
14111 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
14112 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
14113 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
14114 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
14115 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
14116 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
14117 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
14118 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
14119 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
14120 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
14121 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
14122 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
14123 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
14124 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
14125 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
14126 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
14127 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
14128 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
14129 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
14130 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
14131 opt-functions.awk, opth-gen.awk, params.def, passes.c,
14132 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
14133 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
14134 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
14135 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
14136 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
14137 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14138 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
14139 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
14140 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
14141 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14142 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
14143 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
14144 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
14145 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
14146
14147 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14148
14149 PR other/43620
14150 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
14151 * aclocal.m4: Regenerate.
14152
14153 2010-04-02 Richard Guenther <rguenther@suse.de>
14154
14155 PR tree-optimization/43629
14156 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
14157 if we have seen a constant value.
14158
14159 2010-04-02 Joseph Myers <joseph@codesourcery.com>
14160
14161 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
14162
14163 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
14164
14165 PR target/43469
14166 * arm.c (legitimize_tls_address): Adjust call to
14167 gen_tls_load_dot_plus_four.
14168 (arm_note_pic_base): New function.
14169 (arm_cannot_copy_insn_p): Use it.
14170 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
14171 constraint.
14172
14173 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14174
14175 PR bootstrap/43531
14176
14177 Revert:
14178 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14179
14180 * Makefile.in ($(out_object_file)): Depend on
14181 gt-$(basename $(notdir $(out_file))).h.
14182
14183 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
14184
14185 * config.gcc (lm32-*-rtems*): Add t-lm32.
14186
14187 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
14188
14189 * config.gcc: Add lm32-*-rtems*.
14190 * config/lm32/rtems.h: New file.
14191
14192 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
14193
14194 PR target/42609
14195 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
14196
14197 2010-04-01 Jakub Jelinek <jakub@redhat.com>
14198
14199 * dwarf2out.c (output_compilation_unit_header): For
14200 -gdwarf-4 use version 4 instead of version 3.
14201 (output_line_info): For version 4 and above emit additional
14202 maximum ops per insn header field.
14203 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
14204
14205 * dwarf2out.c (is_c_family, is_java): Remove.
14206 (lower_bound_default): New function.
14207 (add_bound_info, gen_descr_array_type_die): Use it.
14208
14209 2010-04-01 Dodji Seketeli <dodji@redhat.com>
14210
14211 PR debug/43325
14212 * dwarf2out.c (gen_variable_die): Allow debug info for variable
14213 re-declaration when it happens in a function.
14214
14215 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
14216
14217 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14218 (cgraph_remove_function_insertion_hook): Same.
14219 (cgraph_call_function_insertion_hooks): Same.
14220
14221 2010-04-01 Richard Guenther <rguenther@suse.de>
14222
14223 PR middle-end/43614
14224 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14225 and TREE_THIS_VOLATILE.
14226 (copy_ref_info): Likewise.
14227 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14228 * tree.c (build6_stat): Ignore side-effects of all but arg5
14229 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
14230 TARGET_MEM_REF.
14231
14232 2010-04-01 Richard Guenther <rguenther@suse.de>
14233
14234 PR tree-optimization/43607
14235 * ipa-type-escape.c (check_call): Do not access non-existing
14236 arguments.
14237
14238 2010-04-01 Richard Guenther <rguenther@suse.de>
14239
14240 PR middle-end/43602
14241 Revert
14242 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14243 Jack Howarth <howarth@bromo.med.uc.edu>
14244
14245 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14246 variables TLS.
14247
14248 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14249
14250 * doc/install.texi (Prerequisites): Document libelf usability on
14251 IRIX 5/6 and Solaris 2.
14252 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14253 Update GNU as, GNU ld requirements.
14254 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14255 Document Sun Studio compiler download.
14256 Update and simplify as, ld recommendations.
14257 (Specific, *-*-solaris2.7): Note obsoletion, removal.
14258
14259 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14260
14261 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14262 with_tune_32 to pentium4.
14263
14264 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
14265
14266 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14267
14268 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14269
14270 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14271 obsoletion, removal.
14272 Update IDO URL.
14273 Document GNU as requirement.
14274 Update configure requirements.
14275 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14276 Recomment IRIX 6.5.18+.
14277 Document IDF/IDL requirement.
14278 Document GNU as requirement.
14279 Document GNU ld bootstrap failure.
14280 Remove freeware.sgi.com reference.
14281
14282 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14283
14284 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
14285 UNIX V4.0, V5.0 obsoletion, removal.
14286 Remove --with-gc=simple reference.
14287 Update VM requirements during bootstrap.
14288 Remove -oldas bootstrap description.
14289 Update binutils reference.
14290 Remove comparison failure note.
14291
14292 2010-03-31 Richard Guenther <rguenther@suse.de>
14293 Zdenek Dvorak <ook@ucw.cz>
14294 Sebastian Pop <sebastian.pop@amd.com>
14295
14296 PR middle-end/43464
14297 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
14298 with multiple arguments.
14299 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
14300
14301 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14302
14303 * graphite-dependences.c (print_pddr): Call print_pdr with an
14304 extra argument.
14305 * graphite-poly.c (debug_pdr): Add an extra argument for the
14306 verbosity level.
14307 (print_pdr): Same.
14308 (print_pbb_domain): Same.
14309 (print_pbb): Same.
14310 (print_scop_context): Same.
14311 (print_scop): Same.
14312 (print_cloog): Same.
14313 (debug_pbb_domain): Same.
14314 (debug_pbb): Same.
14315 (print_pdrs): Same.
14316 (debug_pdrs): Same.
14317 (debug_scop_context): Same.
14318 (debug_scop): Same.
14319 (debug_cloog): Same.
14320 (print_scop_params): Same.
14321 (debug_scop_params): Same.
14322 (print_iteration_domain): Same.
14323 (print_iteration_domains): Same.
14324 (debug_iteration_domain): Same.
14325 (debug_iteration_domains): Same.
14326 (print_scattering_function): Same.
14327 (print_scattering_functions): Same.
14328 (debug_scattering_function): Same.
14329 (debug_scattering_functions): Same.
14330 * graphite-poly.h (debug_pdr): Update declaration.
14331 (print_pdr): Same.
14332 (print_pbb_domain): Same.
14333 (print_pbb): Same.
14334 (print_scop_context): Same.
14335 (print_scop): Same.
14336 (print_cloog): Same.
14337 (debug_pbb_domain): Same.
14338 (debug_pbb): Same.
14339 (print_pdrs): Same.
14340 (debug_pdrs): Same.
14341 (debug_scop_context): Same.
14342 (debug_scop): Same.
14343 (debug_cloog): Same.
14344 (print_scop_params): Same.
14345 (debug_scop_params): Same.
14346 (print_iteration_domain): Same.
14347 (print_iteration_domains): Same.
14348 (debug_iteration_domain): Same.
14349 (debug_iteration_domains): Same.
14350 (print_scattering_function): Same.
14351 (print_scattering_functions): Same.
14352 (debug_scattering_function): Same.
14353 (debug_scattering_functions): Same.
14354
14355 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14356
14357 * graphite-poly.c (print_scattering_function_1): New.
14358 (print_scattering_function): Call it.
14359 (print_scop_params): Remove spaces at the end of lines.
14360 (print_cloog): New.
14361 (debug_cloog): New.
14362 * graphite-poly.h (print_cloog): Declared.
14363 (debug_cloog): Declared.
14364
14365 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14366
14367 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
14368 in loop->header.
14369 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
14370 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
14371 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
14372 to switch between adding the IV bump in loop->latch or in loop->header.
14373
14374 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14375
14376 * graphite-poly.c (print_scattering_function): Pretty print following
14377 the scoplib format.
14378 (print_pdr): Same.
14379 (print_pbb_domain): Same.
14380 (dump_gbb_cases): Same.
14381 (dump_gbb_conditions): Same.
14382 (print_pdrs): Same.
14383 (print_pbb): Same.
14384 (print_scop_params): Same.
14385 (print_scop_context): Same.
14386 (print_scop): Same.
14387 (print_pbb_body): New.
14388 (lst_indent_to): New.
14389 (print_lst): Start new lines with a #.
14390 * graphite-poly.h (pbb_bb): New.
14391 (pbb_index): Use pbb_bb.
14392 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
14393 disjuncts.
14394 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
14395
14396 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14397
14398 * dwarf2out.c (size_of_die): For -gdwarf-4 use
14399 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
14400 and 0 instead of 1 for dw_val_class_flag.
14401 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
14402 dw_val_class_range_list, dw_val_class_loc_list,
14403 dw_val_class_lineptr and dw_val_class_macptr, use
14404 DW_FORM_flag_present for dw_val_class_flag and
14405 DW_FORM_exprloc for dw_val_class_loc.
14406 (output_die): For -gdwarf-4 print dw_val_class_loc
14407 size as uleb128 instead of 1 or 2 bytes and don't print
14408 anything for dw_val_class_flag.
14409
14410 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
14411 instead of cselib_lookup following by tweaking locs->setting_insn.
14412
14413 PR bootstrap/43596
14414 * cselib.c (cselib_process_insn): Clear cselib_current_insn
14415 even before returning from label, setjmp call or volatile asm
14416 handling.
14417
14418 2010-03-31 Richard Guenther <rguenther@suse.de>
14419
14420 PR middle-end/43600
14421 * cgraphunit.c (cgraph_output_in_order): Do not allocate
14422 temporary data on stack.
14423
14424 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14425
14426 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
14427 (PUSHSECTION_ASM_OP): Remove.
14428 (POPSECTION_ASM_OP): Remove.
14429 (PUSHSECTION_FORMAT): Remove.
14430 * config/sol2.h (PUSHSECTION_FORMAT): Define.
14431 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
14432 * config/sol2.c (solaris_output_init_fini): Use it.
14433
14434 2010-03-31 Jie Zhang <jie@codesourcery.com>
14435
14436 PR 43574
14437 * opt-functions.awk (var_type_struct): Use signed char type
14438 for simple variables.
14439
14440 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14441
14442 * config/sol2.c: Include output.h.
14443 (solaris_assemble_visibility): New function.
14444 * config/t-sol2 (sol2.o): Add output.h dependency.
14445 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
14446 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
14447 Redefine.
14448
14449 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14450
14451 PR target/43580
14452 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
14453 V2SImode or XFmode on PRE_DEC.
14454
14455 PR debug/43557
14456 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
14457 BLKmode.
14458
14459 2010-03-31 Jie Zhang <jie@codesourcery.com>
14460
14461 PR 43562
14462 * reload.h (caller_save_initialized_p): Declare.
14463 * toplev.c (backend_init_target): Don't call
14464 init_caller_save but set caller_save_initialized_p to false.
14465 * caller-save.c (caller_save_initialized_p): Define.
14466 (init_caller_save): Check caller_save_initialized_p.
14467 * ira.c (ira): Call init_caller_save if flag_caller_saves.
14468
14469 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14470
14471 PR target/39048
14472 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
14473 and soft-fp/t-softfp to tmake_file.
14474 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
14475 (LIBGCC2_TF_CEXT): Define.
14476 (TF_SIZE): Define.
14477
14478 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
14479
14480 PR debug/42977
14481 * cselib.c (n_useless_values): Document handling of debug locs.
14482 (n_useless_debug_values, n_debug_values): New variables.
14483 (new_elt_loc_list): Don't add to debug values, keep count.
14484 (promote_debug_loc): New.
14485 (cselib_reset_table): Zero new variables.
14486 (entry_and_rtx_equal_p): Promote debug locs.
14487 (discard_useless_locs): Increment n_useless_debug_values for
14488 debug values.
14489 (remove_useless_values): Adjust n_useless_values and n_debug_values
14490 with n_useless_debug_values.
14491 (add_mem_for_addr): Promote debug locs.
14492 (cselib_lookup_mem): Likewise.
14493 (cselib_lookup_addr): Renamed to...
14494 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
14495 (cselib_log_lookup): ... this. Turn into...
14496 (cselib_lookup_addr): ... new wrapper.
14497 (cselib_lookup_from_insn): New.
14498 (cselib_invalidate_regno): Increment n_useless_debug_values for
14499 debug values.
14500 (cselib_invalidate_mem): Likewise.
14501 (cselib_process_insn): Take n_deleted and n_debug_values into
14502 account to guard remove_useless_value call.
14503 (cselib_finish): Zero n_useless_debug_values.
14504 * cselib.h (cselib_lookup_from_insn): Declare.
14505 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
14506 (sched_analyze_2): Likewise.
14507
14508 2010-03-30 Jakub Jelinek <jakub@redhat.com>
14509
14510 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
14511 functions.
14512 (adjust_mems): Replace narrowing SUBREG of expression containing
14513 just PLUS, MINUS, MULT and ASHIFT of registers and constants
14514 with operations in the narrower mode.
14515
14516 PR debug/43593
14517 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
14518 regs_invalidated_by_call instead all call_used_reg_set registers.
14519
14520 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
14521
14522 PR middle-end/43430
14523 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
14524 pointer comparisons with types_compatible_p.
14525 * tree-vect-stmts.c (vectorizable_call): Same.
14526 (vectorizable_condition): Same.
14527
14528 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14529
14530 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
14531 stack check if the mask would be zero.
14532
14533 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14534 Jack Howarth <howarth@bromo.med.uc.edu>
14535
14536 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14537 variables TLS.
14538
14539 2010-03-30 Joseph Myers <joseph@codesourcery.com>
14540
14541 PR other/25232
14542 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
14543 and __unordtf2.
14544 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
14545 Include ___unordxf2 and ___unordtf2.
14546 * config/i386/libgcc-glibc.ver: Do not define inheritance from
14547 GCC_4.4.0 here.
14548
14549 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
14550
14551 * config/lm32/t-lm32: New file.
14552 * config.gcc: Use the above file when targetting lm32.
14553
14554 2010-03-28 Duncan Sands <baldrick@free.fr>
14555
14556 * Makefile.in (PLUGIN_HEADERS): Add except.h.
14557
14558 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14559
14560 PR middle-end/43431
14561 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14562 Improve vectorization cost model diagnostic.
14563
14564 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14565
14566 PR middle-end/43436
14567 * tree-vect-data-refs.c (vect_analyze_data_refs): When
14568 compute_data_dependences_for_loop returns false, early exit
14569 and output an extra diagnostic for the failed data reference
14570 analysis.
14571
14572 2010-03-29 Richard Guenther <rguenther@suse.de>
14573
14574 PR tree-optimization/43560
14575 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
14576 (can_sm_ref_p): Treat stores to readonly locations as trapping.
14577
14578 2010-03-29 Jie Zhang <jie@codesourcery.com>
14579
14580 PR 43564
14581 * toplev.c (process_options): Set optimization_default_node
14582 and optimization_current_node.
14583 * opts.c (decode_options): Don't set optimization_default_node
14584 and optimization_current_node.
14585
14586 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
14587
14588 * config/rtems.h: Abandon -qrtems_debug.
14589
14590 2010-03-28 Jan Hubicka <jh@suse.cz>
14591
14592 PR tree-optimization/43505
14593 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
14594 map should not be copied.
14595
14596 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14597
14598 PR middle-end/41674
14599 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
14600 cdtors, set DECL_PRESERVE_P.
14601 * ipa.c (cgraph_externally_visible_p): Return true if declaration
14602 should be preseved.
14603
14604 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
14605
14606 PR tree-optimization/43528
14607 * stor-layout.c (place_field): Check that constant fits into
14608 unsigned HWI when skipping calculation of MS bitfield layout.
14609
14610 2010-03-27 Jan Hubicka <jh@suse.cz>
14611
14612 PR middle-end/43391
14613 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
14614 notice_global_symbol work.
14615
14616 2010-03-27 Jakub Jelinek <jakub@redhat.com>
14617
14618 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
14619 instead of dwarf2out_decl.
14620 (struct var_loc_node): Remove section_label field.
14621 (dwarf2out_function_decl): New function.
14622 (dwarf2out_var_location): Don't set section_label field.
14623 (dwarf2out_begin_function): Don't empty decl_loc_table here.
14624
14625 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14626
14627 PR tree-optimization/43544
14628 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14629 First argument for builtin vectorized function hook is now a
14630 tree to be able to distinguish between machine specific and
14631 standard builtins.
14632 * targhooks.c (default_builtin_vectorized_function): Ditto.
14633 * targhooks.h (default_builtin_vectorized_function): Ditto.
14634 * target.h (struct gcc_target): Ditto.
14635 * tree-vect-stmts.c (vectorizable_function): Ditto.
14636 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14637 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14638 Ditto.
14639
14640 2010-03-26 Joseph Myers <joseph@codesourcery.com>
14641
14642 PR c/43381
14643 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14644 nested binding iff it is a FUNCTION_DECL.
14645 (store_parm_decls_newstyle): Pass nested=true to bind for
14646 FUNCTION_DECLs amongst parameters.
14647
14648 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14649
14650 * var-tracking.c (vt_expand_loc_callback): Don't run
14651 cselib_expand_value_rtx_cb in dummy mode if
14652 cselib_dummy_expand_value_rtx_cb returned false.
14653
14654 * var-tracking.c (emit_note_insn_var_location): For one part
14655 notes with offset 0, don't add EXPR_LIST around the location.
14656 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14657 add_location_or_const_value_attribute): Adjust for that change.
14658
14659 PR debug/43540
14660 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14661 into first operand and location into second.
14662 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14663 dw_cfi_oprnd_loc for DW_CFA_expression.
14664 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14665 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14666 assume first argument is regnum and second argument is location.
14667
14668 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14669
14670 PR target/42113
14671 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14672 of scratch register to DImode. Split to DImode comparison operator.
14673 Use SImode subreg of scratch register in the multiplication.
14674 (*cmp_sadd_sidi): Ditto.
14675 (*cmp_ssub_si): Ditto.
14676 (*cmp_ssub_sidi): Ditto.
14677
14678 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14679
14680 PR target/43524
14681 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14682 Remove invalid assert and wrong comment.
14683
14684 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14685
14686 PR debug/43516
14687 * flags.h (final_insns_dump_p): New extern.
14688 * final.c (final_insns_dump_p): New variable.
14689 (rest_of_clean_state): Set it before -fdump-final-insns=
14690 dumping, clear afterwards.
14691 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14692 MEM_ALIAS_SET on MEMs.
14693
14694 2010-03-26 David S. Miller <davem@davemloft.net>
14695
14696 * configure.ac: Fix sparc GOTDATA_OP bug check.
14697 * configure: Rebuild.
14698
14699 2010-03-26 Alan Modra <amodra@gmail.com>
14700
14701 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
14702
14703 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14704
14705 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
14706 TLS_SECTION_ASM_FLAG.
14707
14708 2010-03-25 Jakub Jelinek <jakub@redhat.com>
14709
14710 PR bootstrap/43511
14711 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
14712 Clear first_function_block_is_cold.
14713
14714 PR c/43385
14715 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
14716 argument if the argument is truth_value_p.
14717
14718 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14719
14720 * config/rs6000/constraints.md: Update copyright year for my changes.
14721
14722 PR target/43484
14723 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
14724 used in reg+reg addressing, swap registers.
14725
14726 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14727
14728 PR debug/43293
14729 * target.h (struct gcc_target): Add code_end hook.
14730 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
14731 if not yet defined.
14732 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
14733 * toplev.c (compile_file): Call targetm.asm_out.code_end
14734 hook before unwind info/debug info output.
14735 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
14736 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
14737 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14738 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
14739 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14740 * config/i386/i386.c (ix86_file_end): Renamed to...
14741 (ix86_code_end): ... this. Make static. Don't call
14742 file_end_indicate_exec_stack. Emit unwind info using
14743 final_start_function/final_end_function.
14744 (darwin_x86_file_end): Remove.
14745 (TARGET_ASM_CODE_END): Define.
14746 * config/i386/i386.h (TARGET_ASM_FILE_END,
14747 NEED_INDICATE_EXEC_STACK): Don't define.
14748 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
14749 (TARGET_ASM_FILE_END): Define to darwin_file_end.
14750 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
14751 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
14752
14753 PR target/43498
14754 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
14755 at the beginning and final_end_function at the end.
14756 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14757
14758 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14759
14760 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
14761 and Sun as TLS syntax.
14762 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
14763 * configure: Regenerate.
14764 * config.in: Regenerate.
14765 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
14766 (default_elf_asm_named_section): Use it.
14767 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
14768 (i386_output_dwarf_dtprel): Likewise.
14769 (output_addr_const_extra): Likewise.
14770 (output_pic_addr_const): Lowercase @GOTTPOFF.
14771 (output_addr_const_extra): Likewise.
14772 (output_pic_addr_const): Lowercase @GOTNTPOFF.
14773 (output_addr_const_extra): Likewise.
14774 (output_pic_addr_const): Lowercase @INDNTPOFF.
14775 (output_addr_const_extra): Likewise.
14776 (output_pic_addr_const): Lowercase @NTPOFF.
14777 (output_addr_const_extra): Likewise.
14778 (output_pic_addr_const): Lowercase @TPOFF.
14779 (output_addr_const_extra): Likewise.
14780 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
14781 (*tls_global_dynamic_64): Likewise.
14782 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
14783 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
14784
14785 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
14786 (ASM_OUTPUT_TLS_COMMON): Use it.
14787 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
14788
14789 PR target/38118
14790 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
14791 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14792 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
14793 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
14794 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14795 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
14796
14797 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14798
14799 * config/i386/i386.c (override_options): Don't accept
14800 -mtls-dialect=sun any longer.
14801 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
14802 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
14803 (*tls_local_dynamic_base_32_sun): Likewise.
14804 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14805
14806 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14807
14808 PR debug/43508
14809 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14810 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
14811
14812 PR debug/43479
14813 * ira.c (adjust_cleared_regs): New function.
14814 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
14815
14816 PR debug/19192
14817 PR debug/43479
14818 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
14819 from gimple_block.
14820 * expr.c (expand_expr_real): Restore previous
14821 curr_insn_source_location and curr_insn_block after
14822 expand_expr_real_1 call.
14823 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
14824 instead of expand_expr_real_1.
14825
14826 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
14827
14828 PR rtl-optimization/43413
14829 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14830 hard regs too.
14831
14832 2010-03-22 James E. Wilson <wilson@codesourcery.com>
14833
14834 PR target/43348
14835 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14836 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14837
14838 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
14839
14840 * config/i386/i386.c (ix86_target_string): Add -mfma.
14841 Fix a typo in comment.
14842
14843 2010-03-22 Mike Stump <mikestump@comcast.net>
14844
14845 PR target/23071
14846 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14847 Don't overly align based upon packed packed fields.
14848
14849 2010-03-22 Jason Merrill <jason@redhat.com>
14850
14851 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14852 Use () rather than [], and move before the element type.
14853
14854 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14855
14856 * doc/configfiles.texi (Configuration Files): Removed
14857 fixinc/Makefile*, intl/Makefile.*.
14858 * doc/makefile.texi: Fixed markup. Abstract from version
14859 control system used.
14860 (Makefile): Removed obsolete gcc/java/parse.y example.
14861 * doc/sourcebuild.texi: Likewise.
14862 (Top Level): Added config, gnattools, libdecnumber, libgcc,
14863 libgomp, libssp. Removed fastjar.
14864 (Miscellaneous Docs): Clarify location.
14865 Added COPYING3, COPYING3.LIB.
14866 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14867
14868 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14869
14870 PR target/38085
14871 * config/i386/i386.c (x86_function_profiler)
14872 [!NO_PROFILE_COUNTERS]: Fix typo.
14873 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14874 instead of callq.
14875
14876 2010-03-22 Janis Johnson <janis187@us.ibm.com>
14877 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14878
14879 * doc/sourcebuild.texi (Test Directives): Split into six
14880 subsections, with most of the current text in new subsections
14881 Directives, Selectors, and Final Actions.
14882 (Directives): Split list of test directives into multiple
14883 subsubsections.
14884 (Selectors): Describe use and syntax of selectors.
14885 (Effective-Target Keywords): Describe all existing keywords.
14886 (Add Options): Describe features for dg-add-options.
14887 (Require Support): Describe variants of dg-require-support.
14888 (Final Actions): Describe commands to use in dg-final.
14889
14890 2010-03-22 Michael Matz <matz@suse.de>
14891
14892 PR middle-end/43475
14893 * recog.c (validate_replace_rtx_group): Replace also in
14894 REG_EQUAL and REG_EQUIV notes.
14895
14896 2010-03-22 Richard Guenther <rguenther@suse.de>
14897
14898 PR tree-optimization/43390
14899 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14900 sure vector extracts are type correct.
14901
14902 2010-03-22 Richard Guenther <rguenther@suse.de>
14903
14904 PR middle-end/40106
14905 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14906 x * sqrt (x) even when optimizing for size if the target
14907 has native support for sqrt.
14908
14909 2010-03-22 Jakub Jelinek <jakub@redhat.com>
14910
14911 * varasm.c (make_decl_rtl_for_debug): Also clear
14912 flag_mudflap for the duration of make_decl_rtl call.
14913
14914 PR debug/43443
14915 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14916 locs from preserved VALUEs.
14917
14918 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14919
14920 PR middle-end/42718
14921 * pa.md (movmemsi): Set align to one if zero.
14922 (movmemdi): Likewise.
14923
14924 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
14925
14926 PR target/42321
14927 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14928 with their corresponding prologue pushes.
14929
14930 2010-03-20 Andrew Pinski <pinskia@gmail.com>
14931
14932 PR target/43156
14933 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14934 at the begining or end.
14935 (spu_expand_epilogue): Likewise.
14936
14937 2010-03-20 Richard Guenther <rguenther@suse.de>
14938
14939 PR rtl-optimization/43438
14940 * combine.c (make_extraction): Properly zero-/sign-extend an
14941 extraction of the low part of a CONST_INT. Also handle
14942 CONST_DOUBLE.
14943
14944 2010-03-19 Mike Stump <mikestump@comcast.net>
14945
14946 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14947 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14948 (override_options): Use SUBTARGET32_DEFAULT_CPU.
14949
14950 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
14951
14952 PR c/43211
14953 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14954 an error.
14955
14956 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
14957
14958 PR rtl-optimization/42258
14959 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14960 use that may match DEF.
14961
14962 PR target/40697
14963 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14964 the cost of loading the constant rather than assuming
14965 COSTS_N_INSNS (1).
14966 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14967 outer code is AND, do the same tests as the andsi3 expander and
14968 return COSTS_N_INSNS (1) if and is cheap.
14969
14970 * optabs.c (avoid_expensive_constant): Fix formatting.
14971
14972 2010-03-19 Michael Matz <matz@suse.de>
14973
14974 PR c++/43116
14975 * attribs.c (decl_attributes): When rebuilding a function pointer
14976 type use the same qualifiers as the original pointer type.
14977
14978 2010-03-19 Martin Jambor <mjambor@suse.cz>
14979
14980 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14981 and is_gimple_ip_invariant_address.
14982
14983 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14984
14985 Revert
14986 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14987
14988 * config/arm/arm.c (arm_override_options): Turn off
14989 flag_dwarf2_cfi_asm for AAPCS variants.
14990
14991 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14992
14993 PR target/43399
14994 * config/arm/arm.c (emit_multi_reg_push): Update comments.
14995 Use PRE_MODIFY instead of PRE_DEC.
14996 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14997 (vfp_emit_fstmd): Likewise.
14998
14999 2010-03-19 Michael Matz <matz@suse.de>
15000
15001 PR target/43305
15002 * builtins.c (expand_builtin_interclass_mathfn,
15003 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
15004 if that fails.
15005
15006 2010-03-19 Richard Guenther <rguenther@suse.de>
15007
15008 PR tree-optimization/43415
15009 * tree-ssa-pre.c (phi_translate): Split out worker to ...
15010 (phi_translate_1): ... this.
15011 (phi_translate): Move all caching here. Cache all NARY
15012 and REFERENCE translations.
15013
15014 2010-03-19 David S. Miller <davem@davemloft.net>
15015
15016 With help from Eric Botcazou.
15017 * config/sparc/sparc.c: Include dwarf2out.h.
15018 (emit_pic_helper): Delete.
15019 (pic_helper_symbol_name): Delete.
15020 (pic_helper_emitted_p): Delete.
15021 (pic_helper_needed): New.
15022 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
15023 (get_pc_thunk_name): New.
15024 (load_pic_register): Remove 'delay_pic_helper' arg. Use
15025 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
15026 Set pic_helper_needed to true. Don't call emit_pic_helper.
15027 (sparc_expand_prologue): Update load_pic_register call.
15028 (sparc_output_mi_thunk): Likewise.
15029 (sparc_file_end): Emit a hidden comdat symbol for the PIC
15030 thunk if possible. Output CFI information as needed.
15031
15032 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15033 Jack Howarth <howarth@bromo.med.uc.edu>
15034
15035 PR target/36399
15036 * config/i386/i386.h: Fix ABI on darwin x86-32.
15037
15038 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
15039
15040 * tree.h: Declare make_decl_rtl_for_debug.
15041 * varasm.c (make_decl_rtl_for_debug): New.
15042 * dwarf2out.c (rtl_for_decl_location): Call it.
15043 * cfgexpand.c (expand_debug_expr): Call it.
15044
15045 2010-03-18 Jakub Jelinek <jakub@redhat.com>
15046
15047 PR bootstrap/43399
15048 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
15049 mem_mode.
15050
15051 PR bootstrap/43403
15052 * var-tracking.c (vt_init_cfa_base): Do nothing if
15053 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
15054
15055 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
15056
15057 PR debug/42873
15058 * var-tracking.c (canonicalize_vars_star): New.
15059 (dataflow_post_merge_adjust): Use it.
15060
15061 2010-03-18 Jakub Jelinek <jakub@redhat.com>
15062
15063 PR debug/43058
15064 * var-tracking.c (non_suitable_const): New function.
15065 (add_uses): For DEBUG_INSNs with constants, don't record any
15066 value, instead just the constant value itself.
15067 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
15068 is not VAR_LOC_UNKNOWN_P, set var to the constant.
15069 (emit_notes_in_bb): Likewise.
15070 (emit_note_insn_var_location): For onepart variables if
15071 cur_loc is a VOIDmode constant, use DECL_MODE.
15072
15073 2010-03-18 Martin Jambor <mjambor@suse.cz>
15074
15075 PR middle-end/42450
15076 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
15077 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
15078 all non-clones. Moved call redirection...
15079 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
15080 (cgraph_materialize_all_clones): Dispose of all
15081 combined_args_to_skip bitmaps.
15082 (verify_cgraph_node): Do not check for edges pointing to wrong
15083 nodes in inline clones.
15084 * tree-inline.c (copy_bb): Call
15085 cgraph_redirect_edge_call_stmt_to_callee.
15086 * ipa.c (cgraph_remove_unreachable_nodes): Call
15087 cgraph_node_remove_callees even when there are used clones.
15088
15089 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
15090
15091 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
15092
15093 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
15094
15095 PR target/43383
15096 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
15097 for 32bit.
15098
15099 2010-03-18 Michael Matz <matz@suse.de>
15100
15101 PR middle-end/43419
15102 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
15103 into sqrt(x) if we need to preserve signed zeros.
15104
15105 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
15106 Eric Botcazou <ebotcazou@adacore.com>
15107
15108 PR rtl-optimization/43360
15109 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
15110 note if we don't know its invariant status.
15111
15112 2010-03-18 Michael Matz <matz@suse.de>
15113
15114 PR tree-optimization/43402
15115 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
15116 PHI chains of ssa names registered for update.
15117
15118 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
15119
15120 PR target/42427
15121 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
15122 non-offsettable and pre_modify update addressing.
15123 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
15124 and "2" alternatives "#".
15125 (*movdd_softfloat32): Make all alternatives "#";
15126 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
15127 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
15128 (*movdf_softfloat32): Make all alternatives "#";
15129 (movdi): Use the new DIFD mode iterator to create a common splitter
15130 for movdi, movdf and movdd patterns.
15131
15132 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
15133
15134 * common.opt (dumpdir): Remove redundant tab.
15135
15136 2010-03-17 Martin Jambor <mjambor@suse.cz>
15137
15138 PR tree-optimization/43347
15139 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
15140 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
15141
15142 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
15143
15144 PR rtl-optimization/42216
15145 * regrename.c (create_new_chain): New function, broken out from...
15146 (scan_rtx_reg): ... here. Call it. Handle the case where we are
15147 appending a use to an empty chain.
15148 (build_def_use): Remove previous changes that convert OP_INOUT to
15149 OP_OUT operands; instead detect the case where an OP_INOUT operand
15150 uses a previously untracked register and create an empty chain for it.
15151
15152 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15153
15154 * doc/extend.texi (Function Attributes): Rewrite unfinished
15155 sentence in ms_abi documentation.
15156
15157 2010-03-17 Alan Modra <amodra@gmail.com>
15158
15159 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
15160 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
15161 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
15162 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
15163
15164 2010-03-16 Richard Henderson <rth@redhat.com>
15165
15166 PR middle-end/43365
15167 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
15168 (lower_try_finally): Save and restore eh_seq around the expansion
15169 of the try-finally.
15170
15171 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15172
15173 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
15174 statements before splitting block.
15175
15176 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15177
15178 * doc/sourcebuild.texi (Testsuites): Fix markup.
15179 Use pathnames relative to gcc/testsuite.
15180 (Test Directives): Move description of how timeout is determined.
15181 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
15182 (C Tests): Correct gcc.misc-tests directory.
15183 Framework tests now live in gcc.test-framework.
15184
15185 2010-03-16 Richard Guenther <rguenther@suse.de>
15186
15187 PR middle-end/43379
15188 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
15189 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
15190
15191 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15192 Alexandre Oliva <aoliva@redhat.com>
15193
15194 PR tree-optimization/42917
15195 * lambda-code.c (remove_iv): Skip debug statements.
15196 (lambda_loopnest_to_gcc_loopnest): Likewise.
15197 (not_interesting_stmt): Debug statements are not interesting.
15198
15199 2010-03-16 Jakub Jelinek <jakub@redhat.com>
15200
15201 PR debug/43051
15202 PR debug/43092
15203 * cselib.c (cselib_preserve_constants,
15204 cfa_base_preserved_val): New static variables.
15205 (preserve_only_constants): New function.
15206 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
15207 clear its REG_VALUES. If cselib_preserve_constants, don't
15208 empty the whole hash table, but preserve there VALUEs with constants,
15209 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
15210 (cselib_preserve_cfa_base_value): New function.
15211 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
15212 (cselib_init): Change argument to int bitfield. Set
15213 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
15214 is in it.
15215 (cselib_finish): Clear cselib_preserve_constants and
15216 cfa_base_preserved_val.
15217 * cselib.h (enum cselib_record_what): New enum.
15218 (cselib_init): Change argument to int.
15219 (cselib_preserve_cfa_base_value): New prototype.
15220 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15221 * dse.c (dse_step1): Likewise.
15222 * cfgcleanup.c (thread_jump): Likewise.
15223 * sched-deps.c (sched_analyze): Likewise.
15224 * gcse.c (local_cprop_pass): Likewise.
15225 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15226 If FN is non-NULL, call the callback always and whenever it returns
15227 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
15228 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15229 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15230 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15231 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15232 * var-tracking.c: Include recog.h.
15233 (bb_stack_adjust_offset): Remove.
15234 (vt_stack_adjustments): Don't call it, instead just gather the
15235 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15236 (adjust_stack_reference): Remove.
15237 (compute_cfa_pointer): New function.
15238 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15239 (struct adjust_mem_data): New type.
15240 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15241 functions.
15242 (get_address_mode): New function.
15243 (replace_expr_with_values): Use it.
15244 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15245 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
15246 (adjust_sets): Remove.
15247 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15248 Use get_address_mode.
15249 (get_adjusted_src): Remove.
15250 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
15251 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
15252 (add_with_sets): Don't call adjust_sets.
15253 (fp_setter, vt_init_cfa_base): New functions.
15254 (vt_initialize): Change return type to bool. Move most of pool etc.
15255 initialization to the beginning of the function from end. Pass
15256 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15257 If !frame_pointer_needed, call vt_stack_adjustment before mos
15258 vector is filled, call vt_init_cfa_base if argp/framep has been
15259 eliminated to sp. If frame_pointer_needed and argp/framep has
15260 been eliminated to hard frame pointer, set
15261 hard_frame_pointer_adjustment and call vt_init_cfa_base after
15262 encountering fp setter in the prologue. For MO_ADJUST, call
15263 log_op_type before pusing the op into mos vector, not afterwards.
15264 Call adjust_insn before cselib_process_insn/add_with_sets,
15265 call cancel_changes (0) afterwards.
15266 (variable_tracking_main_1): Adjust for vt_initialize calling
15267 vt_stack_adjustments and returning whether it succeeded or not.
15268
15269 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
15270
15271 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15272 debug statements.
15273
15274 2010-03-15 Jakub Jelinek <jakub@redhat.com>
15275
15276 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15277 has been set.
15278 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15279 drap_reg has not been set.
15280
15281 2010-03-15 Michael Matz <matz@suse.de>
15282
15283 PR middle-end/43300
15284 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
15285 use it to expand block copies.
15286 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
15287 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
15288 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
15289
15290 2010-03-15 Richard Guenther <rguenther@suse.de>
15291
15292 PR tree-optimization/43367
15293 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
15294 elimination check.
15295
15296 2010-03-15 Richard Guenther <rguenther@suse.de>
15297
15298 PR tree-optimization/43317
15299 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
15300
15301 2010-03-15 Martin Jambor <mjambor@suse.cz>
15302
15303 PR tree-optimization/43141
15304 * tree-sra.c (create_abstract_origin): New function.
15305 (modify_function): Call create_abstract_origin.
15306
15307 2010-03-15 Chris Demetriou <cgd@google.com>
15308
15309 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
15310 wasn't copied.
15311
15312 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15313
15314 PR middle-end/43354
15315 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
15316 call insert_out_of_ssa_copy for default definitions.
15317
15318 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15319
15320 * graphite-clast-to-gimple.c (my_long_long): Defined.
15321 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
15322 * graphite-sese-to-poly.c (my_long_long): Defined.
15323 (scop_ivs_can_be_represented): Use it.
15324
15325 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15326
15327 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
15328 graphite-max-bbs-per-function, and loop-block-tile-size.
15329 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
15330 with "maximum".
15331 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
15332
15333 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15334
15335 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
15336 forward declaration.
15337 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
15338 (add_upper_bounds_from_estimated_nit): New.
15339 (build_loop_iteration_domains): Use it.
15340
15341 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15342
15343 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
15344
15345 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15346
15347 PR middle-end/43306
15348 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
15349 should be an INTEGER_CST. Also handle CASE_CONVERT.
15350
15351 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15352
15353 * graphite.c (graphite_initialize): To bound the number of bbs per
15354 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
15355 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
15356 * doc/invoke.texi: Document it.
15357
15358 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15359
15360 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
15361 * graphite-sese-to-poly.h (build_poly_scop): Same.
15362
15363 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15364
15365 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
15366 the number of parameters in the scop. Use as an upper bound
15367 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
15368 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
15369 * doc/invoke.texi: Document it.
15370
15371 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
15372
15373 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
15374 * doc/c-tree.texi: Remove.
15375 * doc/generic.texi: Merge c-tree.texi here.
15376 * doc/gccint.texi (Trees): Remove menu entry.
15377 (c-tree.texi): Remove @include.
15378 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
15379 * doc/languages.texi (Reading RTL): Ditto.
15380
15381 2010-03-12 Steve Ellcey <sje@cup.hp.com>
15382
15383 PR target/42869
15384 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
15385
15386 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15387
15388 PR middle-end/42431
15389 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
15390 code added to work around reload clobbering CONST insns.
15391
15392 2010-03-12 Jakub Jelinek <jakub@redhat.com>
15393
15394 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
15395 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
15396 (cselib_preserve_only_values): Remove retain argument, don't
15397 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
15398 * cselib.h (cselib_preserve_only_values): Remove retain argument.
15399 * var-tracking.c (micro_operation): Move insn field before union.
15400 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
15401 (struct variable_tracking_info_def): Remove n_mos field, change
15402 mos into a vector of micro_operations.
15403 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
15404 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
15405 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
15406 changing into a vector.
15407 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
15408 come before all other uops generated by add_stores.
15409 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
15410 argument removal.
15411 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
15412 a vector. Run just one pass over the bbs instead of separate counting
15413 and computation phase.
15414 (vt_finalize): Free VTI (bb)->mos vector instead of array.
15415
15416 PR debug/43329
15417 * tree-inline.c (remap_decls): Put old_var rather than origin_var
15418 into *nonlocalized_list vector.
15419 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
15420 even if origin is non-NULL.
15421 (gen_variable_die): Likewise.
15422 (process_scope_var): Don't change origin.
15423 (gen_decl_die): Likewise.
15424 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
15425 before adding new edges instead of after it, fix moving over
15426 debug stmts.
15427
15428 2010-03-11 David S. Miller <davem@davemloft.net>
15429
15430 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
15431 of four.
15432 * configure: Rebuild.
15433
15434 2010-03-11 Martin Jambor <mjambor@suse.cz>
15435
15436 PR tree-optimization/43257
15437 * tree.c (assign_assembler_name_if_neeeded): New function.
15438 (free_lang_data_in_cgraph): Assembler name assignment moved to the
15439 above new function.
15440 * tree.h (assign_assembler_name_if_neeeded): Declare.
15441 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
15442 the function if needed.
15443
15444 2010-03-11 Chris Demetriou <cgd@google.com>
15445
15446 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
15447 include/stdint-gcc.h, and include/stdint.h world-readable.
15448
15449 2010-03-11 Richard Guenther <rguenther@suse.de>
15450
15451 PR tree-optimization/43255
15452 * tree-vrp.c (process_assert_insertions_for): Do not insert
15453 asserts for trivial conditions.
15454
15455 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15456
15457 PR tree-optimization/43280
15458 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
15459 generation. Move calculation of size out of the if branch.
15460 (find_bswap): Modify compare number generation.
15461
15462 2010-03-11 Richard Guenther <rguenther@suse.de>
15463
15464 PR lto/43200
15465 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
15466 (input_gimple_stmt): Fixup handled component types during
15467 operand read. Also fix up decls in ADDR_EXPRs.
15468
15469 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
15470
15471 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
15472 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
15473
15474 2010-03-10 Jan Hubicka <jh@suse.cz>
15475
15476 PR c/43288
15477 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
15478 * varasm.c (get_variable_section): Don't do that here...
15479 (make_decl_rtl): ... and here.
15480 (do_assemble_alias): Produce decl RTL.
15481 (assemble_alias): Likewise.
15482
15483 2010-03-10 Jakub Jelinek <jakub@redhat.com>
15484
15485 PR debug/43290
15486 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
15487 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
15488 of fde->vdrap_reg.
15489 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
15490 (based_loc_descr): Only express drap or vdrap regno based expressions
15491 using DW_OP_fbreg when not optimizing.
15492 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
15493 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
15494 REG_CFA_SET_VDRAP note.
15495
15496 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
15497
15498 PR tree-optimization/43236
15499 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
15500 error in calculation of base address in reverse iteration case.
15501 (generate_builtin): Take number of latch executions if the statement
15502 is in the latch.
15503
15504 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
15505
15506 PR middle-end/42859
15507 * tree-eh.c: Include pointer-set.h.
15508 (lower_eh_dispatch): Filter out duplicate case labels and
15509 remove the unneeded edge when the label is unused. Return
15510 true when some edges are removed.
15511 (execute_lower_eh_dispatch): When any lowering resulted in
15512 removing an edge, also delete unreachable blocks.
15513
15514 2010-03-10 Jakub Jelinek <jakub@redhat.com>
15515
15516 PR bootstrap/43287
15517 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15518 UNSPEC_MACHOPIC_OFFSET.
15519
15520 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
15521
15522 PR target/43294
15523 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
15524 (m68k_delegitimize_address): New function.
15525
15526 2010-03-09 Jakub Jelinek <jakub@redhat.com>
15527
15528 PR debug/43299
15529 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
15530
15531 PR debug/43299
15532 * var-tracking.c (adjust_sets): New function.
15533 (count_with_sets, add_with_sets): Use it.
15534 (get_adjusted_src): New inline function.
15535 (add_stores): Use it.
15536
15537 PR debug/43304
15538 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
15539 call cselib_dummy_expand_value_rtx_cb instead of
15540 cselib_expand_value_rtx_cb.
15541
15542 PR debug/43293
15543 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
15544 * config/i386/i386.c: Include debug.h and dwarf2out.h.
15545 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
15546 and .cfi_endproc around the pic thunks.
15547 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
15548 all queued unwind info register saves are saved before the call.
15549 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
15550 considered as sp-=4 for unwind info and the pop as sp+=4 which
15551 also clobbers dest, but doesn't actually restore it.
15552
15553 PR debug/43290
15554 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
15555 RTX_FRAME_RELATED_P.
15556
15557 2010-03-09 Jie Zhang <jie@codesourcery.com>
15558
15559 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
15560 whitespaces in output template.
15561
15562 2010-03-09 Jie Zhang <jie@codesourcery.com>
15563
15564 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
15565 out array boundary.
15566
15567 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15568
15569 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
15570 builtins.exp in a separate job.
15571
15572 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15573
15574 * graphite-sese-to-poly.c (add_param_constraints): Use
15575 lower_bound_in_type and upper_bound_in_type.
15576
15577 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15578
15579 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
15580 instead of unsigned_type_node.
15581
15582 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15583 Reza Yazdani <reza.yazdani@amd.com>
15584
15585 PR middle-end/43065
15586 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
15587 on pointer type parameters.
15588
15589 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15590
15591 PR middle-end/42644
15592 PR middle-end/42130
15593 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
15594 handle conversions from pointer to integers.
15595 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
15596 induction variable, to be able to work with code generated by CLooG.
15597 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
15598 (build_poly_scop): Bail out if we cannot codegen a loop.
15599
15600 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15601
15602 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
15603 code generation with gloog_error.
15604
15605 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15606
15607 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
15608 Call fold_convert on all the returned values.
15609 (expand_scalar_variables_expr): Pass to
15610 expand_scalar_variables_ssa_name the type of the resulting expression.
15611
15612 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15613
15614 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
15615 ppl_min_for_le_pointset.
15616 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
15617 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
15618
15619 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15620
15621 * graphite-dependences.c (map_into_dep_poly): Removed.
15622 (dependence_polyhedron_1): Use combine_context_id_scat.
15623
15624 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15625
15626 * graphite-poly.h (struct poly_scattering): Add layout documentation.
15627 (struct poly_bb): Same.
15628 (combine_context_id_scat): New.
15629
15630 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15631
15632 PR middle-end/42326
15633 * sese.c (name_defined_in_loop_p): Return false for default
15634 definitions.
15635
15636 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15637
15638 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15639 and clean up the logic.
15640
15641 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15642
15643 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15644 early return.
15645
15646 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15647
15648 * var-tracking.c (remove_cselib_value_chains): Define only for
15649 ENABLE_CHECKING.
15650 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15651 delete_slot_part, emit_notes_for_differences_1): Don't call
15652 remove_cselib_value_chains here.
15653 (set_slot_part, emit_notes_for_differences_2): Don't call
15654 add_cselib_value_chains here.
15655 (preserved_values): New vector.
15656 (preserve_value): New function.
15657 (add_uses, add_stores, vt_add_function_parameters): Use it
15658 instead of cselib_preserve_value.
15659 (changed_values_stack): New vector.
15660 (check_changed_vars_0): New function.
15661 (check_changed_vars_1, check_changed_vars_2): Use it.
15662 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15663 changed_values_stack VALUEs.
15664 (vt_emit_notes): For all preserved_values call
15665 add_cselib_value_chains. If ENABLE_CHECKING call
15666 remove_cselib_value_chains before verifying value_chains is empty.
15667 Initialize and free changed_values_stack.
15668 (vt_initialize): Initialize preserved_values.
15669 (vt_finalize): Free preserved_values.
15670
15671 2010-03-08 Richard Guenther <rguenther@suse.de>
15672
15673 PR tree-optimization/43269
15674 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15675 region detection.
15676
15677 2010-03-08 Martin Jambor <mjambor@suse.cz>
15678
15679 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15680 (ipa_is_param_called): Removed.
15681 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15682 (ipa_print_node_params): Do not print the called flag.
15683 (ipa_write_node_info): Do not stream the called flag.
15684 (ipa_read_node_info): Likewise.
15685
15686 2010-03-07 Jakub Jelinek <jakub@redhat.com>
15687
15688 PR debug/43176
15689 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15690 * cselib.c (struct expand_value_data): Add dummy field.
15691 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15692 dummy to false.
15693 (cselib_dummy_expand_value_rtx_cb): New function.
15694 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15695 any rtl.
15696 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15697 * var-tracking.c: Include pointer-set.h.
15698 (variable): Change n_var_parts to char from int. Add
15699 cur_loc_changed and in_changed_variables fields.
15700 (variable_canonicalize): Remove.
15701 (shared_var_p): New inline function.
15702 (unshare_variable): Maintain cur_loc_changed and
15703 in_changed_variables fields. If var was in changed_variables,
15704 replace it there with new_var. Just copy cur_loc instead of
15705 resetting it to something else.
15706 (variable_union): Don't recompute cur_loc. Use shared_var_p.
15707 (dataflow_set_union): Don't call variable_canonicalize.
15708 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
15709 of their DEBUG_EXPR_TREE_DECLs.
15710 (canonicalize_loc_order_check): Verify that cur_loc is NULL
15711 and in_changed_variables and cur_loc_changed is false.
15712 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
15713 and cur_loc_changed. Don't update cur_loc here.
15714 (variable_merge_over_src): Don't call variable_canonicalize.
15715 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
15716 removing loc that is equal to cur_loc, clear cur_loc,
15717 set cur_loc_changed and ensure variable_was_changed is called.
15718 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
15719 compare pointers in cur_loc check, if it is equal to loc,
15720 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
15721 (variable_different_p): Remove compare_current_location argument,
15722 don't compare cur_loc.
15723 (dataflow_set_different_1): Adjust variable_different_p caller.
15724 (variable_was_changed): If dv had some var in changed_variables
15725 already, reset in_changed_variables flag for it and propagate
15726 cur_loc_changed over to the new variable. On empty var
15727 always set cur_loc_changed. Set in_changed_variables on whatever
15728 var is added to changed_variables.
15729 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
15730 Use shared_var_p. When removing loc that is equal to cur_loc,
15731 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
15732 end, don't set it to something else, just call variable_was_changed.
15733 (delete_slot_part): Use shared_var_p. When cur_loc equals to
15734 loc being removed, clear cur_loc and set cur_loc_changed.
15735 Set cur_loc_changed if all locations have been removed.
15736 (struct expand_loc_callback_data): New type.
15737 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
15738 allocated. Always create SUBREGs if simplify_subreg failed.
15739 Prefer to use cur_loc, when that fails and still in
15740 changed_variables (and seen first time) recompute it. Set
15741 cur_loc_changed of variables which had to change cur_loc and
15742 compute elcd->cur_loc_changed if any of the subexpressions used
15743 had to change cur_loc.
15744 (vt_expand_loc): Adjust to pass arguments in
15745 expand_loc_callback_data structure.
15746 (vt_expand_loc_dummy): New function.
15747 (emitted_notes): New variable.
15748 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
15749 that weren't used for any other decl in current
15750 emit_notes_for_changes call call vt_expand_loc_dummy to update
15751 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
15752 first loc_chain location if NULL before. Always use just
15753 cur_loc instead of first loc_chain location. When cur_loc_changed
15754 is false, when not --enable-checking=rtl just don't emit any note.
15755 When rtl checking, compute the note and assert it is the same
15756 as previous note. Clear cur_loc_changed and in_changed_variables
15757 at the end before removing from changed_variables.
15758 (check_changed_vars_3): New function.
15759 (emit_notes_for_changes): Traverse changed_vars to call
15760 check_changed_vars_3 on each changed var.
15761 (emit_notes_for_differences_1): Clear cur_loc_changed and
15762 in_changed_variables. Recompute cur_loc of new_var.
15763 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
15764 (vt_emit_notes): Initialize and destroy emitted_notes.
15765
15766 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
15767
15768 PR rtl-optimization/42220
15769 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
15770 Use verify_reg_tracked to determine if we should use OP_OUT rather
15771 than OP_INOUT.
15772 (build_def_use): If we see an in-out operand for a register that we
15773 know nothing about, treat is an output if possible, fail the block if
15774 not.
15775
15776 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15777
15778 PR debug/42897
15779 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
15780 permanently.
15781
15782 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15783
15784 PR debug/42897
15785 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
15786 uses of relevant DEFs that are dead outside the loop too.
15787
15788 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15789
15790 * var-tracking.c (dataflow_set_merge): Swap src and src2.
15791 Reverted:
15792 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15793 PR debug/41371
15794 * var-tracking.c (values_to_unmark): New variable.
15795 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15796 values_to_unmark vector. Moved body to...
15797 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15798 instead queue it into values_to_unmark vector.
15799 (vt_find_locations): Free values_to_unmark vector.
15800
15801 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
15802
15803 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
15804 (site.exp): Export them when plugins are enabled.
15805
15806 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
15807
15808 PR middle-end/42326
15809 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
15810 that contain scevs.
15811 (chrec_fold_multiply): Same.
15812
15813 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
15814
15815 PR c/43248
15816 * c-decl.c (build_compound_literal): Return early if init is
15817 an error_mark_node.
15818
15819 2010-03-04 Martin Jambor <mjambor@suse.cz>
15820
15821 PR tree-optimization/43164
15822 PR tree-optimization/43191
15823 * tree-sra.c (type_consists_of_records_p): Reject records with
15824 zero-size bit-fields at the end.
15825
15826 2010-03-04 Mike Stump <mikestump@comcast.net>
15827
15828 * Makefile.in (TAGS): Remove *.y.
15829
15830 2010-03-04 Richard Guenther <rguenther@suse.de>
15831
15832 PR tree-optimization/40761
15833 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15834 in reverse order.
15835 (my_rev_post_order_compute): New function.
15836 (init_pre): Call it.
15837
15838 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
15839
15840 PR middle-end/43209
15841 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15842 decrease the cost of an IV candidate when the cost is infinite.
15843
15844 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15845
15846 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15847 Use '3DNow!' for the extension of that name, ensure normal space
15848 after the string.
15849 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15850
15851 2010-03-03 Jeff Law <law@redhat.com>
15852
15853 * PR middle-end/32693
15854 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15855 than gen_rtx_SUBREG.
15856 (extract_bit_field_1): Likewise.
15857
15858 2010-03-03 Janis Johnson <janis187@us.ibm.com>
15859
15860 * doc/sourcebuild.texi (Test directives): Document that arguments
15861 include-opts and exclude-opts are now optional for dg-skip-if,
15862 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15863
15864 2010-03-03 Jason Merrill <jason@redhat.com>
15865
15866 PR c++/12909
15867 * cgraph.h (varpool_node): Add extra_name field.
15868 * varpool.c (varpool_extra_name_alias): New.
15869 (varpool_assemble_decl): Emit extra name aliases.
15870 (varpool_mark_needed_node): Look past an extra name alias.
15871 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15872 * lto-streamer-in.c (lto_input_tree): Read it.
15873 * lto-streamer-out.c (output_unreferenced_globals): Write it.
15874
15875 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
15876
15877 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15878 (sparc*-*-solaris2*): ...this.
15879
15880 2010-03-03 Jakub Jelinek <jakub@redhat.com>
15881
15882 PR debug/43229
15883 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15884 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
15885 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15886 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15887
15888 PR debug/43237
15889 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15890 fallthrough to default handling, just with want_address 0 instead of 2.
15891 For single element lists, add_AT_loc directly, otherwise create an
15892 artificial variable DIE and stick location list to it.
15893
15894 PR debug/43177
15895 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15896 (VAL_EXPR_HAS_REVERSE): Define.
15897 (reverse_op): New function.
15898 (add_stores): For reversible operations add an extra MO_VAL_USE.
15899
15900 2010-03-02 Jason Merrill <jason@redhat.com>
15901
15902 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15903
15904 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
15905
15906 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15907 (sparc64-*-linux*): Likewise.
15908 (sparc64-*-solaris2*): Include assembler files before linker ones.
15909 (sparc-*-solaris2*): Simplify and reorder to match previous case.
15910 * config/sparc/gas.h: Delete.
15911 * config/sparc/sol2-64.h: Add copyright notice.
15912 * config/sparc/sol2-gas-bi.h: Likewise.
15913 * config/sparc/sol2-gld.h: Likewise.
15914 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15915 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15916 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15917 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15918 (sparc_elf_asm_named_section): Rename into...
15919 (sparc_solaris_elf_asm_named_section): ...this. Always define.
15920
15921 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
15922
15923 * config/alpha/alpha.c (override_options): Fix -mtune error message.
15924
15925 2010-03-02 Jeff Law <law@redhat.com>
15926
15927 PR middle-end/42431
15928 * reload1.c (rtx_p, substitute_stack): Declare.
15929 (substitute): Record addresses of changed rtxs.
15930 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15931 Restore the original rtx when complete.
15932 (reload): Free subsitute_stack when complete.
15933
15934 2010-03-02 Janis Johnson <janis187@us.ibm.com>
15935
15936 * doc/gccint.texi (menu): Add Testsuites as a chapter.
15937 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15938 new chapter.
15939 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15940 LTO Testing, gcov Testing, profopt Testing, compat Testing,
15941 Torture Tests): Change from subsection to section.
15942
15943 2010-03-02 Jakub Jelinek <jakub@redhat.com>
15944 Steven Bosscher <steven@gcc.gnu.org>
15945
15946 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15947 instead of bb.
15948
15949 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
15950
15951 PR middle-end/42640
15952 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15953 the assignment from the new induction variable to the assignment
15954 of the value from the original loop PHI function.
15955
15956 2010-03-01 Janis Johnson <janis187@us.ibm.com>
15957 Daniel Jacobowitz <dan@codesourcery.com>
15958
15959 * doc/sourcebuild.texi (Test directives): Clarify options to
15960 dg-skip-if.
15961
15962 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15963
15964 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15965 Disable cfi directives unless GCC and gas agree on using read-only
15966 .eh_frame sections for 64-bit.
15967 * configure: Regenerate.
15968
15969 2010-03-01 Richard Guenther <rguenther@suse.de>
15970
15971 PR tree-optimization/43220
15972 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15973 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15974
15975 2010-03-01 Richard Guenther <rguenther@suse.de>
15976 Martin Jambor <mjambor@suse.cz>
15977
15978 PR middle-end/41250
15979 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15980 gimplified parameters.
15981
15982 2010-03-01 Christian Bruel <christian.bruel@st.com>
15983
15984 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15985
15986 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15987
15988 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15989
15990 2010-03-01 Richard Guenther <rguenther@suse.de>
15991
15992 PR middle-end/43213
15993 * expr.c (expand_assignment): Use the alias-oracle to tell
15994 if the rhs aliases the result decl.
15995
15996 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15997
15998 PR pch/14940
15999 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
16000 to sol_gt_pch_get_address.
16001 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
16002 64-bit, SPARC and x86.
16003 (sol_gt_pch_get_address): New function.
16004
16005 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
16006
16007 * toplev.h (inform_n, error_n): Declare.
16008 * diagnostic.c (inform_n, error_n): New function.
16009
16010 2010-03-01 Jakub Jelinek <jakub@redhat.com>
16011
16012 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
16013 has no rtl yet when processing local_decls, queue it and recheck
16014 if deferred stack allocation hasn't assigned it rtl.
16015
16016 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
16017
16018 * config/sh/sh.c (unspec_bbr_uid): New.
16019 (gen_block_redirect): Use it instead of INSN_UID.
16020 (gen_far_branch): Likewise.
16021
16022 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
16023
16024 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
16025 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
16026
16027 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16028
16029 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
16030 (Warning Options): -Wno-conversion-null is valid for
16031 Objective-C++ as well.
16032 * doc/tm.texi (Named Address Spaces): Likewise.
16033 * doc/plugins.texi (Plugins): Replace TABs with spaces.
16034 * doc/tree-ssa.texi (Tree SSA): Likewise.
16035
16036 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16037
16038 PR bootstrap/43202
16039 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
16040 by default. Don't set the default arch for
16041 i[34567]86-*-darwin*|x86_64-*-darwin*.
16042
16043 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16044
16045 PR bootstrap/43202
16046 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
16047 default. Set the default 32bit/64bit archs with $with_arch
16048 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
16049
16050 2010-02-27 Richard Guenther <rguenther@suse.de>
16051
16052 PR tree-optimization/43186
16053 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
16054 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
16055 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
16056 unroller iterations.
16057
16058 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16059
16060 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
16061 required and i[34567]86-*-* targets don't support 64bit ISA.
16062
16063 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
16064
16065 PR ada/43096
16066 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16067 the same alias set.
16068
16069 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
16070
16071 * config.gcc: Set the default arch at least to Prescott for
16072 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
16073 if SSE math is enabled.
16074
16075 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16076
16077 * diagnostic.c (diagnostic_initialize): Update.
16078 (diagnostic_report_diagnostic): Test inhibit_notes_p for
16079 informative notes.
16080 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
16081 (diagnostic_inhibit_notes): New.
16082 * toplev.c (process_options): inhibit notes with -fcompare-debug.
16083
16084 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16085
16086 PR c/20631
16087 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
16088 * doc/standards.texi: Likewise.
16089 * doc/extend.texi: Likewise.
16090 * doc/trouble.texi: Likewise.
16091 * doc/cppopts.texi: Likewise.
16092 * doc/install.texi: Likewise.
16093 * c.opt (std=c90,std=gnu90): New options.
16094 * c-opts.c (c_common_handle_option): Handle them.
16095
16096 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16097
16098 PR c/24577
16099 * c-decl.c (undeclared_variable): Use an informative note.
16100
16101 2010-02-26 Richard Guenther <rguenther@suse.de>
16102
16103 PR tree-optimization/43186
16104 * gimple.h (gimple_fold): Remove.
16105 * gimple.c (gimple_fold): Remove. Inline into single user ...
16106 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
16107 Try harder for conditions.
16108
16109 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16110
16111 PR debug/43190
16112 * function.c (used_types_insert): Don't skip through named pointer
16113 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
16114 and it is different from the main variant's type.
16115
16116 2010-02-26 Nick Clifton <nickc@redhat.com>
16117
16118 * config/rx/rx.md (sminsi3): Remove bogus alternative.
16119
16120 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
16121
16122 * config.gcc: Support --with-fpmath=sse for x86.
16123
16124 * config/i386/ssemath.h: New.
16125
16126 * doc/install.texi (--with-fpmath=sse): Documented.
16127
16128 2010-02-26 Richard Guenther <rguenther@suse.de>
16129
16130 PR tree-optimization/43188
16131 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
16132 vector types of over-aligned element type.
16133
16134 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
16135
16136 PR target/43175
16137 * config/i386/i386.c (expand_vec_perm_blend): Use correct
16138 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
16139
16140 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16141
16142 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
16143
16144 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16145
16146 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
16147 * var-tracking.c: Include diagnostic.h.
16148 (debug_dv): New function.
16149 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
16150
16151 PR debug/43160
16152 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
16153 (add_value_chain, add_value_chains, remove_value_chain,
16154 remove_value_chains): Handle DEBUG_EXPRs.
16155 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
16156
16157 PR debug/43161
16158 * regcprop.c (struct queued_debug_insn_change): New type.
16159 (struct value_data_entry): Add debug_insn_changes field.
16160 (struct value_data): Add n_debug_insn_changes field.
16161 (debug_insn_changes_pool): New variable.
16162 (free_debug_insn_changes, apply_debug_insn_changes,
16163 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
16164 (kill_value_one_regno): Call free_debug_insn_changes if needed.
16165 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
16166 fields.
16167 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
16168 changes for them.
16169 (copyprop_hardreg_forward_1): Don't call apply_change_group for
16170 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
16171 changes, call cprop_find_used_regs via note_stores.
16172 (copyprop_hardreg_forward): When copying vd from predecessor
16173 which has any queued DEBUG_INSN changes, make sure the pointers are
16174 cleared. At the end call df_analyze and then if there are any
16175 DEBUG_INSN changes queued at the end of some basic block for still
16176 live registers, apply them.
16177 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
16178
16179 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
16180
16181 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
16182 (arm*-*-*): Ditto.
16183
16184 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
16185
16186 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
16187 targets. Set the default with_cpu/with_arch from arch/cpu.
16188 Allow x86-64 and native for with_cpu/with_arch.
16189
16190 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
16191
16192 * ebitmap.c: Change calls to verify_popcount with calls to
16193 sbitmap_verify_popcount.
16194 (ebitmap_clear_bit): Fixed map->cacheindex test and
16195 map>cache update when bit clearing results in an empty
16196 element.
16197
16198 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
16199
16200 PR target/43154
16201 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
16202 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
16203 and support both V2DF and V2DI modes.
16204 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
16205 support both V2DF and V2DI modes.
16206 (general): Delete trailing whitespace from a few patterns.
16207
16208 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16209 V2DF/V2DI interleave high/low builtins.
16210
16211 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
16212 new VSX builtins.
16213
16214 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16215 interleave high/low functions.
16216
16217 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16218
16219 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16220 #pragma extern_prefix.
16221
16222 2010-02-25 Jakub Jelinek <jakub@redhat.com>
16223
16224 PR debug/43166
16225 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16226 BLKmode, assert op0 is a MEM and just adjust its mode.
16227
16228 PR debug/43165
16229 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16230 if bitpos isn't multiple of mode's bitsize.
16231
16232 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16233
16234 * c.opt (-ftemplate-depth=): New.
16235 (-ftemplate-depth-): Deprecate.
16236 * optc-gen.awk: Handle -ftemplate-depth=.
16237 * opth-gen.awk: Likewise.
16238 * c-opts.c (c_common_handle_option): Likewise.
16239 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16240
16241 2010-02-24 Jason Merrill <jason@redhat.com>
16242
16243 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16244
16245 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16246
16247 * cfg.c (alloc_aux_for_block): Remove inline.
16248 (alloc_aux_for_edge): Likewise.
16249
16250 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16251
16252 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16253
16254 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16255
16256 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16257 * config/i386/sol2-gas.h: New file.
16258 * config.gcc (i[34567]86-*-solaris2*): Use it.
16259
16260 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16261
16262 PR c/43128
16263 * c-typeck.c (ep_convert_and_check): New.
16264 (build_conditional_expr): Use it.
16265 (build_binary_op): Likewise.
16266
16267 2010-02-24 Jakub Jelinek <jakub@redhat.com>
16268
16269 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16270
16271 PR debug/43150
16272 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16273 bounds even for -O+.
16274 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16275 expr needs to have DECL_NAME set.
16276
16277 2010-02-24 Nick Clifton <nickc@redhat.com>
16278
16279 * config/mep/mep.c: Include gimple.h.
16280 (mep_function_uses_sp): Delete unused function.
16281 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
16282 parameters. Use unsigned integers to count args. Return a
16283 NULL_RTX instead of an error_mark_node. Toidy up formatting.
16284
16285 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16286
16287 PR target/43107
16288 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
16289 greater or equal to nelt instead of 2 * nelt.
16290 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
16291 with nelt - 1.
16292
16293 2010-02-23 Jason Merrill <jason@redhat.com>
16294
16295 PR debug/42800
16296 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
16297 in cfun->local_decls even if they have register types.
16298
16299 PR c++/42837
16300 * stor-layout.c (place_field): Don't warn about unnecessary
16301 DECL_PACKED if the type is packed.
16302
16303 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16304
16305 PR target/43139
16306 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
16307 GOTOFF relocs, even when the base reg isn't pic pointer.
16308
16309 2010-02-23 Michael Matz <matz@suse.de>
16310
16311 PR debug/43077
16312 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
16313 (expand_gimple_basic_block): Generate and use debug temps if there
16314 are debug uses left after the last real use of TERed ssa names.
16315 Unlink debug immediate uses when they are expanded.
16316
16317 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
16318
16319 PR 43123
16320 * config/i386/i386.c (override_options): Reorganise to provide
16321 better error messages.
16322
16323 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16324
16325 PR middle-end/43083
16326 * graphite-scop-detection.c (create_single_exit_edge): Move
16327 the call to find_single_exit_edge to....
16328 (create_sese_edges): ...here. Don't handle multiple edges
16329 exiting the function.
16330 (build_graphite_scops): Don't handle multiple edges
16331 exiting the function.
16332
16333 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16334
16335 PR middle-end/43097
16336 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
16337 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
16338
16339 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16340
16341 PR middle-end/43026
16342 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
16343
16344 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
16345
16346 PR c++/43126
16347 * c-typeck.c (convert_arguments): Print declaration location.
16348 * c-common.c (validate_nargs): Rename as
16349 builtin_function_validate_nargs.
16350 (check_builtin_function_arguments): Update.
16351
16352 2010-02-22 Richard Guenther <rguenther@suse.de>
16353
16354 PR lto/43045
16355 * tree-inline.c (declare_return_variable): Use the type of
16356 the call stmt lhs if available.
16357
16358 2010-02-22 Duncan Sands <baldrick@free.fr>
16359
16360 * passes.c (register_pass): Always consider all pass lists when
16361 ref_pass_instance_number is zero.
16362
16363 2010-02-22 Richard Guenther <rguenther@suse.de>
16364
16365 PR tree-optimization/42749
16366 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
16367 parameter. Do arithmetic in the original type.
16368 (update_accumulator_with_ops): Likewise.
16369 (adjust_accumulator_values): Adjust.
16370
16371 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16372
16373 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
16374 (QI to BLKmode splitter): New splitter.
16375
16376 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
16377
16378 * config/i386/i386.c (initial_ix86_tune_features): Turn on
16379 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
16380
16381 2010-02-22 Richard Guenther <rguenther@suse.de>
16382
16383 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
16384
16385 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
16386
16387 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
16388 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
16389 ($(T)crti.o, $(T)crtn.o): Remove rules.
16390
16391 2010-02-21 Tobias Burnus <burnus@net-b.de>
16392
16393 PR fortran/35259
16394 * doc/invoke.texi (-fassociative-math): Document that this
16395 option is automatically enabled for Fortran.
16396
16397 2010-02-20 David S. Miller <davem@davemloft.net>
16398
16399 * configure.ac: Test if linker and assembler properly support
16400 GOTDATA_OP relocations.
16401 * configure: Rebuild.
16402 * config.in: Likewise.
16403 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
16404 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
16405 (movsi_high_pic): Likewise.
16406 (movdi_lo_sum_pic): Likewise.
16407 (movdi_high_pic): Likewise.
16408 (movsi_pic_gotdata_op): New pattern.
16409 (movdi_pic_gotdata_op): Likewise.
16410 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
16411 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
16412
16413 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
16414
16415 PR target/43067
16416 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
16417 attribute to ssemul.
16418 (xop_mulv2div2di3_high): Ditto.
16419
16420 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16421
16422 PR c++/35669
16423 * c.opt (Wconversion-null): New option.
16424 * doc/invoke.texi (Wconversion-null): Document.
16425
16426 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16427
16428 * common.opt (Wlarger-than-): Add Undocumented.
16429
16430 2010-02-19 Mike Stump <mikestump@comcast.net>
16431
16432 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
16433
16434 2010-02-19 Jason Merrill <jason@redhat.com>
16435
16436 PR target/40332
16437 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
16438 * configure: Likewise.
16439
16440 2010-02-20 Alan Modra <amodra@gmail.com>
16441
16442 PR middle-end/42344
16443 * cgraph.h (cgraph_make_decl_local): Declare.
16444 * cgraph.c (cgraph_make_decl_local): New function.
16445 (cgraph_make_node_local): Use it.
16446 * cgraphunit.c (cgraph_function_versioning): Likewise.
16447 * ipa.c (function_and_variable_visibility): Likewise.
16448
16449 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16450
16451 PR bootstrap/43121
16452 * except.c (sjlj_emit_function_enter): Don't call
16453 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
16454 directly.
16455 * rtl.h (add_reg_br_prob_note): Remove prototype.
16456
16457 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16458
16459 PR 41779
16460 * c-common.c (conversion_warning): Remove widening conversions
16461 before checking the conversion of integers to reals.
16462
16463 2010-02-19 Mike Stump <mikestump@comcast.net>
16464
16465 PR middle-end/43125
16466 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
16467
16468 PR objc/43061
16469 * cgraphunit.c (process_function_and_variable_attributes): Check
16470 DECL_PRESERVE_P instead of looking up attribute "used".
16471 * ipa-pure-const.c (check_decl): Likewise.
16472 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
16473 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
16474 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
16475 instead of attribute "used".
16476 * config/sol2-c.c (solaris_pragma_init): Likewise.
16477 (solaris_pragma_fini): Likewise.
16478
16479 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16480
16481 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
16482 Use XCNEW instead of xcalloc.
16483 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
16484 XNEW instead of xmalloc.
16485 (get_fields): Use XNEWVEC instead of xmalloc.
16486
16487 PR debug/43084
16488 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
16489 populate vars array.
16490 (create_new_general_access): For debug stmts just reset value.
16491 (get_stmt_accesses): For accesses within debug stmts just record them
16492 using add_access_to_acc_sites instead of preventing the peeling or
16493 counting them as accesses.
16494
16495 PR middle-end/42233
16496 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
16497
16498 2010-02-19 Richard Guenther <rguenther@suse.de>
16499
16500 PR tree-optimization/42916
16501 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
16502 instructions.
16503
16504 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
16505
16506 * configure.ac: Replace all uses of changequote in macro arguments
16507 with proper quoting.
16508
16509 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16510
16511 PR middle-end/42233
16512 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
16513
16514 2010-02-19 Richard Guenther <rguenther@suse.de>
16515
16516 PR tree-optimization/42944
16517 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
16518 test for aliasing with errno.
16519
16520 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16521
16522 PR middle-end/42233
16523 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
16524 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
16525 * dojump.c: Include output.h.
16526 (inv): New inline function.
16527 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
16528 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
16529 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
16530 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
16531 argument, pass it down to other calls.
16532 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
16533 add REG_BR_PROB note to the conditional jump.
16534 * cfgexpand.c (add_reg_br_prob_note): Removed.
16535 (expand_gimple_cond): Don't call it, add the probability
16536 as last argument to jumpif_1/jumpifnot_1.
16537 * Makefile.in (dojump.o): Depend on output.h.
16538 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
16539 callers.
16540 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
16541 * stmt.c (do_jump_if_equal): Likewise.
16542 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
16543 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16544 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
16545 Likewise.
16546 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
16547 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
16548 jumpifnot_1 callers.
16549 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
16550 callers.
16551 (store_expr): Adjust jumpifnot caller.
16552 (store_constructor): Adjust jumpif caller.
16553
16554 PR middle-end/42233
16555 * gimplify.c (gimple_boolify): For __builtin_expect call
16556 gimple_boolify also on its first argument.
16557
16558 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
16559
16560 * configure.ac (gnu-unique-object): Wrap regexps using [] in
16561 changequote block.
16562 (__stack_chk_fail): Ditto. Remove quadrigraphs.
16563 * configure: Regenerated.
16564
16565 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16566
16567 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
16568 lang_hooks.types_compatible_p instead of comptypes.
16569
16570 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
16571
16572 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
16573 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
16574 if __prefer_thumb__ is defined.
16575
16576 2010-02-18 Martin Jambor <mjambor@suse.cz>
16577
16578 PR tree-optimization/43066
16579 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
16580 array with zero-sized element type.
16581
16582 2010-02-18 Jakub Jelinek <jakub@redhat.com>
16583
16584 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
16585 rtx, allocate struct var_loc_node here and return it to the
16586 caller, and only if it is actually needed.
16587 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
16588 move it earlier and return immediately if it returns NULL.
16589
16590 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
16591
16592 * config/sparc/gas.h: New file. Restore
16593 TARGET_ASM_NAMED_SECTION to its ELF default.
16594 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
16595 check !HAVE_GNU_AS.
16596 * config/sparc/sparc.c (sparc_elf_asm_named_section):
16597 Likewise. Add ATTRIBUTE_UNUSED to prototype.
16598 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
16599 after sparc/sysv4.h.
16600
16601 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
16602
16603 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
16604
16605 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
16606
16607 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
16608 patterns from predicated pattern.
16609
16610 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
16611
16612 PR target/43103
16613 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
16614 for insn mnemonic suffix.
16615
16616 2010-02-17 Richard Guenther <rguenther@suse.de>
16617
16618 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
16619 to loop PHI nodes.
16620
16621 2010-02-17 Jakub Jelinek <jakub@redhat.com>
16622
16623 PR debug/42918
16624 * caller-save.c (save_call_clobbered_regs): If BB ends with
16625 a DEBUG_INSN, move any notes in between last real insn and the last
16626 DEBUG_INSN after the last DEBUG_INSN.
16627
16628 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
16629
16630 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
16631 Fix return type. Fix argument type. Explain meaning of return value.
16632
16633 2010-02-16 Richard Guenther <rguenther@suse.de>
16634
16635 PR tree-optimization/41043
16636 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
16637 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16638 statements ...
16639 (vrp_visit_phi_node): ... but only for loop PHI nodes.
16640
16641 2010-02-16 Ira Rosen <irar@il.ibm.com>
16642
16643 PR tree-optimization/43074
16644 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16645 * tree-vect-loop.c (vect_analyze_loop_operations): Add
16646 vectorizable cycles in hybrid SLP check.
16647 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16648
16649 2010-02-16 Richard Guenther <rguenther@suse.de>
16650
16651 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16652 (true_dependence): If memrefs_conflict_p computes must-alias
16653 trust it. Move TBAA check after offset-based disambiguation.
16654 (canon_true_dependence): Likewise.
16655
16656 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
16657
16658 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16659 * doc/invoke.texi: Document it.
16660 * var-tracking.c: Include toplev.h and params.h.
16661 (vt_find_locations): Return bool indicating success. Compute
16662 hash sizes unconditionally. Check new parameter, report.
16663 (variable_tracking_main_1): Check vt_find_locations results and
16664 retry. Renamed from...
16665 (variable_tracking_main): ... this. New wrapper to preserve
16666 flag_var_tracking_assignments.
16667 * Makefile.in (var-tracking.o): Adjust dependencies.
16668
16669 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
16670 Jakub Jelinek <jakub@redhat.com>
16671
16672 PR target/42854
16673 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16674 if weak_import attribute is present.
16675 * config/darwin.c (machopic_select_section): Likewise.
16676
16677 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
16678
16679 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16680 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16681 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16682 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16683
16684 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16685 types.
16686
16687 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16688 Fix argument types.
16689
16690 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16691 Rewrite text to refer to the names.
16692
16693 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
16694
16695 * config/i386/i386-builtin-types.def
16696 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16697 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
16698 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
16699 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
16700 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
16701 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
16702 IX86_BUILTIN_VPERMIL2PS256.
16703 (MULTI_ARG_4_DF2_DI_I): Defined.
16704 (MULTI_ARG_4_DF2_DI_I1): Defined.
16705 (MULTI_ARG_4_SF2_SI_I): Defined.
16706 (MULTI_ARG_4_SF2_SI_I1): Defined.
16707 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
16708 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
16709 __builtin_ia32_vpermil2ps256.
16710 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16711 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16712 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
16713 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16714 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16715 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
16716 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
16717 CODE_FOR_xop_vpermil2v8sf3.
16718 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
16719 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
16720 * config/i386/xopintrin.h (_mm_permute2_pd): New.
16721 (_mm256_permute2_pd): New.
16722 (_mm_permute2_ps): New.
16723 (_mm256_permute2_ps): New.
16724
16725 2010-02-15 Nick Clifton <nickc@redhat.com>
16726
16727 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
16728 boolean parameters. Use emit_jump_insn when emitting a pop
16729 instruction containing a return insn.
16730 (push): Use 'true' rather than '1' as second parameter to F.
16731 (h8300_expand_prologue): Likewise.
16732 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
16733 (h8300_expand_epilogue): Likewise.
16734
16735 2010-02-15 Richard Guenther <rguenther@suse.de>
16736
16737 PR middle-end/43068
16738 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
16739 if that is zero.
16740
16741 2010-02-15 Nick Clifton <nickc@redhat.com>
16742
16743 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
16744 delta.
16745
16746 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
16747
16748 * intl.c (fake_ngettext): New function.
16749 * intl.h (fake_ngettext): Declare.
16750 (ngettext): Define macro.
16751 * collect2.c (notice_translated): New function.
16752 (main): Use notice_translated and ngettext.
16753 * collect2.h (notice_translated): Declare.
16754
16755 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
16756
16757 * reorg.c (delete_computation): Comment fixes.
16758 * caller-save.c (setup_save_areas): Idem.
16759 * sel-sched-dump.c (dump_lv_set): Idem.
16760 * rtl.def: Idem.
16761
16762 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16763
16764 * config/s390/s390.c (s390_sched_init): New function.
16765 (TARGET_SCHED_INIT): Target hook defined.
16766
16767 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
16768 Jack Howarth <howarth@bromo.med.uc.edu>
16769 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16770
16771 PR target/42982
16772 Partial revert of unintended change in fix for PR41605.
16773 * config/darwin.h: Fix typo.
16774 * config/darwin9.h: Same.
16775
16776 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16777
16778 * c-pch.c (pch_init): Clear v.
16779
16780 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16781
16782 PR middle-end/42930
16783 * graphite-scop-detection.c (graphite_can_represent_scev): Call
16784 graphite_can_represent_init for MULT_EXPR.
16785
16786 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16787
16788 PR middle-end/42914
16789 PR middle-end/42530
16790 * graphite-sese-to-poly.c (remove_phi): New.
16791 (translate_scalar_reduction_to_array): Call remove_phi.
16792
16793 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16794
16795 PR middle-end/42771
16796 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
16797 * graphite-clast-to-gimple.h (gloog): Update declaration.
16798 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
16799 * graphite-poly.h (struct poly_bb): Add missing comments.
16800 (struct scop): Add poly_scop_p field.
16801 (POLY_SCOP_P): New.
16802 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
16803 * graphite.c (graphite_transform_loops): Build the polyhedral
16804 representation for each scop before code generation.
16805 * sese.c (rename_variables_in_operand): Removed.
16806 (rename_variables_in_expr): Return the renamed expression.
16807 (rename_sese_parameters): New.
16808 * sese.h (rename_sese_parameters): Declared.
16809
16810 2010-02-11 Richard Guenther <rguenther@suse.de>
16811
16812 PR tree-optimization/42998
16813 * tree-ssa-pre.c (create_expression_by_pieces): Treat
16814 POINTER_PLUS_EXPR properly.
16815
16816 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16817 Changpeng Fang <changpeng.fang@amd.com>
16818
16819 PR middle-end/40886
16820 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
16821 the cost of an IV candidate when the IV is used in a test against zero.
16822
16823 * gcc.dg/tree-ssa/ivopts-3.c: New.
16824
16825 2010-02-11 Richard Guenther <rguenther@suse.de>
16826
16827 PR lto/41664
16828 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16829 pointer-vs-decl case by swapping refs. Handle some cases
16830 of pointer-vs-decl disambiguations more conservatively.
16831 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16832 to false after expanding.
16833
16834 2010-02-11 Richard Guenther <rguenther@suse.de>
16835
16836 PR driver/43021
16837 * gcc.c (process_command): Handle LTO file@offset case more
16838 appropriately.
16839
16840 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16841
16842 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16843 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
16844 of DEBUG_INSNs.
16845 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16846
16847 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16848 if MEM's mode size isn't DWARF2_ADDR_SIZE.
16849 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16850 Optimize eq/ne comparisons when both arguments are known to be
16851 zero-extended.
16852 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16853 Don't mask operands unnecessarily if they are known to be already
16854 zero-extended.
16855
16856 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
16857
16858 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16859 instead of loop.
16860
16861 2010-02-10 Richard Guenther <rguenther@suse.de>
16862
16863 PR tree-optimization/43017
16864 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16865 for wrapping signed arithmetic.
16866
16867 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16868
16869 PR debug/43010
16870 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16871 if no debug info should be emitted for it.
16872
16873 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
16874
16875 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16876 note when flag_exceptions is set.
16877
16878 2010-02-10 Duncan Sands <baldrick@free.fr>
16879
16880 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16881
16882 2010-02-10 Richard Guenther <rguenther@suse.de>
16883
16884 PR c/43007
16885 * tree.c (get_unwidened): Handle constants.
16886 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16887
16888 2010-02-10 Martin Jambor <mjambor@suse.cz>
16889
16890 PR lto/42985
16891 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16892 check for variable argument counts independently.
16893
16894 2010-02-10 Christian Bruel <christian.bruel@st.com>
16895
16896 PR target/42841
16897 * config/sh/sh.c (find_barrier): Increase length for non delayed
16898 conditional branches.
16899
16900 2010-02-10 Christian Bruel <christian.bruel@st.com>
16901
16902 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16903
16904 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16905
16906 * builtins.c (set_builtin_user_assembler_name): Also handle
16907 ffs if int is smaller than word.
16908
16909 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
16910
16911 PR middle-end/42973
16912 * ira-conflicts.c (get_dup): Remove.
16913 (process_reg_shuffles): Add new parameter. Use it as an
16914 additional guard for copy generation.
16915 (add_insn_allocno_copies): Rewrite.
16916
16917 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
16918
16919 * common.opt (fsched2-use-traces): Preserved for backward
16920 compatibility.
16921 * doc/invoke.texi: Remove the documentation about option
16922 -fsched2-use-traces.
16923 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16924 flag_sched2_use_traces.
16925 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16926 the backward compatibility flag section.
16927
16928 2010-02-09 Richard Guenther <rguenther@suse.de>
16929
16930 PR tree-optimization/43008
16931 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16932 make HEAP variables initialized from global memory if they
16933 are not known builtin functions.
16934 (find_func_aliases): Adjust.
16935
16936 2010-02-09 Richard Guenther <rguenther@suse.de>
16937
16938 PR tree-optimization/43000
16939 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16940 arithmetic manually.
16941
16942 2010-02-08 Jakub Jelinek <jakub@redhat.com>
16943
16944 PR tree-optimization/42931
16945 * tree-loop-linear.c (try_interchange_loops): Don't call
16946 double_int_mul if estimated_loop_iterations failed.
16947
16948 2010-02-08 Martin Jambor <mjambor@suse.cz>
16949
16950 PR middle-end/42898
16951 * tree-sra.c (build_accesses_from_assign): Do not mark in
16952 should_scalarize_away_bitmap if stmt has volatile ops.
16953 (sra_modify_assign): Do not process assigns piecemeal if if stmt
16954 has volatile ops.
16955
16956 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
16957
16958 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16959
16960 2010-02-07 Adam Nemet <adambnmet@gmail.com>
16961
16962 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16963 before the pattern.
16964
16965 2010-02-07 Andrew Pinski <pinskia@gmail.com>
16966
16967 PR middle-end/42946
16968 * df-core.c (df_finish_pass): Change type of saved_flags to int.
16969
16970 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16971
16972 PR middle-end/42988
16973 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16974 to unknown_dependence.
16975 (graphite_legal_transform_dr): Handle the unknown_dependence.
16976 (graphite_carried_dependence_level_k): Same.
16977
16978 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16979
16980 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16981
16982 2010-02-07 Richard Guenther <rguenther@suse.de>
16983
16984 PR middle-end/42991
16985 * expr.c (get_inner_reference): Always initialize *pbitsize.
16986
16987 2010-02-07 Richard Guenther <rguenther@suse.de>
16988
16989 PR middle-end/42956
16990 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16991 new ARRAY_REFs on variable size element or minimal index arrays.
16992 Complete.
16993 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16994 gimple_fold_indirect_ref.
16995
16996 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
16997
16998 PR target/42957
16999 * arm.c (arm_override_options): Just return if the user has specified
17000 an invalid fpu name.
17001
17002 2010-02-03 Jason Merrill <jason@redhat.com>
17003
17004 PR c++/42870
17005 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
17006 i386_pe_maybe_record_exported_symbol.
17007
17008 2010-02-05 Steve Ellcey <sje@cup.hp.com>
17009
17010 PR target/42924
17011 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17012 (pa_delegitimize_address): New function.
17013
17014 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
17015
17016 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
17017 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
17018
17019 2010-02-05 Richard Guenther <rguenther@suse.de>
17020
17021 PR lto/42762
17022 * lto-streamer-in.c (get_resolution): Deal with references
17023 to undefined functions.
17024
17025 2010-02-05 Richard Guenther <rguenther@suse.de>
17026
17027 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
17028 (fold_const_aggregate_ref): Likewise.
17029 (ccp_fold_stmt): Substitute loads.
17030 (maybe_fold_reference): Verify types before substituting.
17031 Unshare properly.
17032 (fold_gimple_assign): Unshare properly.
17033 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
17034
17035 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
17036
17037 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
17038 for rs6000_gen_cell_microcode.
17039
17040 2010-02-04 Richard Guenther <rguenther@suse.de>
17041
17042 PR rtl-optimization/42952
17043 * dse.c (const_or_frame_p): Remove MEM handling.
17044
17045 2010-02-04 Nick Clifton <nickc@redhat.com>
17046
17047 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17048 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17049 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
17050 (mn10300_asm_output_mi_thunk): New function.
17051 (mn10300_can_output_mu_thunk): New function.
17052 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
17053 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
17054 (FUNCTION_ARG): Delete incorrect comment.
17055
17056 2010-02-03 Jason Merrill <jason@redhat.com>
17057
17058 PR c++/40138
17059 * fold-const.c (operand_equal_p): Handle erroneous types.
17060
17061 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17062
17063 * config/h8300/h8300.md (can_delay): Fix attibute condition.
17064
17065 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
17066
17067 PR rtl-optimization/42941
17068 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
17069 of xmalloc.
17070
17071 2010-02-03 Jason Merrill <jason@redhat.com>
17072
17073 PR c++/35652
17074 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
17075
17076 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
17077
17078 PR debug/42896
17079 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
17080 (cselib_reset_table): Renamed from...
17081 (cselib_reset_table_with_next_value): ... this.
17082 (cselib_get_next_uid): Renamed from...
17083 (cselib_get_next_unknown_value): ... this.
17084 * cselib.c (next_uid): Renamed from...
17085 (next_unknown_value): ... this.
17086 (cselib_clear_table): Adjust.
17087 (cselib_reset_table): Adjust. Renamed from...
17088 (cselib_reset_table_with_next_value): ... this.
17089 (cselib_get_next_uid): Adjust. Renamed from...
17090 (cselib_get_next_unknown_value): ... this.
17091 (get_value_hash): Use hash.
17092 (cselib_hash_rtx): Likewise.
17093 (new_cselib_val): Adjust. Set and dump uid.
17094 (cselib_lookup_mem): Pass next_uid as hash.
17095 (cselib_subst_to_values): Likewise.
17096 (cselib_log_lookup): Dump uid.
17097 (cselib_lookup): Pass next_uid as hash. Adjust.
17098 (cselib_process_insn): Adjust.
17099 (cselib_init): Initialize next_uid.
17100 (cselib_finish): Adjust.
17101 (dump_cselib_table): Likewise.
17102 * dse.c (canon_address): Dump value uid.
17103 * print-rtl.c (print_rtx): Print value uid.
17104 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
17105 (dvuid): New type.
17106 (dv_uid): New function, sort of renamed from...
17107 (dv_htab_hash): ... this, reimplemented in terms of it and...
17108 (dv_uid2hash): ... this. New.
17109 (variable_htab_eq): Drop excess assertions.
17110 (tie_break_pointers): Removed.
17111 (canon_value_cmp): Compare uids.
17112 (variable_post_merge_New_vals): Print uids.
17113 (vt_add_function_parameters): Adjust.
17114 (vt_initialize): Reset table. Adjust.
17115
17116 2010-02-03 Richard Guenther <rguenther@suse.de>
17117
17118 PR tree-optimization/42944
17119 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
17120 (call_may_clobber_ref_p_1): Likewise. Properly handle
17121 malloc and calloc clobbering errno.
17122
17123 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
17124
17125 * doc/invoke.texi: Fix name of sched1 dump.
17126
17127 * opts.c (decode_options): Set flag_tree_switch_conversion
17128 only conditionally on optimize >= 2.
17129
17130 * gcse.c: Assorted comment fixes in pass description.
17131
17132 2010-02-03 Anthony Green <green@moxielogic.com>
17133
17134 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
17135 nop padding in order to maintain alignment of storage location of
17136 target function address.
17137 (moxie_trampoline_init): Store target function address at newly
17138 aligned location.
17139 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
17140 to 32.
17141 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
17142
17143 2010-02-03 Richard Guenther <rguenther@suse.de>
17144
17145 PR middle-end/42927
17146 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
17147
17148 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17149
17150 * config.gcc: Reenable check for obsolete targets.
17151 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
17152 mips-sgi-irix6.[0-4]*.
17153
17154 2010-02-02 Nick Clifton <nickc@redhat.com>
17155
17156 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
17157 constant size of 4 as being the same as 0.
17158 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
17159 can take values in the range 0..4.
17160
17161 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
17162
17163 PR java/41991
17164 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
17165 as _darwin10_Unwind_FindEnclosingFunction().
17166 * libgcc-libsystem.ver: New.
17167
17168 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
17169
17170 PR target/41399
17171 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
17172 implicitly set registers.
17173
17174 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
17175
17176 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
17177 (arm_override_options): Allow automatic selection of the thread
17178 pointer register if thumb2.
17179 (legitimize_pic_address): Improve code sequences for Thumb2.
17180 (arm_call_tls_get_addr): Likewise.
17181 (legitimize_tls_address): Likewise.
17182 * arm.md (pic_load_addr_arm): Delete. Replace with ...
17183 (pic_load_addr_32bit): ... this. New named pattern.
17184 * thumb2.md (pic_load_addr_thumb2): Delete.
17185 (pic_load_dot_plus_four): Delete.
17186 (tls_load_dot_plus_four): New named pattern.
17187
17188 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17189
17190 PR libgomp/29986
17191 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
17192 Document fix for TLS bug.
17193
17194 2010-01-31 Richard Guenther <rguenther@suse.de>
17195
17196 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
17197 conservatively correct.
17198
17199 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17200
17201 PR target/42850
17202 Revert:
17203 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17204
17205 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17206
17207 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17208
17209 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
17210
17211 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
17212
17213 * config.gcc: Adjust order of makefile fragments for mingw targets.
17214
17215 2010-01-31 Richard Guenther <rguenther@suse.de>
17216
17217 PR middle-end/42898
17218 * gimplify.c (gimplify_init_constructor): For volatile LHS
17219 initialize a temporary.
17220
17221 2010-01-31 Matthias Klose <doko@ubuntu.com>
17222
17223 * configure.ac: Fix __stack_chk_fail check for cross builds configured
17224 --with-headers
17225 * configure: Regenerate.
17226
17227 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
17228
17229 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17230 the same alias set and their sizes different constantness.
17231 (aliasing_component_refs_p): Revert 2009-10-24 change.
17232
17233 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17234
17235 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17236 unused.
17237
17238 2010-01-29 Richard Guenther <rguenther@suse.de>
17239
17240 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17241 Assert we successfully updated the call.
17242
17243 2010-01-29 Jakub Jelinek <jakub@redhat.com>
17244
17245 PR rtl-optimization/42889
17246 * df.h (df_set_bb_dirty_nonlr): New prototype.
17247 * df-core.c (df_set_bb_dirty_nonlr): New function.
17248 * df-scan.c (df_insn_rescan): Call it instead of
17249 df_set_bb_dirty for DEBUG_INSNs.
17250
17251 2010-01-29 Richard Guenther <rguenther@suse.de>
17252
17253 PR middle-end/37448
17254 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17255 quadratic behavior in most cases.
17256
17257 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
17258
17259 PR target/42891
17260 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17261 in the call to gen_x86_movsicc_0_m1.
17262
17263 2010-01-28 Richard Guenther <rguenther@suse.de>
17264
17265 PR tree-optimization/42871
17266 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17267
17268 2010-01-28 Richard Guenther <rguenther@suse.de>
17269
17270 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17271 into call arguments.
17272
17273 2010-01-28 Richard Guenther <rguenther@suse.de>
17274
17275 PR middle-end/42883
17276 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17277 the forwarder if the destination is an EH landing pad.
17278
17279 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
17280
17281 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
17282 block list passed to gimple_duplicate_sese_tail.
17283 (parallelize_loops): Avoid parallelization when the function
17284 has_nonlocal_label.
17285 Avoid parallelization when the preheader is IRREDUCIBLE.
17286 Try to optimize when estimated_loop_iterations_int is unresolved.
17287 Add the loop's location to the dump file.
17288 * tree-cfg.c (add_phi_args_after_redirect): Remove.
17289 (gimple_duplicate_sese_tail): Remove the check for the latch.
17290 Redirect nexits to the exit block.
17291 Remove handling of the incoming edges to the latch.
17292 Redirect the backedge from the copied latch to the exit bb.
17293
17294 2010-01-28 Michael Matz <matz@suse.de>
17295
17296 PR target/42881
17297 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
17298 Wrap force_reg into a sequence, emit it before user.
17299
17300 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
17301
17302 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
17303 (arm_rev): New.
17304 (arm_legacy_rev): Likewise.
17305 (thumb_legacy_rev): Likewise.
17306
17307 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17308
17309 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
17310 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
17311 on MEM's address failed, try avoid_constant_pool_reference and
17312 recurse if it returned something different.
17313 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
17314 address, try avoid_constant_pool_reference and recurse if it
17315 returned something different.
17316 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
17317 address and avoid_constant_pool_reference returned something
17318 different, don't set have_address.
17319
17320 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
17321
17322 PR debug/42861
17323 * var-tracking.c (val_store): Add modified argument, obey it.
17324 Adjust callers.
17325 (count_uses): Move down logging of main.
17326 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
17327 don't need resolution.
17328 (emit_notes_in_bb): Likewise.
17329
17330 2010-01-27 Richard Guenther <rguenther@suse.de>
17331
17332 PR middle-end/42878
17333 * tree-inline.c (remap_decl): Delay remapping of SSA name
17334 default definitions until we need them.
17335
17336 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17337
17338 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17339 (rs6000_delegitimize_address): New function.
17340
17341 * config/s390/s390.c (s390_delegitimize_address): Call
17342 delegitimize_mem_from_attrs.
17343
17344 PR middle-end/42874
17345 * tree-inline.c (cannot_copy_type_1): Removed.
17346 (copy_forbidden): Don't forbid copying of functions containing
17347 records/unions with variable length fields.
17348
17349 2010-01-27 Christian Bruel <christian.bruel@st.com>
17350
17351 Revert:
17352 PR target/42841
17353 * config/sh/sh.c (find_barrier): Increase length for non delayed
17354 conditional branches.
17355
17356 2010-01-27 Matthias Klose <doko@ubuntu.com>
17357
17358 * configure.ac (gnu-unique-object): Fix ldd version check.
17359 * configure: Regenerate.
17360
17361 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17362
17363 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
17364 HAVE_GNU_AS value.
17365 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
17366 Test for HAVE_GNU_AS value.
17367
17368 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17369
17370 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
17371 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
17372 INT64_TYPE): Define.
17373 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
17374 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17375 INT_LEAST64_TYPE): Define.
17376 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
17377 UINT_LEAST64_TYPE): Define.
17378 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
17379 INT_FAST64_TYPE): Define.
17380 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17381 UINT_FAST64_TYPE): Define.
17382 (INTMAX_TYPE, UINTMAX_TYPE): Define.
17383 (INTPTR_TYPE, UINTPTR_TYPE): Define.
17384 (SIG_ATOMIC_TYPE): Define.
17385
17386 2010-01-26 Richard Guenther <rguenther@suse.de>
17387
17388 * df-scan.c (df_scan_set_bb_info): Remove assert.
17389 (df_insn_rescan_debug_internal): Merge asserts.
17390 (df_install_ref): Likewise.
17391 (df_mark_reg): Use bitmap_set_range.
17392 (df_hard_reg_used_p): Remove assert.
17393 (df_hard_reg_used_count): Likewise.
17394
17395 2010-01-26 Richard Guenther <rguenther@suse.de>
17396
17397 PR rtl-optimization/42685
17398 * web.c (web_main): Ignore DEBUG_INSNs.
17399
17400 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
17401
17402 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
17403
17404 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
17405 Fix types of fndecl and arglist parameters.
17406
17407 2010-01-26 Richard Guenther <rguenther@suse.de>
17408
17409 PR middle-end/42806
17410 * tree-eh.c (unsplit_eh): Skip debug insns.
17411
17412 2010-01-26 Richard Guenther <rguenther@suse.de>
17413
17414 PR tree-optimization/42250
17415 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
17416
17417 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17418
17419 PR fortran/42866
17420 * omp-low.c (expand_omp_sections): Only use single_pred if
17421 l2_bb is single_pred_p.
17422
17423 2010-01-25 Christian Bruel <christian.bruel@st.com>
17424
17425 PR target/42841
17426 * config/sh/sh.c (find_barrier): Increase length for non delayed
17427 conditional branches.
17428 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
17429
17430 2010-01-24 David S. Miller <davem@davemloft.net>
17431
17432 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
17433 define if not using GAS.
17434 * config/sparc/sparc.c (sparc_elf_asm_named_section):
17435 Likewise. Delete SECTION_MERGE code, which is only applicable
17436 when using GAS.
17437
17438 2010-01-24 Mark Mitchell <mark@codesourcery.com>
17439
17440 PR c++/42748
17441 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
17442 mangling of va_list in system headers.
17443
17444 2010-01-23 Toon Moene <toon@moene.org>
17445
17446 * tree-predcom.c (combine_chains): Return NULL, not false.
17447
17448 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
17449
17450 * tree-loop-distribution.c (distribute_loop): Fix declaration and
17451 initialization of variable res to agree with return type.
17452
17453 2010-01-22 Steve Ellcey <sje@cup.hp.com>
17454
17455 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
17456 * tree-sra.c: Add include of expr.h.
17457
17458 2010-01-22 Jakub Jelinek <jakub@redhat.com>
17459
17460 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
17461 insert the debug stmt on the single non-EH edge from the stmt.
17462
17463 2010-01-22 Richard Henderson <rth@redhat.com>
17464
17465 PR tree-opt/42833
17466 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
17467 the RHS until after generate_subtree_copies has insertted its
17468 code before the current statement.
17469
17470 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
17471
17472 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
17473
17474 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
17475
17476 2010-01-21 Martin Jambor <mjambor@suse.cz>
17477
17478 PR tree-optimization/42585
17479 * tree-sra.c (struct access): New field grp_total_scalarization.
17480 (dump_access): Dump the new field.
17481 (should_scalarize_away_bitmap): New variable.
17482 (cannot_scalarize_away_bitmap): Likewise.
17483 (sra_initialize): Allocate new bitmaps.
17484 (sra_deinitialize): Free new bitmaps.
17485 (create_access_1): New function.
17486 (create_access): Parts moved to create_access_1.
17487 (type_consists_of_records_p): New function.
17488 (completely_scalarize_record): Likewise.
17489 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
17490 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
17491 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
17492 access.
17493 (analyze_all_variable_accesses): Completely scalarize small eligible
17494 records.
17495
17496 2010-01-21 Martin Jambor <mjambor@suse.cz>
17497
17498 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
17499
17500 2010-01-21 Andrew Haley <aph@redhat.com>
17501
17502 * gcc.c (process_command): Move lang_specific_driver before
17503 setting cc_libexec_prefix.
17504
17505 2010-01-21 Richard Guenther <rguenther@suse.de>
17506
17507 PR middle-end/19988
17508 * fold-const.c (negate_expr_p): Pretend only negative
17509 real constants are easily negatable.
17510
17511 2010-01-20 Janis Johnson <janis187@us.ibm.com>
17512 Jason Merrill <jason@redhat.com>
17513
17514 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
17515 (TYPE_TRANSPARENT_AGGR): this, for union and record.
17516 * calls.c (initialize argument_information): Handle it.
17517 * c-common.c (handle_transparent_union_attribute): Use new name.
17518 * c-decl.c (finish_struct): Ditto.
17519 * c-typeck.c (type_lists_compatible_p): Ditto.
17520 (convert_for_assignment): Use new name and also handle record.
17521 * function.c (aggregate_value_p): Handle it.
17522 (pass_by_reference): Ditto.
17523 (assign_parm_data_types): Ditto.
17524 * print-tree.c (print_node): Ditto.
17525 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
17526 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
17527 * tree.c (first_field): New fn.
17528
17529 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
17530
17531 PR target/42818
17532 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
17533 even when linking statically, for now.
17534
17535 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17536
17537 PR debug/42715
17538 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
17539 without a cselib val.
17540 (count_uses): Accept MO_VAL_SET with no val on stores.
17541 (add_stores): Likewise.
17542
17543 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17544
17545 * var-tracking.c (check_value_val): Add a compile time assertion.
17546 (dv_is_decl_p): Simplify.
17547 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
17548 gcc_assert if ENABLE_CHECKING.
17549
17550 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17551
17552 PR debug/42782
17553 * var-tracking.c: Include tree-flow.h.
17554 (mem_dies_at_call): New.
17555 (dataflow_set_preserve_mem_locs): Use it.
17556 (dataflow_set_remove_mem_locs): Likewise.
17557 (dump_var): Renamed from dump_variable. Adjust all callers.
17558 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
17559 * Makefile.in (var-tracking.o): Adjust deps.
17560
17561 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
17562
17563 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
17564
17565 2010-01-20 Richard Guenther <rguenther@suse.de>
17566
17567 PR tree-optimization/42717
17568 * tree-ssa-dce.c (get_live_post_dom): Remove.
17569 (forward_edge_to_pdom): Take an arbitrary edge to copy
17570 degenerate PHI args from.
17571 (remove_dead_stmt): Use the first post-dominator even if it
17572 does not contain live statements as redirection destination.
17573
17574 2010-01-20 Richard Guenther <rguenther@suse.de>
17575
17576 * tree-inline.c (estimate_num_insns): Handle EH builtins.
17577
17578 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17579
17580 * sel-sched.c (create_speculation_check): Remove set but not used
17581 variable twin.
17582 (try_transformation_cache): Remove set but not used variable ds.
17583 (calculate_privileged_insns): Remove set but not used variables
17584 cur_insn and min_spec_insn.
17585 (find_best_expr): Remove set but not used variable avail_n.
17586 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
17587 variable e.
17588 * cgraphunit.c (assemble_thunk): Remove set but not used variable
17589 false_label.
17590 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
17591 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
17592 new_scop_exit_edge.
17593
17594 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
17595
17596 PR bootstrap/42786
17597 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
17598 cpu types. Add support for *-sse3 cpu types.
17599 (x86_64-*-*): Ditto.
17600
17601 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17602
17603 PR middle-end/42803
17604 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
17605 argument, call initializer_constant_valid_p_1 instead of
17606 initializer_constant_valid_p, pass CACHE to it, return NULL
17607 immediately if first call returns NULL.
17608 (initializer_constant_valid_p_1): New function.
17609 (initializer_constant_valid_p): Use it.
17610
17611 2010-01-20 Thomas Quinot <quinot@adacore.com>
17612
17613 * tree.def (PLACEHOLDER_EXPR): Fix comment.
17614
17615 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17616
17617 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
17618 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
17619 (loc_list_from_tree): Don't handle unsigned division. Handle
17620 signed modulo using DW_OP_{over,over,div,mul,minus}.
17621 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
17622 modulo instead of signed.
17623
17624 2010-01-20 DJ Delorie <dj@redhat.com>
17625
17626 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
17627 (Fpa): Pass it
17628 (h8300_emit_stack_adjustment): Propogate it.
17629 (push): Pass it.
17630 (h8300_expand_prologue): Likewise.
17631 (h8300_expand_epilogue): Likewise.
17632
17633 2010-01-19 Michael Matz <matz@suse.de>
17634
17635 PR tree-optimization/41783
17636 * tree-data-ref.c (toplevel): Include flags.h.
17637 (dump_data_dependence_relation): Also dump the inputs if the
17638 result will be unknown.
17639 (split_constant_offset_1): Look through some conversions.
17640 * tree-predcom.c (determine_roots_comp): Restart a new chain if
17641 the offset from last element is too large.
17642 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17643 (reassociate_to_the_same_stmt): Handle vector registers.
17644 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17645 (e.g. conversions).
17646 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17647 wide_prolog_niters argument, emit widening instructions.
17648 (vect_do_peeling_for_alignment): Adjust caller, use widened
17649 variant of the iteration cound.
17650 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17651
17652 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17653
17654 PR target/38697
17655 * config/arm/neon-testgen.m (emit_automatics): New parameter
17656 features. Adjust for Fixed_return_reg feature.
17657 (test_intrinsic): Call emit_automatics with new feature.
17658 * config/arm/neon.ml: Update copyright years.
17659 (features): New Fixed_return_reg feature.
17660 (ops): Update feature for Vget_low.
17661
17662 2010-01-19 Jakub Jelinek <jakub@redhat.com>
17663
17664 PR tree-optimization/42719
17665 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17666 stmt uses.
17667
17668 PR debug/42728
17669 * fwprop.c (all_uses_available_at): Return false if def_set dest
17670 is a REG that is used in def_insn.
17671
17672 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
17673
17674 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17675
17676 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17677 Add argument names.
17678
17679 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17680
17681 * target.h (struct gcc_target) <secondary_reload>: Change type
17682 of last argument to secondary_reload_info *.
17683
17684 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
17685
17686 PR target/42774
17687 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17688 memory references with unaligned offsets. Remove CQImode handling.
17689 (unaligned_memory_operand): Return 1 for memory references with
17690 unaligned offsets. Remove CQImode handling.
17691
17692 2010-01-18 Richard Guenther <rguenther@suse.de>
17693
17694 PR middle-end/39954
17695 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17696 builtin calls.
17697
17698 2010-01-18 Richard Guenther <rguenther@suse.de>
17699
17700 PR tree-optimization/42781
17701 * tree-ssa-structalias.c (find_what_var_points_to): Skip
17702 restrict processing only if the original variable was artificial.
17703
17704 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
17705
17706 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
17707 find number of popped argument bytes.
17708
17709 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
17710 Fix the text that describes the return value for invalid insns.
17711
17712 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
17713
17714 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
17715 Clarify what 'cost of the -dependence' is. Fix quoting.
17716
17717 * toplev.c (default_get_pch_validity): Rename argument to "sz".
17718 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
17719
17720 2010-01-17 Jakub Jelinek <jakub@redhat.com>
17721
17722 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17723 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
17724
17725 2010-01-17 Richard Guenther <rguenther@suse.de>
17726
17727 PR middle-end/42248
17728 * function.c (split_complex_args): Take a VEC to modify.
17729 (assign_parms_augmented_arg_list): Build a VEC instead of
17730 a chain of PARM_DECLs.
17731 (assign_parms_unsplit_complex): Take a VEC of arguments.
17732 Do not fixup unmodified parms.
17733 (assign_parms): Deal with the VEC.
17734 (gimplify_parameters): Likewise.
17735
17736 2010-01-17 Richard Guenther <rguenther@suse.de>
17737
17738 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
17739 node existence check.
17740 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
17741 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
17742 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17743 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
17744 (gimple_execute_on_growing_pred): Likewise.
17745
17746 2010-01-17 Richard Guenther <rguenther@suse.de>
17747
17748 PR tree-optimization/42773
17749 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
17750 (compute_antic_aux): Likewise.
17751 (compute_partial_antic_aux): Likewise.
17752
17753 2010-01-17 Jie Zhang <jie.zhang@analog.com>
17754
17755 PR debug/42767
17756 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
17757 and US_TRUNCATE.
17758
17759 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
17760
17761 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
17762 appearance.
17763
17764 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
17765 Fix markup for strict argument.
17766
17767 (TARGET_SCHED_REORDER2): Fix argument types.
17768
17769 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
17770 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
17771
17772 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
17773 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
17774
17775 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
17776 Add argument name.
17777
17778 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
17779 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
17780 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
17781 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
17782 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
17783
17784 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
17785
17786 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
17787
17788 (TARGET_ASM_RELOC_RW_MASK): Add return type.
17789 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
17790
17791 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
17792
17793 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
17794 Use prototype.
17795
17796 (TARGET_ASM_NAMED_SECTION): Fix argument list.
17797
17798 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
17799 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
17800
17801 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
17802
17803 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
17804
17805 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
17806 referring to it. Fix language.
17807
17808 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
17809
17810 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
17811
17812 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
17813
17814 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
17815
17816 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
17817 '@var{stream}. Remove stray 'and'.
17818
17819 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
17820
17821 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
17822
17823 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
17824
17825 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
17826 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
17827
17828 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17829 Fix description of return value.
17830 Rename argument "sz" to "len."
17831
17832 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17833 Clarify meaning of 'true' return value.
17834
17835 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17836
17837 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17838 rep_mode versus mode_rep.
17839
17840 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17841
17842 (TARGET_BUILTIN_DECL): Fix name.
17843
17844 (TARGET_COMMUTATIVE_P): Fix type of first argument.
17845
17846 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17847
17848 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17849
17850 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17851
17852 (TARGET_RELAXED_ORDERING): Use @deftypevr.
17853
17854 (TARGET_GET_DRAP_RTX): Note that this is a hook.
17855 Clarify language.
17856
17857 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17858 Rename argument tm_fn to md_fn.
17859
17860 (TARGET_OPTION_PRINT): Fix argument list.
17861
17862 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
17863
17864 PR target/42664
17865 * config/i386/i386.c (ix86_fixup_binary_operands):
17866 Revert FMA4 fixup of operands.
17867
17868 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17869
17870 PR gcc/42525
17871 * Makefile.in (write_entries_to_file, install-plugin):
17872 Use \012 instead of \n with tr.
17873
17874 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
17875
17876 * configure.ac (HAVE_AS_REF): New C macro.
17877 * configure: Regenerate.
17878 * config.in: Likewise.
17879 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17880 if HAVE_AS_REF.
17881 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17882 if HAVE_AS_REF.
17883
17884 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
17885
17886 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17887
17888 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17889
17890 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17891
17892 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17893
17894 (TARGET_IN_SMALL_DATA_P): Fix argument type.
17895
17896 (TARGET_BINDS_LOCAL_P): Fix argument type.
17897
17898 (TARGET_ASM_FILE_END): Use prototype.
17899
17900 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17901
17902 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17903
17904 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17905
17906 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17907
17908 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17909 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17910
17911 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17912 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17913
17914 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17915 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17916 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17917 (TARGET_ADDR_SPACE_CONVERT): Likewise.
17918
17919 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17920
17921 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17922
17923 (TARGET_INIT_BUILTINS): Use prototype.
17924
17925 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17926 Put 'const char *' in braces. Fix parameter types.
17927 (TARGET_INVALID_CONVERSION): Fix parameter types.
17928 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17929 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17930
17931 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17932 Fix argument type.
17933
17934 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17935
17936 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17937
17938 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
17939
17940 * doc/tm.texi (TARGET_HELP): Fix return type.
17941
17942 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17943 in braces. Fix argument types.
17944
17945 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17946
17947 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17948
17949 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17950
17951 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17952 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17953
17954 (TARGET_MANGLE_TYPE): Fix argument types.
17955
17956 (TARGET_IRA_COVER_CLASSES): Use prototype.
17957
17958 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
17959
17960 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17961
17962 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17963
17964 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17965
17966 (TARGET_CALLEE_COPIES): Fix argument types.
17967
17968 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17969
17970 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17971
17972 (TARGET_FUNCTION_VALUE): Fix argument types.
17973
17974 (TARGET_RETURN_IN_MSB): Fix argument type.
17975
17976 (TARGET_RETURN_IN_MEMORY): Fix argument types.
17977
17978 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17979
17980 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17981
17982 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17983 agree with return type.
17984
17985 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17986
17987 2010-01-15 Jing Yu <jingyu@google.com>
17988
17989 PR rtl-optimization/42691
17990 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17991 a pseudo to a constant and are merged, and adjust comments.
17992
17993 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
17994
17995 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17996
17997 2010-01-15 Richard Guenther <rguenther@suse.de>
17998
17999 PR middle-end/42739
18000 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
18001 labels of computed or non-local gotos to the destination.
18002 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
18003 landing pad label is the first label.
18004
18005 2010-01-15 Richard Guenther <rguenther@suse.de>
18006
18007 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
18008
18009 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18010
18011 PR target/42747
18012 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
18013 to allow generation of the xssqrtdp instruction on power7.
18014 (sqrtdf2_fpr): Ditto.
18015
18016 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18017
18018 PR middle-end/42674
18019 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
18020 functions with noreturn attribute.
18021
18022 PR c++/42608
18023 * varasm.c (declare_weak): Add weak attribute to decl if it
18024 doesn't have one already.
18025 (assemble_external): Only add decls to weak_decls if they also
18026 have weak attribute.
18027
18028 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
18029
18030 * var-tracking.c (var_reg_delete): Don't delete the association
18031 between REGs and values or one-part variables if the register
18032 isn't clobbered.
18033
18034 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18035
18036 PR debug/42657
18037 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
18038 because its first operand is a non-localized variable.
18039
18040 2010-01-14 Martin Jambor <mjambor@suse.cz>
18041
18042 PR tree-optimization/42706
18043 * tree-sra.c (encountered_recursive_call): New variable.
18044 (encountered_unchangable_recursive_call): Likewise.
18045 (sra_initialize): Initialize both new variables.
18046 (callsite_has_enough_arguments_p): New function.
18047 (scan_function): Call decl and flags check only for IPA-SRA, check
18048 whether there is a recursive call and whether it has enough arguments.
18049 (all_callers_have_enough_arguments_p): New function.
18050 (convert_callers): Look for recursive calls only when
18051 encountered_recursive_call is set.
18052 (ipa_early_sra): Bail out either if
18053 !all_callers_have_enough_arguments_p or
18054 encountered_unchangable_recursive_call.
18055
18056 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18057
18058 * sel-sched.c: Add 2010 to copyright years.
18059 * sel-sched-ir.c: Likewise.
18060 * sel-sched-ir.h: Likewise.
18061
18062 2010-01-14 Martin Jambor <mjambor@suse.cz>
18063
18064 PR tree-optimization/42714
18065 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
18066 constructors specially.
18067
18068 2010-01-14 Andi Kleen <ak@linux.intel.com>
18069
18070 * config/i386/drivers-i386.c (detect_caches_intel):
18071 Add l2sizekb parameter and fill in.
18072 (host_detect_local_cpu): Add l2sizekb, fill in.
18073 Add Atom small cache heuristic.
18074
18075 2010-01-14 Andi Kleen <ak@linux.intel.com>
18076
18077 * config/i386/drivers-i386.c (detect_caches_cpuid4):
18078 Add level3 parameter and fill in.
18079 (detect_caches_intel): Handle level3 cache.
18080
18081 2010-01-14 Andi Kleen <ak@linux.intel.com>
18082
18083 * config/i386/drivers-i386.c (host_detect_local_cpu):
18084 Fix core duo detection.
18085
18086 2010-01-14 Andi Kleen <ak@linux.intel.com>
18087
18088 * config/i386/drivers-i386.c (host_detect_local_cpu):
18089 Fix Atom detection.
18090
18091 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18092
18093 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
18094 (rs6000_variable_issue_1): this. Use...
18095 (rs6000_variable_issue): here. Reimplement. Print debug info.
18096
18097 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18098
18099 * sel-sched-ir.c (sel_restore_other_notes): Rename to
18100 sel_restore_notes. Update all callers. Call reemit_notes
18101 for all insns.
18102
18103 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18104
18105 PR rtl-optimization/42246
18106 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
18107 loops.
18108
18109 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18110
18111 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
18112 all successors is the same as number of successors in current region.
18113
18114 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18115
18116 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
18117 to rename is not separable. Otherwise check that its LHS is not NULL.
18118
18119 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18120
18121 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
18122
18123 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18124
18125 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
18126 available registers when failed to discover LHS register class.
18127 Fix indentation. Update comment.
18128
18129 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18130 Alexander Monakov <amonakov@ispras.ru>
18131
18132 PR rtl-optimization/42389
18133 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
18134 to can_issue_more.
18135 (advance_state_on_fence): Likewise.
18136 (sel_target_adjust_priority): Print debug output only when
18137 sched_verbose >= 4, not 2.
18138 (get_expr_cost): Do not issue all unique insns on the next cycle.
18139 (fill_insns): Initialize can_issue_more from the value saved
18140 with the fence.
18141 * sel-sched-ir.c (flist_add): New parameter issue_more.
18142 Init FENCE_ISSUE_MORE with it.
18143 (merge_fences): Likewise.
18144 (init_fences): Update call to flist_add.
18145 (add_to_fences, add_clean_fence_to_fences)
18146 (add_dirty_fence_to_fences): Likewise.
18147 (move_fence_to_fences): Update call to merge_fences.
18148 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
18149 sched groups.
18150 * sel-sched-ir.h (struct _fence): New field issue_more.
18151 (FENCE_ISSUE_MORE): New accessor macro.
18152
18153 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18154
18155 PR rtl-optimization/42388
18156 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
18157 that have no predecessors nor successors. Do not call move_bb_info
18158 for empty blocks outside of current region.
18159
18160 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18161
18162 PR rtl-optimization/42294
18163 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
18164 * sel-sched.c (move_exprs_to_boundary): Transitively add all
18165 originators' originators.
18166
18167 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18168
18169 PR rtl-optimization/39453
18170 PR rtl-optimization/42246
18171 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
18172 for pipelining_p.
18173 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
18174
18175 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18176 Alexander Monakov <amonakov@ispras.ru>
18177
18178 PR middle-end/42245
18179 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
18180 (maybe_tidy_empty_bb): ... here. Make static. Add new
18181 argument. Update all callers.
18182 (tidy_control_flow): ... and here. Recompute topological order
18183 of basic blocks in region if necessary.
18184 (sel_redirect_edge_and_branch): Change return type. Return true
18185 if topological order might have been invalidated.
18186 (purge_empty_blocks): Export and move from...
18187 * sel-sched.c (purge_empty_blocks): ... here.
18188 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
18189 (maybe_tidy_empty_bb): Delete prototype.
18190 (purge_empty_blocks): Declare.
18191
18192 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18193
18194 PR rtl-optimization/42249
18195 * sel-sched.c (try_replace_dest_reg): When chosen register
18196 and original register is the same, do not bail out early, but
18197 still check all original insns for validity of replacing destination
18198 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
18199 in this case.
18200
18201 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18202
18203 PR c/42721
18204 Port from no-undefined-overflow branch:
18205 2009-03-09 Richard Guenther <rguenther@suse.de>
18206
18207 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
18208
18209 2010-01-14 Richard Guenther <rguenther@suse.de>
18210
18211 PR lto/42665
18212 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
18213
18214 2010-01-14 Ira Rosen <irar@il.ibm.com>
18215
18216 PR tree-optimization/42709
18217 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18218 as scalar type in creation of constant vector operand.
18219
18220 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18221
18222 PR testsuite/42414
18223 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18224 (check-parallel-%): Match `testsuite' directory component only
18225 at the end.
18226
18227 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
18228
18229 PR translation/39521
18230 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18231 strings with _().
18232
18233 2010-01-13 Richard Guenther <rguenther@suse.de>
18234
18235 PR tree-optimization/42730
18236 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18237 offset zero.
18238
18239 2010-01-13 Steve Ellcey <sje@cup.hp.com>
18240
18241 PR target/pr42542
18242 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18243 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18244 them signed.
18245
18246 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
18247
18248 * config/bfin/libgcc-bfin.ver: Regenerate based on current
18249 libgcc-std.ver. Add entries for ___smulsi3_highpart and
18250 ___umulsi3_highpart.
18251
18252 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18253 rather than schedule_insns if the pass is enabled.
18254
18255 2010-01-13 Martin Jambor <mjambor@suse.cz>
18256
18257 PR tree-optimization/42704
18258 * tree-sra.c (sra_modify_assign): Do not delete assignments to
18259 SSA_NAMEs.
18260
18261 2010-01-13 Martin Jambor <mjambor@suse.cz>
18262
18263 PR tree-optimization/42703
18264 * tree-sra.c (analyze_access_subtree): Check that we can build a
18265 reference to the original data within the aggregate.
18266
18267 2010-01-13 Richard Guenther <rguenther@suse.de>
18268
18269 PR tree-optimization/42705
18270 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18271
18272 2010-01-13 Richard Guenther <rguenther@suse.de>
18273
18274 PR middle-end/42716
18275 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18276
18277 2010-01-13 Jakub Jelinek <jakub@redhat.com>
18278
18279 PR debug/41371
18280 * var-tracking.c (values_to_unmark): New variable.
18281 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18282 values_to_unmark vector. Moved body to...
18283 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
18284 instead queue it into values_to_unmark vector.
18285 (vt_find_locations): Free values_to_unmark vector.
18286
18287 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
18288
18289 * config/s390/s390.c (override_options): Set
18290 default of max-pending-list-length to 256
18291
18292 2010-01-13 Richard Guenther <rguenther@suse.de>
18293
18294 PR lto/42678
18295 * tree-pass.h (PROP_gimple_lcx): New.
18296 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
18297 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
18298 before the final cleanup_eh.
18299 (dump_properties): Dump PROP_gimple_lcx.
18300 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
18301 (tree_lower_complex_O0): Remove.
18302 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
18303 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
18304 tree_lower_complex, schedule TODO_update_ssa.
18305 * lto-streamer-out.c (output_function): Stream the functions
18306 properties.
18307 * lto-streamer-in.c (input_function): Likewise.
18308 (lto_read_body): Do not override them here.
18309
18310 2010-01-12 Joseph Myers <joseph@codesourcery.com>
18311
18312 PR c/42708
18313 * c-typeck.c (build_c_cast): Fold value cast to union type before
18314 wrapping it in a CONSTRUCTOR.
18315
18316 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18317
18318 PR rtl-optimization/42699
18319 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
18320 involved.
18321
18322 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18323
18324 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18325 SUBTARGET_WARN_UNUSED_SPEC): Move ...
18326 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18327 SUBTARGET_WARN_UNUSED_SPEC): ... here
18328 * config/mips/iris5.h (LIBGCC_SPEC): Define.
18329
18330 2010-01-12 Julian Brown <julian@codesourcery.com>
18331
18332 * config/arm/neon-schedgen.ml (Utils): Don't try to
18333 open missing module.
18334 (find_with_result): New.
18335
18336 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18337
18338 PR debug/42662
18339 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
18340 sharing when canonicalizing ({lt,ge}u (plus a b) b).
18341
18342 PR tree-optimization/42645
18343 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
18344 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
18345 decl_map, set processing_debug_stmt to -1 and return name without
18346 any remapping.
18347
18348 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
18349
18350 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
18351 binutils version, and reword target configuration description.
18352
18353 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18354
18355 * config/avr/avr.h (LINKER_NAME): Remove.
18356
18357 2010-01-11 Janis Johnson <janis187@us.ibm.com>
18358
18359 PR target/42416
18360 * config/rs6000/rs6000.c (rs6000_override_options): On targets
18361 that support VSX, warn for -mno-altivec if vsx is not disabled,
18362 and disable vsx.
18363
18364 2010-01-11 Joseph Myers <joseph@codesourcery.com>
18365 Shujing Zhao <pearly.zhao@oracle.com>
18366
18367 PR translation/42469
18368 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
18369 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
18370 character between option name and help text.
18371 * c.opt (imultilib): Likewise.
18372
18373 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
18374
18375 * lto-streamer-out.c (output_unreferenced_globals): Output static
18376 variables.
18377
18378 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
18379
18380 PR rtl-optimization/42621
18381 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
18382 optimizing for size.
18383 (duplicate_computed_gotos): Remove now-redundant check.
18384
18385 2010-01-10 Steve Ellcey <sje@cup.hp.com>
18386
18387 PR target/37454
18388 * configure.ac: Save and restore LDFLAGS and LIBS
18389 * configure: Regenerate.
18390
18391 2010-01-10 Richard Guenther <rguenther@suse.de>
18392
18393 PR middle-end/42667
18394 * builtins.c (fold_builtin_strlen): Add type argument and
18395 convert the resulting length to it.
18396 (fold_builtin_1): Adjust.
18397
18398 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18399
18400 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
18401 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
18402 1 insn.
18403 (num_insns_constant_wide): Adjust for that change.
18404
18405 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18406
18407 PR debug/42631
18408 * web.c (union_defs): Add used argument, to combine uses of
18409 uninitialized regs.
18410 (entry_register): Adjust type and tests of used argument.
18411 (web_main): Widen used for new use. Pass it to union_defs.
18412 * df.h (union_defs): Adjust prototype.
18413
18414 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18415
18416 PR debug/42630
18417 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
18418 uses in new incoming argument. Free body.
18419 (reset_debug_uses_in_loop): New.
18420 (analyze_insn_to_expand_var): Call the latter if the former found
18421 anything. Fix whitespace. Reject invalid dest overlaps before
18422 going through all insns in the loop.
18423
18424 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18425
18426 PR debug/42629
18427 * haifa-sched.c (dying_use_p): Debug insns don't count.
18428
18429 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18430
18431 PR middle-end/42363
18432 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
18433 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
18434 (verify_gimple_call): Reject LHS in noreturn calls.
18435
18436 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18437
18438 PR debug/42604
18439 PR debug/42395
18440 * tree-vect-loop-manip.c (adjust_info): New type.
18441 (adjust_vec): New pointer to vector.
18442 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
18443 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
18444 (slpeel_update_phis_for_duplicate_loop): Use them.
18445 (slpeel_update_phi_nodes_for_guard1): Likewise.
18446 (slpeel_update_phi_nodes_for_guard2): Likewise.
18447 (slpeel_tree_peel_loop_to_edge): Likewise.
18448 (vect_update_ivs_after_vectorizer): Likewise.
18449
18450 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18451
18452 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
18453 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18454
18455 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18456
18457 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
18458 bogus uninitialized warning.
18459
18460 2010-01-09 Richard Guenther <rguenther@suse.de>
18461
18462 PR middle-end/42512
18463 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
18464 the evolution is compatible with the initial condition.
18465
18466 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18467
18468 * gcc.c (process_command): Update copyright notice dates.
18469 * gcov.c (print_version): Likewise.
18470 * gcov-dump.c (print_version): Likewise.
18471 * mips-tfile.c (main): Likewise.
18472 * mips-tdump.c (main): Likewise.
18473
18474 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18475
18476 PR target/41885
18477 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
18478 (rotlhi3): Delete.
18479 (rotlhi3_8): Delete.
18480 (rotlsi3): Delete.
18481 (rotlsi3_8): Delete.
18482 (rotlsi3_16): Delete.
18483 (rotlsi3_24): Delete.
18484 (rotl<mode>3): New.
18485 (*rotw<mode>3): New.
18486 (*rotb<mode>3): New.
18487 * config/avr/avr.c (avr_rotate_bytes): New function.
18488 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
18489
18490 2010-01-08 Steve Ellcey <sje@cup.hp.com>
18491
18492 PR target/37454
18493 * configure.ac: Modify -rdynamic check.
18494 * configure: Regenerate.
18495
18496 2010-01-08 DJ Delorie <dj@redhat.com>
18497
18498 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
18499 register popping order.
18500
18501 2010-01-08 Richard Guenther <rguenther@suse.de>
18502
18503 PR lto/42528
18504 * c.opt (fsigned-char): Also let LTO handle this option.
18505 (funsigned-char): Likewise.
18506
18507 2010-01-07 Richard Guenther <rguenther@suse.de>
18508
18509 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
18510 (gimple_op): Likewise.
18511 (gimple_op_ptr): Likewise.
18512 (gimple_assign_set_lhs): Remove gcc_assert.
18513 (gimple_assign_set_rhs1): Likewise.
18514 (gimple_assign_set_rhs2): Likewise.
18515 (gimple_call_set_lhs): Likewise.
18516 (gimple_call_set_fn): Likewise.
18517 (gimple_call_set_fndecl): Likewise.
18518 (gimple_call_fndecl): Likewise.
18519 (gimple_call_return_type): Likewise.
18520 (gimple_call_set_chain): Likewise.
18521 (gimple_call_num_args): Likewise.
18522 (gimple_call_set_arg): Likewise.
18523 (gimple_cond_set_code): Likewise.
18524 (gimple_cond_set_lhs): Likewise.
18525 (gimple_cond_set_rhs): Likewise.
18526 (gimple_cond_set_true_label): Likewise.
18527 (gimple_cond_set_false_label): Likewise.
18528 (gimple_label_set_label): Likewise.
18529 (gimple_goto_set_dest): Likewise.
18530 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
18531 (gimple_debug_bind_get_value): Likewise.
18532 (gimple_debug_bind_get_value_ptr): Likewise.
18533 (gimple_debug_bind_set_var): Likewise.
18534 (gimple_debug_bind_set_value): Likewise.
18535 (gimple_debug_bind_reset_value): Likewise.
18536 (gimple_debug_bind_has_value_p): Likewise.
18537 (gimple_return_retval_ptr): Remove gcc_assert.
18538 (gimple_return_retval): Likewise.
18539 (gimple_return_set_retval): Likewise.
18540 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
18541 (safe_referenced_var_iterator): Remove.
18542 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
18543 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
18544 (fill_referenced_var_vec): Remove.
18545 (first_readonly_imm_use): Remove redundant gcc_assert.
18546 (phi_arg_index_from_use): Combine gcc_asserts.
18547 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
18548 (first_imm_use_stmt): Remove redundant gcc_assert.
18549 * tree-cfg.c (verify_gimple_call): Verify function and chain
18550 operands. Verify arguments.
18551 (verify_types_in_gimple_stmt): Verify condition code and labels.
18552
18553 2010-01-07 Richard Guenther <rguenther@suse.de>
18554
18555 PR tree-optimization/42641
18556 * sese.c (rename_map_elt_info): Use the SSA name version, do
18557 not hash pointers.
18558
18559 2010-01-07 Jakub Jelinek <jakub@redhat.com>
18560
18561 PR tree-optimization/42625
18562 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
18563 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
18564
18565 2010-01-07 Duncan Sands <baldrick@free.fr>
18566
18567 * Makefile.in (PLUGIN_HEADERS): Add version.h.
18568
18569 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
18570
18571 PR target/42511
18572 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
18573 note itself is not function_invariant_p.
18574
18575 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
18576
18577 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
18578 Do not add the DF_NOTE problem.
18579 * store-motion.c (execute_rtl_store_motion): Likewise.
18580
18581 2010-01-07 Martin Jambor <mjambor@suse.cz>
18582
18583 PR tree-optimization/42157
18584 * tree-sra.c (compare_access_positions): Stabilize sort if both
18585 accesses have integer types, return zero immediately if they are the
18586 same.
18587
18588 2010-01-06 Richard Henderson <rth@redhat.com>
18589
18590 PR middle-end/41883
18591 * haifa-sched.c (add_to_note_list): Merge into ...
18592 (concat_note_lists): ... here, and ...
18593 (unlink_other_notes, rm_other_notes): Merge into...
18594 (remove_notes): ... here. Create REG_SAVE_NOTEs for
18595 NOTE_INSN_EPILOGUE_BEG.
18596
18597 2010-01-06 Richard Guenther <rguenther@suse.de>
18598
18599 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
18600 not inline regular functions into always-inline functions.
18601
18602 2010-01-06 Nick Clifton <nickc@redhat.com>
18603
18604 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
18605 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
18606 used together.
18607 (OVERRIDE_OPTIONS): Delete.
18608 (OPTIMIZATION_OPTIONS): Define.
18609 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
18610 * config/rx/rx.c (rx_handle_option): Issue an error message if
18611 -mcpu=rx200 and -fpu are used together.
18612 (rx_set_optimization_options): New function. Issue an error
18613 message if an optimization attribute attempts to reset the FPU/
18614 math optimization pairing.
18615 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
18616 * config/rx/rx.opt: Set the default to 32-bit doubles.
18617 * config/rx/t-rx: Add multilibs for -nofpu option.
18618 * doc/invoke.texi: Update documentation of RX options.
18619
18620 2010-01-06 Richard Guenther <rguenther@suse.de>
18621
18622 * tree-ssa-pre.c (name_to_id): New global.
18623 (alloc_expression_id): Simplify SSA name handling.
18624 (lookup_expression_id): Likewise.
18625 (init_pre): Zero name_to_id.
18626 (fini_pre): Free it.
18627
18628 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
18629
18630 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
18631
18632 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
18633
18634 PR target/42542
18635 * config/i386/sse.md (smaxv2di3): New.
18636 (umaxv2di3): Likewise.
18637 (sminv2di3): Likewise.
18638 (uminv2di3): Likewise.
18639
18640 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
18641
18642 PR target/42564
18643 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18644 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18645 (legitimize_tls_address): Likewise.
18646 (sparc_tls_referenced_p): Likewise.
18647 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18648 and adjust calls to legitimize_pic_address.
18649 (legitimate_constant_p) Use sparc_tls_referenced_p.
18650 (legitimate_pic_operand_p): Likewise.
18651 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18652 (sparc_tls_symbol_ref_1): Delete.
18653 (sparc_tls_referenced_p): Make static, recognize specific patterns.
18654 (legitimize_tls_address): Make static, handle CONST patterns.
18655 (legitimize_pic_address): Make static, remove unused parameter and
18656 adjust recursive calls.
18657 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18658 and adjust call to legitimize_pic_address.
18659 (sparc_output_mi_thunk): Likewise.
18660
18661 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
18662 H.J. Lu <hongjiu.lu@intel.com>
18663
18664 PR target/42542
18665 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18666 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18667 operands to make them signed.
18668
18669 Revert:
18670 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18671
18672 PR target/42542
18673 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18674 GTU to GT for V4SI and V2DI.
18675
18676 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18677 (umin<mode>3): Removed.
18678 (uminv8hi3): New.
18679 (uminv4si3): Likewise.
18680
18681 2010-01-05 Martin Jambor <mjambor@suse.cz>
18682
18683 PR tree-optimization/42462
18684 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18685 current_function_decl to helper functions and macros.
18686
18687 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18688
18689 PR bootstrap/41771
18690 * flags.h: Don't include real.h.
18691 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18692 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18693 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18694 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18695 * dominance.c: Update copyright.
18696 * gimple.c (walk_gimple_op): Remove inline.
18697 * tree-ssa-reassoc.c: Include real.h.
18698 * Makefile.in (FLAGS_H): Remove $(REAL_H).
18699 (tree-ssa-reassoc.o): Depend on $(REAL_H).
18700
18701 2010-01-05 Nick Clifton <nickc@redhat.com>
18702
18703 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
18704 register to push into the stack frame when the accumulator has to
18705 be saved during interrupts.
18706
18707 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
18708
18709 * doc/invoke.texi: Remove the documentation about option
18710 -Wunreachable-code.
18711 * common.opt (Wunreachable-code): Preserved for backward
18712 compatibility.
18713 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
18714 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
18715 the backward compatibility flag section.
18716
18717 2010-01-05 Richard Guenther <rguenther@suse.de>
18718
18719 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
18720
18721 2010-01-05 Jakub Jelinek <jakub@redhat.com>
18722
18723 PR other/42611
18724 * cfgexpand.c (expand_one_var): Diagnose too large variables.
18725
18726 PR tree-optimization/42508
18727 * tree-sra.c (convert_callers): Check for recursive call
18728 by comparing cgraph nodes instead of decls.
18729 (modify_function): Call ipa_modify_formal_parameters also
18730 on all same_body aliases.
18731
18732 * cgraphunit.c (cgraph_materialize_all_clones): Compare
18733 cgraph nodes when checking for same_body aliases.
18734
18735 2010-01-05 Richard Guenther <rguenther@suse.de>
18736
18737 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
18738 allocation and lookup.
18739 (get_or_alloc_expr_for_constant): Likewise.
18740 (phi_translate): Sink allocation.
18741
18742 2010-01-04 Richard Guenther <rguenther@suse.de>
18743
18744 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
18745 a new entry only if needed.
18746 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
18747 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
18748 hashtable lookup.
18749 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
18750 the result array.
18751 (phi_translate): Handle CONSTANTs early.
18752
18753 2010-01-04 Martin Jambor <mjambor@suse.cz>
18754
18755 PR tree-optimization/42398
18756 * tree-sra.c (struct access): Removed flag grp_different_types.
18757 (dump_access): Do not dump the removed flag.
18758 (sort_and_splice_var_accesses): Do not set the removed flag.
18759 (sra_modify_expr): Check for type compatibility directly.
18760
18761 2010-01-04 Martin Jambor <mjambor@suse.cz>
18762
18763 PR tree-optimization/42366
18764 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
18765 edges with variable number of parameters.
18766 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
18767 flag instead of asserting it.
18768 (ipa_read_node_info): Read uses_analysis_done flag.
18769
18770 2010-01-04 Richard Guenther <rguenther@suse.de>
18771
18772 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
18773 iterative_hash_* as intended.
18774 (vn_reference_compute_hash): Likewise. Simplify hashing
18775 SSA names.
18776 (vn_reference_lookup_2): Likewise.
18777 (vn_nary_op_compute_hash): Likewise.
18778 (vn_phi_compute_hash): Likewise.
18779 (expressions_equal_p): Remove strange code.
18780 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
18781 (pre_expr_hash): Likewise. Simplify hashing SSA names.
18782 (bitmap_insert_into_set_1): Take value-id as parameter.
18783 (add_to_value): Pass it.
18784 (bitmap_insert_into_set): Likewise.
18785 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
18786
18787 2010-01-04 Jakub Jelinek <jakub@redhat.com>
18788
18789 PR driver/42442
18790 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
18791 (do_self_spec): For switches with SWITCH_IGNORE set set also
18792 SWITCH_IGNORE_PERMANENTLY.
18793 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
18794 of SWITCH_IGNORE.
18795
18796 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
18797
18798 * lto-streamer-out.c (output_unreferenced_globals): Output the full
18799 tree of an unreferenced global var.
18800
18801 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18802
18803 PR target/42542
18804 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18805 GTU to GT for V4SI and V2DI.
18806
18807 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18808 (umin<mode>3): Removed.
18809 (uminv8hi3): New.
18810 (uminv4si3): Likewise.
18811
18812 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18813
18814 PR lto/42581
18815 * collect2.c (main): Turn on trace in collect2 if -v is passed
18816 to gcc with LTO.
18817
18818 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
18819
18820 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
18821 description of expression operand.
18822
18823 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
18824
18825 * configure.ac: Add install-html to target_list for Make-hooks.
18826 * configure: Regenerate.
18827 * fortran/Make-lang.in (F95_HTMLFILES): New.
18828 (fortran.html): Use it.
18829 (fortran.install-html): New.
18830 * Makefile.in (install-html): Add lang.install-html.
18831 * java/Make-lang.in (JAVA_HTMLFILES): New.
18832 (java.html): Use it.
18833 (java.install-html): New.
18834 * objc/Make-lang.in (objc.install-html): New.
18835 * objcp/Make-lang.in (obj-c++.install-html): New.
18836 * cp/Make-lang.in (c++.install-html): New.
18837 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18838 * lto/Make-lang.in (lto.install-html): New.
18839
18840 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18841
18842 PR lto/42520
18843 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18844
18845 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
18846
18847 PR rtl-optimization/41862
18848 * store-motion.c (store_killed_in_insn, compute_store_table,
18849 remove_reachable_equiv_notes, replace_store_insn,
18850 build_store_vectors): Ignore all DEBUG_INSNs.
18851
18852 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18853
18854 PR lto/41564
18855 * common.opt: Add dumpdir.
18856
18857 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18858 isn't specified.
18859 (option_map): Add --dumpdir.
18860
18861 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18862
18863 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18864
18865 * opts.c (decode_options): Try dump_dir_name first if
18866 dump_base_name isn't an absolute path.
18867 (common_handle_option): Handle OPT_dumpdir.
18868
18869 * toplev.c (dump_dir_name): New.
18870 (print_switch_values): Also ignore -dumpdir.
18871
18872 * toplev.h (dump_dir_name): New.
18873
18874 2010-01-03 Richard Guenther <rguenther@suse.de>
18875
18876 PR tree-optimization/42589
18877 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18878 double-word expansion of bswap32.
18879
18880 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
18881
18882 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18883 with BLOCK_FOR_INSN.
18884 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18885 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18886 noce_process_if_block): Likewise.
18887 * gcse.c (compute_local_properties, insert_expr_in_table,
18888 insert_set_in_table, canon_list_insert, find_avail_set,
18889 pre_insert_copy_insn): Likewise.
18890
18891 * basic-block.h (BLOCK_NUM): Move from here...
18892 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18893
18894 2010-01-03 Richard Guenther <rguenther@suse.de>
18895
18896 PR tree-optimization/42438
18897 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18898 contains_may_not_return_call flag.
18899 (BB_MAY_NOTRETURN): New.
18900 (valid_in_sets): Trapping nary operations are not valid
18901 in blocks that may not return.
18902 (insert_into_preds_of_block): Remove check for trapping expressions.
18903 (compute_avail): Compute also BB_MAY_NOTRETURN.
18904
18905 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
18906
18907 * doc/invoke.texi: Add 2010 to copyright years.
18908
18909 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
18910
18911 * config/sparc/sparc.c: Fix formatting nits.
18912
18913 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
18914 Alexander Monakov <amonakov@ispras.ru>
18915
18916 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18917
18918 2010-01-02 Richard Guenther <rguenther@suse.de>
18919
18920 PR middle-end/42577
18921 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18922 (simplify_switch_using_ranges): Mark to be removed edges
18923 as non-executable.
18924
18925 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18926
18927 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18928
18929 * collect2.c (scan_libraries): Add missing argument in call to
18930 scan_prog_file.
18931
18932 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
18933
18934 PR target/42448
18935 * config/alpha/predicates.md (aligned_memory_operand): Return false
18936 for CQImode.
18937 (unaligned_memory_operand): Return true for CQImode.
18938 * config/alpha/alpha.c (get_aligned_mem): Assert that location
18939 doesn not cross aligned SImode word boundary.
18940
18941 2010-01-02 Anatoly Sokolov <aesok@post.ru>
18942
18943 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18944 Remove.
18945 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18946 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18947
18948 2010-01-02 Richard Guenther <rguenther@suse.de>
18949
18950 PR lto/41597
18951 * toplev.c (compile_file): Emit LTO marker properly. Change
18952 it to __gnu_lto_v1.
18953 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18954
18955 2010-01-01 Richard Guenther <rguenther@suse.de>
18956
18957 PR debug/42455
18958 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18959
18960 2010-01-01 Richard Guenther <rguenther@suse.de>
18961
18962 PR c/42570
18963 * c-decl.c (grokdeclarator): For zero-size arrays force
18964 structural equality checks as layout_type does.
18965
18966 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18967
18968 * builtins.c: Update copyright to 2010.
18969
18970 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18971
18972 PR lto/42531
18973 * lto-streamer-out.c (produce_asm): Revert the last change.
18974 (copy_function): Likewise.
18975
18976 * lto-streamer.c (lto_get_section_name): Skip any leading
18977 asterisk in name.
18978
18979 2010-01-01 Richard Guenther <rguenther@suse.de>
18980
18981 PR middle-end/42559
18982 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18983 for LABEL_DECLs.
18984
18985 \f
18986 Copyright (C) 2010 Free Software Foundation, Inc.
18987
18988 Copying and distribution of this file, with or without modification,
18989 are permitted in any medium without royalty provided the copyright
18990 notice and this notice are preserved.
This page took 0.909095 seconds and 5 git commands to generate.