]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
reload.c (find_reloads): Don't clear badop if we have a winreg alternative...
[gcc.git] / gcc / ChangeLog
1 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
2
3 * reload.c (find_reloads): Don't clear badop if we have a
4 winreg alternative, but not win, and the class only has fixed
5 regs.
6 * hard-reg-set.h (class_only_fixed_regs): Declare.
7 * reginfo.c (class_only_fixed_regs): New array.
8 (init_reg_sets_1): Initialize it.
9 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
10 discourage alternatives using the stack pointer.
11
12 2010-07-09 Richard Guenther <rguenther@suse.de>
13
14 * gimple.c (struct type_fixup_s): New struct and VEC type.
15 (gimple_register_type_fixups): New static global.
16 (gimple_queue_type_fixup): New function.
17 (gimple_types_compatible_p): Queue type fixups instead of
18 applying them here.
19 (gimple_register_type): Apply queued fixups for the
20 canonical type. Empty the type fixup queue.
21
22 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
23
24 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
25 * configure: Regenerate.
26 * config.in: Ditto.
27
28 2010-07-09 Jakub Jelinek <jakub@redhat.com>
29 Denys Vlasenko <dvlasenk@redhat.com>
30 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31
32 PR tree-optimization/28632
33 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
34 (extract_range_from_binary_expr): Further optimize
35 BIT_AND_EXPR and BIT_IOR_EXPR.
36
37 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
38
39 * tree-if-conv.c (fold_or_predicates): New.
40 (add_to_predicate_list): Call it.
41
42 2010-07-09 Richard Guenther <rguenther@suse.de>
43
44 PR middle-end/44890
45 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
46 if base is a pointer.
47 * tree-cfg.c (verify_expr): Update MEM_REF checking.
48
49 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
50
51 PR target/44877
52 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
53 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
54 builtin mask for load/store builtins.
55
56 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
57
58 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
59 for "lock addl".
60 * configure: Regenerate.
61 * config/i386/i386.c (ix86_print_operand) <case ';'>:
62 Remove TARGET_MACHO.
63
64 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
65
66 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
67 default ISA flags.
68 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
69
70 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
71
72 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
73
74 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
75
76 * config/picochip/picochip.md (commsTestPort): Emit more
77 efficient sequence for tstport instruction.
78
79 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
80
81 * config/i386/i386.c (ix86_veclib_handler): Make static.
82
83 2010-07-09 Richard Guenther <rguenther@suse.de>
84
85 PR tree-optimization/44852
86 * tree-ssa-alias.c: Include toplev.h for exact_log2.
87 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
88 in MEM_REF.
89 (indirect_refs_may_alias_p): Likewise.
90 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
91
92 2010-07-09 Richard Guenther <rguenther@suse.de>
93
94 PR tree-optimization/44882
95 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
96 sets do conflict.
97 (vectorizable_load): Likewise.
98
99 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
100
101 PR target/40657
102 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
103 All callers changed.
104 Handle the case when we're called for the epilogue.
105 (thumb_unexpanded_epilogue): Use it.
106 (thumb1_expand_epilogue): Likewise.
107
108 2010-07-09 Jakub Jelinek <jakub@redhat.com>
109
110 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
111 both ranges are range_int_cst_p with non-negative minimum,
112 try harder to derive smaller range.
113
114 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
115
116 * genrecog.c: Include diagnostic-core.h before toplev.h.
117 * genoutput.c: Likewise.
118 * genextract.c: Likewise.
119 * genautomata.c: Likewise.
120 * genemit.c: Likewise.
121 * genpeep.c: Likewise.
122 * genattrtab.c: Likewise.
123 * genconditions.c: Likewise.
124 * genpreds.c: Likewise.
125
126 2010-07-08 Andi Kleen <ak@linux.intel.com>
127
128 * lto-section-in.c (lto_section_name): Add missing comma.
129
130 2010-07-08 Anatoly Sokolov <aesok@post.ru>
131
132 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
133 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
134 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
135 (ia64_override_options): Rename to...
136 (ia64_option_override): ... this one. Make static.
137
138 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
139
140 PR middle-end/44843
141 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
142 pointed-to type of the offset in a MEM_REF to compute the alignment.
143
144 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
145
146 * final.c (final_scan_insn): Replace
147 TARGET_UNWIND_INFO macro check by unwind_emit
148 hook NULL check.
149 * targhooks.c (default_unwind_emit): Removed.
150 * targhooks.h (default_unwind_emit): Likewise.
151 * target.def (unwind_emit): Set default value to NULL.
152
153 * config/i386/i386-protos.h (ix86_asm_output_function_label):
154 New prototype.
155 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
156 for NULL fntype argument and allow 64-bit targets.
157 (ix86_asm_output_function_label): New function.
158 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
159 (ix86_handle_fndecl_attribute): Likewise.
160 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
161 * doc/doc/tm.texi: Regenerated.
162 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
163 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
164 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
165 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
166 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
167 * config/elfos.h: Likewise.
168 * config/i386/cygming.h: Likewise.
169 * config/netbsd-aout.h: Likewise.
170 * config/openbsd.h: Likewise.
171 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
172 by ix86_asm_output_function_label function call.
173 * varasm.c (assemble_start_function): Use
174 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
175
176 2010-07-08 Jan Hubicka <jh@suse.cz>
177
178 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
179 New function.
180 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
181 Declare.
182 * ipa-cp.c (ipcp_estimate_growth): Use it.
183 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
184 Likewise.
185
186 2010-07-08 Jan Hubicka <jh@suse.cz>
187
188 * tree-inline.c (declare_return_variable): Allocate annotation for new
189 temporary.
190
191 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
192
193 PR tree-optimization/44710
194 * tree-if-conv.c (parse_predicate): New.
195 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
196 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
197
198 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
199
200 * common.opt (ftree-loop-if-convert): New flag.
201 * doc/invoke.texi (ftree-loop-if-convert): Documented.
202 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
203 when flag_tree_loop_if_convert is set.
204
205 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
206
207 * config/i386/i386.c: Use short syntax for function calls
208 through function pointers.
209 * config/i386/i386.md: Ditto.
210
211 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
212
213 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
214
215 2010-07-08 Richard Guenther <rguenther@suse.de>
216
217 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
218 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
219
220 2010-07-08 Jakub Jelinek <jakub@redhat.com>
221
222 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
223 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
224 (loc_list_from_tree): Likewise.
225 (output_loc_operands): Handle outputting DW_OP_const[48]u
226 with loc->dtprel set.
227 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
228
229 2010-07-08 Jan Hubicka <jh@suse.cz>
230
231 * ipa.c: Include pointer-set.h
232 (cgraph_externally_visible_p): New attribute ALIASED;
233 when in LTO, hidden symbols are local unless they are aliased.
234 (function_and_variable_visibility): Compute aliased nodes;
235 handle LTO and hidden symbol on functions and vars.
236 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
237 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
238
239 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
240
241 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
242 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
243 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
244 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
245 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
246 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
247 (ix86_gen_probe_stack_range): Likewise.
248 (override_options): Set them.
249 (ix86_target_stack_probe): New function.
250 (ix86_compute_frame_layout): Force use of push instructions to
251 save registers if stack checking with probes is enabled.
252 (get_scratch_register_on_entry): New function.
253 (release_scratch_register_on_entry): Likewise.
254 (ix86_adjust_stack_and_probe): Likewise.
255 (output_adjust_stack_and_probe): Likewise.
256 (ix86_emit_probe_stack_range): Likewise.
257 (output_probe_stack_range): Likewise.
258 (ix86_expand_prologue): Emit stack checking code if static built-in
259 stack checking is enabled.
260 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
261 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
262 (output_adjust_stack_and_probe): Likewise.
263 (output_probe_stack_range): Likewise.
264 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
265 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
266 TARGET_STACK_PROBE.
267 (allocate_stack_worker_64): Likewise.
268 (allocate_stack): Likewise.
269 (adjust_stack_and_probe): New insn.
270 (probe_stack_range): Likewise.
271
272 2010-07-08 Richard Guenther <rguenther@suse.de>
273
274 PR tree-optimization/44831
275 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
276 a MEM_REF preserving TBAA info of the original dereference.
277 Dereference the original pointer if the address is not invariant.
278 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
279 at least one invariant address that we are going to dereference.
280
281 2010-07-08 Richard Guenther <rguenther@suse.de>
282
283 PR tree-optimization/44861
284 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
285 information when building MEM_REFs.
286 (vectorizable_load): Likewise.
287 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
288
289 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
290
291 * config/sol2-c.c: Do not include diagnostic-core.h.
292
293 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
294
295 PR bootstrap/44768
296 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
297 with respect to current_function_decl. Pass decl of the function.
298 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
299 * ipa-inline.c (compute_inline_parameters): Pass decl to
300 estimated_stack_frame_size.
301
302 2010-07-08 Richard Guenther <rguenther@suse.de>
303
304 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
305 New function.
306 (valueize_refs): Call it.
307
308 2010-07-08 Richard Guenther <rguenther@suse.de>
309
310 PR rtl-optimization/44838
311 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
312 SSA form do not use pointer equivalence.
313
314 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
315
316 * dwarf2out.c (AT_linkage_name): Delete.
317 (add_linkage_attr): New function.
318 (add_linkage_name): Call it to emit the linkage attribute.
319 (dwarf2out_finish): Likewise.
320 (move_linkage_attr): Explicitly accept both attribute variants.
321
322 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
323
324 * toplev.h: Do not include diagnostic-core.h.
325 Include diagnostic-core.h in every file that includes toplev.h.
326 * c-tree.h: Do not include toplev.h.
327 * pretty-print.h: Update comment.
328 * Makefile.in: Update dependencies.
329 * alias.c: Include diagnostic-core.h in every file that includes
330 toplev.h.
331 * attribs.c: Likewise.
332 * auto-inc-dec.c: Likewise.
333 * bb-reorder.c: Likewise.
334 * bt-load.c: Likewise.
335 * caller-save.c: Likewise.
336 * calls.c: Likewise.
337 * cfg.c: Likewise.
338 * cfganal.c: Likewise.
339 * cfgbuild.c: Likewise.
340 * cfgcleanup.c: Likewise.
341 * cfghooks.c: Likewise.
342 * cfgloop.c: Likewise.
343 * combine.c: Likewise.
344 * config/alpha/alpha.c: Likewise.
345 * config/arc/arc.c: Likewise.
346 * config/arm/arm.c: Likewise.
347 * config/arm/pe.c: Likewise.
348 * config/avr/avr.c: Likewise.
349 * config/bfin/bfin.c: Likewise.
350 * config/cris/cris.c: Likewise.
351 * config/crx/crx.c: Likewise.
352 * config/darwin-c.c: Likewise.
353 * config/darwin.c: Likewise.
354 * config/fr30/fr30.c: Likewise.
355 * config/frv/frv.c: Likewise.
356 * config/h8300/h8300.c: Likewise.
357 * config/host-darwin.c: Likewise.
358 * config/i386/i386.c: Likewise.
359 * config/i386/netware.c: Likewise.
360 * config/i386/nwld.c: Likewise.
361 * config/i386/winnt-cxx.c: Likewise.
362 * config/i386/winnt-stubs.c: Likewise.
363 * config/i386/winnt.c: Likewise.
364 * config/ia64/ia64-c.c: Likewise.
365 * config/ia64/ia64.c: Likewise.
366 * config/iq2000/iq2000.c: Likewise.
367 * config/lm32/lm32.c: Likewise.
368 * config/m32c/m32c-pragma.c: Likewise.
369 * config/m32c/m32c.c: Likewise.
370 * config/m32r/m32r.c: Likewise.
371 * config/m68hc11/m68hc11.c: Likewise.
372 * config/m68k/m68k.c: Likewise.
373 * config/mcore/mcore.c: Likewise.
374 * config/mep/mep-pragma.c: Likewise.
375 * config/mep/mep.c: Likewise.
376 * config/mmix/mmix.c: Likewise.
377 * config/mn10300/mn10300.c: Likewise.
378 * config/moxie/moxie.c: Likewise.
379 * config/pa/pa.c: Likewise.
380 * config/pdp11/pdp11.c: Likewise.
381 * config/picochip/picochip.c: Likewise.
382 * config/rs6000/rs6000-c.c: Likewise.
383 * config/rs6000/rs6000.c: Likewise.
384 * config/rx/rx.c: Likewise.
385 * config/s390/s390.c: Likewise.
386 * config/score/score.c: Likewise.
387 * config/score/score3.c: Likewise.
388 * config/score/score7.c: Likewise.
389 * config/sh/sh.c: Likewise.
390 * config/sh/symbian-base.c: Likewise.
391 * config/sh/symbian-c.c: Likewise.
392 * config/sh/symbian-cxx.c: Likewise.
393 * config/sol2-c.c: Likewise.
394 * config/sol2.c: Likewise.
395 * config/sparc/sparc.c: Likewise.
396 * config/spu/spu.c: Likewise.
397 * config/stormy16/stormy16.c: Likewise.
398 * config/v850/v850-c.c: Likewise.
399 * config/v850/v850.c: Likewise.
400 * config/vax/vax.c: Likewise.
401 * config/vxworks.c: Likewise.
402 * config/xtensa/xtensa.c: Likewise.
403 * convert.c: Likewise.
404 * cse.c: Likewise.
405 * cselib.c: Likewise.
406 * dbgcnt.c: Likewise.
407 * dbxout.c: Likewise.
408 * ddg.c: Likewise.
409 * dominance.c: Likewise.
410 * emit-rtl.c: Likewise.
411 * explow.c: Likewise.
412 * expmed.c: Likewise.
413 * fixed-value.c: Likewise.
414 * fold-const.c: Likewise.
415 * fwprop.c: Likewise.
416 * gcse.c: Likewise.
417 * ggc-common.c: Likewise.
418 * ggc-page.c: Likewise.
419 * ggc-zone.c: Likewise.
420 * gimple-low.c: Likewise.
421 * gimplify.c: Likewise.
422 * graph.c: Likewise.
423 * haifa-sched.c: Likewise.
424 * ifcvt.c: Likewise.
425 * implicit-zee.c: Likewise.
426 * integrate.c: Likewise.
427 * ira-build.c: Likewise.
428 * ira-color.c: Likewise.
429 * ira-conflicts.c: Likewise.
430 * ira-costs.c: Likewise.
431 * ira-lives.c: Likewise.
432 * ira.c: Likewise.
433 * lists.c: Likewise.
434 * loop-doloop.c: Likewise.
435 * loop-iv.c: Likewise.
436 * lto-opts.c: Likewise.
437 * lto-symtab.c: Likewise.
438 * main.c: Likewise.
439 * modulo-sched.c: Likewise.
440 * optabs.c: Likewise.
441 * params.c: Likewise.
442 * plugin.c: Likewise.
443 * postreload-gcse.c: Likewise.
444 * postreload.c: Likewise.
445 * predict.c: Likewise.
446 * profile.c: Likewise.
447 * real.c: Likewise.
448 * regcprop.c: Likewise.
449 * reginfo.c: Likewise.
450 * regmove.c: Likewise.
451 * reorg.c: Likewise.
452 * resource.c: Likewise.
453 * rtl.c: Likewise.
454 * rtlanal.c: Likewise.
455 * sched-deps.c: Likewise.
456 * sched-ebb.c: Likewise.
457 * sched-rgn.c: Likewise.
458 * sdbout.c: Likewise.
459 * sel-sched-dump.c: Likewise.
460 * sel-sched-ir.c: Likewise.
461 * simplify-rtx.c: Likewise.
462 * stmt.c: Likewise.
463 * stor-layout.c: Likewise.
464 * store-motion.c: Likewise.
465 * targhooks.c: Likewise.
466 * tree-cfg.c: Likewise.
467 * tree-cfgcleanup.c: Likewise.
468 * tree-dump.c: Likewise.
469 * tree-eh.c: Likewise.
470 * tree-inline.c: Likewise.
471 * tree-nomudflap.c: Likewise.
472 * tree-object-size.c: Likewise.
473 * tree-optimize.c: Likewise.
474 * tree-outof-ssa.c: Likewise.
475 * tree-phinodes.c: Likewise.
476 * tree-profile.c: Likewise.
477 * tree-ssa-ccp.c: Likewise.
478 * tree-ssa-coalesce.c: Likewise.
479 * tree-ssa-live.c: Likewise.
480 * tree-ssa-loop-niter.c: Likewise.
481 * tree-ssa-loop-prefetch.c: Likewise.
482 * tree-ssa-loop.c: Likewise.
483 * tree-ssa-structalias.c: Likewise.
484 * tree-ssa-uninit.c: Likewise.
485 * tree-ssa.c: Likewise.
486 * tree-vect-data-refs.c: Likewise.
487 * tree-vect-loop-manip.c: Likewise.
488 * tree-vect-loop.c: Likewise.
489 * tree-vect-patterns.c: Likewise.
490 * tree-vect-stmts.c: Likewise.
491 * tree-vrp.c: Likewise.
492 * varasm.c: Likewise.
493 * vec.c: Likewise.
494 * web.c: Likewise.
495 * xcoffout.c: Likewise.
496
497 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
498
499 * gengtype.c (write_field_root): New function.
500 (write_root): Use it.
501
502 2010-07-07 Wei Guozhi <carrot@google.com>
503
504 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
505 of lowest bits to lshift/compare): Add a missing line.
506
507 2010-07-07 Wei Guozhi <carrot@google.com>
508
509 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
510 of lowest bits to lshift/compare): New.
511
512 2010-07-07 Tom Tromey <tromey@redhat.com>
513
514 * doc/tm.texi: Update.
515 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
516 Add @hook.
517 * target.def (want_debug_pub_sections): New hook.
518 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
519 * dwarf2out.c (add_pubname_string): Check
520 targetm.want_debug_pub_sections.
521 (add_pubname): Likewise.
522 (add_pubtype): Likewise.
523
524 2010-07-07 Jie Zhang <jie@codesourcery.com>
525
526 * genautomata.c (output_automata_list_min_issue_delay_code):
527 Correctly decompress min_issue_delay.
528
529 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
530
531 PR rtl-optimization/44404
532 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
533 possible, use reg_overlap_mentioned_p instead.
534
535 2010-07-07 Duncan Sands <baldrick@free.fr>
536
537 PR middle-end/41355
538 * tree.c (build_function_type_skip_args): Copy the original type using
539 build_distinct_type_copy rather than copy_node.
540
541 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
542
543 PR target/44850
544 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
545 revision 161876.
546 (ix86_expand_prologue): Likewise.
547 (ix86_handle_fndecl_attribute): Likewise.
548 (ix86_asm_declare_function_name): Likewise.
549 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
550 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
551 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
552 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
553 * doc/extend.texi: Likewise.
554
555 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
556
557 PR target/44844
558 * config/i386/i386.md (rdrand<mode>): Changed to expand to
559 retry if the carry flag isn't valid.
560 (rdrand<mode>_1): New.
561
562 2010-07-07 Richard Guenther <rguenther@suse.de>
563
564 PR middle-end/44790
565 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
566 for expanding the constant offset for MEM_REFs.
567
568 2010-07-07 Richard Guenther <rguenther@suse.de>
569
570 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
571 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
572 * gimple.h (is_gimple_operand): Remove.
573 * gimple.c (is_gimple_operand): Likewise.
574 (walk_gimple_op): Fix wi->val_only setting for calls.
575 * tree-cfg.c (verify_gimple_call): Fix argument validation.
576 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
577 invalid gimple calls.
578
579 2010-07-06 Jan Hubicka <jh@suse.cz>
580
581 * lto-cgraph.c (output_cgraph): Add missing declaration.
582
583 2010-07-06 Jan Hubicka <jh@suse.cz>
584
585 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
586 partition.
587
588 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
589
590 * doc/gimple.texi (GIMPLE_DEBUG): Document.
591 * doc/rtl.texi (Debug Information): New node.
592 (NOTE_INSN_VAR_LOCATION): Document.
593 (debug_insn): Likewise.
594 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
595
596 2010-07-07 Jan Hubicka <jh@suse.cz>
597
598 With parts by Richard Guenther.
599
600 PR middle-end/44813
601 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
602 for functions passed by reference.
603 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
604 in memory when passed by reference.
605 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
606 beggining.
607 * ipa-split.c (split_function): Cleanup way return value is passed;
608 handle SSA DECL_BY_REFERENCE retvals.
609 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
610 DECL_BY_REFERENCE is set.
611 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
612 find_what_p_points_to): Handle RESULT_DECL.
613 * tree-inline.c (declare_return_variable): Get new entry_block argument;
614 when passing by reference ensure that RESULT_DECL is gimple_val.
615 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
616 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
617
618 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
619
620 PR rtl-optimization/44787
621 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
622 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
623
624 2010-07-06 Jan Hubicka <jh@suse.cz>
625
626 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
627 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
628 with body can prevail.
629 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
630 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
631 * cgraph.c (cgraph_get_node_or_alias): New function.
632 * cgraph.h (cgraph_get_node_or_alias): Declare.
633
634 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
635
636 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
637 support.
638 (ix86_expand_prologue): Likewise.
639 (ix86_handle_fndecl_attribute): Likewise.
640 (ix86_asm_declare_function_name): New function for
641 ASM_DECLARE_FUNCTION_NAME.
642 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
643 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
644 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
645 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
646 * doc/extend.texi: Adjust documentation about ms_hook_prologue
647 attribute.
648
649 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
650
651 * config/i386/i386.md (immediate_operand): New mode attribute.
652
653 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
654 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
655 using P mode iterator.
656 (pro_epilogue_adjust_stack_di_2): Rename from
657 pro_epilogue_adjust_stack_rex64_2.
658
659 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
660
661 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
662
663 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
664 through gen_mov_insv_1 function pointer.
665 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
666 gen_truncxf<mode>2 through gen_truncxf function pointer.
667 (remainder<mode>3): Ditto.
668 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
669 (allocate_stack): Call gen_allocate_stack_worker_64 or
670 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
671 function pointer.
672 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
673 function pointer.
674
675 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
676
677 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
678 operand constraint instead of <r><i>m.
679
680 2010-07-06 Richard Guenther <rguenther@suse.de>
681
682 PR middle-end/44828
683 * convert.c (convert_to_integer): Watch out for overflowing
684 MULT_EXPR as well.
685
686 2010-07-05 Jan Hubicka <jh@suse.cz>
687
688 * lto-streamer.c (write_symbol_vec): Rename to ...
689 (write_symbol) ... this one; write only symbol given and when
690 present in cache. Sanity check that what is defined is present
691 in cgraph/varpool with body/finalized decl.
692 (write_symbols_of_kind): Remove.
693 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
694 pairs to produce symtab.
695 (produce_asm_for_decls): Update call of produce_symtab; don't do so
696 when doing WPA streaming.
697
698 2010-07-05 Jan Hubicka <jh@suse.cz>
699
700 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
701 function is still available to fold into.
702
703 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
704
705 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
706 * function.h (struct_function): Change type of local_decls field
707 to a VEC.
708 (add_local_decl): New function.
709 (FOR_EACH_LOCAL_DECL): New macro.
710 * cfgexpand.c (init_vars_expansion): Adjust for new type of
711 cfun->local_decls.
712 (estimated_stack_frame_size): Likewise.
713 (expand_used_vars): Likewise.
714 * cgraphbuild.c (build_cgraph_edges): Likewise.
715 * function.c (instantiate_decls_1): Likewise.
716 * ipa-struct-reorg.c (build_data_structure): Likewise.
717 * ipa-type-escape.c (analyze_function): Likewise.
718 * lto-streamer-in.c (input_function): Likewise.
719 * lto-streamer-out.c (output_function): Likewise.
720 * tree-ssa-live.c (remove_unused_locals): Likewise.
721 * tree.c (free_lang_data_in_decl): Likewise.
722 (find_decls_types_in_node): Likewise.
723 * omp-low.c (remove_exit_barrier): Likewise.
724 (expand_omp_taskreg): Likewise.
725 (list2chain): Rename to...
726 (vec2chain): ...this. Adjust.
727 * cgraphunit.c (assemble_thunk): Call add_local_decl.
728 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
729 * gimple-low.c (record_vars_into): Likewise.
730 * tree-inline.c (remap_decls): Likewise.
731 (declare_return_variable): Likewise.
732 (declare_inline_vars): Likewise.
733 (copy_forbidden): Adjust for new type of cfun->local_decls.
734 (add_local_variables): New function.
735 (expand_call_inline): Call it.
736 (tree_function_versioning): Likewise.
737
738 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
739
740 AVX Programming Reference (June, 2010)
741 * config/i386/cpuid.h (bit_F16C): New.
742 (bit_RDRND): Likewise.
743 (bit_FSGSBASE): Likewise.
744
745 * config/i386/i386-builtin-types.def: Add
746 "DEF_FUNCTION_TYPE (UINT16)", function types for
747 float16 <-> float conversions and
748 "DEF_FUNCTION_TYPE (VOID, UINT64)".
749
750 * config/i386/i386-c.c (ix86_target_macros_internal): Support
751 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
752 OPTION_MASK_ISA_F16C.
753
754 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
755 (OPTION_MASK_ISA_RDRND_SET): Likewise.
756 (OPTION_MASK_ISA_F16C_SET): Likewise.
757 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
758 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
759 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
760 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
761 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
762 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
763 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
764 (override_options): Handle them.
765 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
766 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
767 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
768 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
769 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
770 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
771 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
772 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
773 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
774 (bdesc_args): Likewise.
775 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
776 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
777 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
778 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
779 Handle non-memory store.
780
781 * config/i386/i386.h (TARGET_FSGSBASE): New.
782 (TARGET_RDRND): Likewise.
783 (TARGET_F12C): Likewise.
784
785 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
786 (UNSPEC_VCVTPS2PH): Likewise.
787 (UNSPECV_RDFSBASE): Likewise.
788 (UNSPECV_RDGSBASE): Likewise.
789 (UNSPECV_WRFSBASE): Likewise.
790 (UNSPECV_WRGSBASE): Likewise.
791 (UNSPECV_RDRAND): Likewise.
792 (rdfsbase<mode>): Likewise.
793 (rdgsbase<mode>): Likewise.
794 (wrfsbase<mode>): Likewise.
795 (wrgsbase<mode>): Likewise.
796 (rdrand<mode>): Likewise.
797
798 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
799
800 * config/i386/immintrin.h (_rdrand_u16): New.
801 (_rdrand_u32): Likewise.
802 (_readfsbase_u32): Likewise.
803 (_readfsbase_u64): Likewise.
804 (_readgsbase_u32): Likewise.
805 (_readgsbase_u64): Likewise.
806 (_writefsbase_u32): Likewise.
807 (_writefsbase_u64): Likewise.
808 (_writegsbase_u32): Likewise.
809 (_writegsbase_u64): Likewise.
810 (_rdrand_u64): Likewise.
811 (_cvtsh_ss): Likewise.
812 (_mm_cvtph_ps): Likewise.
813 (_mm256_cvtph_ps): Likewise.
814 (_cvtss_sh): Likewise.
815 (_mm_cvtps_ph): Likewise.
816 (_mm256_cvtps_ph): Likewise.
817
818 * config/i386/sse.md (vcvtph2ps): New.
819 (*vcvtph2ps_load): Likewise.
820 (vcvtph2ps256): Likewise.
821 (vcvtps2ph): Likewise.
822 (*vcvtps2ph): Likewise.
823 (*vcvtps2ph_store): Likewise.
824 (vcvtps2ph256): Likewise.
825
826 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
827
828 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
829
830 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
831
832 PR bootstrap/44512
833 * genenums.c (main): Output include of insn-constants.h
834 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
835
836 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
837
838 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
839 (override_options): Initialize it.
840 (ix86_expand_prologue): Use it.
841
842 2010-07-05 Jakub Jelinek <jakub@redhat.com>
843
844 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
845
846 2010-07-05 Anatoly Sokolov <aesok@post.ru>
847
848 * double-int.h (fit_double_type): Remove declaration.
849 * double-int.c (fit_double_type): Remove function.
850 * tree.h (int_fits_type_p): Adjust prototype.
851 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
852 instead of fit_double_type.
853 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
854 instead of fit_double_type and build_int_cst_wide.
855 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
856 instead of fit_double_type and build_int_cst_wide.
857 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
858 of fit_double_type.
859
860 2010-07-05 Jan Hubicka <jh@suse.cz>
861
862 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
863 in_other_partition.
864 * lto-cgraph.c (referenced_from_other_partition_p,
865 reachable_from_other_partition_p): Use in_other_partition flags.
866 (output_node, output_varpool_node): COMDAT nodes always have private
867 copies and thus are never used from other partition.
868
869 2010-07-05 Anatoly Sokolov <aesok@post.ru>
870
871 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
872 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
873 * config/ia64/ia64.c Include reload.h.
874 (ia64_memory_move_cost): New function.
875 (TARGET_MEMORY_MOVE_COST): Define.
876 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
877 memory_move_cost.
878
879 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
880
881 PR middle-end/42505
882 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
883 comments about cost model.
884 (try_add_cand_for): Add second strategy for choosing initial set
885 based on original IVs, controlled by ORIGINALP argument.
886 (get_initial_solution): Add ORIGINALP argument.
887 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
888 (find_optimal_iv_set): Try two different strategies for choosing
889 the IV set, and return the one with lower cost.
890
891 2010-07-05 Richard Guenther <rguenther@suse.de>
892
893 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
894
895 2010-07-05 Richard Guenther <rguenther@suse.de>
896
897 * tree.c (reference_alias_ptr_type): New function.
898 * tree.h (reference_alias_ptr_type): Declare.
899 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
900 allow non-TARGET_MEM_REF new refs.
901 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
902 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
903 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
904 (create_mem_ref): Get alias pointer type. Adjust calls to
905 create_mem_ref_raw.
906 (maybe_fold_tmr): Likewise.
907 * tree-flow.h (create_mem_ref): Adjust prototype.
908
909 2010-07-05 Jakub Jelinek <jakub@redhat.com>
910
911 PR c++/44808
912 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
913 *from_p is VAR_DECL.
914
915 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
916
917 * tree.h (build_call_list): Remove.
918 * tree.c (build_call_list): Remove.
919
920 2010-07-05 Richard Guenther <rguenther@suse.de>
921
922 * double-int.h (double_int_sub): Declare.
923 * double-int.c (double_int_sub): New function.
924 * dwarf2out.c (field_byte_offset): Use it.
925 * fixed-value.c (do_fixed_add): Likewise.
926 (do_fixed_multiply): Likewise.
927 (do_fixed_divide): Likewise.
928 * tree-predcom.c (add_ref_to_chain): Likewise.
929 (determine_roots_comp): Likewise.
930 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
931
932 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
933
934 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
935 implementations.
936
937 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
938
939 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
940 * arm-modes.def (CC_NOTB): Don't define.
941 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
942 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
943 (LTUGEU): New code_iterator.
944 (cnb, optab): New corresponding code_attrs.
945 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
946 to canonical form. Operands 1 and 2 are commutative. Parametrize
947 using LTUGEU.
948 (addsi3_carryin_shift_<optab>): Likewise.
949 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
950 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
951 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
952 (subsi3_compare): Renamed from subsi3_compare0_c.
953 Change CC_NOTB to CC.
954 (arm_subsi3_insn): Allow constants for operand 0.
955 (compare_scc peephole for eq case): New.
956 (compare_scc splitters): Change CC_NOTB to CC.
957
958 2010-07-05 Richard Guenther <rguenther@suse.de>
959
960 * tree-ssa-loop-im.c (for_each_index): Do not handle
961 ALIGN_INDIRECT_REF.
962 (gen_lsm_tmp_name): Likewise.
963 * tree-dump.c (dequeue_and_dump): Likewise.
964 * tree-pretty-print.c (dump_generic_node): Likewise.
965 (op_code_prio): Likewise.
966 (op_symbol_code): Likewise.
967 * tree.c (staticp): Likewise.
968 (build1_stat): Likewise.
969 * tree.h (INDIRECT_REF_P): Likewise.
970 * fold-const.c (maybe_lvalue_p): Likewise.
971 (operand_equal_p): Likewise.
972 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
973 (ao_ref_init_from_vn_reference): Likewise.
974 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
975 (find_interesting_uses_address): Likewise.
976 * dwarf2out.c (loc_list_from_tree): Likewise.
977 * gimplify.c (gimplify_expr): Likewise.
978 * tree-eh.c (tree_could_trap_p): Likewise.
979 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
980 * cfgexpand.c (expand_debug_expr): Likewise.
981 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
982 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
983 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
984 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
985 * tree-ssa-operands.c (get_expr_operands): Likewise.
986 * expr.c (safe_from_p): Likewise.
987 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
988 * tree-vect-data-refs.c (vect_setup_realignment): Build
989 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
990 * tree-vect-stmts.c (vectorizable_load): Likewise.
991 * tree.def (ALIGN_INDIRECT_REF): Remove.
992
993 2010-07-05 Richard Guenther <rguenther@suse.de>
994
995 PR tree-optimization/44784
996 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
997 for inserted stmts.
998 (find_or_generate_expression): Fix SCCVN insertion check.
999
1000 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
1001
1002 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
1003 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1004 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
1005 directives.
1006
1007 2010-07-05 Ira Rosen <irar@il.ibm.com>
1008
1009 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
1010 statements that are not vectorized.
1011 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
1012 in INSIDE_COST.
1013
1014 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
1015
1016 PR bootstrap/44820
1017 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
1018
1019 2010-07-05 Richard Guenther <rguenther@suse.de>
1020
1021 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
1022 RESULT_DECLs properly.
1023
1024 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
1025
1026 PR rtl-optimization/44695
1027 * config/i386/i386.md (extract_code): Removed.
1028 (<u>divmodqi4): Likewise.
1029 (divmodqi4): New.
1030 (udivmodqi4): Likewise.
1031 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
1032 (udivmodhiqi3): Likewise.
1033
1034 2010-07-04 Jan Hubicka <jh@suse.cz>
1035
1036 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
1037
1038 2010-07-04 Jan Hubicka <jh@suse.cz>
1039
1040 * cgraphunit.c (init_cgraph): Only initialize dump file if it
1041 is not already initialized.
1042
1043 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1044
1045 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
1046 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
1047 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
1048 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
1049 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
1050 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
1051 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
1052 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
1053 (sync_new_nand_optab): Redefine as macros.
1054 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
1055 Delete.
1056 (direct_optab_index): New enum.
1057 (direct_optab_d): New structure.
1058 (direct_optab): New typedef.
1059 (direct_optab_table): Declare.
1060 (direct_optab_handler, set_direct_optab_handler): New functions.
1061 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
1062 (sync_lock_release_optab): New macros.
1063 * optabs.c (direct_optab_table): New variable.
1064 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
1065 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
1066 cmpstr_optab and cmpstrn_optab.
1067 (emit_conditional_move): Likewise for movcc_optab.
1068 (can_conditionally_move_p): Likewise for movcc_gen_code.
1069 (init_insn_codes): Clear direct_optab_table.
1070 (init_optabs): Don't initialize the new "direct optabs" here.
1071 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
1072 vcond_gen_code.
1073 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
1074 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
1075 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
1076 (expand_sync_operation): Likewise other sync_*_optabs.
1077 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
1078 to sync_compare_and_swap_optab.
1079 (expand_sync_lock_test_and_set): Use direct_optab_handler for
1080 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
1081 to the names of both.
1082 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
1083 cmpstr_optab and cmpstrn_optab.
1084 (expand_builtin_lock_release): Likewise sync_lock_release.
1085 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
1086 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
1087 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
1088 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
1089 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
1090 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
1091 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
1092 (sync_lock_test_and_set, sync_lock_release): Delete.
1093 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
1094 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
1095 * genopinit.c (optabs): Use set_direct_optab_handler for the new
1096 macro optabs.
1097 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
1098 the "optab" local variable. Use direct_optab_handler for optab and
1099 sync_compare_and_swap_optab.
1100 * reload1.c (reload_in_optab, reload_out_optab): Delete.
1101 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
1102 reload_in_optab and reload_out_optab.
1103 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1104 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
1105 * config/pa/pa.c (pa_secondary_reload): Likewise.
1106 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
1107 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
1108 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
1109 (VMSupportsCS8_builtin): Likewise.
1110
1111 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1112
1113 * optabs.h (optab_handlers): Change type of insn_code to int.
1114 (optab_handler, set_optab_handler, convert_optab_handler)
1115 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
1116 CODE_FOR_nothing".
1117 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
1118 (init_insn_codes): Zero both the above arrays.
1119 (init_optabs): Never call init_insn_codes first time around.
1120
1121 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1122
1123 * optabs.h (optab_handler, convert_optab_handler): Turn into
1124 inline functions that return an insn code.
1125 (set_optab_handler, set_convert_optab_handler): New functions.
1126 * builtins.c: Replace optab_handler(X)->insn_code with
1127 optab_handler or set_optab_handler thoughout. Likewise
1128 convert_optab_handler(X)->insn_code with convert_optab_handler
1129 and set_convert_optab_handler.
1130 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
1131 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
1132 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
1133 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
1134 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
1135 config/spu/spu.c: Likewise.
1136
1137 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1138
1139 PR target/44531
1140 * config.gcc (sh*-*-*): Use regular expressions instead of
1141 the 'i' modifier for sed substitutions.
1142
1143 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
1144
1145 * gimple.c (gimple_body): Comments added.
1146
1147 2010-07-04 Richard Guenther <rguenther@suse.de>
1148
1149 PR middle-end/44809
1150 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
1151 of an INDIRECT_REF.
1152
1153 2010-07-04 Richard Guenther <rguenther@suse.de>
1154
1155 PR tree-optimization/44479
1156 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
1157 extra SSA name copy statements which preserves points-to
1158 information.
1159 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1160 Copy points-to information for all pointers. Properly handle
1161 MEM_REFs.
1162 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
1163 copy statements.
1164 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
1165 dependency.
1166
1167 2010-07-04 Richard Guenther <rguenther@suse.de>
1168
1169 PR middle-end/44785
1170 * tree-inline.c (initialize_inlined_parameters): Do not
1171 re-use pointer-map slot over remap_type call.
1172
1173 2010-07-04 Richard Guenther <rguenther@suse.de>
1174
1175 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
1176
1177 2010-07-04 Richard Guenther <rguenther@suse.de>
1178
1179 PR tree-optimization/44656
1180 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
1181 again after value-replacing in the defintions lhs.
1182
1183 2010-07-04 Ira Rosen <irar@il.ibm.com>
1184 Revital Eres <eres@il.ibm.com>
1185
1186 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
1187 Document new arguments.
1188 * doc/tm.texi: Regenerate.
1189 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
1190 Handle unaligned store.
1191 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
1192 * target.def (builtin_vectorization_cost): Add new arguments.
1193 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
1194 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
1195 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
1196 (vect_vfa_segment_size): Fix indentation.
1197 * tree-vectorizer.h (struct _vect_peel_info): New.
1198 (struct _vect_peel_extended_info): New.
1199 (struct _loop_vec_info): Add new field for peeling hash table and a
1200 macro for its access.
1201 (VECT_MAX_COST): Define.
1202 (vect_get_load_cost): Declare.
1203 (vect_get_store_cost, vect_get_known_peeling_cost,
1204 vect_get_single_scalar_iteraion_cost): Likewise.
1205 (vect_supportable_dr_alignment): Add new argument.
1206 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
1207 field.
1208 (destroy_loop_vec_info): Free peeling hash table.
1209 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
1210 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
1211 vect_analyze_slp. Fix indentation.
1212 (vect_get_single_scalar_iteraion_cost): New function.
1213 (vect_get_known_peeling_cost): Likewise.
1214 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
1215 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
1216 statement. Move outside cost calculation inside unknown peeling case.
1217 Call vect_get_known_peeling_cost for known amount of peeling.
1218 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
1219 reference to the print message of forced alignment.
1220 (vect_verify_datarefs_alignment): Update call to
1221 vect_supportable_dr_alignment.
1222 (vect_get_data_access_cost): New function.
1223 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
1224 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
1225 vect_peeling_hash_choose_best_peeling): Likewise.
1226 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1227 to store all the accesses in the loop and find best possible access to
1228 align using peeling for known alignment case. For unknown alignment
1229 check if stores are preferred or if peeling is worthy.
1230 (vect_find_same_alignment_drs): Analyze pairs of loads too.
1231 (vect_supportable_dr_alignment): Add new argument and check aligned
1232 accesses according to it.
1233 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1234 (cost_for_stmt): Call vect_get_stmt_cost.
1235 (vect_model_simple_cost): Likewise.
1236 (vect_model_store_cost): Call vect_get_stmt_cost. Call
1237 vect_get_store_cost to calculate the cost of the statement.
1238 (vect_get_store_cost): New function.
1239 (vect_model_load_cost): Call vect_get_stmt_cost. Call
1240 vect_get_load_cost to calculate the cost of the statement.
1241 (vect_get_load_cost): New function.
1242 (vectorizable_store): Update call to vect_supportable_dr_alignment.
1243 (vectorizable_load): Likewise.
1244 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1245 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1246 arguments. Handle unaligned store.
1247 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1248 (rs6000_builtin_support_vector_misalignment): Return true for word and
1249 double word alignments for VSX.
1250 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1251 vect_supportable_dr_alignment and builtin_vectorization_cost.
1252
1253 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1254
1255 PR target/44597
1256 * config/pa/predicates.md (prefetch_cc_operand): Remove.
1257 (prefetch_nocc_operand): Likewise.
1258 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1259 (prefetch_20): New insn.
1260 (prefetch_cc): Remove.
1261 (prefetch_nocc): Likewise.
1262
1263 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1264
1265 * expr.c (vector_mode_valid_p): Move to c-common.c.
1266 * expr.h (vector_mode_valid_p): Do not declare here.
1267 * system.h: Poison GCC_EXPR_H in front-ends.
1268 * Makefile.in: Update dependencies.
1269
1270 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1271
1272 PR target/44705
1273 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1274
1275 2010-07-03 Jan Hubicka <jh@suse.cz>
1276
1277 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1278 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1279 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1280 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1281 Likewise.
1282
1283 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1284 Update timevars.V
1285 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1286 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1287 TV_IPA_LTO_DECL_OUT): New.
1288 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1289
1290 2010-07-03 Jan Hubicka <jh@suse.cz>
1291
1292 * ipa-inline.c (update_edge_key): Break out from ...
1293 update_callers_keys): ... here;
1294 (update_callee_keys): Update only the edges from caller to callee.
1295 (update_all_calle_keys): Do what update_calle_keys did.
1296 (decide_inlining_of_small_functions): Avoid recomputing of all
1297 callees when badness increase.
1298
1299 2010-07-03 Jie Zhang <jie@codesourcery.com>
1300
1301 * config/arm/arm.c (arm_attr_length_move_neon): New.
1302 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
1303 * config/arm/neon.md (define_mode_attr V_slen): Remove.
1304 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
1305 to compute length attribute.
1306
1307 2010-07-03 Jie Zhang <jie@codesourcery.com>
1308
1309 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
1310 as predicate for operand 1 and remove its constraint.
1311 * config/arm/predicates.md (vfp_register_operand): New.
1312 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
1313 (*push_fp_multi): Likewise.
1314
1315 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
1316
1317 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
1318
1319 2010-07-03 Jan Hubicka <jh@suse.cz>
1320
1321 * config/i386/i386.c (override_options): Revert accidental commit.
1322
1323 2010-07-02 Le-Chun Wu <lcwu@google.com>
1324
1325 PR c++/44128
1326 * doc/invoke.texi: Update documentation of -Wshadow.
1327
1328 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1329 Julian Brown <julian@codesourcery.com>
1330 Sandra Loosemore <sandra@codesourcery.com>
1331
1332 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
1333 comparisons. Adjust to take both operands.
1334 (arm_select_cc_mode): Handle DImode comparisons.
1335 (arm_gen_compare_reg): Generate a scratch register for DImode
1336 comparisons which require one. Use xor for Thumb equality checks.
1337 (arm_const_double_by_immediates): New.
1338 (arm_print_operand): Allow 'Q' and 'R' for constants.
1339 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
1340 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
1341 arm_canonicalize_comparison.
1342 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
1343 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1344 prototype.
1345 (arm_const_double_by_immediates): Declare.
1346 * config/arm/constraints.md (Di): New constraint.
1347 * config/arm/predicates.md (arm_immediate_di_operand)
1348 (arm_di_operand, cmpdi_operand): New.
1349 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
1350 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
1351 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
1352 (cstoredi4): Handle non-Cirrus also.
1353
1354 2010-07-02 Julian Brown <julian@codesourcery.com>
1355 Sandra Loosemore <sandra@codesourcery.com>
1356
1357 PR target/43703
1358 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
1359 (smax<mode>3): Disable for NEON float modes when
1360 flag_unsafe_math_optimizations is false.
1361 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
1362 (*mul<mode>3_neon)
1363 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
1364 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
1365 for NEON float modes when flag_unsafe_math_optimizations is false.
1366 (quad_halves_<code>v4sf): Only enable if
1367 flag_unsafe_math_optimizations is true.
1368 * doc/invoke.texi (ARM Options): Add note about floating point
1369 vectorization requiring -funsafe-math-optimizations.
1370
1371 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1372 Julian Brown <julian@codesourcery.com>
1373
1374 * config/arm/neon.md (UNSPEC_VABA): Delete.
1375 (UNSPEC_VABAL): Delete.
1376 (UNSPEC_VABS): Delete.
1377 (UNSPEC_VMUL_N): Delete.
1378 (adddi3_neon): New.
1379 (subdi3_neon): New.
1380 (mul<mode>3add<mode>_neon): Make the pattern named.
1381 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
1382 (neon_vadd<mode>): Replace with define_expand, and move the remaining
1383 unspec parts...
1384 (neon_vadd<mode>_unspec): ...to this.
1385 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
1386 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
1387 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
1388 (neon_vaba<mode>): Rewrite in terms of vabd.
1389 (neon_vabal<mode>): Rewrite in terms of vabdl.
1390 (neon_vabs<mode>): Rewrite without unspec.
1391 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
1392 (*arm_subdi3): Likewise.
1393 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
1394 No_op attribute to disable assembly output checks.
1395 * config/arm/arm_neon.h: Regenerated.
1396 * doc/arm-neon-intrinsics.texi: Regenerated.
1397
1398 2010-07-02 Jan Hubicka <jh@suse.cz>
1399
1400 * ipa-split.c (split_function): For aggregate values, set the return
1401 slot optimization bit. When passing DECL_BY_REFERENCE, produce
1402 *<retval> = fncall.part ().
1403 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
1404
1405 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1406
1407 * config/arm/neon.md (UNSPEC_VAND): Delete.
1408 (UNSPEC_VBIC): Delete.
1409 (UNSPEC_VCLZ): Delete.
1410 (UNSPEC_VCNT): Delete.
1411 (UNSPEC_VEOR): Delete.
1412 (UNSPEC_VORN): Delete.
1413 (UNSPEC_VORR): Delete.
1414 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
1415 core registers too.
1416 (anddi3_neon): Likewise.
1417 (orndi3_neon): Likewise.
1418 (bicdi3_neon): Likewise.
1419 (xordi3_neon): Likewise.
1420 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
1421 rid of unspec and handle unused operand.
1422 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
1423 * config/arm/predicates.md (imm_for_neon_logic_operand):
1424 Require TARGET_NEON.
1425 (imm_for_neon_inv_logic_operand): Likewise.
1426 * config/arm/arm.md (define_split for logical_binary_operator):
1427 Disable for NEON registers.
1428 (anddi3): Add new define_expand, and rename the insn. Disable
1429 this insn for NEON, where anddi3_neon now applies.
1430 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
1431 (iordi3): As for anddi3.
1432 (xordi3): Likewise.
1433 * config/arm/neon.ml (Vand): Split DImode variants and mark them
1434 as No_op to disable testing for exact instruction match.
1435 (Vorr): Likewise.
1436 (Veor): Likewise.
1437 (Vbic): Likewise.
1438 (Vorn): Likewise.
1439 * config/arm/arm_neon.h: Regenerated.
1440 * doc/arm-neon-intrinsics.texi: Regenerated.
1441
1442 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1443
1444 * expr.h (emit_stack_probe): Declare.
1445 * explow.c (emit_stack_probe): Make global.
1446 (anti_adjust_stack_and_probe): Fix comments.
1447 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1448 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1449 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1450 * config/sparc/sparc.c: Include except.h.
1451 (sparc_emit_probe_stack_range): New function.
1452 (output_probe_stack_range): Likewise.
1453 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
1454 built-in stack checking is enabled.
1455 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
1456 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1457 (probe_stack_range): New insn.
1458
1459 2010-07-02 Richard Guenther <rguenther@suse.de>
1460
1461 PR target/43958
1462 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
1463 for argument alignment.
1464
1465 2010-07-02 Jan Hubicka <jh@suse.cz>
1466
1467 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
1468 walk backwards from entry_bb to check only those basic block of header
1469 that might lead to execution of split part.
1470 (consider_split) ... here.
1471 (find_return_bb): Allow assignment in return BB.
1472 (find_retval): New.
1473 (split_function): Fix name of cloned function; take care of updating
1474 return value in return_bb containing move.
1475
1476 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
1477
1478 PR target/44771
1479 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
1480 used variable insn.
1481
1482 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1483
1484 * implicit-zee.c (combine_reaching_defs): Fix long lines.
1485 (is_set_with_extension_DI): Delete.
1486 (struct zero_extend_info): New structure.
1487 (add_removable_zero_extend): New function.
1488 (find_removable_zero_extends): Use note_stores to find SETs.
1489 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
1490
1491 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
1492
1493 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
1494 is_miss_rate_acceptable. Pull total_positions computation
1495 out of the loops. Early return if miss_positions exceeds
1496 the acceptable threshold.
1497 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
1498 is_miss_rate_acceptable after renaming of compute_miss_rate.
1499
1500 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
1501
1502 PR middle-end/44576
1503 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
1504 of 1000) for miss rate if the address diference is greater than or
1505 equal to the cache line size (the two reference will never hit the
1506 same cache line).
1507
1508 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
1509
1510 PR target/42835
1511 * config/arm/arm-modes.def (CC_NOTB): New mode.
1512 * config/arm/arm.c (get_arm_condition_code): Handle it.
1513 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
1514 * config/arm/arm.md (subsi3_compare0_c): New pattern.
1515 (compare_scc): Now a define_and_split. Add a number of extra
1516 splitters before it.
1517
1518 PR target/42172
1519 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
1520 and ZERO_EXTEND.
1521 (arm_rtx_costs_1): Likewise.
1522 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
1523 * config/arm/arm.md (is_arch6): New attribute.
1524 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
1525 extendqisi2): Tighten the code somewhat, avoiding invalid
1526 RTL to occur in the expander patterns.
1527 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
1528 (thumb1_zero_extendhisi2_v6): Delete.
1529 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
1530 (thumb1_extendhisi2_v6): Delete.
1531 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
1532 (thumb1_extendqisi2_v6): Delete.
1533 (zero_extendhisi2 for register input splitter): New.
1534 (zero_extendqisi2 for register input splitter): New.
1535 (thumb1_extendhisi2 for register input splitter): New.
1536 (extendhisi2 for register input splitter): New.
1537 (extendqisi2 for register input splitter): New.
1538 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
1539 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
1540 and add support for a register alternative requiring a split.
1541 (thumb1_zero_extendqisi2): Likewise.
1542 (arm_zero_extendqisi2): Likewise.
1543 (arm_extendhisi2): Likewise.
1544 (arm_extendqisi2): Likewise.
1545
1546 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1547
1548 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
1549 instead of an unspec.
1550 (neon_expand_vector_init): Likewise.
1551 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
1552 (UNSPEC_VDUP_LANE): Delete.
1553 (UNSPEC VDUP_N): Delete.
1554 (UNSPEC_VGET_HIGH): Delete.
1555 (UNSPEC_VGET_LANE): Delete.
1556 (UNSPEC_VGET_LOW): Delete.
1557 (UNSPEC_VMVN): Delete.
1558 (UNSPEC_VSET_LANE): Delete.
1559 (V_double_vector_mode): New.
1560 (vec_set<mode>_internal): Make code emitted match that for the
1561 corresponding intrinsics.
1562 (vec_setv2di_internal): Likewise.
1563 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
1564 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
1565 (neon_vset_lane<mode>): Combine double and quad patterns and
1566 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
1567 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
1568 (neon_vdup_n<mode>): Rewrite RTL without unspec.
1569 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
1570 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
1571 with neon_vdup_lanev2di, adjusting the pattern from the latter
1572 to be predicable for consistency.
1573 (neon_vdup_lane<mode>_internal): New.
1574 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
1575 to avoid using an unspec.
1576 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
1577 (neon_vdup_lanev2di): Turn into a define_expand.
1578 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
1579 (neon_vget_high<mode>): Replace with....
1580 (neon_vget_highv16qi): New pattern using canonical RTL.
1581 (neon_vget_highv8hi): Likewise.
1582 (neon_vget_highv4si): Likewise.
1583 (neon_vget_highv4sf): Likewise.
1584 (neon_vget_highv2di): Likewise.
1585 (neon_vget_low<mode>): Replace with....
1586 (neon_vget_lowv16qi): New pattern using canonical RTL.
1587 (neon_vget_lowv8hi): Likewise.
1588 (neon_vget_lowv4si): Likewise.
1589 (neon_vget_lowv4sf): Likewise.
1590 (neon_vget_lowv2di): Likewise.
1591
1592 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
1593 test for this emitting vmov.
1594 (Vset_lane): Likewise.
1595 (Vdup_n): Likewise.
1596 (Vmov_n): Likewise.
1597
1598 * doc/arm-neon-intrinsics.texi: Regenerated.
1599
1600 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1601
1602 * config/arm/neon.md (vec_extractv2di): Correct error in register
1603 numbering to reconcile with neon_vget_lanev2di.
1604
1605 2010-07-02 Richard Guenther <rguenther@suse.de>
1606
1607 * tree-ssa-structalias.c (pt_solution_set_var): New function.
1608 * tree-ssa-alias.h (pt_solution_set_var): Declare.
1609 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
1610 points-to information.
1611
1612 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
1613
1614 * config/s390/s390.c (override_options): Adopt prefetching
1615 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
1616
1617 2010-07-02 Jan Hubicka <jh@suse.cz>
1618
1619 * df-problems.c (df_kill_notes): Do not collect dead notes.
1620 (df_set_note): Just call add_reg_note.
1621 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
1622 df_create_unused_note): Do not deal with lists of old notes.
1623 (df_note_bb_compute): Likewise.
1624
1625 2010-07-02 Richard Guenther <rguenther@suse.de>
1626
1627 * tree-ssa-structalias.c (find_func_aliases): Handle
1628 pointer alignment via BIT_AND_EXPR.
1629 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
1630
1631 2010-07-02 Richard Guenther <rguenther@suse.de>
1632
1633 * tree-data-ref.c (initialize_data_dependence_relation): Handle
1634 mismatching number of dimensions properly.
1635
1636 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1637
1638 PR target/44707
1639 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
1640 (lo_sum (high ...) ...) patterns generated by earlier passes.
1641
1642 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1643
1644 * doc/install.texi (Prerequisites): Document Perl requirement on
1645 Solaris 2.
1646 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1647
1648 2010-07-02 Richard Guenther <rguenther@suse.de>
1649
1650 PR middle-end/44777
1651 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1652
1653 2010-07-02 Jan Hubicka <jh@suse.cz>
1654
1655 PR middle-end/44706
1656 * predict.c (predict_paths_for_bb): Handle case when control dependence
1657 BB has only abnormal edges.
1658
1659 2010-07-02 Richard Guenther <rguenther@suse.de>
1660
1661 PR tree-optimization/44748
1662 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1663 the embedded conversion in MEM_REFs.
1664
1665 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
1666
1667 * reload.c: Include toplev.h.
1668 * recog.c: Likewise.
1669 * Makefile.in: Adjust dependencies.
1670
1671 2010-07-01 Jakub Jelinek <jakub@redhat.com>
1672
1673 PR debug/44694
1674 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1675 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1676
1677 2010-07-01 Richard Guenther <rguenther@suse.de>
1678
1679 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1680 types for offsets.
1681
1682 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
1683
1684 PR target/44732
1685 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1686 Fix argument types.
1687
1688 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
1689
1690 PR target/44727
1691 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1692 Make sure operand 0 dies.
1693
1694 2010-07-01 Richard Guenther <rguenther@suse.de>
1695
1696 PR middle-end/42834
1697 PR middle-end/44468
1698 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1699 * doc/generic.texi (References to storage): Document MEM_REF.
1700 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1701 (print_call_name): Likewise.
1702 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1703 (build_simple_mem_ref_loc): New function.
1704 (mem_ref_offset): Likewise.
1705 * tree.h (build_simple_mem_ref_loc): Declare.
1706 (build_simple_mem_ref): Define.
1707 (mem_ref_offset): Declare.
1708 * fold-const.c: Include tree-flow.h.
1709 (operand_equal_p): Handle MEM_REF.
1710 (build_fold_addr_expr_with_type_loc): Likewise.
1711 (fold_comparison): Likewise.
1712 (fold_unary_loc): Fold
1713 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
1714 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
1715 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
1716 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
1717 (ptr_deref_may_alias_ref_p_1): Likewise.
1718 (ao_ref_base_alias_set): Properly differentiate base object for
1719 offset and TBAA.
1720 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
1721 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
1722 (indirect_refs_may_alias_p): Likewise.
1723 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
1724 chasing code.
1725 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
1726 (call_may_clobber_ref_p_1): Likewise.
1727 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
1728 * expr.c (expand_assignment): Handle MEM_REF.
1729 (store_expr): Handle MEM_REFs from STRING_CSTs.
1730 (store_field): If expanding a MEM_REF of a non-addressable
1731 decl use bitfield operations.
1732 (get_inner_reference): Handle MEM_REF.
1733 (expand_expr_addr_expr_1): Likewise.
1734 (expand_expr_real_1): Likewise.
1735 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
1736 * alias.c (ao_ref_from_mem): Handle MEM_REF.
1737 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
1738 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
1739 (dr_analyze_indices): Likewise.
1740 (dr_analyze_alias): Likewise.
1741 (object_address_invariant_in_loop_p): Likewise.
1742 * gimplify.c (mark_addressable): Handle MEM_REF.
1743 (gimplify_cond_expr): Build MEM_REFs.
1744 (gimplify_modify_expr_to_memcpy): Likewise.
1745 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
1746 (gimple_fold_indirect_ref): Adjust.
1747 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
1748 * tree.def (MEM_REF): New tree code.
1749 * tree-dfa.c: Include toplev.h.
1750 (get_ref_base_and_extent): Handle MEM_REF.
1751 (get_addr_base_and_unit_offset): New function.
1752 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
1753 * gimple-fold.c (may_propagate_address_into_dereference): Handle
1754 MEM_REF.
1755 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
1756 accesses if the array has just one dimension. Remove always true
1757 parameter. Do not require type compatibility here.
1758 (maybe_fold_offset_to_component_ref): Remove.
1759 (maybe_fold_stmt_indirect): Remove.
1760 (maybe_fold_reference): Remove INDIRECT_REF handling.
1761 Fold back to non-MEM_REF.
1762 (maybe_fold_offset_to_address): Simplify. Deal with type
1763 mismatches here.
1764 (maybe_fold_reference): Likewise.
1765 (maybe_fold_stmt_addition): Likewise. Also handle
1766 &ARRAY + I in addition to &ARRAY[0] + I.
1767 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
1768 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
1769 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
1770 * tree-ssa.c (useless_type_conversion_p): Make most pointer
1771 conversions useless.
1772 (warn_uninitialized_var): Handle MEM_REF.
1773 (maybe_rewrite_mem_ref_base): New function.
1774 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
1775 to SSA form.
1776 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
1777 INDIRECT_REF handling.
1778 (copy_tree_body_r): Handle MEM_REF.
1779 * gimple.c (is_gimple_addressable): Adjust.
1780 (is_gimple_address): Likewise.
1781 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
1782 invariant base are invariant.
1783 (is_gimple_min_lval): Adjust.
1784 (is_gimple_mem_ref_addr): New function.
1785 (get_base_address): Handle MEM_REF.
1786 (count_ptr_derefs): Likewise.
1787 (get_base_loadstore): Likewise.
1788 * gimple.h (is_gimple_mem_ref_addr): Declare.
1789 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
1790 * tree-cfg.c (verify_address): New function, split out from ...
1791 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
1792 the address operand of MEM_REFs. Verify MEM_REFs. Reject
1793 INDIRECT_REFs.
1794 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
1795 INDIRECT_REF. Allow conversions.
1796 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
1797 a register does not change its size.
1798 (verify_types_in_gimple_reference): Verify MEM_REF.
1799 (verify_gimple_assign_single): Disallow INDIRECT_REF.
1800 Handle MEM_REF.
1801 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
1802 New.
1803 (mark_address_taken): Handle MEM_REF.
1804 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
1805 (get_asm_expr_operands): Pass opf_not_non_addressable.
1806 (get_expr_operands): Handle opf_[not_]non_addressable.
1807 Handle MEM_REF. Remove INDIRECT_REF handling.
1808 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
1809 (search_for_addr_array): Likewise.
1810 (check_array_bounds): Likewise.
1811 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
1812 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
1813 (ref_always_accessed_p): Likewise.
1814 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
1815 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
1816 Handle MEM_REF.
1817 * cgraphbuild.c (mark_load): Properly check for NULL result
1818 from get_base_address.
1819 (mark_store): Likewise.
1820 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
1821 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
1822 handling for MEM_REF.
1823 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
1824 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
1825 * builtins.c (stabilize_va_list_loc): Use the function ABI
1826 valist type if we couldn't canonicalize the argument type.
1827 Always dereference with the canonical va-list type.
1828 (maybe_emit_free_warning): Handle MEM_REF.
1829 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
1830 memmove to memcpy.
1831 * builtins.c (fold_builtin_memory_op): Use ref-all types
1832 for all memcpy foldings.
1833 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
1834 (build_outer_var_ref): Likewise.
1835 (scan_omp_1_op): Likewise.
1836 (lower_rec_input_clauses): Likewise.
1837 (lower_lastprivate_clauses): Likewise.
1838 (lower_reduction_clauses): Likewise.
1839 (lower_copyprivate_clauses): Likewise.
1840 (expand_omp_atomic_pipeline): Likewise.
1841 (expand_omp_atomic_mutex): Likewise.
1842 (create_task_copyfn): Likewise.
1843 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1844 Remove old union trick. Initialize constant offsets.
1845 (ao_ref_init_from_vn_reference): Likewise. Do not handle
1846 INDIRECT_REF. Init base_alias_set properly.
1847 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1848 (vn_reference_fold_indirect): Adjust for MEM_REFs.
1849 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
1850 for ARRAY_REFs.
1851 (may_insert): Remove.
1852 (visit_reference_op_load): Do not test may_insert.
1853 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1854 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1855 a field to store the constant offset this op applies.
1856 (run_scc_vn): Adjust prototype.
1857 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1858 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1859 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
1860 bother about volatile qualifiers on pointers.
1861 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1862 * tree-ssa-loop-ivopts.c
1863 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1864 (strip_offset_1): Likewise.
1865 (find_interesting_uses_address): Replace INDIRECT_REF handling with
1866 MEM_REF handling.
1867 (get_computation_cost_at): Likewise.
1868 * ipa-pure-const.c (check_op): Handle MEM_REF.
1869 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1870 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1871 and constants.
1872 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1873 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1874 (eliminate_local_variables_1): Likewise.
1875 (create_call_for_reduction_1): Likewise.
1876 (create_loads_for_reductions): Likewise.
1877 (create_loads_and_stores_for_name): Likewise.
1878 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1879 (ssa_accessed_in_tree): Handle MEM_REF.
1880 (ssa_accessed_in_assign_rhs): Likewise.
1881 (update_type_size): Likewise.
1882 (analyze_accesses_for_call_stmt): Likewise.
1883 (analyze_accesses_for_assign_stmt): Likewise.
1884 (transform_access_sites): Likewise.
1885 (transform_allocation_sites): Likewise.
1886 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1887 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1888 not handle INDIRECT_REF.
1889 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1890 (cond_store_replacement): Likewise.
1891 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1892 MEM_REF, no not handle INDIRECT_REFs.
1893 (insert_into_preds_of_block): Properly initialize avail.
1894 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
1895 for ARRAY_REFs. Properly handle reference lookups that
1896 require a bit re-interpretation.
1897 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
1898 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1899 (build_ref_for_offset_1): Remove.
1900 (build_ref_for_offset): Build MEM_REFs.
1901 (gate_intra_sra): Disable for now.
1902 (sra_ipa_modify_expr): Handle MEM_REF.
1903 (ipa_early_sra_gate): Disable for now.
1904 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1905 MEM_REF handling.
1906 (disqualify_base_of_expr): Likewise.
1907 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1908 MEM_REF handling.
1909 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1910 Use mem_ref_offset. Remove bogus folding.
1911 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1912 (make_fancy_name_1): Add support for MEM_REF.
1913 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1914 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1915 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1916 (compute_complex_ancestor_jump_func): Likewise.
1917 (ipa_analyze_virtual_call_uses): Likewise.
1918 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1919 INDIRECT_REF folding with more generalized MEM_REF folding.
1920 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1921 (forward_propagate_addr_into_variable_array_index): Also handle
1922 &ARRAY + I in addition to &ARRAY[0] + I.
1923 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1924 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1925 creates assignments with overlap.
1926 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1927 (get_frame_field): Likewise.
1928 (get_nonlocal_debug_decl): Likewise.
1929 (convert_nonlocal_reference_op): Likewise.
1930 (struct nesting_info): Add mem_refs pointer-set.
1931 (create_nesting_tree): Allocate it.
1932 (convert_local_reference_op): Insert to be folded mem-refs.
1933 (fold_mem_refs): New function.
1934 (finalize_nesting_tree_1): Perform defered folding of mem-refs
1935 (free_nesting_tree): Free the pointer-set.
1936 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1937 (vectorizable_load): Likewise.
1938 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1939 (propagate_with_phi): Likewise.
1940 * tree-object-size.c (addr_object_size): Handle MEM_REFs
1941 instead of INDIRECT_REFs.
1942 (compute_object_offset): Handle MEM_REF.
1943 (plus_stmt_object_size): Handle MEM_REF.
1944 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1945 for &MEM_REF.
1946 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1947 (symbol_marked_for_renaming): Likewise.
1948 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1949 (fold-const.o): Add $(TREE_FLOW_H).
1950 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1951 (find_func_clobbers): Likewise.
1952 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1953 (decompose_access): Likewise.
1954 (replace_field_acc): Likewise.
1955 (replace_field_access_stmt): Likewise.
1956 (insert_new_var_in_stmt): Likewise.
1957 (get_stmt_accesses): Likewise.
1958 (reorg_structs_drive): Disable.
1959 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1960 (ix86_canonical_va_list_type): Likewise.
1961
1962 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1963
1964 PR other/44566
1965 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1966 * target.def (struct gcc_target): Replace enum reg_class with
1967 reg_class_t in hook argument / return types.
1968 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1969 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1970 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1971 * targhooks.h (default_branch_target_register_class): Likewise.
1972 (default_ira_cover_classes, default_secondary_reload): Likewise.
1973 (default_memory_move_cost, default_register_move_cost): Likewise.
1974 * targhooks.c (default_branch_target_register_class): Likewise.
1975 (default_ira_cover_classes, default_secondary_reload): Likewise.
1976 (default_memory_move_cost, default_register_move_cost): Likewise.
1977 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1978 * bt-load.c (branch_target_load_optimize): Likewise.
1979 * ira.c (setup_cover_and_important_classes): Likewise.
1980 * ira-costs.c (copy_cost): Likewise.
1981 * reload1.c (emit_input_reload_insns): Likewise.
1982 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1983 * config/frv/frv.c (frv_secondary_reload): Likewise.
1984 * config/s390/s390.c (s390_secondary_reload): Likewise.
1985 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1986 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1987 (ix86_register_move_cost): Likewise.
1988 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1989 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1990 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1991 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1992 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1993 (rs6000_ira_cover_classes): Likewise.
1994 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1995 * config/picochip/picochip-protos.h (picochip_secondary_reload):
1996 Likewise.
1997 * config/pa/pa.c (pa_secondary_reload): Likewise.
1998 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1999 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
2000 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
2001 * doc/tm.texi: Regenerate.
2002
2003 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
2004
2005 PR bootstrrap/44726
2006 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
2007 use.
2008 (build_alias_set_optimal_p): Likewise.
2009 (build_base_obj_set_for_drs): Likewise.
2010
2011 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
2012
2013 * target.def: Remove comment about licensing problems of function
2014 declarations.
2015
2016 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
2017 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
2018 * doc/tm.texi: Regenerate.
2019
2020 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
2021 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
2022
2023 * target.def (enum_va_list_p): Use DEFHOOK.
2024 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
2025 Rename ptype to ptree.
2026 * doc/tm.texi: Regenerate.
2027
2028 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
2029 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
2030 * doc/tm.texi: Regenerate.
2031
2032 * target.def (memory_move_cost): Use DEFHOOK.
2033 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
2034 Rename regclass AKA class to rclass.
2035 * doc/tm.texi: Regenerate.
2036
2037 * target.def (pragma_parse): Use DEFHOOK.
2038 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
2039 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
2040 * doc/tm.texi: Regenerate.
2041
2042 * target.def (pass_by_reference): Use DEFHOOK.
2043 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
2044 * doc/tm.texi: Regenerate.
2045
2046 * target.def (resolve_overloaded_builtin): Rename params to arglist.
2047 Use DEFHOOK.
2048 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
2049 * doc/tm.texi: Regenerate.
2050
2051 * target.def (return_pops_args): Use DEFHOOK.
2052 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
2053 Rename stack-size to size.
2054 * doc/tm.texi: Regenerate.
2055
2056 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
2057 last-sched_cycle to last_clock, cur_cycle to clock.
2058 * doc/tm.texi.in: Use @hook.
2059 * doc/tm.texi: Regenerate.
2060
2061 * target.def (print_operand, print_operand_address): Update comment.
2062 (print_operand_punct_valid_p): Likewise.
2063
2064 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2065
2066 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
2067 to rtl.h.
2068 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
2069 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
2070 * rtl-error.h: New.
2071 * regrename.c: Do not include toplev.h. Include rtl-error.h.
2072 * rtl-error.c: Likewise.
2073 * reload.c: Likewise.
2074 * recog.c: Likewise.
2075 * sel-sched.c: Likewise.
2076 * function.c: Likewise.
2077 * reg-stack.c: Likewise.
2078 * cfgrtl.c: Likewise.
2079 * reload1.c: Likewise.
2080 * final.c: Include rtl-error.
2081 * Makefile.in: Adjust dependencies.
2082
2083 2010-06-30 Jan Hubicka <jh@suse.cz>
2084
2085 PR middle-end/PR44706
2086 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
2087 to return the value.
2088
2089 2010-06-30 Michael Matz <matz@suse.de>
2090
2091 PR bootstrap/44699
2092 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
2093 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
2094 a gimple reg, attach the original VDEF to the last store in the
2095 sequence.
2096
2097 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
2098
2099 PR other/44034
2100 * config/darwin.c (darwin_override_options): Use renamed
2101 targetm.asm_out.emit_unwind_label.
2102
2103 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2104
2105 PR tree-optimization/39799
2106 * tree-inline.c (remap_ssa_name): Initialize variable only if
2107 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2108
2109 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
2110
2111 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
2112
2113 2010-06-30 Richard Guenther <rguenther@suse.de>
2114
2115 PR target/44722
2116 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
2117 against oscillation with reverse peephole2.
2118
2119 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
2120
2121 PR target/44721
2122 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2123 Fix last commit.
2124
2125 2010-06-30 Nick Clifton <nickc@redhat.com>
2126
2127 * config/rx/rx-modes.def: New file.
2128 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
2129 (CC_REGNUM): Define.
2130 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
2131 register.
2132 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
2133 (SELECT_CC_MODE): Define.
2134 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
2135 (reg:CC CC_REG) instead of (cc0).
2136 (attr "cc"): Delete.
2137 (cbranchsi4): Do not split compare and branch here. Instead move
2138 it to...
2139 (cbranchsi4_<code>): ... here. New patterns.
2140 (cmpsi): Call rx-compare_redundant to find out if it is necessary
2141 to emit the compare instruction.
2142 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
2143 cc_status flags.
2144 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
2145 FIRST_PSEUDO_REGNUM.
2146 (rx_expand_prologue, rx_expand_epilogue): Likewise.
2147 (rx_notice_update_cc): Delete.
2148 (rx_cc_modes_compatible): New function.
2149 (flags_needed_for_conditional): New function.
2150 (flags_from_mode): New function.
2151 (rx_compare_redundant): New function - scans backwards through
2152 insn list to find out if condition flags are already set correctly.
2153 (TARGET_CC_MODES_COMPATIBLE): Define.
2154 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
2155
2156 * config/rx/rx.h (BRANCH_COST): Define.
2157 (REGISTER_MOVE_COST): Define.
2158 * config/rx/predicates (rx_source_operand): Allow all constant types.
2159 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
2160 (tstsi4): New pattern.
2161 * config/rx/rx.c (rx_memory_move_cost): Define.
2162 (TARGET_MEMORY_MOVE_COST): Define.
2163
2164 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2165
2166 * tree.h (block_may_fallthru): Declare here.
2167 * tree-flow.h (block_may_fallthru): Do not declare here.
2168 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
2169 bitmap.h
2170 * Makefile.in (c-typeck.o): Update dependencies.
2171
2172 2010-06-30 Jakub Jelinek <jakub@redhat.com>
2173
2174 PR debug/44694
2175 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
2176 * cselib.c (cfa_base_preserved_regno): New static variable.
2177 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
2178 of REGNO (cfa_base_preserved_val->locs->loc).
2179 (cselib_preserve_cfa_base_value): Add regno argument, set
2180 cfa_base_preserved_regno to it.
2181 (cselib_invalidate_regno): Allow removal of registers other than
2182 cfa_base_preserved_regno from cfa_base_preserved_val.
2183 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
2184 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
2185 of MEM addresses, if not on LHS.
2186 (reverse_op): Don't add reverse ops for cfa_base_rtx.
2187 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
2188
2189 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2190
2191 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
2192 static variables.
2193 (peep2_buf_position): New static function.
2194 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
2195 peephole2_optimize): Use it.
2196 (peep2_attempt, peep2_update_life): New static functions, broken out
2197 of peephole2_optimize.
2198 (peep2_fill_buffer): New static function.
2199 (peephole2_optimize): Change the main loop to try to fill the buffer
2200 with the maximum number of insns before matching them against
2201 peepholes. Use a forward scan. Remove special case for targets with
2202 conditional execution.
2203 * genrecog.c (change_state): Delete dead code.
2204 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2205 Rewrite so as not to expect the second insn to have had a peephole
2206 applied yet.
2207
2208 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2209
2210 * genhooks.c (emit_findices): Cast field precision to int.
2211 (emit_documentation): Likewise.
2212
2213 2010-06-29 Jakub Jelinek <jakub@redhat.com>
2214
2215 PR tree-optimization/43801
2216 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
2217 if old_decl was DECL_ONE_ONLY.
2218
2219 PR debug/44668
2220 * dwarf2out.c (add_accessibility_attribute): New function.
2221 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
2222 instead of adding DW_AT_accessibility manually.
2223 (gen_enumeration_type_die, gen_struct_or_union_type_die,
2224 gen_typedef_die): Use it.
2225
2226 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2227
2228 * vmsdbgout.c (full_name): Just output the file name if not native.
2229
2230 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2231
2232 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2233 (funcnam_table): New static table.
2234 (funcnum_table): New static table.
2235 (write_rtnbeg): Write value saved in funcnum_table.
2236 (write_rtnend): Write value saved in funcnum_table.
2237 (vmsdbgout_begin_function): Save current function info in
2238 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2239 (vmsdbgout_finish): Iterate over funcnum_table.
2240
2241 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2242
2243 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2244 (vmsdbgout_type_decl): Declare
2245 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2246 (FUNC_EPILOGUE_LABEL): New macro
2247 (vmsdbgout_begin_epilogue): New function.
2248 (vmsdbgout_type_decl): New function.
2249
2250 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2251
2252 * vmsdbg.h: Update copyright.
2253
2254 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2255
2256 * vmsdbg.h (DST_K_TBG): New DST constant.
2257 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2258 (write_modbeg): Cast module_language to avoid warning.
2259 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2260
2261 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2262
2263 PR other/44034
2264 * target.def, doc/tm.texi.in, genhooks.c: New files.
2265 * target.h: Instead of defining individual hook members,
2266 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2267 include target.def.
2268 * target-def.h: Instead of defining individual hook initializers,
2269 include target-hooks-def.h.
2270 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2271 targetm.live_on_entry -> targetm.extra_live_on_entry
2272 targetm.sched.md_finish ->targetm.sched.finish
2273 targetm.sched.md_init -> targetm.sched.init
2274 targetm.sched.md_init_global -> targetm.sched.init_global
2275 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2276 targetm.asm_out.except_table_label ->
2277 targetm.asm_out.emit_except_table_label
2278 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2279 targetm.target_help -> targetm.help
2280 targetm.vectorize.builtin_support_vector_misalignment ->
2281 targetm.vectorize.support_vector_misalignment
2282 targetm.file_start_app_off -> targetm.asm_file_start_app_off
2283 targetm.file_start_file_directive ->
2284 targetm.asm_file_start_file_directive
2285 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2286 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2287 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2288 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2289 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2290 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2291 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2292 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
2293 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
2294 * Makefile.in (TARGET_H): Depend on target.def.
2295 (TARGET_DEF_H): Depend on target-hooks-def.h.
2296 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
2297 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
2298 * doc/tm.texi: Regenerate.
2299
2300 * Makefile.in (s-tm-texi): Remove stray tab / rule.
2301
2302 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
2303 (targetm.sched.init): Likewise.
2304
2305 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2306
2307 PR bootstrap/44713
2308 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
2309 (function_arg_advance_32): Const-ify TYPE parameter.
2310 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
2311 (ix86_function_arg_advance): Change type of NAMED to bool.
2312 (function_arg_32): Const-ify CUM and TYPE parameters.
2313 (function_arg_64): Likewise. Change type of NAMED to bool.
2314 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
2315 to bool.
2316 (ix86_function_arg): Change type of NAMED to bool.
2317 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
2318 last argument as a bool.
2319
2320 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2321
2322 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
2323 (OVERRIDE_OPTIONS): Add note of obsolescence.
2324 Replace references with references to TARGET_OPTION_OVERRIDE.
2325 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
2326 the macro).
2327 * targhooks.c (default_target_option_override): New function.
2328 * targhooks.h (default_target_option_override): Declare.
2329 * target.h (struct gcc_target): Add override member to
2330 target_option member.
2331 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
2332 targetm.target_option.override call.
2333 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
2334 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
2335
2336 2010-06-29 Jan Hubicka <jh@suse.cz>
2337
2338 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
2339
2340 2010-06-29 Jan Hubicka <jh@suse.cz>
2341
2342 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
2343 unreachable.
2344 (rebuild_frequencies): New function.
2345 * predict.h (rebuild_frequencies): Declare.
2346 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
2347 entry block and edge reaching new_entry.
2348 (tree_function_versioning): When doing partial cloning, rebuild
2349 frequencies when done.
2350 * passes.c (execute_function_todo): Use rebild_frequencies.
2351
2352 2010-06-29 Richard Guenther <rguenther@suse.de>
2353
2354 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
2355 * tree-flow.h (enum noalias_state): Remove.
2356 (struct var_ann_d): Remove noalias_state member.
2357
2358 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2359
2360 PR target/43902
2361 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
2362 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
2363 (maddhidi4): Likewise.
2364
2365 Revert parts of the change for PR25130.
2366 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2367 MEM_ALIAS_SET.
2368
2369 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2370
2371 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
2372 targetm.calls.function_incoming_arg, and
2373 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
2374 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
2375 * target.h (struct gcc_target): Add function_arg_advance,
2376 function_arg, and function_incoming_arg fields.
2377 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
2378 (TARGET_FUNCTION_INCOMING_ARG): Define.
2379 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
2380 and TARGET_FUNCTION_INCOMING_ARG.
2381 * targhooks.h (default_function_arg_advance): Declare.
2382 (default_function_arg, default_function_incoming_arg): Declare.
2383 * targhooks.c (default_function_arg_advance): New function.
2384 (default_function_arg, default_function_incoming_arg): New function.
2385 * config/i386/i386.c (function_arg_advance): Rename to...
2386 (ix86_function_arg_advance): ...this. Make static.
2387 (function_arg): Rename to...
2388 (ix86_function_arg): ...this. Make static.
2389 (TARGET_FUNCTION_ARG_ADVANCE): Define.
2390 (TARGET_FUNCTION_ARG): Define.
2391 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
2392 (FUNCTION_ARG): Delete.
2393 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
2394 (function_arg): Delete prototype.
2395
2396 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2397
2398 * reginfo.c (init_reg_sets_1): Adjust comments.
2399 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
2400 * calls.c (prepare_call_address): Likewise.
2401 (emit_call_1): Use targetm.calls.return_pops_args.
2402 (expand_call): Likewise.
2403 * function.c (assign_parms): Likewise.
2404 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
2405 * target.h (struct gcc_target) [struct calls]: Add
2406 return_pops_args field.
2407 * targhooks.h (default_return_pops_args): Declare.
2408 * targhooks.c (default_return_pops_args): Define.
2409 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
2410 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
2411 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
2412 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
2413 documentation.
2414 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
2415 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
2416 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
2417 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
2418 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
2419 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
2420 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
2421 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
2422 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
2423 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
2424 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
2425 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
2426 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
2427 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
2428 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
2429 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
2430 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
2431 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
2432 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
2433 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
2434 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
2435 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
2436 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
2437 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
2438 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
2439 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
2440 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
2441 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
2442 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
2443 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
2444 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
2445 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
2446 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
2447 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
2448 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
2449 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
2450 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
2451 * config/i386/i386.c (ix86_return_pops_args): Make static.
2452 Constify arguments.
2453 (TARGET_RETURN_POPS_ARGS): Define.
2454 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
2455 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
2456 (TARGET_RETURN_POPS_ARGS): Define.
2457 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
2458 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
2459 (TARGET_RETURN_POPS_ARGS): Define.
2460
2461 2010-06-29 Richard Guenther <rguenther@suse.de>
2462
2463 PR middle-end/44667
2464 * tree-inline.c (initialize_inlined_parameters): Make sure
2465 to remap the inlined parameter variable substitutions types.
2466
2467 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
2468
2469 PR rtl-optimization/44659
2470 * combine.c (make_compound_operation) <SUBREG>: Do not return the
2471 result of force_to_mode if it partially re-expanded the compound.
2472
2473 2010-06-28 Jan Hubicka <jh@suse.cz>
2474
2475 PR middle-end/44671
2476 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
2477 RESULT_DECL.
2478
2479 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2480
2481 * double-int.h (force_fit_type_double): Remove declaration.
2482 * double-int.c (force_fit_type_double): Move to tree.c.
2483 * tree.h (force_fit_type_double): Declare.
2484 * tree.h (force_fit_type_double): Moved from double-int.c. Use
2485 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
2486 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
2487 * convert.c (convert_to_pointer): Adjust call to
2488 force_fit_type_double.
2489 * tree-vrp.c (extract_range_from_assert,
2490 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
2491 * fold-const.c: Update comment.
2492 (int_const_binop, fold_convert_const_int_from_int,
2493 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
2494 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
2495 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
2496 round_up_loc): Adjust call to force_fit_type_double.
2497
2498 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2499
2500 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
2501
2502 2010-06-28 Martin Jambor <mjambor@suse.cz>
2503
2504 * tree-sra.c (convert_callers): New parameter, change fndecls of
2505 recursive calls.
2506 (modify_function): Pass the old decl to convert_callers.
2507
2508 2010-06-28 Martin Jambor <mjambor@suse.cz>
2509
2510 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
2511 ipa_check_create_node_params and ipa_initialize_node_params with
2512 checking asserts they are not necessary.
2513
2514 2010-06-28 Jan Hubicka <jh@suse.cz>
2515
2516 PR tree-optimization/44687
2517 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
2518
2519 2010-06-28 Martin Jambor <mjambor@suse.cz>
2520
2521 PR c++/44535
2522 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
2523 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
2524 instead of BINFO_BASE_BINFO.
2525
2526 2010-06-28 Michael Matz <matz@suse.de>
2527
2528 PR middle-end/44592
2529 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
2530 proper VDEF chain for intermediate stores in the sequence.
2531
2532 2010-06-28 Jan Hubicka <jh@suse.cz>
2533
2534 PR tree-optimization/44357
2535 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
2536 uninlinable functions.
2537
2538 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2539
2540 * config.gcc (powerpc*-*-*): Handle titan.
2541 * config/rs6000/rs6000.c (titan_cost): New costs.
2542 (rs6000_override_options): Add "titan" to processor_target_table.
2543 Add Titan to branch alignment logic.
2544 Correctly set rs6000_cost for titan.
2545 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
2546 * config/rs6000/titan.md: New file.
2547 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
2548
2549 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2550
2551 * tree-browser.c (TB_history_stack): Convert to a VEC.
2552 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
2553 (TB_history_prev): Likewise.
2554
2555 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2556
2557 * vec.h (vec_heap_free): Add parentheses around free.
2558
2559 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2560
2561 * system.h: Poison GCC_EXCEPT_H for front-end files.
2562
2563 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
2564 langhook.
2565 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
2566 Define to NULL by default.
2567 * except.h: Define GCC_EXCEPT_H.
2568 (doing_eh): Remove prototype.
2569 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
2570 (lang_protect_cleanup_actions): Remove.
2571 * except.c (lang_protect_cleanup_actions): Remove.
2572 (doing_eh): Remove.
2573 (gen_eh_region): Don't check doing_eh here.
2574 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
2575 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
2576 instead of lang_protect_cleanup_actions.
2577 * omp-low.c (maybe_catch_exception): Likewise.
2578 * Makefile.in: Update dependencies.
2579
2580 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
2581
2582 * cgraph.h (struct varpool_node): new used_from_object_file flag.
2583 (struct cgraph_local_info): new used_from_object_file flag.
2584 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
2585 (cgraph_clone_node): initialize used_from_object_file.
2586 (cgraph_create_virtual_clone): initialize used_from_object_file.
2587 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
2588 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
2589 when compiling with -fwhole-program.
2590 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
2591 internal resolver.
2592 * ipa.c (function_and_variable_visibility): Set externally_visible
2593 flag of varpool_node if used_from_object_file flag is set.
2594 (cgraph_externally_visible_p): check used_from_object_file flag.
2595 * doc/invoke.texi (-fwhole-program option): Change description of
2596 externally_visible attribute accordingly.
2597 * doc/extend.texi (externally_visible): Ditto.
2598
2599 2010-06-27 Jan Hubicka <jh@suse.cz>
2600
2601 * params.def (max-inline-insns-auto): Default to 40.
2602 * doc/invoke.texi (max-inline-insns-auto): Document the change.
2603
2604 2010-06-27 Jan Hubicka <jh@suse.cz>
2605
2606 PR middle-end/44671
2607 PR middle-end/44686
2608 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
2609 signature change.
2610 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
2611 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
2612
2613 2010-06-27 Anatoly Sokolov <aesok@post.ru>
2614
2615 * target.h (struct gcc_target): Add register_move_cost field.
2616 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
2617 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
2618 * targhooks.c (default_register_move_cost): New function.
2619 * targhooks.h (default_register_move_cost): Declare function.
2620 * defaults.h (REGISTER_MOVE_COST): Delete.
2621 * ira-int.h (ira_register_move_cost): Update comment.
2622 * ira.c: (ira_register_move_cost): Update comment.
2623 * reload.h (register_move_cost): Declare.
2624 * reginfo.c (register_move_cost): New function.
2625 (move_cost): Update comment.
2626 (init_move_cost, memory_move_secondary_cost): Replace
2627 REGISTER_MOVE_COST with register_move_cost.
2628 * postreload.c (reload_cse_simplify_set): (Ditto.).
2629 * reload.c (find_valid_class, find_reloads): (Ditto.).
2630 * reload1.c (choose_reload_regs): (Ditto.).
2631 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
2632 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
2633 * doc/md.texi (can_create_pseudo_p): Update documentation.
2634
2635 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2636 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2637 * config/i386/i386.h (ix86_memory_move_cost): Make static.
2638 (TARGET_MEMORY_MOVE_COST): Define.
2639
2640 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2641 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
2642 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
2643 (TARGET_MEMORY_MOVE_COST): Define.
2644
2645 2010-06-27 Richard Guenther <rguenther@suse.de>
2646
2647 PR tree-optimization/44683
2648 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2649 false edge from the inverted condition.
2650
2651 2010-06-27 Richard Guenther <rguenther@suse.de>
2652
2653 PR middle-end/44684
2654 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2655 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2656 for register LHS. Or non-store assignments.
2657
2658 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
2659
2660 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2661 (sparc_emit_set_const64): Likewise. Remove disabled code.
2662 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2663 (sparc_emit_set_const64): Likewise.
2664
2665 2010-06-26 Catherine Moore <clm@codesourcery.com>
2666
2667 * config/mips/mips.md (alu_type): New attribute.
2668 (type): Infer type from alu_type.
2669 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2670 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2671 *subsi3_extended, negsi2, negdi2, *low<mode>,
2672 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2673 xor<mode>3, *nor<mode>3,
2674 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2675 *zero_extendhi_truncqi): Set alu_type instead of type.
2676
2677 2010-06-26 Douglas B Rupp <rupp@gnat.com>
2678
2679 * config/alpha/alpha.c (alpha_need_linkage): Adjust
2680 splay_tree_new_ggc call.
2681 (alpha_use_linkage): Likewise.
2682
2683 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2684
2685 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2686 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2687 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2688 (static_specs): Remove switches_need_spaces.
2689 (process_command, do_self_spec): Hardcode handling "-o" instead of
2690 checking switches_need_spaces.
2691 * system.h (SWITCHES_NEED_SPACES): Poison.
2692
2693 2010-06-26 Richard Guenther <rguenther@suse.de>
2694
2695 PR tree-optimization/44393
2696 * tree-loop-distribution.c (generate_loops_for_partition): Fix
2697 stmt removal and VOP renaming.
2698 (generate_memset_zero): Remove redundant stmt updating.
2699 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2700 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2701
2702 2010-06-26 Jan Hubicka <jh@suse.cz>
2703
2704 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2705 edges comming from header are equivalent.
2706 (visit_bb): Handle PHIs correctly.
2707 * tree-inline.c (copy_phis_for_bb): Be able to copy
2708 PHI from entry edge.
2709 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
2710
2711 2010-06-26 Richard Guenther <rguenther@suse.de>
2712
2713 PR middle-end/44674
2714 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
2715 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
2716
2717 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2718
2719 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
2720 add_infile, alloc_switch): New.
2721 (process_command): Remove variable lang_n_infiles. Process
2722 options in a single pass. Use new functions for allocating
2723 infiles and switches arrays. Properly skip operands of
2724 -Xpreprocessor and -Xassembler.
2725
2726 2010-06-26 Jan Hubicka <jh@suse.cz>
2727
2728 PR middle-end/44671
2729 * cgraphunit.c (cgraph_function_versioning): Remove wrong
2730 cgraph_make_decl_local call; fix typo copying RTL data.
2731
2732 2010-06-25 DJ Delorie <dj@redhat.com>
2733
2734 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
2735 (m32c_output_aligned_common): Likewise.
2736 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2737 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2738 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
2739 (m32c_register_pragmas): Register it.
2740 * config/m32c/m32c.c (m32c_get_pragma_address): New.
2741 (m32c_insert_attributes): Set #pragma address decls volatile.
2742 (pragma_entry_eq): New.
2743 (pragma_entry_hash): New.
2744 (m32c_note_pragma_address): New.
2745 (m32c_get_pragma_address): New.
2746 (m32c_output_aligned_common): New.
2747 * doc/extend.texi: Document the new pragma.
2748
2749 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
2750 also.
2751 * config/m32c/predicates.md (m32c_any_operand): Check the code
2752 instead of memory_operand so as to allow matching volatile MEMs.
2753 (m32c_nonimmediate_operand): Likewise.
2754 (mra_operand): Allow volatiles.
2755
2756 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
2757
2758 PR debug/44610
2759 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
2760 address if the offset is unknown.
2761
2762 2010-06-25 Douglas B Rupp <rupp@gnat.com>
2763
2764 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
2765 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
2766 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
2767 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
2768 to ia64_start_function. Invoke it.
2769 * config/ia64/ia64.c (ia64_start_function): Call new function
2770 dwarf2out_vms_debug_main_pointer.
2771
2772 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2773
2774 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
2775 statements computing the true predicate.
2776
2777 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2778
2779 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
2780 to boolean_true_node.
2781 (reset_bb_predicate): New.
2782 (predicate_bbs): Call reset_bb_predicate.
2783
2784 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2785
2786 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
2787 (tree_if_conversion): Returns true when something has been changed.
2788 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
2789 changed something.
2790
2791 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2792
2793 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
2794 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
2795 * tree-if-conv.c: Include dbgcnt.h.
2796 (tree_if_conversion): Use if_conversion_tree to count the number of
2797 if-convertible loops.
2798
2799 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
2800
2801 * common.opt (fprefetch-loop-arrays): Re-define
2802 -fprefetch-loop-arrays as a tri-state option with the initial
2803 value of -1.
2804 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
2805 pass only when flag_prefetch_loop_arrays > 0.
2806 * toplev.c (process_options): Note that, with tri-states,
2807 flag_prefetch_loop_arrays>0 means prefetching is enabled.
2808 * config/i386/i386.c (override_options): Enable prefetching at -O3
2809 for a set of CPUs that sw prefetching is helpful.
2810 (software_prefetching_beneficial_p): New. Return TRUE if software
2811 prefetching is beneficial for the given CPU.
2812
2813 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
2814
2815 PR rtl-optimization/44326
2816 * implicit-zee.c (find_removable_zero_extends): Replace
2817 INSN_P with NONDEBUG_INSN_P.
2818
2819 2010-06-25 Martin Jambor <mjambor@suse.cz>
2820
2821 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
2822 (struct ipa_node_params): Removed the modification_analysis_done flag.
2823 (ipa_is_param_modified): Removed.
2824 (ipa_analyze_node): Declare.
2825 (ipa_compute_jump_functions): Remove declaration.
2826 (ipa_count_arguments): Likewise.
2827 (ipa_detect_param_modifications): Likewise.
2828 (ipa_analyze_params_uses): Likewise.
2829 * ipa-prop.c (struct param_analysis_info): New type.
2830 (visit_store_addr_for_mod_analysis): Removed.
2831 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
2832 moved down in the file.
2833 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
2834 (ipa_count_arguments): Made static.
2835 (mark_modified): New function.
2836 (is_parm_modified_before_call): New function.
2837 (compute_pass_through_member_ptrs): New parameter parms_info, call
2838 is_parm_modified_before_call instead of ipa_is_param_modified.
2839 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2840 it to compute_pass_through_member_ptrs.
2841 (ipa_compute_jump_functions): New parameter parms_info, pass it to
2842 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
2843 on the callee if it is analyzed. Made static.
2844 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2845 is_parm_modified_before_call instead of ipa_is_param_modified.
2846 (ipa_analyze_call_uses): New parameter parms_info, pass it to
2847 ipa_analyze_indirect_call_uses.
2848 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2849 ipa_analyze_call_uses.
2850 (ipa_analyze_params_uses): New parameter parms_info, pass it to
2851 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
2852 (ipa_analyze_node): New function.
2853 (ipa_print_node_params): Do not dump the modified flag.
2854 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2855 it. Do not stream the modified parameter flag.
2856 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2857 it. Do not stream the modified parameter flag.
2858 * ipa-cp.c (ipcp_analyze_node): Removed.
2859 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2860 with only a call to ipa_analyze_node.
2861 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2862 node with only a call to ipa_analyze_node.
2863
2864 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2865
2866 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2867
2868 2010-06-25 Jan Hubicka <jh@suse.cz>
2869
2870 * tree-pass.h (pass_split_functions): Declare.
2871 * opts.c (decode_options): Enable function splitting at -O2
2872 * timevar.def (TV_IPA_FNSPLIT): New macro.
2873 * ipa-split.c: New file.
2874 * common.opt (-fpartial-inlining): New flag.
2875 * Makefile.in (ipa-split.o): New object file.
2876 * passes.c (init_optimization_passes): Add ipa-split.
2877 * params.def (partial-inlining-entry-probability): New parameters.
2878 * doc/invoke.texi (-fpartial-inlining): New.
2879
2880 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2881
2882 PR 44665
2883 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2884 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2885 (gimplify_expr): Likewise.
2886
2887 2010-06-25 Martin Jambor <mjambor@suse.cz>
2888
2889 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2890 statements instead of bailing out on them.
2891 (ipa_analyze_indirect_call_uses): Do not require that loads from the
2892 parameter are in the same BB as the condition. Update comments.
2893
2894 2010-06-25 Jakub Jelinek <jakub@redhat.com>
2895
2896 PR middle-end/43866
2897 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2898 true or always false, return NULL_TREE.
2899 (tree_unswitch_single_loop): Optimize conditions even when reaching
2900 max-unswitch-level parameter. If num > 0, optimize first all conditions
2901 using entry checks, then do still reachable block discovery and consider
2902 only conditions in still reachable basic blocks in the loop.
2903
2904 PR tree-optimization/44539
2905 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2906 the call doesn't have LHS, but has VDEF.
2907
2908 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2909
2910 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2911 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2912 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2913 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2914 * system.h (MODIFY_TARGET_NAME): Poison.
2915
2916 2010-06-25 Alan Modra <amodra@gmail.com>
2917
2918 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2919 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2920 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2921 CMODEL_LARGE as default.
2922 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2923 (offsettable_ok_by_alignment): Delete.
2924 (rs6000_emit_move): Remove mcmodel=medium optimization.
2925
2926 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2927
2928 With large parts from Jim Wilson:
2929 PR target/43902
2930 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2931 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2932 * optabs.c (optab_for_tree_code): Likewise.
2933 (expand_widen_pattern_expr): Likewise.
2934 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2935 out of execute_optimize_widening_mul.
2936 (convert_plusminus_to_widen): New function.
2937 (execute_optimize_widening_mul): Use the two new functions.
2938 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2939 Remove code to generate widening multiply-accumulate. Add support
2940 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2941 * gimple-pretty-print.c (dump_ternary_rhs): New function.
2942 (dump_gimple_assign): Call it when appropriate.
2943 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2944 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2945 (expand_gimple_stmt_1): Likewise.
2946 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2947 WIDEN_MULT_MINUS_EXPR.
2948 * tree-ssa-operands.c (get_expr_operands): Likewise.
2949 * tree-inline.c (estimate_operator_cost): Likewise.
2950 * gimple.c (extract_ops_from_tree_1): Renamed from
2951 extract_ops_from_tree. Add new arg for a third operand; fill it.
2952 (gimple_build_assign_stat): Support operations with three operands.
2953 (gimple_build_assign_with_ops_stat): Likewise.
2954 (gimple_assign_set_rhs_from_tree): Likewise.
2955 (gimple_assign_set_rhs_with_ops_1): Renamed from
2956 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
2957 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2958 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2959 WIDEN_MULT_MINUS_EXPR.
2960 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2961 (extract_ops_from_tree_1): Adjust declaration.
2962 (gimple_assign_set_rhs_with_ops_1): Likewise.
2963 (gimple_build_assign_with_ops): Pass NULL for last operand.
2964 (gimple_build_assign_with_ops3): New macro.
2965 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2966 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2967 functions.
2968 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2969 (verify_gimple_assign): Call it.
2970 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2971 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2972 functions for dealing with three-operand statements.
2973 * tree.c (commutative_ternary_tree_code): New function.
2974 * tree.h (commutative_ternary_tree_code): Declare it.
2975 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2976 ternary statements.
2977 (gimple_assign_nonzero_warnv_p): Likewise.
2978 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2979 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2980 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
2981 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2982 (struct hashtable_expr): New member ternary in the union.
2983 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2984 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
2985 (iterative_hash_hashable_expr): Likewise.
2986 (print_expr_hash_elt): Handle EXPR_TERNARY.
2987 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2988 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2989 statements. Handle GIMPLE_TERNARY_RHS.
2990
2991 2010-06-25 Jan Hubicka <jh@suse.cz>
2992
2993 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2994
2995 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
2996
2997 PR c/44517
2998 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2999 parameters are not good.
3000 (c_parser_parameter_declaration): Error unknown type name if the type
3001 name can't start declaration specifiers.
3002
3003 2010-06-25 Joseph Myers <joseph@codesourcery.com>
3004
3005 * gcc.c (translate_options): Don't mention +e in comment.
3006 (process_command): Don't handle +e specially.
3007
3008 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
3009
3010 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
3011
3012 * ira-build.c (merge_hard_reg_conflicts): New function.
3013 (create_cap_allocno, copy_info_to_removed_store_destinations,
3014 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
3015 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
3016 (remove_unnecessary_allocnos, remove_low_level_allocnos)
3017 copy_nifo_to_removed_store_destination): Use them.
3018 * ira-lives.c (make_hard_regno_born): New function, split out of
3019 make_regno_born.
3020 (make_allocno_born): Likewise.
3021 (make_hard_regno_dead): New function, split out of make_regno_dead.
3022 (make_allocno_dead): Likewise.
3023 (inc_register_pressure): New function, split out of set_allocno_live.
3024 (dec_register_pressure): New function, split out of clear_allocno_live.
3025 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
3026 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
3027 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
3028 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
3029 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
3030 mark_pseudo_regno_live.
3031 (process_bb_node_lives): Use mark_pseudo_regno_live,
3032 make_hard_regno_born and make_allocno_dead.
3033 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
3034 set_allocno_live, clear_allocno_live): Delete functions.
3035
3036 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
3037 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
3038 functions.
3039 (ira_flattening): Use ira_parent_allocno.
3040 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
3041 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
3042
3043 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
3044 statement.
3045
3046 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
3047 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
3048 minmax_set_iter_cond, minmax_set_iter_next,
3049 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
3050 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
3051 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
3052 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
3053 uses changed.
3054
3055 * ira-int.h (struct live_range, live_range_t): Renamed from struct
3056 ira_allocno_live_range and allocno_live_range_t; all uses changed.
3057 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
3058 All uses changed.
3059
3060 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
3061
3062 * thumb2.md (thumb2_tlobits_cbranch): Delete.
3063 (peephole2 to convert zero_extract/compare of single bit to
3064 lshift/compare): New.
3065
3066 2010-06-24 Anatoly Sokolov <aesok@post.ru>
3067
3068 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
3069 recursive call and call to 'int_const_binop'.
3070 (build_range_check, fold_cond_expr_with_comparison, unextend,
3071 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
3072 multiple_of_p): Adjust call to const_binop.
3073
3074 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
3075
3076 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
3077 determine size of XFmode operand.
3078 (XFmode extended DFmode push splitter): Ditto.
3079 (XFmode extended SFmode push splitter): Ditto.
3080
3081 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
3082
3083 PR target/44588
3084 * config/i386/i386.md (extract_code): New.
3085 (<u>divmodqi4): Likewise.
3086 (divmodhiqi3): Likewise.
3087 (udivmodhiqi3): Likewise.
3088 (<u>divqi3): Remvoved.
3089
3090 2010-06-24 Jakub Jelinek <jakub@redhat.com>
3091
3092 PR middle-end/44492
3093 * recog.h (struct recog_data): Add is_asm field.
3094 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
3095 present in constraints of inline-asm operand and memory operand
3096 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
3097 (extract_insn): Initialize recog_data.is_asm.
3098 * doc/md.texi (Constraints): Document operand side-effect rules.
3099
3100 2010-06-24 Andi Kleen <ak@linux.intel.com>
3101
3102 * c-parser.c (c_parser_conditional_expression): Call
3103 warn_for_omitted_condop.
3104 * doc/invoke.texi: Document omitted condop warning.
3105
3106 2010-06-24 Nick Clifton<nickc@redhat.com>
3107
3108 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
3109 insn in the sequence is a jump insn before setting its label.
3110
3111 2010-06-24 Alan Modra <amodra@gmail.com>
3112
3113 * collect2.c (main): Match exactly --version and --help.
3114
3115 2010-06-24 DJ Delorie <dj@redhat.com>
3116
3117 * config/m32c/m32c-pragma.c: Don't include rtl.h.
3118
3119 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
3120
3121 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
3122 using X87MODEF mode iterator.
3123 (pushsf splitter): Macroize splitter using P mode iterator.
3124 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
3125 mode iterator.
3126
3127 (*movxf_internal): Rename from *movxf_integer.
3128 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
3129 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
3130 (*movdf_internal): Rename from *movdf_integer.
3131 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
3132 (*movsf_internal): Rename from *movdf_1.
3133
3134 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
3135
3136 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
3137 (const_gimple_seq_node): Removed typedefs.
3138
3139 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
3140 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
3141
3142 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
3143
3144 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
3145 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
3146 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
3147 and CODE_FOR_vec_extract_lo_v4df.
3148
3149 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
3150 Changed to define_insn_and_split.
3151 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
3152 (vec_extract_lo_v16hi): Likewise.
3153 (vec_extract_lo_v32qi): Likewise.
3154 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3155 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
3156
3157 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
3158
3159 PR target/44640
3160 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
3161 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
3162 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
3163 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
3164 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
3165
3166 PR target/44640
3167 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
3168
3169 PR other/44644
3170 * df-core.c (struct df): Rename to df_d.
3171 * df.h (struct df): Likewise.
3172 * dse.h (struct df): Remove forward declaration.
3173 * recog.h (struct insn_data): Rename to:
3174 (struct_insn_data_d). Adjusted all users.
3175
3176 2010-06-23 Arnaud Charlet <charlet@adacore.com
3177
3178 PR ada/22220
3179 * doc/install.texi: Update requirements to build GNAT.
3180
3181 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
3182
3183 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
3184 enum type.
3185 (m68k_sched_attr_opx_type): Remove unreachable return.
3186 (m68k_sched_attr_opy_type): Likewise.
3187 (m68k_sched_attr_size): Likewise.
3188 (sched_get_opxy_mem_type): Likewise.
3189 (m68k_sched_attr_op_mem): Likewise.
3190
3191 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
3192
3193 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
3194 new statement and adjust VDEF only if necessary. Remove superfluous
3195 call to maybe_clean_or_replace_eh_stmt.
3196 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
3197 copy the flags.
3198 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
3199 * tree-inline.c (copy_bb): ...and not there.
3200
3201 2010-06-22 Cary Coutant <ccoutant@google.com>
3202
3203 * dwarf2out.c (is_nested_in_subprogram): New function.
3204 (should_move_die_to_comdat): Use it.
3205 (copy_ancestor_tree): Don't mark DIEs here.
3206 (copy_decls_walk): Start walk from root of newly-added tree;
3207 mark DIEs here instead.
3208
3209 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
3210
3211 * config/i386/i386.md (unit): Also check sseishft1.
3212
3213 2010-06-22 Jan Hubicka <jh@suse.cz>
3214
3215 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
3216 enabled.
3217
3218 2010-06-22 Jan Hubicka <jh@suse.cz>
3219
3220 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
3221 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
3222 Return true if something changed.
3223 * df.h (df_confluence_function_n): Return bool.
3224 * df-core.c (df_worklist_propagate_forward,
3225 df_worklist_propagate_backward): Track changes and ages.
3226 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3227 track ages.
3228 * dse.c (dse_confluence_n): Return always true.
3229
3230 2010-06-22 Jan Hubicka <jh@suse.cz>
3231
3232 * bitmap.c (bitmap_clear_bit): Micro optimize.
3233
3234 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
3235
3236 * config/i386/i386.md (SWI1248x): New mode iterator.
3237 (SWI48x): Ditto.
3238 (SWI12): Ditto.
3239 (SWI24): Ditto.
3240
3241 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3242 SWI1248x mode iterator.
3243 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3244 using SWI124 mode iterator.
3245 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3246 mode iterator.
3247 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
3248 *pushdi2_prologue_rex64 using P mode iterator.
3249 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3250 using SWI48 mode iterator.
3251 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3252 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3253 using SWI1248x mode iterator.
3254 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3255 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3256 SWI48 mode iterator.
3257 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3258 iterator.
3259 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3260 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3261 SWI12 mode iterator.
3262 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3263 SWI12 mode iterator.
3264 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3265 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3266 SWI24 mode iterator.
3267 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3268 SWI48 mode iterator.
3269 (mov<mode>_insn_1): New expander.
3270 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3271 using SWI48x mode iterator.
3272
3273 (*movoi_internal_avx): Rename from *movoi_internal.
3274 (*movti_internal_rex64): Rename from *movti_rex64.
3275 (*movti_internal_sse): Rename from *movti_sse.
3276 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3277 (*movdi_internal): Rename from *movdi_2.
3278 (*movsi_internal): Rename from *movsi_1.
3279 (*movhi_internal): Rename from *movhi_1.
3280 (*movqi_internal): Rename from *movqi_1.
3281
3282 (insv): Update the call to gen_movsi_insv_1 for rename.
3283 * config/i386/i386.c (promote_duplicated_reg): Ditto.
3284
3285 2010-06-22 Jan Hubicka <jh@suse.cz>
3286
3287 * passes.c (execute_function_todo): Move call of statistics_fini_pass
3288 to ...
3289 (execute_todo) ... this one.
3290
3291 2010-06-22 Alan Modra <amodra@gmail.com>
3292
3293 PR target/44364
3294 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3295 * caller-save.c (insert_restore, insert_save): Use non-validate
3296 form of adjust_address.
3297
3298 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3299
3300 PR target/39690
3301 * config/pa/pa.c (override_options): Disable
3302 -freorder-blocks-and-partition.
3303
3304 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
3305
3306 PR target/44615
3307 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
3308
3309 * config/i386/i386.md (type): Add sseishft1
3310
3311 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
3312 (ppro_insn_load): Likewise.
3313 (ppro_insn_store): Likewise.
3314 (ppro_insn_both): Likewise.
3315
3316 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
3317 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
3318 for type.
3319 (*vec_extractv2di_1_avx): Likewise.
3320 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
3321 type. Remove atom_unit.
3322 (*vec_extractv2di_1_sse2): Likewise.
3323
3324 2010-06-21 DJ Delorie <dj@redhat.com>
3325
3326 * diagnostic.h (diagnostic_classification_change_t): New.
3327 (diagnostic_context): Add history and push/pop list.
3328 (diagnostic_push_diagnostics): Declare.
3329 (diagnostic_pop_diagnostics): Declare.
3330 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
3331 from pragmas in a history chain instead of the global table.
3332 (diagnostic_push_diagnostics): New.
3333 (diagnostic_pop_diagnostics): New.
3334 (diagnostic_report_diagnostic): Scan history chain to find state
3335 of diagnostics as of the diagnostic location.
3336 * opts.c (set_option): Pass UNKNOWN_LOCATION to
3337 diagnostic_classify_diagnostic.
3338 (enable_warning_as_error): Likewise.
3339 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
3340 use in the history chain.
3341 * doc/extend.texi: Document pragma GCC diagnostic changes.
3342
3343 2010-06-21 Jakub Jelinek <jakub@redhat.com>
3344
3345 * dwarf2out.c (add_linkage_name): New function. Don't add
3346 anything to DW_TAG_member DIEs.
3347 (add_name_and_src_coords_attributes): Use it.
3348 (gen_variable_die): Call it for C++ static data members if
3349 specification is DW_TAG_member.
3350
3351 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
3352 C++ char16_t and char32_t.
3353
3354 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
3355 * genattrtab.c: Include vecprim.h.
3356 (cached_attrs, cached_attr_count, attrs_seen_once,
3357 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
3358 attrs_cached_after): New variables.
3359 (find_attrs_to_cache): New function.
3360 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
3361 (write_test_expr): Add attrs_cached argument, return it too,
3362 attempt to cache non-const attributes used more than once in
3363 a single case handling.
3364 (write_attr_get): Use find_attrs_to_cache, for caching candidates
3365 emit cached_* variables. Adjust write_attr_set callers.
3366 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
3367 to find attributes that should be cached in this block. Adjust
3368 write_test_expr callers.
3369 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
3370 callers.
3371 (make_automaton_attrs): Adjust write_test_expr caller.
3372
3373 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
3374 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
3375 (make_automaton_attrs): If find_tune_attr returns non-NULL,
3376 write separate internal_dfa_insn_code_* and insn_default_latency_*
3377 functions for each attribute's value and emit init_sched_attrs
3378 function and function pointers.
3379 * genattr.c (const_attrs, reservations): New variables.
3380 (gen_attr): Add const attributes to const_attrs vector.
3381 (check_tune_attr, find_tune_attr): New functions.
3382 (main): Add reservations to reservations vector. If find_tune_attr
3383 returns true, add prototype for init_sched_attrs and make
3384 internal_dfa_insn_code and insn_default_latency function pointers,
3385 otherwise define init_sched_attrs as dummy macro.
3386 * cfgexpand.c: Include insn-attr.h.
3387 (gimple_expand_cfg): Call init_sched_attrs.
3388
3389 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
3390
3391 PR target/44575
3392 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
3393 va_arg from a set of register save slots into a temporary,
3394 if the container is bigger than type size, do the copying
3395 using smaller mode or using memcpy.
3396
3397 PR bootstrap/44426
3398 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
3399 prototype.
3400 (sel_print_to_dot): Remove macro.
3401 (sel_print): Likewise. New prototype.
3402 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
3403 (sel_print): New function.
3404
3405 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3406
3407 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
3408 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
3409
3410 2010-06-21 Nick Clifton <nickc@redhat.com>
3411
3412 * config/rx/rx.h (PTRDIFF_TYPE): Define.
3413 (SMALL_REGISTER_CLASS): Define (to zero).
3414 (PRINT_OPERAND): Delete.
3415 (PRINT_OPERAND_ADDRESS): Delete.
3416 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
3417 (rx_print_operand_address): Delete prototype.
3418 * config/rx/rx.c (rx_print_operand): Make static.
3419 Allow %H and %L to handle CONST_DOUBLEs.
3420 (rx_print_operand_address): Make static.
3421 (rx_gen_move_template): Rename local variable 'template' to
3422 out_template.
3423 (rx_function_arg): Do not pass unknown sized objects in registers.
3424 (TARGET_PRINT_OPERAND): Define.
3425 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3426
3427 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3428
3429 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
3430
3431 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
3432
3433 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
3434 stack-alignment for simple leaf-functions.
3435
3436 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
3437
3438 * doc/install.texi: Document bootstrap-lto.
3439
3440 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
3441
3442 PR debug/44248
3443 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
3444 (input_function): Drop them here, if VTA is disabled.
3445
3446 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
3447
3448 PR target/44546
3449 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
3450 New predicate.
3451 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
3452 ix86_swapped_fp_comparsion_operator instead of
3453 ix86_fp_comparison_operator.
3454
3455 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
3456 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
3457 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
3458 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
3459 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
3460 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
3461
3462 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3463
3464 PR other/32998
3465 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
3466 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
3467 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
3468 (decode_cmdline_option): Update for this return value. Set
3469 orig_option_with_args_text field. Set arg field for unknown
3470 options. Make static.
3471 (decode_cmdline_options_to_array): New.
3472 (prune_options): Update handling of find_opt return value.
3473 * opts.c (read_cmdline_option): Take decoded option. Return void.
3474 (read_cmdline_options): Take decoded options.
3475 (decode_options): Add parameters for decoded options. Use
3476 decode_cmdline_options_to_array. Use decoded options for -O
3477 scan. Use integral_argument for -O parameters. Update call to
3478 read_cmdline_options.
3479 (enable_warning_as_error): Update handling of find_opt return value.
3480 * opts.h: Update comment on unknown options.
3481 (struct cl_decoded_option): Update comments on opt_index and arg.
3482 Add orig_option_with_args_text.
3483 (decode_cmdline_option): Remove.
3484 (decode_cmdline_options_to_array): Declare.
3485 (decode_options): Update prototype.
3486 * toplev.c (save_argv): Remove.
3487 (save_decoded_options, save_decoded_options_count): New.
3488 (read_integral_parameter): Remove.
3489 (print_switch_values): Use decoded options.
3490 (toplev_main): Don't set save_argv. Update call to decode_options.
3491 * toplev.h (read_integral_parameter): Remove.
3492 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
3493
3494 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
3495
3496 PR target/44072
3497 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
3498 immediate.
3499 * constraints.md (Pw, Px): New constraints.
3500 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
3501
3502 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
3503
3504 * config/i386/sse.md (fma4modesuffixf4): Removed.
3505 (ssemodesuffixf2s): Likewise.
3506 (ssemodesuffixf4): Likewise.
3507 (ssemodesuffixf2c): Likewise.
3508 (ssescalarmodesuffix2s): Likewise.
3509 (avxmodesuffixf2c): Likewise.
3510 (ssemodesuffix): New.
3511 (ssescalarmodesuffix): Likewise.
3512 Update patterns with ssemodesuffix and ssescalarmodesuffix.
3513
3514 2010-06-19 Philip Herron <herron.philip@googlemail.com>
3515
3516 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
3517
3518 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
3519
3520 * stor-layout.c (debug_rli): Remove unused local variables.
3521
3522 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
3523
3524 PR rtl-optimization/40900
3525 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
3526 original expression for later reuse.
3527 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
3528 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
3529
3530 2010-06-18 Anatoly Sokolov <aesok@post.ru>
3531
3532 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
3533 double_int_fits_in_uhwi_p): Implement as static inline.
3534 (double_int_xor): New inline function.
3535 (double_int_lrotate, double_int_rrotate, double_int_max,
3536 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3537 double_int_smin): Declare.
3538 (lrotate_double, rrotate_double): Remove declaration.
3539 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
3540 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
3541 (double_int_lrotate, double_int_rrotate, double_int_max,
3542 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3543 double_int_smin): New function.
3544 * fold-const.c (int_const_binop): Clean up, use double_int_*
3545 functions.
3546 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
3547 double_int_* and immed_double_int_const functions.
3548
3549 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3550
3551 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
3552 * function.c (types_used_by_cur_var_decl): Likewise.
3553 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
3554
3555 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3556
3557 * tree.h (record_layout_info): Change type of pending_statics field
3558 to a VEC.
3559 * stor-layout.c (start_record_layout): Store NULL into
3560 pending_statics.
3561 (debug_rli): Call debug_vec_tree instead of debug_tree.
3562 (place_field): Likewise.
3563 (finish_record_layout): Likewise.
3564
3565 2010-06-18 Alan Modra <amodra@gmail.com>
3566
3567 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
3568
3569 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3570
3571 PR target/43740
3572 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
3573 for SET source operand from SET destination operand.
3574
3575 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
3576
3577 PR rtl-optimization/39871
3578 * reload1.c (init_eliminable_invariants): For flag_pic, disable
3579 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
3580 (function_invariant_p): Rule out a plus of frame or arg pointer with
3581 a SYMBOL_REF.
3582 * ira.c (find_reg_equiv_invariant_const): Likewise.
3583
3584 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
3585
3586 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
3587 print_operand_address and puts to output the operand for CONST.
3588
3589 2010-06-17 Jakub Jelinek <jakub@redhat.com>
3590
3591 PR debug/44572
3592 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
3593 hook.
3594
3595 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3596
3597 * v850-protos.h (print_operand): Delete.
3598 (print_operand_address): Delete.
3599 * v850.h (PRINT_OPERAND): Delete.
3600 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3601 (PRINT_OPERAND_ADDRESS): Delete.
3602 * v850.c (print_operand_address): Rename to...
3603 (v850_print_operand_address): ...this. Make static. Call
3604 v850_print_operand.
3605 (print_operand): Rename to...
3606 (v850_print_operand): ...this. Make static. Call
3607 v850_print_operand_address.
3608 (v850_print_operand_punct_valid_p): New function.
3609 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3610 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3611
3612 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3613
3614 * config/sh/sh-protos.h (print_operand): Delete.
3615 (print_operand_address): Delete.
3616 * config/sh/sh.h (PRINT_OPERAND): Delete.
3617 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3618 (PRINT_OPERAND_ADDRESS): Delete.
3619 * config/sh/sh.c (sh_print_operand_address): Make static.
3620 (sh_print_operand): Make static. Call sh_print_operand_address
3621 and sh_print_operand.
3622 (sh_print_operand_punct_valid_p): New function.
3623 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3624 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3625
3626 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3627
3628 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
3629 (mcore_print_operand_address): Delete.
3630 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
3631 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3632 (PRINT_OPERAND_ADDRESS): Delete.
3633 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
3634 (mcore_print_operand): Make static.
3635 (mcore_print_operand_punct_valid_p): New function.
3636 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
3637 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3638
3639 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3640
3641 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
3642 (print_operand_address): Delete.
3643 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
3644 (PRINT_OPERAND_ADDRESS): Delete.
3645 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
3646 static.
3647 (m68hc11_print_operand): Make static.
3648 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3649
3650 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3651
3652 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3653 (m32r_print_operand_address): Delete.
3654 * config/m32r/m32r.h (m32r_punct_chars): Delete.
3655 (PRINT_OPERAND): Delete.
3656 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3657 (PRINT_OPERAND_ADDRESS): Delete.
3658 * config/m32r/m32r.c (m32r_punct_chars): Make static.
3659 (m32r_print_operand_address): Make static.
3660 (m32r_print_operand): Make static.
3661 (m32r_print_operand_punct_valid_p): New function.
3662 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3663 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3664
3665 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3666
3667 * config/iq2000/iq2000-protos.h (print_operand): Delete.
3668 (print_operand_address): Delete.
3669 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3670 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3671 (PRINT_OPERAND_ADDRESS): Delete.
3672 (iq2000_print_operand_punct): Delete.
3673 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3674 (iq2000_print_operand_address): Make static.
3675 (iq2000_print_operand): Make static.
3676 (iq2000_print_operand_punct_valid_p): New function.
3677 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3678 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3679
3680 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3681
3682 * config/frv/frv-protos.h (frv_print_operand): Delete.
3683 (frv_print_operand_address): Delete.
3684 * config/frv/frv.h (PRINT_OPERAND): Delete.
3685 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3686 (PRINT_OPERAND_ADDRESS): Delete.
3687 * config/frv/frv.c (frv_print_operand_address): Make static.
3688 (frv_print_operand): Make static.
3689 (frv_print_operand_punct_valid_p): New function.
3690 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3691 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3692
3693 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3694
3695 * tree.h (vec_member): Declare.
3696 * tree.c (vec_member): Define.
3697
3698 2010-06-17 Richard Guenther <rguenther@suse.de>
3699
3700 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3701 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3702
3703 2010-06-17 Richard Guenther <rguenther@suse.de>
3704
3705 * tree-inline.c (declare_return_variable): Remove bogus code.
3706
3707 2010-06-17 Richard Guenther <rguenther@suse.de>
3708
3709 * gimplify.c (gimplify_bind_expr): Always promote complex
3710 and vector variables to registers if possible.
3711
3712 2010-06-17 Richard Guenther <rguenther@suse.de>
3713
3714 * expr.c (get_inner_reference): Use double_int for bit_offset
3715 calculation.
3716
3717 2010-06-16 DJ Delorie <dj@redhat.com>
3718
3719 * common.opt (-fstrict-volatile-bitfields): new.
3720 * doc/invoke.texi: Document it.
3721 * fold-const.c (optimize_bit_field_compare): For volatile
3722 bitfields, use the field's type to determine the mode, not the
3723 field's size.
3724 * expr.c (expand_assignment): Likewise.
3725 (get_inner_reference): Likewise.
3726 (expand_expr_real_1): Likewise.
3727 * expmed.c (store_fixed_bit_field): Likewise.
3728 (extract_bit_field_1): Likewise.
3729 (extract_fixed_bit_field): Likewise.
3730
3731 2010-06-16 Richard Guenther <rguenther@suse.de>
3732
3733 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
3734
3735 2010-06-16 Douglas B Rupp <rupp@gnat.com>
3736
3737 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
3738 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
3739 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
3740 * debug.c: Likewise.
3741 * sdbout.c: Likewise.
3742 * vmsdbgout.c: Likewise.
3743 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
3744 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
3745 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
3746 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
3747 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
3748 * dwarf2out.c (dw_fde_struct): New fields
3749 dw_fde_vms_{end,begin}_prologue.
3750 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
3751 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
3752 (dwarf2out_vms_end_prologue): New function.
3753 (dwarf2out_vms_begin_epilogue): New function.
3754 (dw_val_struct): New value dw_val_class_vms_delta.
3755 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
3756 begin_epilogue for VMS.
3757 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
3758 new static functions.
3759 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
3760 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
3761 static functions.
3762 (print_die): New case dw_val_class_vms_delta.
3763 (attr_checksum): Likewise.
3764 (same_dw_val_p: Likewise.
3765 (size_of_die): Likewise.
3766 (value_format): Likewise.
3767 (output_die): Likewise.
3768 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
3769 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
3770 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
3771 dwarf2out_cfi_begin_epilogue
3772 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
3773
3774 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3775
3776 * config/cris/cris-protos.h (cris_print_operand): Delete.
3777 (cris_print_operand_address): Delete.
3778 * config/cris/cris.h (PRINT_OPERAND): Delete.
3779 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3780 (PRINT_OPERAND_ADDRESS): Delete.
3781 * config/cris/cris.c (cris_print_operand_address): Make static.
3782 (cris_print_operand): Make static.
3783 (cris_print_operand_punct_valid_p): New function.
3784 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3785 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3786
3787 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3788
3789 * config/arm/arm-protos.h (arm_print_operand): Delete.
3790 (arm_print_operand_address): Delete.
3791 * config/arm/arm.h (PRINT_OPERAND): Delete.
3792 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3793 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
3794 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
3795 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
3796 (arm_print_operand): Make static.
3797 (arm_print_operand_punct_valid_p): New function.
3798 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3799 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3800
3801 2010-06-16 Nick Clifton <nickc@redhat.com>
3802
3803 * config/rx/constraints.md (NEGint4): New constraint.
3804 * config/rx/rx.md (attr cc): Add set_zsc.
3805 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
3806 initialised.
3807 (cmpsf): Likewise.
3808 (call_internal): Clobber the cc0 register.
3809 (call_value_internal): Likewise.
3810 (cstoresi4): Likewise.
3811 (movsieq): Likewise.
3812 (movsine): Likewise.
3813 (addsi3): Add alternative to handle small negative constants.
3814 (sunsi3): Likewise.
3815 (addsi3): Do not set the O bit in the cc0 register.
3816 (adddi3): Likewise.
3817 (subsi3): Likewise.
3818 (subdi3): Likewise.
3819 (andsi3): Reorder alternatives to prefer shorter forms.
3820 (mulsi3): Likewise.
3821 (iorsi3): Likewise.
3822 (negsi2): Note that the cc0 flags are set.
3823 (rotlsi3): Note that only the Z and S bits are set in cc0.
3824 (lshrsi3): Likewise.
3825 (ashlsi3): Likewise.
3826 (subsf3): Use %Q for the MEM operand.
3827 (fix_truncsfsi2): Likewise.
3828 (floatsisf2): Likewise.
3829 (bitset): Remove early clobber from destination.
3830 (bitset_in_memory): Likewise.
3831 (lrintsf2): Clobber the cc0 register.
3832 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
3833 (rx_print_operand): Handle %N.
3834
3835 2010-06-16 Jan Hubicka <jh@suse.cz>
3836
3837 * df-core.c (df_compact_blocks): Free problem_temps vector.
3838
3839 2010-06-16 Martin Jambor <mjambor@suse.cz>
3840
3841 PR tree-optimization/43905
3842 * tree-sra.c: Include tree-inline.h.
3843 (create_abstract_origin): Removed.
3844 (modify_function): Version the call graph node instead of creating
3845 abstract origins and dealing with same_body aliases.
3846 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3847 function is versionable.
3848 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3849
3850 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
3851
3852 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3853 (CHOOSE_DYNAMIC_LINKER): Update.
3854
3855 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
3856
3857 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
3858 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3859 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3860 *prefetch_3dnow_rex.
3861
3862 2010-06-15 Anatoly Sokolov <aesok@post.ru>
3863
3864 * target.h (struct asm_out):Add declare_constant_name field.
3865 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3866 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3867 * output.h (default_asm_declare_constant_name): Declare.
3868 (assemble_label): Update prototype.
3869 * varasm.c (assemble_constant_contents): Use
3870 targetm.asm_out.declare_constant_name target hook.
3871 (assemble_label): Add 'file' argument.
3872 (default_asm_declare_constant_name): New function.
3873 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3874 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3875 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3876
3877 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3878 * config/darwin.c (darwin_asm_declare_constant_name): New function.
3879 (machopic_output_indirection): Update assemble_label argument list.
3880 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3881 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3882
3883 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
3884
3885 PR middle-end/44391
3886 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3887 size_one_node for pointer types. Do not call gmp_cst_to_tree.
3888
3889 2010-06-15 Richard Guenther <rguenther@suse.de>
3890
3891 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3892
3893 2010-06-15 Paul Brook <paul@codesourcery.com>
3894
3895 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3896 hard-float ABI.
3897
3898 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
3899
3900 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3901 don't get a vector type for output.
3902
3903 2010-06-15 Jakub Jelinek <jakub@redhat.com>
3904
3905 PR fortran/44536
3906 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3907 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3908 (LANG_HOOKS_DECLS): Add it.
3909 * gimplify.c (omp_notice_variable): Call
3910 lang_hooks.decls.omp_report_decl.
3911
3912 2010-06-15 Martin Jambor <mjambor@suse.cz>
3913
3914 PR lto/44464
3915 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3916 on the newly dead SSA name.
3917
3918 2010-06-15 Alan Modra <amodra@gmail.com>
3919
3920 * doc/invoke.texi: Add mcmodel to powerpc options.
3921 * configure.ac: Add HAVE_LD_LARGE_TOC test.
3922 * configure: Regenerate.
3923 * config.in: Regenerate.
3924 * config/rs6000/linux64.opt (mcmodel): New.
3925 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3926 (TARGET_CMODEL, SET_CMODEL): Define.
3927 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3928 select CMODEL_MEDIUM default.
3929 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3930 (TARGET_CMODEL): Define default.
3931 * config/rs6000/rs6000.c (cmodel): New variable.
3932 (rs6000_explicit_options): Add cmodel field.
3933 (rs6000_handle_option): Handle -mcmodel.
3934 (create_TOC_reference): Add largetoc_reg param. Generate high,
3935 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
3936 (rs6000_delegitimize_address): Recognise new toc reference rtl
3937 and minimal-toc rtl.
3938 (rs6000_legitimize_reload_address): Handle new toc references.
3939 (print_operand_address): Handle legitimate_constant_pool_address_p
3940 match before lo_sum.
3941 (rs6000_eliminate_indexed_memrefs): Tidy.
3942 (rs6000_emit_move): Tweak threshold for inlining constants.
3943 Keep rs6000_emit_allocate_stack large stack frame offsets
3944 loaded into r0 inline.
3945 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3946 (tocrel_base, tocrel_offset): New variables.
3947 (toc_relative_expr_p): Set them here.
3948 (print_operand_address): Skip over any offset on constant pool address.
3949 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3950 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3951 (offsettable_ok_by_alignment): New function.
3952 (rs6000_emit_move): Address suitably aligned local symbol_refs
3953 relative to the toc pointer for -mcmodel=medium.
3954 (legitimate_constant_pool_address_p): Make param const_rtx. Add
3955 strict param. Allow lo_sum version of addressing. Verify reg
3956 used for -mminimal-toc and -mcmodel != small. Update all callers.
3957 * config/rs6000/constraints.md: Update for above change.
3958 * config/rs6000/predicates.md: Likewise.
3959 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3960 code.
3961 (tls_gd): Split for -mcmodel=medium/large.
3962 (tls_gd_high, tls_gd_low): New.
3963 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3964 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3965 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3966 (largetoc_high, largetoc_low): New.
3967 (cmptf_internal2): Add clobber.
3968 * config/rs6000/rs6000-protos.h: Update.
3969
3970 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
3971
3972 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
3973 true if no prefetch is going to be generated for a given group.
3974 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3975 estimate the prefetch_count.
3976 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3977 prefetch count by considering the unroll_factor and prefetch_mod
3978 for is_loop_prefetching_profitable.
3979
3980 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
3981
3982 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3983 anything if the argument is not a MEM.
3984
3985 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3986
3987 PR debug/43650
3988 PR debug/44181
3989 PR debug/44247
3990 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3991 debug stmts.
3992 (canonicalize_loop_ivs): Likewise.
3993
3994 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3995
3996 PR debug/43656
3997 * haifa-sched.c (setup_insn_reg_pressure_info,
3998 update_register_pressure): Reject debug insns.
3999 (ready_sort): Don't setup reg pressure for debug insns.
4000 (schedule_insn): Don't update reg pressure for debug insns.
4001
4002 2010-06-14 Richard Guenther <rguenther@suse.de>
4003
4004 * lto-streamer.c (cached_bp): Remove.
4005 (bitpack_delete): Likewise.
4006 (bitpack_create): Likewise.
4007 (bp_get_next_word): Likewise.
4008 (bp_pack_value, bp_unpack_value): Move ...
4009 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
4010 Re-implement.
4011 (struct bitpack_d): Likewise.
4012 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
4013 New inline functions.
4014 * lto-streamer-out.c (lto_output_bitpack): Remove.
4015 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4016 (pack_value_fields): Adjust.
4017 (lto_write_tree): Likewise.
4018 (output_gimple_stmt): Likewise.
4019 (output_function): Likewise.
4020 * lto-streamer-in.c (input_gimple_stmt): Adjust.
4021 (input_function): Likewise.
4022 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4023 (lto_input_bitpack): Remove.
4024 (lto_materialize_tree): Adjust.
4025 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
4026 * lto-cgraph.c (lto_output_edge): Adjust.
4027 (lto_output_node): Likewise.
4028 (lto_output_varpool_node): Likewise.
4029 (lto_output_ref): Likewise.
4030 (input_node): Likewise.
4031 (input_varpool_node): Likewise.
4032 (input_ref): Likewise.
4033 (input_edge): Likewise.
4034 (output_node_opt_summary): Likewise.
4035 (input_node_opt_summary): Likewise.
4036 * ipa-pure-const.c (pure_const_write_summary): Likewise.
4037 (pure_const_read_summary): Likewise.
4038 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
4039 (ipa_read_indirect_edge_info): Likewise.
4040 (ipa_write_node_info): Likewise.
4041 (ipa_read_node_info): Likewise.
4042
4043 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
4044
4045 PR target/44534
4046 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
4047 (vec_extract_lo_v16hi): Likewise.
4048 (vec_extract_lo_v32qi): Likewise.
4049
4050 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4051
4052 PR bootstrap/44426
4053 * tree.h (build_call_expr): Don't define as vararg macro, instead
4054 add a prototype.
4055 * builtins.c (build_call_nofold): Remove.
4056 (expand_builtin_int_roundingfn, expand_builtin_pow,
4057 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
4058 expand_builtin_memset_args, expand_builtin_strcmp,
4059 expand_builtin_strncmp, expand_builtin_memory_chk): Use
4060 build_call_nofold_loc instead of build_call_nofold.
4061 (build_call_expr): New function.
4062
4063 PR tree-optimization/44508
4064 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
4065 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
4066 don't eliminate trivially dead stmts.
4067 * tree-vrp.c (vrp_finalize): Pass false as last argument
4068 to substitute_and_fold.
4069 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
4070 to substitute_and_fold.
4071 * tree-ssa-ccp.c (ccp_finalize): Likewise.
4072
4073 PR bootstrap/44509
4074 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
4075
4076 2010-06-14 Ira Rosen <irar@il.ibm.com>
4077
4078 PR tree-optimization/44507
4079 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
4080 to build initial vector for BIT_AND_EXPR.
4081 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4082
4083 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4084
4085 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
4086 adjust z10prop set_attr.
4087
4088 2010-06-13 Jan Hubicka <jh@suse.cz>
4089
4090 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
4091 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
4092 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
4093 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
4094 datastructure checks into checking asserts.
4095 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
4096 * tree-ssa-sccvn.c (VN_INFO): Likewise.
4097 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
4098 df_ref_create_structure): Likewise.
4099 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
4100 pool_free): Use gcc_checking_assert.
4101 * alias.c (get_alias_set): Likewise.
4102 * var-tracking.c (variable_htab_free, shared_hash_copy,
4103 canonicalize_values_mark, variable_merge_over_cur): Likewise.
4104 * lto-streamer.c (bp_unpack_value): Likewise.
4105
4106 2010-06-13 Richard Guenther <rguenther@suse.de>
4107
4108 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
4109 Do not stream but initialize TYPE_CANONICAL to NULL.
4110 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
4111 * gimple.c (gimple_types_compatible_p): Disregard
4112 TYPE_STRUCTURAL_EQUALITY_P.
4113 (gimple_register_type): Use TYPE_CANONICAL as cache.
4114 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
4115 before registering common types.
4116 * config/i386/i386.c (ix86_function_arg_boundary): Do not
4117 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
4118 * tree.h (TYPE_CANONICAL): Clarify documentation.
4119
4120 2010-06-13 Anatoly Sokolov <aesok@post.ru>
4121
4122 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4123 LIBCALL_VALUE): Remove macros.
4124 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
4125 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4126 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4127 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
4128 (ia64_function_value): Make static. Handle receiving the function
4129 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
4130
4131 2010-06-12 Jan Hubicka <jh@suse.cz>
4132
4133 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
4134 at correct place.
4135
4136 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
4137
4138 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
4139
4140 2010-06-12 Jan Hubicka <jh@suse.cz>
4141
4142 * df-core.c (df_clear_bb_info): New function.
4143 (df_set_blocks): bb_info is always allocated.
4144 (df_get_bb_info): Use block_info_elt_size.
4145 (df_set_bb_info): Likewise.
4146 (df_compact_blocks): Update for new block_info.
4147 (grow_bb_info): New function.
4148 * df-problems.c (df_grow_bb_info): Move to df-core.c
4149 (df_rd_set_bb_info): Remove.
4150 (df_rd_free_bb_info): Do not free block pool.
4151 (df_rd_alloc): Do not create pool, use check for
4152 obstack presence instead of NULL pointer for new blocks.
4153 (df_rd_free): DO not free alloc pool; clear block_info.
4154 (problem_RD): Add size of block info structure.
4155 (df_lr_set_bb_info): Remove.
4156 (df_lr_free_bb_info): Do not free block pool.
4157 (df_lr_alloc): Do not create pool, use check for
4158 obstack presence instead of NULL pointer for new blocks.
4159 (df_lr_free): DO not free alloc pool; clear block_info.
4160 (problem_LR): Add size of block info structure.
4161 (df_live_set_bb_info): Remove.
4162 (df_live_free_bb_info): Do not free block pool.
4163 (df_live_alloc): Do not create pool, use check for
4164 obstack presence instead of NULL pointer for new blocks.
4165 (df_live_free): DO not free alloc pool; clear block_info.
4166 (problem_LIVE): Add size of block info structure.
4167 (problem_CHAIN): Add size of block info structure.
4168 (df_byte_lr_set_bb_info): Remove.
4169 (df_byte_lr_free_bb_info): Do not free block pool.
4170 (df_byte_lr_alloc): Do not create pool, use check for
4171 obstack presence instead of NULL pointer for new blocks.
4172 (df_byte_lr_free): DO not free alloc pool; clear block_info.
4173 (problem_BYTE_LR): Add size of block info structure.
4174 (problem_NOTE): Add size of block info structure.
4175 (df_byte_MD_set_bb_info): Remove.
4176 (df_byte_MD_free_bb_info): Do not free block pool.
4177 (df_byte_MD_alloc): Do not create pool, use check for
4178 obstack presence instead of NULL pointer for new blocks.
4179 (df_byte_MD_free): DO not free alloc pool; clear block_info.
4180 (problem_BD): Add size of block info structure.
4181 * df-scan.c (df_scan_free_internal): Free block pool.
4182 (df_scan_set_bb_info): Remove.
4183 (df_scan_free_bb_info): Check for artificial_defs instead
4184 of bb_info being non-NULL.
4185 (df_scan_alloc): DO not create df_scan_block pool.
4186 (problem_SCAN): Set size of block info.
4187 (df_bb_refs_record): Do not allocate bb_info.
4188 * df.h (df_problem): Add block_info_elt_size.
4189 (struct dataflow): Change block_info to void *.
4190 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
4191 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
4192 in-line structures.
4193
4194 2010-06-12 Jan Hubicka <jh@suse.cz>
4195
4196 PR tree-optimize/44485
4197 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
4198 containing use of return value of noreturn function.
4199
4200 2010-06-12 Anatoly Sokolov <aesok@post.ru>
4201
4202 * targhooks.c (default_function_value): Don't use
4203 FUNCTION_OUTGOING_VALUE.
4204 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
4205 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
4206
4207 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
4208
4209 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
4210 Add crtfastmath.o to extra_parts.
4211 * config/mips/crtfastmath.c: New.
4212 * config/mips/linux.h (ENDFILE_SPEC): New.
4213
4214 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
4215
4216 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
4217 old_type in parameter.
4218 (gcc_type_for_value): Update call to gcc_type_for_interval.
4219 (compute_type_for_level_1): Renamed compute_type_for_level.
4220 Update call to gcc_type_for_interval.
4221
4222 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4223
4224 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
4225 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4226
4227 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4228
4229 * opts-common.c: Include options.h.
4230 (integral_argument): Move from opts.c.
4231 (decode_cmdline_option): New. Based on read_cmdline_option.
4232 * opts.c (integral_argument): Move to opts-common.c.
4233 (read_cmdline_option): Move most contents to
4234 decode_cmdline_option. Use %qs in diagnostics.
4235 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4236 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4237 decode_cmdline_option): New.
4238
4239 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4240
4241 PR target/44481
4242 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4243 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4244 (partiysi2_cmp): Ditto.
4245 (*partiyhi2_cmp): Ditto.
4246 (*parityqi2_cmp): Remove.
4247
4248 2010-06-11 Jan Hubicka <jh@suse.cz>
4249
4250 * bitmap.h (bmp_iter_next_bit): New.
4251 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4252
4253 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
4254 Eric Botcazou <ebotcazou@adacore.com>
4255
4256 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4257 computed cost.
4258
4259 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4260
4261 * config/i386/i386.md (unspec): New define_c_enum.
4262 (unspecv): Ditto.
4263
4264 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4265
4266 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4267
4268 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
4269
4270 PR middle-end/44483
4271 * tree-if-conv.c (bb_predicate_s): New struct.
4272 (bb_predicate_p): New.
4273 (bb_has_predicate): New.
4274 (bb_predicate): New.
4275 (set_bb_predicate): New.
4276 (bb_predicate_gimplified_stmts): New.
4277 (set_bb_predicate_gimplified_stmts): New.
4278 (add_bb_predicate_gimplified_stmts): New.
4279 (init_bb_predicate): New.
4280 (free_bb_predicate): New.
4281 (is_predicated): Use bb_predicate.
4282 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4283 (predicate_bbs): Same. Gimplify the condition of the basic blocks
4284 before processing their successors.
4285 (clean_predicate_lists): Removed.
4286 (find_phi_replacement_condition): Use bb_predicate.
4287 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
4288 computations.
4289 (insert_gimplified_predicates): New.
4290 (combine_blocks): Call insert_gimplified_predicates.
4291 (tree_if_conversion): Call free_bb_predicate instead of
4292 clean_predicate_lists.
4293
4294 2010-10-11 Paul Brook <paul@codesourcery.com>
4295
4296 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
4297 * config/arm/arm.c (all_architectures): Change v7e-m default to
4298 cortexm4.
4299 * config/arm/arm-cores.def: Add cortex-m4.
4300 * config/arm/arm-tune.md: Regenerate.
4301
4302 2010-06-11 Jan Hubicka <jh@suse.cz>
4303
4304 * ipa-pure-const.c (special_builtlin_state): New function.
4305 (check_call): Use it instead of special casign BUILT_IN_RETURN.
4306 (propagate_pure_const): Use it.
4307
4308 2010-06-11 Jan Hubicka <jh@suse.cz>
4309
4310 * df-problems.c (df_live_scratch): Convert to bitmap_head.
4311 (df_live_alloc): Initialize df_live_scratch when initializing
4312 problem_data.
4313 (df_live_transfer_function): Update uses of df_live_scratch.
4314 (df_live_free): Free problem_data; clear df_live_scratch before
4315 releasing the obstack.
4316 (df_md_free): Free problem data.
4317
4318 2010-06-11 Jan Hubicka <jh@suse.cz>
4319
4320 * doc/invoke.texi (Wsuggest-attribute): Document.
4321 (Wmissing-noreturn): Remove.
4322 * ipa-pure-const.c (warn_function_noreturn): New function.
4323 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
4324 warn_missing_noreturn.
4325 * common.opt (Wsuggest-attribute=noreturn): New.
4326 * tree-flow.h (warn_function_noreturn): Declare.
4327 * tree-cfg.c (execute_warn_function_noreturn): Use
4328 warn_function_noreturn.
4329 (gate_warn_function_noreturn): New.
4330 (pass_warn_function_noreturn): Update.
4331
4332 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4333
4334 * c-typeck.c (handle_warn_cast_qual): Add loc
4335 parameter. Improve warning message.
4336 (build_c_cast): Pass location to handle_warn_cast_qual.
4337
4338 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4339
4340 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
4341 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
4342 insn mnemonic.
4343 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
4344
4345 2010-06-10 Dodji Seketeli <dodji@redhat.com>
4346
4347 Fix bootstap on mips
4348 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
4349 be naming typedefs.
4350
4351 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
4352
4353 * system.h (helper_const_non_const_cast): New inline for
4354 gcc version <= 4.0.
4355 (CONST_CAST2): For gcc version <= 4.0 use
4356 new helper to do const/non-const casting.
4357
4358 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4359
4360 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
4361 * Makefile.in (OBJS-common): Include insn-enums.o.
4362 (insn-enums.o): New rule.
4363 (simple_generated_c): Add insn-enums.c.
4364 (build/genenums.o): New rule.
4365 (genprogmd): Add "enums".
4366 * genconstants.c (print_enum_type): Declare a C string array
4367 for each enum.
4368 * genenums.c: New file.
4369 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
4370 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
4371 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
4372
4373 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4374
4375 * doc/md.texi (define_enum_attr): Document.
4376 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
4377 * read-md.h (lookup_enum_type): Declare.
4378 * read-md.c (lookup_enum_type): New function.
4379 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
4380 * genattrtab.c (attr_desc): Add an enum_name field.
4381 (evaluate_eq_attr): Take the associated attribute as argument.
4382 Get the enum prefix from the enum_name field, if defined.
4383 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
4384 (simplify_test_exp): Pass attr to evaluate_eq_attr.
4385 (add_attr_value): New function, split out from...
4386 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
4387 (write_test_expr): Pass attr to evaluate_eq_attr.
4388 (write_attr_get): Use the enum_name as the enum tag, if defined.
4389 (write_attr_valueq): Use the enum_name as a prefix, if defined.
4390 (find_attr): Initialize enum_name.
4391 (main): Handle DEFINE_ENUM_ATTR.
4392 * gensupport.c (process_rtx): Likewise.
4393 * config/mips/mips.h (mips_tune_attr): Delete.
4394 * config/mips/mips.md (cpu): Use define_attr_enum.
4395
4396 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4397
4398 * doc/md.texi (define_c_enum, define_enum): Document.
4399 * read-md.h (md_constant): Add a parent_enum field.
4400 (enum_value, enum_type): New structures.
4401 (upcase_string, traverse_enum_types): Declare.
4402 * read-md.c (enum_types): New variable.
4403 (upcase_string, add_constant): New functions.
4404 (handle_constants): Don't create the hash table here.
4405 Use add_constant.
4406 (traverse_md_constants): Don't check for a null md_constants.
4407 (decimal_string, handle_enum, traverse_enum_types): New functions.
4408 (read_md_files): Initialize md_constants and md_enums.
4409 * genconstants.c (print_md_constant): Ignore info argument.
4410 Only print constants that belong to no enum.
4411 (print_enum_type): New function.
4412 (main): Don't pass stdout to print_md_constant. Call print_enum_type
4413 for each defined enum type.
4414 * config/mips/mips.md (processor): New define_enum.
4415 (unspec): New define_c_enum.
4416 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
4417 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
4418 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
4419 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
4420 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4421 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4422 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4423 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4424 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4425 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4426 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4427 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4428 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4429 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4430 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4431 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4432 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4433 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4434 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4435 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4436 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4437 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4438 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4439 (UNSPEC_RDDSP): Move to mips-dsp.md.
4440 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
4441 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
4442 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
4443 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
4444 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
4445 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
4446 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
4447 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
4448 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
4449 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
4450 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
4451 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
4452 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
4453 Moved to mips-dspr2.md.
4454 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
4455 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
4456 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
4457 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
4458 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
4459 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
4460 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4461 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4462 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4463 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4464 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4465 UNSPEC_LOONGSON_PSADBH)
4466 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4467 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4468 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
4469 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4470 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4471 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4472 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
4473 (cpu): Update comment.
4474 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
4475 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
4476 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
4477 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
4478 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
4479 UNSPEC_LOONGSON_PCMPEQ)
4480 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
4481 UNSPEC_LOONGSON_PINSR_0)
4482 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4483 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4484 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4485 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4486 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4487 UNSPEC_LOONGSON_PSADBH)
4488 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4489 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4490 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
4491 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4492 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4493 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4494 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
4495 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
4496 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
4497 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
4498 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
4499 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
4500 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
4501 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
4502 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
4503 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
4504 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
4505 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
4506 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
4507 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
4508 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
4509 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
4510 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
4511 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
4512 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
4513 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
4514 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4515 (UNSPEC_RDDSP): Moved from mips.md.
4516 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
4517 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
4518 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
4519 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
4520 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
4521 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
4522 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
4523 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
4524 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
4525 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
4526 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
4527 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
4528 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
4529 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
4530 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
4531 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
4532 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
4533 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
4534 (UNSPEC_SCC): Moved from mips.md.
4535 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
4536 "processor_type" to "processor".
4537 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
4538 * config/mips/mips.h (processor_type): Delete.
4539 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
4540 "processor_type" to "processor".
4541
4542 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4543
4544 * configure.ac (tm_include_list): Add insn-constants.h.
4545 * configure: Regenerate.
4546 * Makefile.in (GTM_H): Move insn-constants.h here from...
4547 (TM_H): ...here.
4548 * mkconfig.sh: Remove special handling for insn-constants.h.
4549
4550 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4551
4552 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
4553 (BUILD_MD): ...this new variable.
4554 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
4555 that include the old contents of simple_generated_h and
4556 simple_generated_c.
4557 (simple_generated_h, simple_generated_c): Include them. Add
4558 insn-constants.h.
4559 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
4560 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
4561 Remove these dependencies from the main rule and include
4562 insn-conditions.md in the command line only if it appears
4563 in the dependency list.
4564 (insn-constants.h, s-constants): Delete.
4565 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
4566 or gensupport.h.
4567 (build/genmddeps.o): Likewise.
4568 (genprogrtl): New variable that contains everything from genprogmd
4569 except mddeps and constants.
4570 (genprogmd): Redefine in terms of genprogrtl. Make these programs
4571 depend on $(BUILD_MD)
4572 (genprog): New variable. Make these programs depend on
4573 $(BUILD_ERRORS).
4574 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
4575 (main): Use read_md_files instead of init_rtx_reader_args.
4576 * genconstants.c: As for genmddeps.c.
4577 * read-md.h (read_skip_construct): Declare.
4578 * read-md.c (read_skip_construct): New function.
4579 (handle_file): Allow a null handle_directive, skipping the
4580 construct if so.
4581 (parse_include): Update the comment accordingly.
4582
4583 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4584
4585 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
4586 * genmddeps.c: Include read-md.h.
4587 (main): Call init_rtx_reader_args instead of init_md_reader_args.
4588 * genattr.c (main): Likewise.
4589 * genattrtab.c (main): Likewise.
4590 * genautomata.c (main): Likewise.
4591 * gencodes.c (main): Likewise.
4592 * genconditions.c (main): Likewise.
4593 * genconfig.c (main): Likewise.
4594 * genconstants.c (main): Likewise.
4595 * genemit.c (main): Likewise.
4596 * genextract.c (main): Likewise.
4597 * genflags.c (main): Likewise.
4598 * genopinit.c (main): Likewise.
4599 * genoutput.c (main): Likewise.
4600 * genpeep.c (main): Likewise.
4601 * genrecog.c (main): Likewise.
4602 * genpreds.c (main): Likewise.
4603 * gensupport.h (in_fname): Move to read-md.h.
4604 (init_md_reader_args_cb): Rename to...
4605 (init_rtx_reader_args_cb): ...this and return a bool.
4606 (init_md_reader_args): Rename to...
4607 (init_rtx_reader_args): ...this and return a bool.
4608 (include_callback): Move to read-md.h.
4609 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
4610 (file_name_list, first_dir_md_include): Move to read-md.c
4611 (first_bracket_include): Delete unused variable.
4612 (last_dir_md_include): Move to read-md.c.
4613 (process_include): Delete, moving code to read-md.c:handle_include.
4614 (process_rtx): Don't handle INCLUDE.
4615 (save_string): Delete.
4616 (rtx_handle_directive): New function.
4617 (init_md_reader_args_cb): Rename to...
4618 (init_rtx_reader_args_cb): ...this and return a boolean success value.
4619 Use read_md_args.
4620 (init_md_reader_args): Rename to...
4621 (init_rtx_reader_args): ...this and return a boolean success value.
4622 * rtl.def (INCLUDE): Delete.
4623 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
4624 argument.
4625 * read-rtl.c (read_conditions): Don't gobble ')' here.
4626 (read_mapping): Likewise.
4627 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
4628 Handle top-level non-rtx constructs here rather than in read_rtx_1.
4629 Store the whole queue in *X. Remove call to init_md_reader.
4630 (read_rtx_1): Rename to...
4631 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
4632 Don't handle top-level non-rtx constructs here. Don't handle (nil)
4633 here.
4634 (read_nested_rtx): New function. Handle (nil) here rather than
4635 in read_rtx_code.
4636 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
4637 gobble ')' here.
4638 * read-md.h (directive_handler_t): New type.
4639 (in_fname, include_callback): Moved from read-md.h.
4640 (read_constants, init_md_reader): Delete.
4641 (read_md_files): Declare.
4642 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
4643 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
4644 from gensupport.c.
4645 (read_constants): Rename to...
4646 (handle_constants): ...this. Don't gobble ')' here.
4647 (handle_include, handle_file, handle_toplevel_file)
4648 (parse_include): New functions, mostly taken from gensupport.c.
4649 (init_md_reader): Subsume into...
4650 (read_md_files): ...this new function.
4651
4652 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4653
4654 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4655 (unread_char): Decrement read_md_lineno after putting back '\n'.
4656 * read-md.c (fatal_with_file_and_line): Push back any characters
4657 that we decide not to add to the context.
4658 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
4659 fatal_expected_char in cases where '/' ends a line (for example).
4660 (read_name): Don't increment read_md_lineno here.
4661 (read_escape): Likewise.
4662 (read_quoted_string): Likewise.
4663 (read_braced_string): Likewise.
4664
4665 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4666
4667 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4668 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4669 * genconstants.c: Include read-md.h.
4670 * read-rtl.c (md_constants): Move to read-md.c.
4671 (md_name): Move to read-md.h.
4672 (initialize_iterators): Use leading_string_hash instead of def_hash
4673 and leading_string_eq_p instead of def_name_eq_p.
4674 (read_name): Move to read-md.c.
4675 (def_hash, def_name_eq_p): Delete.
4676 (read_constants, traverse_md_constants): Move to read-md.c.
4677 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4678 * read-md.h: Include hashtab.h.
4679 (md_name): Moved from read-rtl.c.
4680 (md_constant): Moved from read-md.h.
4681 (leading_string_hash, leading_string_eq_p, read_name)
4682 (read_constants, traverse_md_constants): Declare.
4683 * read-md.c (md_constants): Moved from read-rtl.c.
4684 (leading_string_hash, leading_string_eq_p): New functions.
4685 (read_name, read_constants, traverse_md_constants): Moved from
4686 read-rtl.c.
4687
4688 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4689
4690 * read-rtl.c (md_name): New structure.
4691 (read_name): Take an md_name instead of a buffer pointer.
4692 Use the "string" field instead of strcpy when expanding constants.
4693 (read_constants): Remove the tmp_char argument. Update the calls
4694 to read_name, using two local name buffers instead of the tmp_char
4695 argument. Merge the constant-creation code.
4696 (read_conditions): Remove the tmp_char argument. Update the calls
4697 to read_name, using a local name buffer instead of the tmp_char
4698 argument.
4699 (read_mapping): Replace tmp_char variable with a local name buffer.
4700 Update the calls to read_name.
4701 (read_rtx_1): Likewise. Update the calls to read_constants and
4702 read_conditions.
4703
4704 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4705
4706 * Makefile.in (build/read-md.o): Depend on errors.h.
4707 * read-md.h (error_with_line): Declare.
4708 * read-md.c: Include errors.h.
4709 (message_with_line_1): New function, extracted from...
4710 (message_with_line): ...here.
4711 (error_with_line): New function.
4712 * genattrtab.c: If a call to message_with_line is followed by
4713 "have_error = 1;", replace both statements with a call to
4714 error_with_line.
4715 * genoutput.c: Likewise.
4716 * genpreds.c: Likewise.
4717 * genrecog.c: If a call to message_with_line is followed by
4718 "error_count++;", replace both statements with a call to
4719 error_with_line.
4720 (errorcount): Delete.
4721 (main): Don't check it.
4722 * gensupport.c: If a call to message_with_line is followed by
4723 "errors = 1;", replace both statements with a call to error_with_line.
4724 (errors): Delete.
4725 (process_define_cond_exec): Check have_error instead of errors.
4726 (init_md_reader_args_cb): Likewise. Don't set errors.
4727
4728 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4729
4730 * read-md.h (read_md_file): Declare.
4731 (read_char, unread_char): New functions.
4732 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4733 (read_quoted_string, read_string): Remove FILE * argument.
4734 * read-md.c (read_md_file): New variable.
4735 (read_md_filename, read_md_lineno): Update comments and remove
4736 unnecessary initialization.
4737 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4738 (read_escape, read_quoted_string, read_braced_string, read_string):
4739 Remove FILE * argument. Update calls accordingly, using read_char
4740 and unread_char instead of getc and ungetc.
4741 * rtl.h (read_rtx): Remove FILE * argument.
4742 * read-rtl.c (iterator_group): Remove FILE * argument from
4743 "find_builtin".
4744 (iterator_traverse_data): Remove "infile" field.
4745 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
4746 (add_mapping, read_name, read_constants, read_conditions)
4747 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
4748 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
4749 Remove file arguments from all calls, using read_char and unread_char
4750 instead of getc and ungetc.
4751 * gensupport.c (process_include): Preserve read_md_file around
4752 the include. Set read_md_file to the handle of the included file.
4753 Update call to read_rtx.
4754 (init_md_reader_args_cb): Set read_md_file to the handle of the file
4755 and remove local FILE *. Update calls to read_rtx.
4756
4757 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4758
4759 * read-md.h (read_rtx_lineno): Rename to...
4760 (read_md_lineno): ...this.
4761 (read_rtx_filename): Rename to...
4762 (read_md_filename): ...this.
4763 (copy_rtx_ptr_loc): Rename to...
4764 (copy_md_ptr_loc): ...this.
4765 (print_rtx_ptr_loc): Rename to...
4766 (print_md_ptr_loc): ...this.
4767 * read-md.c: Likewise. Update references after renaming.
4768 (string_obstack): Replace RTL with MD in comment.
4769 (set_rtx_ptr_loc): Rename to...
4770 (set_md_ptr_loc): ...this.
4771 (get_rtx_ptr_loc): Rename to...
4772 (get_md_ptr_loc): ...this.
4773 * genconditions.c: Update references after renaming.
4774 * genemit.c: Likewise.
4775 * genoutput.c: Likewise.
4776 * genpreds.c: Likewise.
4777 * gensupport.c: Likewise.
4778 * read-rtl.c: Likewise.
4779
4780 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4781
4782 * Makefile.in (READ_MD_H): New variable.
4783 (BUILD_RTL): Add build/read-md.o.
4784 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
4785 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
4786 (build/genattrtab.o, build/genconditions.o build/genemit.o)
4787 (build/genextract.o, build/genflags.o, build/genoutput.o)
4788 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
4789 (build/read-md.o): New rule.
4790 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
4791 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
4792 * coretypes.h: ...here.
4793 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
4794 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
4795 * genattr.c: Include read-md.h.
4796 * genattrtab.c: Likewise.
4797 * genconditions.c: Likewise.
4798 * genemit.c: Likewise.
4799 * genextract.c: Likewise.
4800 * genflags.c: Likewise.
4801 * genoutput.c: Likewise.
4802 * genpreds.c: Likewise.
4803 * genrecog.c: Likewise.
4804 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
4805 (join_c_conditions, print_c_condition, read_rtx_filename)
4806 (read_rtx_lineno): Move to read-md.h.
4807 * read-rtl.c: Include read-md.h.
4808 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
4809 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
4810 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
4811 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
4812 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
4813 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
4814 (read_braced_string, read_string): Move to read-md.c.
4815 (read_rtx): Move some initialization to init_md_reader and call
4816 init_md_reader here.
4817 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
4818 Move to read-md.h.
4819 * gensupport.c: Include read-md.h.
4820 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
4821 * read-md.h, read-md.c: New files.
4822
4823 2010-06-10 Anatoly Sokolov <aesok@post.ru>
4824
4825 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4826 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4827 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
4828 * config/moxie/moxie.c (moxie_function_value): Make static.
4829 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
4830 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4831
4832 2010-06-10 Martin Jambor <mjambor@suse.cz>
4833
4834 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
4835 * dbgcnt.def (tree_sra): New counter.
4836 * tree-sra.c: Include dbgcnt.h.
4837 (gate_intra_sra): Check tree_sra debug counter.
4838
4839 2010-06-10 Martin Jambor <mjambor@suse.cz>
4840
4841 PR tree-optimization/44258
4842 * tree-sra.c (build_access_subtree): Return false iff there is a
4843 partial overlap.
4844 (build_access_trees): Likewise.
4845 (analyze_all_variable_accesses): Disqualify candidates if
4846 build_access_trees returns true for them.
4847
4848 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
4849
4850 PR debug/41371
4851 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4852 tail-recurse into canonical node. Fast-forward over
4853 non-canonical VALUEs.
4854
4855 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
4856
4857 PR boostrap/44470
4858 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4859 (*addsi_1_zext) <TYPE_LEA>: Likewise.
4860 (add lea splitter): Likewise.
4861 (add_zext lea splitter): Likewise.
4862
4863 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4864
4865 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4866
4867 2010-06-10 Jan Hubicka <jh@suse.cz>
4868
4869 * df-problems.c (df_live_problem_data): Add live_bitmaps.
4870 (df_live_alloc): Initialize problem data and live_osbtacks.
4871 (df_live_finalize): Remove obstack, problem data; do not
4872 clear all bitmaps.
4873 (df_live_top_dump, df_live_bottom_dump): Do not dump old
4874 data when not allocated.
4875 (df_live_verify_solution_start): Do not allocate problem data.
4876 (df_live_verify_solution_end): Check if out is allocated.
4877 (struct df_md_problem_data): New structure.
4878 (df_md_alloc): Allocate problem data.
4879 (df_md_free): Free problem data; do not clear bitmaps.
4880
4881 2010-06-10 Jan Beulich <jbeulich@novell.com>
4882
4883 PR bootstrap/37304
4884 * configure.ac: Replace $() with ${} when intending to expand
4885 variables rather than invoking commands.
4886 * configure: Re-generate.
4887
4888 2010-06-10 Jan Hubicka <jh@suse.cz>
4889
4890 PR rtl-optimization/44460
4891 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4892 TYPE_NEEDS_CONSTRUCTING sanity check.
4893
4894 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
4895
4896 * doc/include/fdl.texi: Move to GFDL version 1.3.
4897
4898 * doc/cpp.texi: Move to GFDL version 1.3.
4899 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
4900 * doc/gccint.texi: Move to GFDL version 1.3.
4901 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
4902 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
4903 * doc/invoke.texi: Move to GFDL version 1.3.
4904
4905 2010-06-09 Jan Hubicka <jh@suse.cz>
4906
4907 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4908 Break out from ...
4909 (propagate) ... here; swap the order.
4910
4911 2010-06-09 Jan Hubicka <jh@suse.cz>
4912
4913 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4914 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4915 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4916 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4917
4918 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4919
4920 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4921 Do not the gather memory reference in the outer loop if the step
4922 is not a constant.
4923
4924 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4925
4926 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4927 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4928 8 to 4. Minor change of the related comments.
4929
4930 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4931
4932 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4933 the scev analysis when the variable is not used outside the loop
4934 in a close phi node: call compute_overall_effect_of_inner_loop.
4935
4936 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4937
4938 * graphite-sese-to-poly.c (single_pred_cond): Renamed
4939 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
4940 (build_sese_conditions_before): Renamed call to single_pred_cond.
4941 (build_sese_conditions_after): Same.
4942
4943 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4944
4945 * graphite-poly.h: Fix comments and indentation.
4946 * graphite-sese-to-poly.c: Same.
4947 (build_sese_conditions_before): Compute stmt and gbb only when needed.
4948 * tree-chrec.c: Fix comments and indentation.
4949 (tree-ssa-loop-niter.c): Same.
4950
4951 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
4952
4953 PR rtl-optimization/42461
4954 * dce.c (deletable_insn_p): Return true for const or pure calls again.
4955 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4956
4957 2010-06-09 Jan Hubicka <jh@suse.cz>
4958
4959 * bitmap.c (bitmap_and): Walk array forward.
4960 (bitmap_and_compl_into): Likewise.
4961 (bitmap_xor): Likewise.
4962 (bitmap_xor_into): Likewise.
4963 (bitmap_equal_p): Likewise.
4964 (bitmap_intersect_p): Likewise.
4965 (bitmap_intersect_compl_p): Likewise.
4966 (bitmap_ior_and_into): Likewise.
4967 (bitmap_elt_copy): Likewise.
4968 (bitmap_and_compl): Likewise.
4969 (bitmap_elt_ior): Likewise.
4970
4971 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
4972
4973 * opts-common.c (prune_options): Ensure replacement argv array
4974 is correctly terminated by a NULL entry.
4975
4976 2010-06-09 Jan Hubicka <jh@suse.cz>
4977
4978 * cgraph.h (varpool_first_static_initializer,
4979 varpool_next_static_initializer): Make checking only when
4980 checking enabled.
4981 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4982 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4983 gcc_assert to gcc_checking_assert.
4984 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4985 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4986 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4987 op_iter_init_phiuse, op_iter_init_phidef,
4988 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4989 gcc_checking_assert.
4990 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4991 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4992 partition_is_global, live_on_entry, live_on_exit,
4993 live_merge_and_clear): Likewise.
4994 * system.h (gcc_checking_assert): New macro.
4995 * gimple.h (set_bb_seq): Use gcc_checking_assert.
4996
4997 2010-06-09 Jason Merrill <jason@redhat.com>
4998
4999 * Makefile.in (TAGS): Collect tags info from c-family.
5000
5001 2010-06-09 Jan Hubicka <jh@suse.cz>
5002
5003 * gimple.h (gcc_gimple_checking_assert): New macro.
5004 (gimple_set_def_ops, gimple_set_use_ops,
5005 gimple_set_vuse, gimple_set_vdef,
5006 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
5007 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
5008 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
5009 gimple_asm_output_op, gimple_asm_output_op_ptr,
5010 gimple_asm_set_output_op, gimple_asm_clobber_op,
5011 gimple_asm_set_clobber_op, gimple_asm_label_op,
5012 gimple_asm_set_label_op, gimple_try_set_kind,
5013 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
5014 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
5015 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
5016 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
5017 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
5018 gimple_omp_for_set_initial, gimple_omp_for_final,
5019 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
5020 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
5021 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
5022 conditional with ENABLE_GIMPLE_CHECKING.
5023 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
5024
5025 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
5026
5027 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
5028 (get_computation_cost_at): Use it.
5029 (determine_use_iv_cost_condition): Likewise.
5030 (determine_iv_cost): Likewise.
5031
5032 2010-06-09 Richard Guenther <rguenther@suse.de>
5033
5034 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
5035 replace constants.
5036
5037 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
5038
5039 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
5040
5041 2010-06-09 Martin Jambor <mjambor@suse.cz>
5042
5043 PR tree-optimization/44423
5044 * tree-sra.c (dump_access): Dump also grp_assignment_read.
5045 (analyze_access_subtree): Pass negative allow_replacements to children
5046 if the current type is scalar.
5047
5048 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
5049
5050 PR testsuite/42843
5051 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
5052 * doc/plugins.texi (Plugin license check): Update information
5053 on type of plugin_is_GPL_compatible.
5054 * Makefile.in (PLUGINCC): Define as $(COMPILER).
5055 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
5056
5057 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
5058
5059 * config/arm/arm.c (thumb2_reorg): New function.
5060 (arm_reorg): Call it.
5061 * config/arm/thumb2.md (define_peephole2 for flag clobbering
5062 arithmetic operations): Delete.
5063
5064 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
5065
5066 PR target/44067
5067 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
5068 e500v2 target.
5069
5070 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
5071
5072 PR plugins/44459
5073 * gcc-plugin.h: Encapsulate all declarations in extern "C".
5074
5075 2010-06-08 Jan Hubicka <jh@suse.cz>
5076
5077 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
5078 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
5079
5080 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
5081
5082 PR tree-optimization/39874
5083 PR middle-end/28685
5084 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
5085 Declare.
5086 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
5087 same_bool_result_p): New.
5088 (and_var_with_comparison, and_var_with_comparison_1,
5089 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
5090 (or_var_with_comparison, or_var_with_comparison_1,
5091 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
5092 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
5093 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
5094 of combine_comparisons.
5095 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
5096
5097 2010-06-08 Anatoly Sokolov <aesok@post.ru>
5098
5099 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5100 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5101 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
5102 pdp11_function_value_regno_p): New functions.
5103 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5104 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5105
5106 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
5107
5108 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
5109 Thumb-2 in the MINUS case.
5110
5111 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5112
5113 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
5114
5115 * doc/gty.texi (GTY Options): Document typed GC allocation and
5116 variable_size GTY option.
5117
5118 * ggc-internal.h: New.
5119
5120 * ggc.h: Update copyright year.
5121 (digit_string): Move to stringpool.c.
5122 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
5123 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
5124 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
5125 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
5126 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
5127 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
5128 (ggc_force_collect, ggc_get_size, ggc_statistics)
5129 (ggc_print_common_statistics): Move to ggc-internal.h.
5130 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
5131 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
5132 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
5133 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
5134 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
5135 (ggc_alloc_zone_pass_stat): Remove.
5136 (ggc_internal_alloc_stat, ggc_internal_alloc)
5137 (ggc_internal_cleared_alloc_stat): New.
5138 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
5139 (ggc_internal_vec_alloc_stat)
5140 (ggc_internal_cleared_vec_alloc_stat)
5141 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
5142 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
5143 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
5144 (ggc_cleared_alloc_ptr_array_two_args): New.
5145 (htab_create_ggc, splay_tree_new_ggc): Redefine.
5146 (ggc_splay_alloc): Change the type of the first argument to
5147 enum gt_types_enum.
5148 (ggc_alloc_string): Make macro.
5149 (ggc_alloc_string_stat): New.
5150 (ggc_strdup): Redefine.
5151 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
5152 (ggc_alloc_rtvec_sized): New.
5153 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
5154 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
5155 (ggc_internal_cleared_alloc_zone_stat)
5156 (ggc_internal_zone_alloc_stat)
5157 (ggc_internal_zone_cleared_alloc_stat)
5158 (ggc_internal_zone_vec_alloc_stat)
5159 (ggc_alloc_zone_rtx_def_stat)
5160 (ggc_alloc_zone_tree_node_stat)
5161 (ggc_alloc_zone_cleared_tree_node_stat)
5162 (ggc_alloc_cleared_gimple_statement_d_stat): New.
5163
5164 * ggc-common.c: Include ggc-internal.h.
5165 (ggc_internal_cleared_alloc_stat): Rename from
5166 ggc_alloc_cleared_stat.
5167 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
5168 (ggc_calloc): Remove.
5169 (ggc_cleared_alloc_htab_ignore_args): New.
5170 (ggc_cleared_alloc_ptr_array_two_args): New.
5171 (ggc_splay_alloc): Add obj_type parameter.
5172 (init_ggc_heuristics): Formatting fixes.
5173
5174 * ggc-none.c: Update copyright year.
5175 (ggc_alloc_stat): Rename to ggc_alloc_stat.
5176 (ggc_alloc_cleared_stat): Rename to
5177 ggc_internal_cleared_alloc_stat.
5178 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5179
5180 * ggc-page.c: Update copyright year. Include ggc-internal.h.
5181 Remove references to ggc_alloc in comments.
5182 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
5183 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
5184 (new_ggc_zone, destroy_ggc_zone): Remove.
5185 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5186
5187 * ggc-zone.c: Include ggc-internal.h. Remove references to
5188 ggc_alloc in comments.
5189 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
5190 (ggc_internal_alloc_zone_pass_stat): New.
5191 (ggc_internal_cleared_alloc_zone_stat): New.
5192 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
5193 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
5194 (new_ggc_zone, destroy_ggc_zone): Remove.
5195
5196 * stringpool.c: Update copyright year. Include ggc-internal.h
5197 (digit_vector): Make static.
5198 (digit_string): Moved from ggc.h.
5199 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
5200 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
5201
5202 * Makefile.in (GGC_INTERNAL_H): New.
5203 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
5204 $(GGC_INTERNAL_H) to dependencies.
5205
5206 * gentype.c: Update copyright year.
5207 (walk_type): Accept variable_size GTY option.
5208 (USED_BY_TYPED_GC_P): New macro.
5209 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
5210 whitespace at the end of strings.
5211 (get_type_specifier, variable_size_p): New functions.
5212 (alloc_quantity, alloc_zone): New enums.
5213 (write_typed_alloc_def): New function.
5214 (write_typed_struct_alloc_def): Likewise.
5215 (write_typed_typed_typedef_alloc_def): Likewise.
5216 (write_typed_alloc_defns): Likewise.
5217 (output_typename, write_splay_tree_allocator_def): Likewise.
5218 (write_splay_tree_allocators): Likewise.
5219 (main): Call write_typed_alloc_defns and
5220 write_splay_tree_allocators.
5221
5222 * lto-streamer.h (lto_file_decl_data_ptr): New.
5223
5224 * passes.c (order): Define using cgraph_node_ptr.
5225
5226 * strinpool.c (struct string_pool_data): Declare nested_ptr using
5227 ht_identifier_ptr.
5228
5229 * gimple.h (union gimple_statement_d): Likewise.
5230
5231 * rtl.h (struct rtx_def): Likewise.
5232 (struct rtvec_def): Likewise.
5233
5234 * tree.h (union tree_node): Likewise.
5235
5236 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5237
5238 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5239
5240 * tree-scalar-evolution.c (scev_initialize): Likewise.
5241
5242 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5243
5244 * dwarf2asm.c (dw2_force_const_mem): Likewise.
5245
5246 * omp-low.c (lower_omp_critical): Likewise.
5247
5248 * bitmap.h (struct bitmap_head_def): Update comment to not
5249 reference ggc_alloc.
5250
5251 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5252
5253 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5254
5255 * ipa-prop.c (duplicate_ggc_array): Rename to
5256 duplicate_ipa_jump_func_array. Use typed GC allocation.
5257 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5258
5259 * gimple.c (gimple_alloc_stat): Use
5260 ggc_alloc_cleared_gimple_statement_d_stat.
5261
5262 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5263
5264 * tree.c (make_node_stat): Use
5265 ggc_alloc_zone_cleared_tree_node_stat.
5266 (make_tree_vec_stat): Likewise.
5267 (build_vl_exp_stat): Likewise.
5268 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5269 (make_tree_binfo_stat): Likewise.
5270 (tree_cons_stat): Likewise.
5271
5272 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5273 (shallow_copy_rtx_stat): Likewise.
5274 (make_node_stat): Likewise.
5275
5276 * lto-symtab.c: Fix comment.
5277
5278 * tree-cfg.c (create_bb): Update comment to not reference
5279 ggc_alloc_cleared.
5280 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5281
5282 * varpool.c (varpool_node): Use typed GC allocation.
5283 (varpool_extra_name_alias): Likewise.
5284
5285 * varasm.c (emutls_decl): Likewise.
5286 (get_unnamed_section): Likewise.
5287 (get_noswitch_section): Likewise.
5288 (get_section): Likewise.
5289 (get_block_for_section): Likewise.
5290 (build_constant_desc): Likewise.
5291 (create_constant_pool): Likewise.
5292 (force_const_mem): Likewise.
5293
5294 * tree.c (build_vl_exp_stat): Likewise.
5295 (build_real): Likewise.
5296 (build_string): Likewise.
5297 (decl_debug_expr_insert): Likewise.
5298 (decl_value_expr_insert): Likewise.
5299 (type_hash_add): Likewise.
5300 (build_omp_clause): Likewise.
5301
5302 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
5303
5304 * tree-ssa.c (init_tree_ssa): Likewise.
5305
5306 * tree-ssa-structalias.c (heapvar_insert): Likewise.
5307
5308 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5309
5310 * tree-ssa-loop-niter.c (record_estimate): Likewise.
5311
5312 * tree-ssa-alias.c (get_ptr_info): Likewise.
5313
5314 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5315
5316 * tree-phinodes.c (allocate_phi_node): Likewise.
5317
5318 * tree-iterator.c (tsi_link_before): Likewise.
5319 (tsi_link_after): Likewise.
5320
5321 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5322
5323 * tree-dfa.c (create_var_ann): Likewise.
5324
5325 * tree-cfg.c (create_bb): Likewise.
5326
5327 * toplev.c (alloc_for_identifier_to_locale): Likewise.
5328 (general_init): Likewise.
5329
5330 * stringpool.c (stringpool_ggc_alloc): Likewise.
5331 (gt_pch_save_stringpool): Likewise.
5332
5333 * sese.c (if_region_set_false_region): Likewise.
5334
5335 * passes.c (do_per_function_toporder): Likewise.
5336
5337 * optabs.c (set_optab_libfunc): Likewise.
5338 (set_conv_libfunc): Likewise.
5339
5340 * lto-symtab.c (lto_symtab_register_decl): Likewise.
5341
5342 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5343 (input_eh_region): Likewise.
5344 (input_eh_lp): Likewise.
5345 (make_new_block): Likewise.
5346 (unpack_ts_real_cst_value_fields): Likewise.
5347
5348 * lto-section-in.c (lto_new_in_decl_state): Likewise.
5349
5350 * lto-cgraph.c (input_node_opt_summary): Likewise.
5351
5352 * loop-init.c (loop_optimizer_init): Likewise.
5353
5354 * lambda.h (lambda_vector_new): Likewise.
5355
5356 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
5357
5358 * ira.c (update_equiv_regs): Likewise.
5359
5360 * ipa.c (cgraph_node_set_new): Likewise.
5361 (cgraph_node_set_add): Likewise.
5362 (varpool_node_set_new): Likewise.
5363 (varpool_node_set_add): Likewise.
5364
5365 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
5366 (duplicate_ipa_jump_func_array): Likewise.
5367 (ipa_read_node_info): Likewise.
5368
5369 * ipa-cp.c (ipcp_create_replace_map): Likewise.
5370
5371 * integrate.c (get_hard_reg_initial_val): Likewise.
5372
5373 * gimple.c (gimple_alloc_stat): Likewise.
5374 (gimple_build_omp_for): Likewise.
5375 (gimple_seq_alloc): Likewise.
5376 (gimple_copy): Likewise.
5377
5378 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
5379 (gsi_insert_after_without_update): Likewise.
5380
5381 * function.c (add_frame_space): Likewise.
5382 (insert_temp_slot_address): Likewise.
5383 (assign_stack_temp_for_type): Likewise.
5384 (allocate_struct_function): Likewise.
5385 (types_used_by_var_decl_insert): Likewise.
5386
5387 * except.c (init_eh_for_function): Likewise.
5388 (gen_eh_region): Likewise.
5389 (gen_eh_region_catch): Likewise.
5390 (gen_eh_landing_pad): Likewise.
5391 (add_call_site): Likewise.
5392
5393 * emit-rtl.c (get_mem_attrs): Likewise.
5394 (get_reg_attrs): Likewise.
5395 (start_sequence): Likewise.
5396 (init_emit): Likewise.
5397
5398 * dwarf2out.c (new_cfi): Likewise.
5399 (queue_reg_save): Likewise.
5400 (dwarf2out_frame_init): Likewise.
5401 (new_loc_descr): Likewise.
5402 (find_AT_string): Likewise.
5403 (new_die): Likewise.
5404 (add_var_loc_to_decl): Likewise.
5405 (clone_die): Likewise.
5406 (clone_as_declaration): Likewise.
5407 (break_out_comdat_types): Likewise.
5408 (new_loc_list): Likewise.
5409 (loc_descriptor): Likewise.
5410 (add_loc_descr_to_each): Likewise.
5411 (add_const_value_attribute): Likewise.
5412 (tree_add_const_value_attribute): Likewise.
5413 (add_comp_dir_attribute): Likewise.
5414 (add_name_and_src_coords_attributes): Likewise.
5415 (lookup_filename): Likewise.
5416 (store_vcall_insn): Likewise.
5417 (dwarf2out_init): Likewise.
5418
5419 * dbxout.c (dbxout_init): Likewise.
5420
5421 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5422
5423 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5424
5425 * config/score/score7.c (score7_output_external): Likewise.
5426
5427 * config/score/score3.c (score3_output_external): Likewise.
5428
5429 * config/s390/s390.c (s390_init_machine_status): Likewise.
5430
5431 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
5432 (rs6000_init_machine_status): Likewise.
5433 (output_toc): Likewise.
5434
5435 * config/pa/pa.c (pa_init_machine_status): Likewise.
5436 (get_deferred_plabel): Likewise.
5437
5438 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
5439
5440 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
5441
5442 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
5443
5444 * config/mep/mep.c (mep_init_machine_status): Likewise.
5445 (mep_note_pragma_flag): Likewise.
5446
5447 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
5448
5449 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
5450
5451 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
5452
5453 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
5454 (i386_pe_maybe_record_exported_symbol): Likewise.
5455
5456 * config/i386/i386.c (get_dllimport_decl): Likewise.
5457 (ix86_init_machine_status): Likewise.
5458 (assign_386_stack_local): Likewise.
5459
5460 * config/frv/frv.c (frv_init_machine_status): Likewise.
5461
5462 * config/darwin.c (machopic_indirection_name): Likewise.
5463
5464 * config/cris/cris.c (cris_init_machine_status): Likewise.
5465
5466 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
5467
5468 * config/avr/avr.c (avr_init_machine_status): Likewise.
5469
5470 * config/arm/arm.c (arm_init_machine_status): Likewise.
5471
5472 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
5473 (alpha_need_linkage): Likewise.
5474 (alpha_use_linkage): Likewise.
5475
5476 * cgraph.c (cgraph_allocate_node): Likewise.
5477 (cgraph_create_edge_1): Likewise.
5478 (cgraph_create_indirect_edge): Likewise.
5479 (cgraph_add_asm_node): Likewise.
5480
5481 * cfgrtl.c (init_rtl_bb_info): Likewise.
5482
5483 * cfgloop.c (alloc_loop): Likewise.
5484 (rescan_loop_exit): Likewise.
5485
5486 * cfg.c (init_flow): Likewise.
5487 (alloc_block): Likewise.
5488 (unchecked_make_edge): Likewise.
5489
5490 * c-parser.c (c_parse_init): Likewise.
5491 (c_parse_file): Likewise.
5492
5493 * c-decl.c (bind): Likewise.
5494 (record_inline_static): Likewise.
5495 (push_scope): Likewise.
5496 (make_label): Likewise.
5497 (lookup_label_for_goto): Likewise.
5498 (finish_struct): Likewise.
5499 (finish_enum): Likewise.
5500 (c_push_function_context): Likewise.
5501
5502 * bitmap.c (bitmap_element_allocate): Likewise.
5503 (bitmap_gc_alloc_stat): Likewise.
5504
5505 * alias.c (record_alias_subset): Likewise.
5506 (init_alias_analysis): Likewise.
5507
5508 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
5509
5510 * fold-const.c (fold_comparison): Remove redundant parenthesis.
5511 * tree-inline.c (expand_call_inline): Pass translated return value of
5512 cgraph_inline_failed_string to diagnostic function.
5513
5514 2010-06-08 Andrew Pinski <pinskia@gmail.com>
5515 Shujing Zhao <pearly.zhao@oracle.com>
5516
5517 PR c/37724
5518 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
5519 implicit bad conversions is initialization.
5520 (error_init): Use gmsgid instead of msgid for argument name and change
5521 the call for error.
5522 (pedwarn_init): Use gmsgid instead of msgid for argument name and
5523 change the call for pedwarn.
5524 (warning_init): Use gmsgid instead of msgid for argument name and
5525 change the call for warning.
5526
5527 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
5528
5529 * config/mips/mips-protos.h (mips_print_operand): Delete.
5530 (mips_print_operand_address): Delete.
5531 * config/mips/mips.h (mips_print_operand_punct): Delete.
5532 (PRINT_OPERAND): Delete.
5533 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5534 (PRINT_OPERAND_ADDRESS): Delete.
5535 * config/mips/mips.c (mips_print_operand_punct): Make static.
5536 (mips_print_operand_address): Make static.
5537 (mips_print_operand): Make static. Call
5538 mips_print_operand_punct_valid_p.
5539 (mips_print_operand_punct_valid_p): New function.
5540 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5541 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5542
5543 2010-06-07 Jan Hubicka <jh@suse.cz>
5544
5545 PR middle-end/44454
5546 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
5547 are allocated.
5548
5549 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
5550
5551 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
5552 name of RECORD.
5553
5554 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5555
5556 * doc/sourcebuild.texi (Effective-Target Keywords, Other
5557 attributes): Document gas.
5558
5559 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
5560
5561 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
5562 <TYPE_LEA>: Split instruction.
5563 <default>: Remove alternative 2 handling.
5564 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
5565 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
5566 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
5567
5568 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
5569 (ashift_zext lea splitter): Use DImode for multiplication.
5570
5571 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
5572 to generate addition.
5573
5574 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5575
5576 * common.opt (fira-verbose): Use Var.
5577 (fpcc-struct-return): Use Init instead of VarExists.
5578 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
5579 toplev.c.
5580 * flags.h (flag_signed_char, flag_short_enums,
5581 flag_pcc_struct_return, flag_ira_verbose,
5582 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
5583 * toplev.c (flag_detailed_statistics, flag_signed_char,
5584 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
5585 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
5586 * toplev.h (flag_crossjumping, flag_if_conversion,
5587 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
5588 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
5589 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
5590 flag_cprop_registers, time_report, flag_ira_loop_pressure,
5591 flag_ira_coalesce, flag_ira_move_spills,
5592 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
5593
5594 2010-06-07 Jan Hubicka <jh@suse.cz>
5595
5596 * df-core.c (df_analyze_problem): Do verification after allocation.
5597
5598 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
5599 (df_lr_alloc): Initialize problem data; move bitmaps to
5600 lr_bitmaps obstack.
5601 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
5602 (df_lr_verify_solution_start): Do not initialize problem data;
5603 allocate bitmaps in lr_bitmaps.
5604 (df_lr_verify_solution_end): Do not free problem data.
5605
5606 2010-06-07 Jan Hubicka <jh@suse.cz>
5607
5608 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
5609 if caller is noreturn.
5610 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
5611 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
5612 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
5613 * ipa-pure-const.c (check_decl): Add IPA parameter.
5614 (state_from_flags): New function.
5615 (better_state, worse_state): New functions.
5616 (check_call): When in IPA mode, do not care about callees.
5617 (check_load, check_store): Update.
5618 (check_ipa_load, check_ipa_store): New.
5619 (check_stmt): When in IPA mode, use IPA checkers.
5620 (analyze_function): Use state_from_flags.
5621 (propagate): Check indirect edges and references.
5622
5623 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
5624
5625 PR rtl-optimization/44404
5626 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
5627 of count_occurrences to see if it's safe to modify mem_insn.
5628
5629 2010-06-07 Richard Guenther <rguenther@suse.de>
5630
5631 * gimplify.c (gimplify_cleanup_point_expr): For empty body
5632 and EH-only cleanup drop the cleanup instead of inserting it
5633 unconditionally.
5634
5635 2010-06-07 Ira Rosen <irar@il.ibm.com>
5636
5637 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
5638 documentation.
5639 * targhooks.c (default_builtin_vectorization_cost): New function.
5640 * targhooks.h (default_builtin_vectorization_cost): Declare.
5641 * target.h (enum vect_cost_for_stmt): Define.
5642 (builtin_vectorization_cost): Change argument and comment.
5643 * tree-vectorizer.h: Remove cost model macros.
5644 * tree-vect-loop.c: Include target.h.
5645 (vect_get_cost): New function.
5646 (vect_estimate_min_profitable_iters): Replace cost model macros with
5647 calls to vect_get_cost.
5648 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5649 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5650 default implementation.
5651 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5652 calls to target hook builtin_vectorization_cost.
5653 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5654 Likewise.
5655 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5656 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5657 implementation to return costs.
5658 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5659 * config/spu/spu.h: Remove vectorizer cost model macros.
5660 * config/i386/i386.h: Likewise.
5661 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5662 a call to target hook builtin_vectorization_cost.
5663
5664 2010-06-06 Sriraman Tallam <tmsriram@google.com>
5665
5666 PR target/44319
5667 * config/i386/i386.c (override_options): Turn zee pass on for level 2
5668 and above and defer till target is known.
5669 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5670 turn off otherwise.
5671
5672 2010-05-25 Jan Hubicka <jh@suse.cz>
5673
5674 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5675 (df_compact_blocks): Likewise.
5676 * df.h (struct df): Turn hardware_regs_used,
5677 regular_block_artificial_uses, eh_block_artificial_uses,
5678 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5679 bitmap_head.
5680 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5681 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5682 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5683 df_scan_blocks, df_insn_delete, df_insn_rescan,
5684 df_insn_rescan_debug_internal, df_insn_rescan_all,
5685 df_process_deferred_rescans, df_process_deferred_rescans,
5686 df_notes_rescan, df_get_call_refs, df_get_call_refs,
5687 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5688 df_record_entry_block_defs, df_record_exit_block_uses,
5689 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5690 df_scan_verify): Update.
5691
5692 2010-05-25 Dodji Seketeli <dodji@redhat.com>
5693
5694 PR c++/44188
5695 * c-common.c (is_typedef_decl): Move this definition ...
5696 * tree.c (is_typedef_decl): ... here.
5697 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5698 * c-common.h (is_typedef_decl): Move this declaration ...
5699 * tree.h (is_typedef_decl): ... here.
5700 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5701 * dwarf2out.c (is_naming_typedef_decl): New function.
5702 (gen_tagged_type_die): Split out of ...
5703 (gen_type_die_with_usage): ... this function. When an anonymous
5704 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5705 is emitted for the typedef.
5706 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5707 anonymous tagged types.
5708
5709 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
5710
5711 PR c/20000
5712 * c-decl.c (grokdeclarator): Delete warning.
5713
5714 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
5715
5716 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
5717 newly built CALL_EXPR.
5718 * tree-profile.c (tree_profiling): Don't profile functions produced
5719 for built-in stuff.
5720
5721 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
5722
5723 PR bootstrap/44427
5724 PR bootstrap/44428
5725 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
5726 endianness-independent.
5727
5728 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5729
5730 * c-common.c: Move to c-family/.
5731 * c-common.def: Likewise.
5732 * c-common.h: Likewise.
5733 * c-cppbuiltin.c: Likewise.
5734 * c-dump.c: Likewise.
5735 * c-format.c: Likewise.
5736 * c-format.h : Likewise.
5737 * c-gimplify.c: Likewise.
5738 * c-lex.c: Likewise.
5739 * c-omp.c: Likewise.
5740 * c.opt: Likewise.
5741 * c-opts.c: Likewise.
5742 * c-pch.c: Likewise.
5743 * c-ppoutput.c: Likewise.
5744 * c-pragma.c: Likewise.
5745 * c-pragma.h: Likewise.
5746 * c-pretty-print.c: Likewise.
5747 * c-pretty-print.h: Likewise.
5748 * c-semantics.c: Likewise.
5749 * stub-objc.c: Likewise.
5750
5751 * gengtype.c (get_file_langdir): Special-case files in c-family/.
5752 (get_output_file_with_visibility): Fix name for c-common.h.
5753 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
5754
5755 * c-tree.h: Update include path for moved files.
5756 * c-lang.c: Likewise.
5757 * c-lang.h: Likewise.
5758 * c-parser.c: Likewise.
5759 * c-convert.c: Likewise.
5760 * c-decl.c: Likewise.
5761 * c-objc-common.c: Likewise.
5762 * configure.ac: Make sure c-family/ exists in the build directory.
5763 * configure: Regenerate.
5764 * Makefile.in: Update paths for moved files. Regroup files per
5765 location and update dependencies. Move generated_files down after
5766 ALL_GTFILES_H.
5767
5768 * config/spu/spu-c.c: Update paths for moved files.
5769 * config/mep/mep-pragma.c: Likewise.
5770 * config/darwin-c.c: Likewise.
5771 * config/i386/msformat-c.c: Likewise.
5772 * config/i386/i386-c.c: Likewise.
5773 * config/avr/avr-c.c: Likewise.
5774 * config/sol2-c.c: Likewise.
5775 * config/ia64/ia64-c.c: Likewise.
5776 * config/rs6000/rs6000-c.c: Likewise.
5777 * config/arm/arm.c: Likewise.
5778 * config/arm/arm-c.c: Likewise.
5779 * config/h8300/h8300.c: Likewise.
5780 * config/v850/v850-c.c: Likewise.
5781
5782 * config/t-darwin: Fix dependencies for moved files.
5783 * config/t-sol2: Fix dependencies for moved files.
5784 * config/mep/t-mep: Fix dependencies for moved files.
5785 * config/ia64/t-ia64: Fix dependencies for moved files.
5786 * config/rs6000/t-rs6000: Fix dependencies for moved files.
5787 * config/v850/t-v850: Fix dependencies for moved files.
5788 * config/v850/t-v850e: Fix dependencies for moved files.
5789
5790 * config/m32c/m32c-pragma.c
5791
5792 * po/exgettext: Look in c-family/ also.
5793
5794 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
5795
5796 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
5797 (mark_control_dependent_edges_necessary): Call it instead of marking
5798 the last statement manually.
5799 (propagate_necessity): Likewise.
5800
5801 2010-06-05 Jan Hubicka <jh@suse.cz>
5802
5803 * basic-block.h (compute_dominance_frontiers): Updated.
5804 (compute_idf): Likewise.
5805
5806 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
5807 for dominance frontiers.
5808 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
5809 (insert_updated_phi_nodes_for): Likewise.
5810 (update_ssa): Likewise.
5811 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5812 (compute_dominance_frontiers): Likewise.
5813 (compute_idf): Likewise.
5814 * df-problems.c (df_md_local_compute): Likewise.
5815
5816 2010-06-05 Anatoly Sokolov <aesok@post.ru>
5817
5818 * target.h (struct gcc_target): Add memory_move_cost field.
5819 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
5820 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
5821 * targhooks.c (default_memory_move_cost): New function.
5822 * targhooks.h (default_memory_move_cost): Declare function.
5823 * reload.h (memory_move_cost): Declare.
5824 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5825 * reginfo.c (memory_move_cost): New function.
5826 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5827 * ira.h (ira_memory_move_cost): Update comment.
5828 * ira.c: (ira_memory_move_cost): Update comment.
5829 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
5830 with memory_move_cost.
5831 * postreload.c (reload_cse_simplify_set): (Ditto.).
5832 * reload1.c (choose_reload_regs): (Ditto.).
5833 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
5834 (MEMORY_MOVE_COST): Revise documentation.
5835
5836 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5837 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5838 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
5839 type of 'in' argument to bool.
5840 (TARGET_MEMORY_MOVE_COST): Define.
5841
5842 2010-06-05 Jan Hubicka <jh@suse.cz>
5843
5844 * ipa-pure-const.c (propagate): Fix typo in handling of functions
5845 that cannot return. Be more careful when merging the results with
5846 previously known ones.
5847
5848 2010-06-05 Matthias Klose <doko@ubuntu.com>
5849
5850 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5851 function to add the -iplugindir option.
5852 (find_plugindir_spec_function): Add new declaration and function.
5853 (static_spec_func): Use it for "find-plugindir".
5854
5855 2010-06-05 Jakub Jelinek <jakub@redhat.com>
5856
5857 PR c++/44361
5858 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5859 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5860 statement expression.
5861
5862 2010-06-05 Jan Hubicka <jh@suse.cz>
5863
5864 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5865 (df_rd_problem_data): Convert sparse_invalidated_by_call,
5866 dense_invalidated_by_call to bitmap head.
5867 (df_rd_alloc, df_rd_bb_local_compute_process_def,
5868 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5869 df_rd_start_dump, df_lr_verify_transfer_functions,
5870 df_live_verify_transfer_functions, df_chain_create_bb,
5871 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5872 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5873 df_simulate_one_insn_forwards, df_md_alloc,
5874 df_md_bb_local_compute_process_def,
5875 df_md_bb_local_compute_process_def, df_md_local_compute,
5876 df_md_transfer_function df_md_free): Update.
5877
5878 2010-06-05 Joseph Myers <joseph@codesourcery.com>
5879
5880 PR c/44322
5881 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5882 target type for ADDR_EXPR; require no changes to qualifiers except
5883 for function types.
5884 * c-tree.h (c_build_type_variant): Remove.
5885
5886 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5887
5888 * genautomata.c (get_excl_set): Do work per element, not per char.
5889 (check_presence_pattern_sets): Similar.
5890 (check_absence_pattern_sets): Similar.
5891
5892 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5893
5894 * genautomata.c (curr_state_pass_num): Delete.
5895 (min_issue_delay_pass_states): Delete.
5896 (min_issue_delay): Delete.
5897 (initiate_min_issue_delay_pass_states): Delete.
5898 (output_min_issue_delay_table): Compute min_issue_delay_vect
5899 using a breadth-first search variant.
5900 (output_tables): Don't call initiate_min_issue_delay_pass_states.
5901
5902 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
5903
5904 PR boostrap/44421
5905 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5906 (df_byte_lr_bb_local_compute): Likewise.
5907
5908 2010-06-03 Jason Merrill <jason@redhat.com>
5909
5910 Implement noexcept operator (5.3.7)
5911 * c-common.c (c_common_reswords): Add noexcept.
5912 * c-common.h (enum rid): Add RID_NOEXCEPT.
5913
5914 2010-06-04 Joseph Myers <joseph@codesourcery.com>
5915
5916 * config/darwin-driver.c (darwin_default_min_version): Use
5917 GCC-specific formats in diagnostics.
5918 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5919 diagnostics.
5920 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5921 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5922 eval_spec_function, handle_braces, process_brace_body, main,
5923 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5924 getenv_spec_function, compare_version_strings,
5925 version_compare_spec_function): Use GCC-specific formats in
5926 diagnostics.
5927
5928 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5929
5930 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5931 that operand 0 and operand 1 are equal.
5932 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5933 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5934 and operand 1 are equal.
5935 <default>: Ditto. Remove ??? comment.
5936 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5937 and operand 1 are equal.
5938 <default>: Ditto. Remove ??? comment.
5939 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5940 are equal.
5941 (*add<mode>_4) <default>: Ditto.
5942 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5943
5944 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
5945
5946 * config/i386/i386-protos.h (ix86_print_operand): Declare.
5947 * config/i386/i386.c (ix86_print_operand): Make non-static.
5948 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5949 * output.h (output_operand): Declare.
5950 * final.c (output_operand): Make non-static.
5951
5952 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
5953
5954 PR rtl-optimization/44013
5955 * sched-deps.c (add_dependence_list_and_free): Don't free lists
5956 when processing debug insns.
5957
5958 PR debug/41371
5959 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5960 recursing. Check that recursion is bounded. Rename inner var
5961 to avoid hiding incoming argument.
5962
5963 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5964
5965 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5966 operands[2] == 255.
5967 (*addqi_3): Ditto.
5968 (*addqi_4): Ditto.
5969 (*addqi_5): Ditto.
5970 (*addqi_ext_1_rex64): Ditto.
5971 (*addqi_ext_1): Ditto.
5972
5973 (*addqi_4): Check for incdec_operand in QImode.
5974
5975 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5976 using SWI mode iterator.
5977 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5978 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5979 mode iterator.
5980 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5981 using SWI mode iterator.
5982
5983 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5984
5985 PR c/25880
5986 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5987 * c-format.c (gcc_diag_flag_specs): Add hash.
5988 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5989 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5990 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5991 pp_c_cv_qualifiers. Handle qualifiers spelling here.
5992 (pp_c_type_qualifier_list): Call the function above.
5993 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5994 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5995 (WARN_FOR_QUALIFIERS): New macro.
5996 (convert_for_assignment): Use it.
5997
5998 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
5999
6000 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
6001
6002 2010-06-04 Jan Hubicka <jh@suse.cz>
6003
6004 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
6005 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
6006 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
6007 DF_BYTE_LR_OUT): Update for embedded bitmaps.
6008 * fwprop.c (single_def_use_enter_block): Likewise.
6009 * ddg.c (create_ddg_dep_from_intra_loop_link,
6010 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
6011 * loop-iv.c (latch_dominating_def): Likewise.
6012 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
6013 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
6014 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
6015 df_rd_transfer_function, df_rd_top_dump,
6016 df_rd_bottom_dump): Update.
6017 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
6018 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
6019 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
6020 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
6021 df_lr_verify_solution_start, df_lr_verify_solution_end,
6022 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
6023 df_live_free_bb_info, df_live_alloc, df_live_reset,
6024 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
6025 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
6026 df_live_verify_solution_start, df_live_verify_solution_end,
6027 df_live_verify_transfer_functions, df_chain_create_bb,
6028 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
6029 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6030 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6031 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
6032 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
6033 df_byte_lr_transfer_function, df_byte_lr_top_dump,
6034 df_byte_lr_bottom_dump, df_create_unused_note,
6035 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
6036 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
6037 df_md_transfer_function, df_md_init, df_md_confluence_0,
6038 df_md_confluence_n,
6039 df_md_top_dump, df_md_bottom_dump): Update.
6040 (struct df_lr_problem_data): Embedd bitmap headers.
6041
6042 2010-06-04 Jan Hubicka <jh@suse.cz>
6043
6044 * dce.c (dce_process_block): Do not re-scan already marked
6045 instructions.
6046
6047 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
6048
6049 PR rtl-optimization/39871
6050 PR rtl-optimization/40615
6051 PR rtl-optimization/42500
6052 PR rtl-optimization/42502
6053 * ira.c (init_reg_equiv_memory_loc: New function.
6054 (ira): Call it twice.
6055 * reload.h (calculate_elim_costs_all_insns): Declare.
6056 * ira-costs.c: Include "reload.h".
6057 (regno_equiv_gains): New static variable.
6058 (init_costs): Allocate it.
6059 (finish_costs): Free it.
6060 (ira_costs): Call calculate_elim_costs_all_insns.
6061 (find_costs_and_classes): Take estimated elimination costs
6062 into account.
6063 (ira_adjust_equiv_reg_cost): New function.
6064 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
6065 * reload1.c (init_eliminable_invariants, free_reg_equiv,
6066 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
6067 (elim_bb): New static variable.
6068 (reload): Move code out of here into init_eliminable_invariants and
6069 free_reg_equiv. Call them.
6070 (calculate_elim_costs_all_insns): New function.
6071 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
6072 all callers changed. If FOR_COSTS is true, don't call alter_reg,
6073 but call note_reg_elim_costly if we turned a valid memory address
6074 into an invalid one.
6075 * Makefile.in (ira-costs.o): Depend on reload.h.
6076
6077 2010-06-04 Julian Brown <julian@codesourcery.com>
6078
6079 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
6080 for pool ranges.
6081
6082 2010-06-04 Richard Guenther <rguenther@suse.de>
6083
6084 PR lto/41584
6085 * cgraph.h (struct varpool_node): Add lto_file_data field.
6086 * lto-cgraph.c (input_varpool_node): Initialize it.
6087
6088 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6089
6090 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
6091 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
6092 predicate in "type" attribute calculation.
6093 (*addsi_1_zext): Ditto.
6094 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
6095 (*addsi_2_zext): Ditto.
6096 (*add<mode>_3): Ditto.
6097 (*addsi_3_zext): Ditto.
6098 (*add<mode>_5): Ditto.
6099
6100 2010-06-03 Jan Hubicka <jh@suse.cz>
6101
6102 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
6103 of bitmap_bit_p.
6104 * cfganal.c (compute_dominance_frontiers_1): Likewise.
6105
6106 2010-06-03 Jan Hubicka <jh@suse.cz>
6107
6108 * df-problems.c (df_create_unused_note, df_note_bb_compute):
6109 micro-optimize the checks when to add new note.
6110
6111 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
6112
6113 * final.c (output_asm_insn): Call
6114 targetm.asm_out.print_operand_punct_valid_p. Update comments.
6115 (output_operand): Call targetm.asm_out.print_operand. Update comments.
6116 (output_address): Call targetm.asm_out.print_operand_address.
6117 Update comments.
6118 * target.h (struct gcc_target): Add print_operand,
6119 print_operand_address, and print_operand_punct_valid_p fields.
6120 * targhooks.h (default_print_operand): Declare.
6121 (default_print_operand_address): Declare.
6122 (default_print_operand_punct_valid_p): Declare.
6123 * targhooks.c (default_print_operand): Define.
6124 (default_print_operand_address): Define.
6125 (default_print_operand_punct_valid_p): Define.
6126 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
6127 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
6128 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6129 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
6130 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
6131 * vmsdbgout.c (addr_const_to_string): Update comment.
6132 * config/i386/i386.c (print_operand): Rename to...
6133 (ix86_print_operand): ...this. Make static.
6134 (print_operand_address): Rename to...
6135 (ix86_print_operand_address): ...this. Make static. Call
6136 ix86_print_operand instead of PRINT_OPERAND.
6137 (ix86_print_operand_punct_valid_p): New function.
6138 (TARGET_PRINT_OPERAND): Define.
6139 (TARGET_PRINT_OPERAND_ADDRESS): Define.
6140 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6141 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
6142 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6143 (PRINT_OPERAND): Delete.
6144 (PRINT_OPERAND_ADDRESS): Delete.
6145 * config/i386/i386-protos.h (print_operand): Delete prototype.
6146 (print_operand_address): Delete prototype.
6147
6148 2010-06-03 Richard Guenther <rguenther@suse.de>
6149
6150 PR tree-optimization/44403
6151 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6152 Preserve pointer qualifiers.
6153 (vect_create_data_ref_ptr): Likewise.
6154
6155 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
6156
6157 PR c++/44294
6158 * defaults.h (MAX_FIXED_MODE_SIZE): New.
6159
6160 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
6161
6162 2010-06-03 Jakub Jelinek <jakub@redhat.com>
6163
6164 PR debug/44375
6165 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
6166 return false if merging the bbs would lead to goto_locus
6167 location being lost from the IL.
6168
6169 2010-06-03 Jan Hubicka <jh@suse.cz>
6170 Jakub Jelinek <jakub@redhat.com>
6171
6172 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
6173 set->regs[i] is NULL or has just one entry.
6174
6175 2010-06-03 Jan Hubicka <jh@suse.cz>
6176
6177 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
6178 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
6179
6180 2010-06-03 Paul Brook <paul@codesourcery.com>
6181
6182 * config/arm/arm.c (FL_TUNE): Define.
6183 (arm_default_cpu, arm_cpu_select): Remove.
6184 (all_cores): Populate core field.
6185 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
6186 (arm_find_cpu): New function.
6187 (arm_handle_option): Lookup cpu/architecture names.
6188 (arm_override_options): Cleanup mcpu/march/mtune handling.
6189 (arm_file_start): Ditto.
6190
6191 2010-06-03 Alan Modra <amodra@gmail.com>
6192
6193 PR target/44169
6194 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
6195 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
6196 rtx to gen_load_toc_v4_PIC_1b. Tidy.
6197 (rs6000_emit_load_toc_table): Likewise.
6198
6199 2010-06-02 Jan Hubicka <jh@suse.cz>
6200
6201 * passes.c (init_optimization_passes): Put ipa reference
6202 after ipa pure-const.
6203
6204 2010-06-02 Jan Hubicka <jh@suse.cz>
6205
6206 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
6207 calls_read_all and calls_write_all.
6208 (get_reference_optimization_summary): Fix formatting.
6209 (is_proper_for_analysis): Check that decl is not readonly.
6210 (propagate_bits): Check CONST/PURE/noreturn flags.
6211 (ipa_init): Move all_module_statics to optimization_summary_obstack.
6212 (analyze_function): Ignore indirect edges.
6213 (copy_global_bitmap): For all module statics, do nothing.
6214 (generate_summary): Do not print calls_read_all/calls_write_all.
6215 (read_write_all_from_decl): Take node as argument; check
6216 cgraph_node_cannot_return.
6217 (propagate): Reorganize read_all/write_all computation;
6218 check indirect edges; check ecf flags; use all_module_statics
6219 in the results; do not free all_module_statics.
6220 (stream_out_bitmap): Handle all_module_statics.
6221 (ipa_reference_write_optimization_summary): Likewise; use
6222 varpool/cgraph encoders to get boundaries.
6223 (ipa_reference_read_optimization_summary): Read in all_module_statics;
6224 use it when possible.
6225
6226 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6227
6228 PR target/44218
6229 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6230 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6231
6232 * doc/extend.texi (powerpc builtins): Document vec_recip,
6233 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6234
6235 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6236 (rs6000_emit_swrsqrt): Ditto.
6237 (rs6000_emit_swdivsf): Delete.
6238 (rs6000_emit_swdivdf): Ditto.
6239 (rs6000_emit_swrsqrtsf): Ditto.
6240
6241 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6242 describe the reciprocal estimate support for each type.
6243 (recip_options): Map -mrecip=<opt> into option bits.
6244 (gen_2arg_fn_t): New typedef for binary rtx gen function.
6245 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6246 reciprocal estimate instructions.
6247 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6248 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6249 Set up rs6000_recip_bits based on the -mrecip* options. Print the
6250 cost information if -mdebug=cost or -mdebug=reg.
6251 (rs6000_override_options): Set -mrecip-precision for power6, and
6252 power7 machines. If -mvsx or -mdfp, enable various options that
6253 came in previous instruction set ISAs, unless the option was
6254 explicitly disabled by the command line option. Parse
6255 -mrecip=<opt> options.
6256 (rs6000_builtin_vectorized_function): Add support for vectorizing
6257 the reciprocal estimate builtins and expansions.
6258 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6259 (bdesc_2arg): Add reciprocal estimate builtins.
6260 (bdesc_1arg): Add reciprocal square root estimate builtins.
6261 (rs6000_expand_builtin): Rewrite to use a switch statement,
6262 instead of multiple if/then/elses. Add reciprocal estimate builtins.
6263 (rs6000_init_builtins): Create declarations for reciprocal
6264 estimate builtins.
6265 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6266 sized, prefer traditional floating point registers, if integer
6267 vector types, prefer altivec registers. Don't actually look at
6268 the memory address any more.
6269 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6270 builtins.
6271 (rs6000_load_constant_and_splat): New helper function to load up
6272 the constant for reciprocal estimate instructions.
6273 (rs6000_emit_madd): New helper function for generating
6274 multiply/add type instructions, based on the current switches.
6275 (rs6000_emit_msub): Ditto.
6276 (rs6000_emit_mnsub): Ditto.
6277 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6278 replace a divide with a reciprocal estimate and fixup, adding
6279 support for machines with high precision and vectors.
6280 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6281 low precision machines.
6282 (rs6000_emit_swdiv): New common function to be called to replace a
6283 division with reciprocal estimate and fixup.
6284 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
6285 for double and vector types. Add support for high precision machines.
6286
6287 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6288 the reciprocal estimate instructions can be generated.
6289 (TARGET_FRE): Ditto.
6290 (TARGET_FRSQRTES): Ditto.
6291 (TARGET_FRSQRTE): Ditto.
6292 (RS6000_RECIP_*): New macros for reciprocal estimate support.
6293
6294 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
6295 square root estimate on vectors.
6296 (re<mode>2): New insn for reciprocal division estimate on vectors.
6297
6298 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
6299 New builtin.
6300 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
6301 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
6302 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
6303 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
6304 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
6305 (RS6000_BUILTIN_RSQRT): Ditto.
6306 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
6307 floating point builtin.
6308
6309 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6310 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
6311 __RECIP_PRECISION__ based on the command line switches.
6312 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
6313
6314 * config/rs6000/rs6000.opt (-mrecip): Document add support for
6315 replacing division instructions with reciprocal estimate and fixup.
6316 (-mrecip=<opt>): New option.
6317 (-mrecip-precision): Ditto.
6318
6319 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
6320 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
6321 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
6322 precision scalar.
6323
6324 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
6325 (UNSPEC_VREFP): Ditto.
6326 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
6327 conterparts with regard to support of -mno-fused-madd and -ffast-math.
6328 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
6329 reciprocal estimate instructions to be generated.
6330 (altivec_vrefp): Ditto.
6331
6332 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
6333 estimate support.
6334 (rreg): New mode attribute for reciprocal estimate support.
6335 (recip<mode>3): New insn for division using reciprocal estimate
6336 and fixup builtins.
6337 (divide define_split): New define_split to convert floating point
6338 division to use reciprocal estimate if the user used the
6339 appropriate options and the split is run when we can add new
6340 pseudo registers for the fixup.
6341 (rsqrt<mode>2): New insn for reciprocal square root support.
6342 (recipsf3): Move into recip<mode>3.
6343 (recipdf3): Ditto.
6344 (fres): Use TARGET_FRES.
6345 (rsqrtsf2): Move into rsqrt<mode>2.
6346 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
6347 (copysignsf3): Add support for VSX.
6348 (fred): Use TARGET_FRE.
6349 (fred_fpr): Ditto.
6350 (rsqrtdf_internal1): New function for frsqrte instruciton.
6351
6352 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
6353 (vec_rsqrt): Ditto.
6354
6355 2010-06-03 Richard Guenther <rguenther@suse.de>
6356
6357 PR middle-end/44291
6358 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
6359 (set_user_assembler_libfunc): Likewise.
6360
6361 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6362
6363 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
6364 defaults.h.
6365 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
6366 to defaults.h
6367 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
6368 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
6369 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
6370 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
6371 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
6372 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
6373 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
6374 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
6375 * defaults.h: Updated for above mentioned changes.
6376
6377 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
6378
6379 * c-common.c: Remove header include of tm_p.h.
6380 * Makefile.in (c-common.o): Remove TM_P_H dependency.
6381
6382 2010-06-02 Jakub Jelinek <jakub@redhat.com>
6383
6384 * tree.h (struct tree_decl_map): New type.
6385 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
6386 (tree_decl_map_hash): New prototype.
6387 (debug_expr_for_decl, value_expr_for_decl): Change into
6388 tree_decl_map hashtab from tree_map.
6389 (init_ttree): Adjust initialization.
6390 (tree_decl_map_hash): New function.
6391 (decl_debug_expr_lookup, decl_debug_expr_insert,
6392 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
6393
6394 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6395
6396 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
6397 linker emulations.
6398 * configure: Regenerate.
6399 * config.in: Regenerate.
6400
6401 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
6402 (X86_64_EMULATION): Define.
6403 (TARGET_LD_EMULATION): Use them.
6404
6405 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
6406 (SPARC64_EMULATION): Define.
6407 (LINK_ARCH_SPEC): Use them.
6408
6409 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6410
6411 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
6412 smallest_mode_for_size for computing the precision types of new
6413 graphite IVs. Do not call lang_hooks.types.type_for_size.
6414
6415 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6416
6417 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
6418 information.
6419 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
6420
6421 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6422
6423 PR middle-end/44363
6424 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
6425 return false instead.
6426
6427 2010-06-02 Jan Hubicka <jh@suse.cz>
6428
6429 PR middle-end/44295
6430 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
6431 create new cgraph node to check callee.
6432
6433 2010-06-02 Richard Guenther <rguenther@suse.de>
6434
6435 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
6436
6437 2010-06-02 Richard Guenther <rguenther@suse.de>
6438
6439 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
6440 (lto_wrapper_cleanup): ... this. Do not exit.
6441 (fatal): Adjust. Exit here.
6442 (fatal_perror): Likewise.
6443 (fatal_signal): New function.
6444 (main): Set up signal handlers to cleanup temporary files.
6445 * Makefile.in (lto-wrapper.o): Adjust dependencies.
6446
6447 2010-06-02 Richard Guenther <rguenther@suse.de>
6448
6449 PR tree-optimization/44377
6450 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
6451
6452 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6453
6454 * config/s390/2097.md (z10_fhex): Remove insn reservation.
6455 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
6456 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
6457 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
6458 instruction.
6459 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
6460
6461 2010-06-02 Jan Hubicka <jh@suse.cz>
6462
6463 * bitmap.c (bitmap_descriptor): Add search_iter.
6464 (bitmap_find_bit): Increment it.
6465 (print_statistics): Print it.
6466
6467 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
6468
6469 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
6470 instead of gimple_build_call_vec. Delete unnecessary local variable.
6471
6472 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6473
6474 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
6475 change from yesterday.
6476
6477 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6478
6479 * c-ada-spec.c: Clean up redundant includes.
6480
6481 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
6482
6483 * gimplify.c: Do not include except.h and optabs.h.
6484 (gimplify_body): Do not initialize RTL profiling.
6485 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
6486 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
6487 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
6488 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
6489 langhooks.h.
6490
6491 * tree-pretty-print.h: Include pretty-print.h.
6492 * gimple-pretty-print.h: Include pretty-print.h.
6493
6494 * tree-pretty-print.c: Do not include diagnostic.h.
6495 * tree-vrp.c: Likewise.
6496 * tree-tailcall.c: Likewise
6497 * tree-scalar-evolution.c: Likewise
6498 * tree-ssa-dse.c: Likewise
6499 * tree-chrec.c: Likewise
6500 * tree-ssa-sccvn.c: Likewise
6501 * tree-ssa-copyrename.c: Likewise
6502 * tree-nomudflap.c: Likewise
6503 * tree-call-cdce.c: Likewise
6504 * tree-stdarg.c: Likewise
6505 * tree-ssa-math-opts.c: Likewise
6506 * tree-nrv.c: Likewise
6507 * tree-ssa-sink.c: Likewise
6508 * tree-browser.c: Likewise
6509 * tree-ssa-loop-ivcanon.c: Likewise
6510 * tree-ssa-loop.c: Likewise
6511 * tree-parloops.c: Likewise
6512 * tree-ssa-address.c: Likewise
6513 * tree-ssa-ifcombine.c: Likewise
6514 * tree-if-conv.c: Likewise
6515 * tree-data-ref.c: Likewise
6516 * tree-affine.c: Likewise
6517 * tree-ssa-phiopt.c: Likewise
6518 * tree-ssa-coalesce.c: Likewise
6519 * tree-ssa-pre.c: Likewise
6520 * tree-ssa-live.c: Likewise
6521 * tree-predcom.c: Likewise
6522 * tree-ssa-forwprop.c: Likewise
6523 * tree-ssa-dce.c: Likewise
6524 * tree-ssa-ter.c: Likewise
6525 * tree-ssa-loop-prefetch.c: Likewise
6526 * tree-optimize.c: Likewise
6527 * tree-ssa-phiprop.c: Likewise
6528 * tree-object-size.c: Likewise
6529 * tree-outof-ssa.c: Likewise
6530 * tree-ssa-structalias.c: Likewise
6531 * tree-switch-conversion.c: Likewise
6532 * tree-ssa-reassoc.c: Likewise
6533 * tree-ssa-operands.c: Likewise
6534 * tree-vectorizer.c: Likewise
6535 * tree-vect-data-refs.c: Likewise
6536 * tree-vect-generic.c: Likewise
6537 * tree-vect-stmts.c: Likewise
6538 * tree-vect-patterns.c: Likewise
6539 * tree-vect-slp.c: Likewise
6540 * tree-vect-loop.c: Likewise
6541 * tree-ssa-loop-ivopts.c: Likewise
6542 * tree-ssa-loop-im.c: Likewise
6543 * tree-ssa-loop-niter.c: Likewise
6544 * tree-ssa-loop-unswitch.c: Likewise
6545 * tree-ssa-loop-manip.c: Likewise
6546 * tree-ssa-loop-ch.c: Likewise
6547 * tree-dump.c: Likewise
6548 * tree-complex.c: Likewise
6549
6550 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
6551 * tree-ssa-uninit.c: Likewise
6552 * tree-ssa-threadupdate.c: Likewise
6553 * tree-ssa-uncprop.c: Likewise
6554 * tree-ssa-ccp.c: Likewise
6555 * tree-ssa-dom.c: Likewise
6556 * tree-ssa-propagate.c: Likewise
6557 * tree-ssa-alias.c: Likewise
6558 * tree-dfa.c: Likewise
6559 * tree-cfgcleanup.c: Likewise
6560 * tree-sra.c: Likewise
6561 * tree-ssa-copy.c: Likewise
6562 * tree-ssa.c: Likewise
6563 * tree-profile.c: Likewise
6564 * tree-cfg.c: Likewise
6565 * tree-ssa-threadedge.c: Likewise
6566 * tree-vect-loop-manip.c: Likewise
6567
6568 * tree-inline.c: Do not include diagnostic.h and expr.h.
6569 Include rtl.h.
6570 (copy_decl_for_dup_finish): Do not use NULL_RTX.
6571
6572 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
6573 * tree-loop-distribution.c: Likewise.
6574
6575 2010-06-01 Jan Hubicka <jh@suse.cz>
6576
6577 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
6578
6579 2010-06-01 Jan Hubicka <jh@suse.cz>
6580
6581 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
6582 remove return value.
6583 (split_bbs_on_noreturn_calls) .... here.
6584 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
6585 * tree-flow.h (fixup_noreturn_call): New.
6586
6587 2010-06-01 Jan Hubicka <jh@suse.cz>
6588
6589 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
6590
6591 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
6592
6593 * tree.h (build_nt_call_list): Delete.
6594 * tree.c (build_nt_call_list): Delete.
6595
6596 2010-06-01 Jan Hubicka <jh@suse.cz>
6597
6598 * fwprop.c: Make emit-rtl.h include last.
6599 * rtlanal.c: Include emit-rtl.h.
6600 * genautomata.c: Output emit-rtl include into insn-automata.c
6601 * df-scan.c: Include emit-rtl.h.
6602 * haifa-sched.c: Indlude emit-rtl.h.
6603 * mode-switching.c: Indlude emit-rtl.h.
6604 * graph.c: Indlude emit-rtl.h.
6605 * sel-sched.c: Include emit-rtl.h.
6606 * sel-sched-ir.c: Include emit-rtl.h.
6607 * ira-build.c: Include emit-rtl.h.
6608 * emit-rtl.c: (first_insn, last_insn): Remove defines.
6609 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
6610 Move to emit-rtl.h.
6611 (set_new_first_and_last_insn, get_last_insn_anywhere,
6612 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
6613 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
6614 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
6615 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
6616 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
6617 Use accessor functions.
6618 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6619 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6620 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6621 mem_expr_equal_p): Move here from rtl.h.
6622 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
6623 Move here from emit-rtl.c; make inline.
6624 * cfglayout.h: Include emit-rtl.h.
6625 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6626 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6627 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6628 mem_expr_equal_p, get_insns, set_first-insn,
6629 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
6630 * reg-stack.c: Include emit-rtl.h.
6631 * dce.c: Likewise.
6632
6633 2010-06-01 Jan Hubicka <jh@suse.cz>
6634
6635 * cgraph.h (tree_function_versioning): Update prototype.
6636 (cgraph_function_versioning): Update prototype.
6637 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
6638 bitmap.
6639 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
6640 (cgraph_materialize_clone, save_inline_function_body): Update use of
6641 tree_function_versioning.
6642 * tree-inline.c (copy_bb): Look for previous copied block to link
6643 after; fix debug output.
6644 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
6645 (copy_body): Likewise.
6646 (expand_call_inline): Update use of copy_body.
6647 (tree_function_versioning): Update use of copy body; accept
6648 blocks_to_copy and new_entry.
6649
6650 2010-06-01 Jan Hubicka <jh@suse.cz>
6651
6652 * gegenrtl.c: Remove unnecesary prototypes.
6653 (gendecl): Remove.
6654 (gendef): Produce static inline.
6655 (gencode): Remove.
6656 (main): Do not decode parameters; generate header only.
6657 * Makefile.in (genrtl.c): Remove.
6658
6659 2010-06-01 Jan Hubicka <jh@suse.cz>
6660
6661 * tree-switch-conversion.c (build_one_array): Make it readonly.
6662
6663 2010-06-01 Richard Guenther <rguenther@suse.de>
6664
6665 * optabs.c (init_optabs): Guard all accesses to reinit.
6666 * ipa-pure-const.c (propagate): Fix another typo.
6667 * opts.c (common_handle_option): Split assignment to bool.
6668 * c-opts.c (c_common_handle_option): Likewise.
6669
6670 2010-06-01 Arnaud Charlet <charlet@adacore.com>
6671 Matthew Gingell <gingell@adacore.com>
6672
6673 * doc/invoke.texi: Mention -fdump-ada-spec.
6674 * tree-dump.c (dump_files): Add ada-spec.
6675 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6676 * tree-pass.h (tree_dump_index): Add TDI_ada.
6677 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6678 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6679 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6680 * c-decl.c: Include c-ada-spec.h.
6681 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6682 functions.
6683 (c_write_global_declarations): Add handling of -fdump-ada-spec.
6684 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6685 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6686 * c-ada-spec.h, c-ada-spec.c: New files.
6687
6688 2010-06-01 Richard Guenther <rguenther@suse.de>
6689
6690 PR lto/43853
6691 * ipa-pure-const.c (get_function_state): Hand back varying state
6692 if we do not have one.
6693 (has_function_state): New function.
6694 (duplicate_node_data): Adjust.
6695 (remove_node_data): Likewise.
6696 (pure_const_write_summary): Likewise.
6697 (propagate): Likewise. Fix typo.
6698
6699 2010-06-01 Jan Hubicka <jh@suse.cz>
6700
6701 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6702 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6703 (execute_all_ipa_transforms): Do not play with the states.
6704
6705 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
6706
6707 * config/arm/t-linux-androideabi: New.
6708 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
6709
6710 2010-06-01 Jan Hubicka <jh@suse.cz>
6711
6712 * tree-inline.c (estimate_num_insns): For stdarg functions look
6713 into call statement to count cost of argument passing.
6714
6715 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
6716
6717 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
6718 argument for fprintf.
6719 (ix86_output_addr_diff_elt): Likewise.
6720 (x86_function_profiler): Likewise.
6721 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
6722 (LPREFIX): Likewise.
6723 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6724
6725 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6726
6727 PR target/44338
6728 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
6729 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
6730 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
6731 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
6732 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
6733 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
6734 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
6735 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
6736 TARGET_FUSED_MADD.
6737
6738 2010-05-31 Jan Hubicka <jh@suse.cz>
6739
6740 * tree.h (tree_range_check_failed): Declare noreturn.
6741
6742 2010-05-31 Jan Hubicka <jh@suse.cz>
6743
6744 * gimple.c (gimple_call_builtin_p): New function.
6745 * gimple.h (gimple_call_builtin_p): Declare.
6746 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
6747 to exit.
6748 (execute_warn_function_return): BUILT_IN_RETURN is return.
6749 (split_critical_edges): Return edges are not critical.
6750 (is_ctrl_altering_stmt): Builtin_in_return is altering.
6751 (gimple_verify_flow_info): Handle built_in_return.
6752 (execute_warn_function_return): Handle built_in_return.
6753 * ipa-pure-const.c (check_call): Ignore builtin_return.
6754
6755 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6756
6757 PR middle-end/44337
6758 * expr.c (expand_assignment): Don't store anything for out-of-bounds
6759 array accesses with non-MEM.
6760
6761 PR tree-optimization/44182
6762 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
6763 newly needs to end a bb is followed by debug stmts, instead return
6764 true from the function at the end.
6765 (maybe_move_debug_stmts_to_successors): New function.
6766 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
6767
6768 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
6769
6770 PR target/44161
6771 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
6772
6773 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
6774
6775 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
6776 for nested functions in non-optimized compilation.
6777
6778 2010-05-31 Richard Guenther <rguenther@suse.de>
6779
6780 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
6781
6782 2010-05-30 Jan Hubicka <jh@suse.cz>
6783
6784 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
6785
6786 2010-05-30 Richard Guenther <rguenther@suse.de>
6787
6788 PR lto/42975
6789 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
6790 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
6791 no longer needed.
6792
6793 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
6794
6795 * config/darwin.c (output_objc_section_asm_op): Add comment.
6796 (name_needs_quotes): Add '_' to list of valid comment chars.
6797 (machopic_output_function_base_name): Remove unneeded quotes.
6798 (darwin_encode_section_info): Adjust asm whitespace.
6799 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
6800 (ASM_OUTPUT_LOCAL): Ditto.
6801 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
6802 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
6803 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
6804
6805 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
6806
6807 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
6808 RS6000_OUTPUT_BASENAME unconditionally.
6809 (rs6000_output_function_epilogue): Likewise.
6810
6811 2010-05-30 Jan Hubicka <jh@suse.cz>
6812
6813 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
6814 nodes.
6815
6816 2010-05-30 Richard Guenther <rguenther@suse.de>
6817
6818 * tree-cfg.c (verify_gimple_assign_single): Implement
6819 verification for COND_EXPR rhs.
6820
6821 2010-05-30 Jan Hubicka <jh@suse.cz>
6822
6823 * cgraph.h (cgraph_dump_file): Declare.
6824 * cgraphunit.c (cgraph_dump_file): Export.
6825 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
6826
6827 2010-05-30 Jan Hubicka <jh@suse.cz>
6828
6829 * dwarf2out.c (reference_to_unused,
6830 premark_types_used_by_global_vars_helper): Avoid creation of new
6831 varpool nodes.
6832
6833 2010-05-30 Jan Hubicka <jh@suse.cz>
6834
6835 * cgraph.h (cgraph_node_cannot_return,
6836 cgraph_edge_cannot_lead_to_return): New functions.
6837 * cgraph.c (cgraph_node_cannot_return,
6838 cgraph_edge_cannot_lead_to_return): Use them.
6839 * ipa-pure-const.c (pure_const_names): New static var.
6840 (check_call): Handle calls not leading to return.
6841 (pure_const_read_summary): Dump info read.
6842 (propagate): Dump info about propagation process; ignore side effects
6843 of functions not leading to exit; fix handling of pure functions.
6844
6845 2010-05-30 Jan Hubicka <jh@suse.cz>
6846
6847 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6848 for tail call epilogues.
6849
6850 2010-05-30 Jan Hubicka <jh@suse.cz>
6851
6852 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6853 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6854 dump files.
6855
6856 2010-05-29 Jan Hubicka <jh@suse.cz>
6857
6858 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6859 node; remove references in node we no longer keep in cgrpah but need
6860 body of.
6861
6862 2010-05-29 Jan Hubicka <jh@suse.cz>
6863
6864 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6865
6866 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6867
6868 PR target/44165
6869 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6870
6871 2010-05-29 Jan Hubicka <jh@suse.cz>
6872
6873 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6874 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6875 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6876 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6877 debug_names_replaced_by, debug_update_ssa): Likewise.
6878 * sbitmap.c (debug_sbitmap): Likewise.
6879 * genrecog.c (debug_decision, debug_decision_list): Likewise.
6880 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6881 debug_tree_chain): Likewise.
6882 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6883 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6884 * optabs.c (debug_optab_libfuncs): Likewise.
6885 (verify_loop_closed_ssa): Likewise.
6886 * value-prof.c (verify_histograms): Likewise.
6887 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6888 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6889 * cfghooks.c (verify_flow_info): Likewise.
6890 * fold-const.c (debug_fold_checksum): Likewise.
6891 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6892 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6893 Likewise.
6894 * omega.c (debug_omega_problem): Likewise.
6895 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6896 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6897 * dominance.c (verify_dominators, debug_dominance_info,
6898 debug_dominance_tree): Likewise.
6899 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6900 * df_regno_debug, df_ref_debug,
6901 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6902 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6903 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6904 * sel-sched.c (debug_state): Likewise.
6905 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6906 Likewise.
6907 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6908 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6909 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6910 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6911 Likewise.
6912 * c-pretty-print.c (debug_c_tree): Likewise.
6913 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6914 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6915 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6916 * ebitmap.c (debug_ebitmap): Likewise.
6917 * function.c (debug_find_var_in_block_tree): Likewise.
6918 * print-rtl.c (debug_rtx): Likewise.
6919 (debug_rtx_count): Likewise.
6920 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6921 * stor-layout.c (debug_rli): Likewise.
6922 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6923 * tree-data-ref.c (debug_data_references,
6924 debug_data_dependence_relations, debug_data_reference,
6925 debug_data_dependence_relation, debug_rdg_vertex,
6926 debug_rdg_component, debug_rdg): Likewise.
6927 * tree-affine.c (debug_aff): Likewise.
6928 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6929 Likewise.
6930 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6931 * emit-rtl.c (verify_rtl_sharing): Likewise.
6932 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6933 debug_value_expressions): Likewise.
6934 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6935 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6936 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6937 * cfglayout.c (verify_insn_chain): Likewise.
6938 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6939 debug_clast_stmt, debug_generated_program): Likewise.
6940 * ggc-page.c (debug_print_page_list): Likewise.
6941 * tree-ssa-ter.c (debug_ter): Likewise.
6942 * graphite-dependences.c (debug_pddr): Likewise.
6943 * sched-deps.c (debug_ds): Likewise.
6944 * tree-ssa.c (verify_ssa): Likewise.
6945 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6946 debug_scattering_functions, debug_iteration_domains, debug_pdr,
6947 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6948 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6949 * tree-inline.c (debug_find_tree): Likewise.
6950 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6951 debug_ppl_powerset_matrix): Likewise.
6952 * var-tracking.c (debug_dv): Likewise.
6953 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6954 * cfgloop.c (verify_loop_structure): Likewise.
6955 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6956 * c-common.c (verify_sequence_points): Likewise.
6957 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6958 debug_candidates, debug_rgn_dependencies): Likewise.
6959 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6960 * debug_constraint_graph, debug_solution_for_var,
6961 debug_sa_points_to_info): Likewise.
6962 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6963 Likewie.
6964 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6965 debug_loops, debug_loop, debug_loop_num): Likewise.
6966 * passes.c (debug_pass): Likewise.
6967 (dump_properties): Likewise; add cfglayout property.
6968 (debug_properties): Likewise.
6969 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6970 * varpool.c (debug_varpool): Likewise.
6971 * regcprop.c (debug_value_data): Likewise.
6972 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6973 debug_immediate_uses_for): Likewise.
6974
6975 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6976
6977 PR bootstrap/44315
6978 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6979 Filter out insn-flags.h.
6980
6981 2010-05-29 Jan Hubicka <jh@suse.cz>
6982
6983 * cgraph.h (struct varpool_node_set_def,
6984 struct cgraph_node_set_def): Remove unused AUX pointer.
6985 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6986 VEC_empty macro.
6987
6988 2010-05-29 Jan Hubicka <jh@suse.cz>
6989
6990 PR middle-end/44324
6991 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6992
6993 2010-05-29 Richard Guenther <rguenther@suse.de>
6994
6995 * lto-streamer.c (cached_bp): New global variable.
6996 (bitpack_create): Return the cached bitpack, if available.
6997 (bitpack_delete): Clear and cache the bitpack, if appropriate.
6998 (bp_pack_value): Remove redundant asserts.
6999
7000 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
7001
7002 PR middle-end/44306
7003 * tree-if-conv.c (is_true_predicate): New.
7004 (is_predicated): Use is_true_predicate.
7005 (add_to_predicate_list): Same. Do not use unshare_expr.
7006 (add_to_dst_predicate_list): Same.
7007
7008 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
7009
7010 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
7011 field on edges.
7012 (predicate_bbs): Same.
7013 (clean_predicate_lists): Same.
7014 (find_phi_replacement_condition): Do not AND the predicate from
7015 edge->aux.
7016
7017 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
7018
7019 PR bootstrap/44315
7020 * Makefile.in (build/gencondmd.o): Add a missing `\'.
7021
7022 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7023
7024 PR target/44261
7025 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
7026 (negdf2): Adjust expander pattern and use negdf2_slow.
7027 (negsf2): Likewise.
7028
7029 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
7030
7031 * basic-block.h (struct control_flow_graph): Move last_label_uid field
7032 up.
7033 * df.h (struct df_base_ref): Move regno field up.
7034 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
7035 * expr.h (struct separate_ops): Move location field up.
7036 * optabs.h (struct optab_d): Move libcall_basename field down.
7037 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
7038 * config/i386/i386.h (struct machine_function): Convert call_abi field
7039 into a bitfield. Move cfa field to the end of the structure.
7040
7041 2010-05-29 Jan Hubicka <jh@suse.cz>
7042
7043 * varpool.c (varpool_get_node): Fix lookup.
7044
7045 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7046
7047 * config/spu/spu-protos.h: Do not include rtl.h. Protect
7048 RTL specific prototypes with #ifdef RTX_CODE.
7049 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
7050 * config/spu/t-spu-elf: Fix dependencies.
7051
7052 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
7053
7054 2010-05-29 Mike Stump <mikestump@comcast.net>
7055
7056 PR bootstrap/44315
7057 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
7058 TM_H when building to avoid dependency loops.
7059
7060 2010-05-29 Jan Hubicka <jh@suse.cz>
7061
7062 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
7063 refs and body; not the whole node for masters of materialized clones.
7064
7065 2010-05-29 Mike Stump <mikestump@comcast.net>
7066
7067 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
7068
7069 2010-05-29 Jan Hubicka <jh@suse.cz>
7070
7071 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
7072 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
7073 use of clone_function_name.
7074 * cgraph.h (cgraph_create_virtual_clone,
7075 cgraph_function_versioning): update prototypes.
7076 (clone_function_name): Declare.
7077 * ipa-cp.c (ipcp_insert_stage): Update call of
7078 cgraph_create_virtual_clone.
7079 * omp-low.c (create_omp_child_function_name): Use
7080 cgraph_create_virtual_clone.
7081 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
7082 (cgraph_function_versioning): Take SUFFIX argument; produce new name
7083 and make decl local.
7084
7085 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7086
7087 * vec.h: Include statistics.h
7088 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
7089 with VEC_H.
7090
7091 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7092
7093 * c-lex.c: Do not include c-tree.h.
7094 * c-pretty-print.c: Likewise.
7095 * c-opts.c: Likewise.
7096 * c-gimplify.c: Likewise.
7097 * c-common.c: Likewise.
7098 * c-dump.c: Likewise. Include c-common.h.
7099
7100 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7101
7102 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
7103 before including diagnostic-core.h.
7104 (c_cpp_error): New prototype moved from c-tree.h.
7105 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
7106 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
7107 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
7108 (c_cpp_error): Prototype moved to c-common.h.
7109 * Makefile.in: Update dependency for C_COMMON_H.
7110
7111 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7112
7113 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
7114 * c-common.c (c_register_addr_space): Remove here.
7115 * c-decl.c (c_register_addr_space): Re-add here.
7116
7117 2010-05-28 Mike Stump <mikestump@comcast.net>
7118
7119 * config/darwin-c.c: Remove c-tree.h include.
7120
7121 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7122
7123 * gcc.c: Include diagnostic.h.
7124 (error_count): Remove. All users changed to use errorcount.
7125 (programname): Remove. All users changed to use progname.
7126 (fancy_abort, internal_error, fatal_error, error, warning, inform,
7127 fnotice): Remove.
7128 (execute): Don't include "Internal error" and bug reporting
7129 information in argument of internal_error call.
7130 (process_command): Don't increment error_count after calling
7131 perror_with_name.
7132 (input_filename): Rename to gcc_input_filename. All users
7133 changed.
7134 (main): Call diagnostic_initialize. Register delete_temp_files
7135 with atexit. Use seen_error to test for errors.
7136 * gcc.h: Include diagnostic-core.h.
7137 (fatal_error, error, warning): Remove.
7138 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
7139 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
7140 (gcc.o): Update dependencies.
7141
7142 2010-05-28 Jeff Law <law@redhat.com>
7143
7144 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
7145 functions.
7146 * ira.h (ira_bad_reload_regno): Declare
7147 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
7148
7149 * ira-color.c (update_curr_costs): Free updated hard reg costs.
7150 (ira_reassign_conflict_allocnos): Remove bogus asserts.
7151 (allocno_reload_assign): Likewise.
7152
7153 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
7154
7155 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
7156 build1_stat.
7157
7158 2010-05-28 Richard Guenther <rguenther@suse.de>
7159
7160 PR lto/44312
7161 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
7162 Stream fixed-point constants mode.
7163 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
7164 and TYPE_PRECISION.
7165 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
7166 Stream fixed-point constants mode.
7167 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
7168 and TYPE_PRECISION.
7169
7170 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7171
7172 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
7173 only place it was called from.
7174 (number_of_latch_executions): Do not return chrec_dont_know when the
7175 may_be_zero is a runtime condition: instead, return a COND_EXPR
7176 including the may_be_zero condition.
7177 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
7178 of nb_iterations.
7179 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
7180 COND_EXPRs.
7181
7182 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7183
7184 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
7185 generate COND_EXPRs for degenerate_phi_result.
7186
7187 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7188
7189 PR middle-end/44293
7190 * tree-if-conv.c (if_convertible_loop_p): Check the
7191 if-convertibility of phi nodes in non predicated BBs.
7192
7193 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7194
7195 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
7196
7197 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7198
7199 PR driver/15303
7200 * gcc.c (inform, warning, inform): New functions.
7201 (fatal_ice): Rename to internal_error; change cmsgid parameter to
7202 gmsgid. All callers changed.
7203 (notice): Rename to fnotice; add parameter fp. All callers changed.
7204 (fatal_error): Rename to fatal_signal. All users changed.
7205 (fatal): Rename to fatal_error; change cmsgid parameter to
7206 gmsgid. All callers changed.
7207 (process_command): Use warning instead of error for warnings.
7208 (end_going_arg): Don't use _() around argument of error.
7209 (do_spec_1): Use inform for message from %n specs. Use warning
7210 instead of error for warnings.
7211 (main): Use inform for comparison messages. Use warning for
7212 message about unused linker input.
7213 (error): Increment error_count. Print "error: ".
7214 * gcc.h (fatal): Change to fatal_error.
7215 (warning): Declare.
7216 * config/darwin-driver.c (darwin_default_min_version): Use warning
7217 instead of fprintf for warnings.
7218 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
7219
7220 2010-05-28 Julian Brown <julian@codesourcery.com>
7221
7222 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
7223 (*thumb2_addsi3_compare0_scratch): New.
7224 * config/arm/constraints.md (Pv): New.
7225 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7226 for ARM mode only.
7227 (*addsi3_compare0_scratch): Likewise.
7228
7229 2010-05-28 Jan Hubicka <jh@suse.cz>
7230
7231 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7232 check.
7233 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7234 only on local statics.
7235
7236 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
7237
7238 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7239
7240 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
7241
7242 PR bootstrap/44314
7243 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7244 (OPTION_GLIBC): Define.
7245
7246 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7247
7248 PR debug/41048
7249 * dwarf2out.c (double_int_type_size_in_bits): New function.
7250 (round_up_to_align): Change first argument and return value to
7251 double_int.
7252 (field_byte_offset): Work internally on double_ints.
7253
7254 PR target/43636
7255 * builtins.c (expand_movstr): Use a temporary pseudo instead
7256 of target even when target is not NULL and not const0_rtx, but
7257 fails movstr predicate.
7258 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7259
7260 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7261
7262 * final.c (rest_of_clean_state): Use %m in errors instead of
7263 strerror (errno).
7264 * gengtype.c (read_input_list, close_output_files): Use xstrerror
7265 instead of strerror.
7266 * toplev.c (process_options): Use %m in errors instead of strerror
7267 (errno).
7268 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7269 (errno).
7270
7271 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
7272
7273 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7274 (ix86_canonical_va_list_type): Make static. Add declaration.
7275 (ix86_enum_va_list): Make static. Reindent.
7276 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7277 (ix86_canonical_va_list_type): Ditto.
7278 (ix86_enum_va_list): Ditto.
7279
7280 2010-05-28 Richard Guenther <rguenther@suse.de>
7281
7282 * lto-wrapper.c (run_gcc): With -save-temps generate a
7283 user-visible ltrans filename. Fixup ltrans unit numbering.
7284
7285 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
7286
7287 * c-common.c (c_common_nodes_and_builtins): Replace use
7288 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7289 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7290 to ix86_enum_va_list.
7291 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7292 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
7293 (TARGET_ENUM_VA_LIST_P): Add hook description.
7294 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
7295 * target.h (gcc_target): Add enum_va_list hook.
7296
7297 PR bootstrap/44299
7298 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
7299 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
7300 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
7301
7302 2010-05-28 Alan Modra <amodra@gmail.com>
7303
7304 PR target/44266
7305 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7306 emit_library_call machinery to set up __tls_get_addr calls.
7307
7308 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7309
7310 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
7311
7312 2010-05-28 Dodji Seketeli <dodji@redhat.com>
7313
7314 Revert fix for PR c++/44188
7315 * c-common.c (is_typedef_decl): Revert the moving of this
7316 definition ...
7317 * tree.c (is_typedef_decl): ... here.
7318 (typdef_variant_p): Revert the moving of this definition
7319 here from gcc/cp/tree.c.
7320 * c-common.h (is_typedef_decl): Revert the moving of this
7321 declaration ...
7322 * tree.h (is_typedef_decl): ... here.
7323 (typedef_variant_p): Revert the moving of this declaration here
7324 from gcc/cp/cp-tree.h
7325 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
7326 (gen_tagged_type_die): Revert the splitting out of ...
7327 (gen_type_die_with_usage): ... this function. Revert the anonymous
7328 tagged type handling.
7329 (gen_typedef_die): Revert emitting DW_TAG_typedef for
7330 typedefs naming anonymous tagged types.
7331
7332 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7333
7334 * config/rs6000/rs6000-modes.def (PSImode): Delete.
7335
7336 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7337
7338 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
7339 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
7340 throughout.
7341 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
7342 "xer" to "ca".
7343 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
7344 XER_REGS to CA_REGS throughout.
7345 * config/rs6000/rs6000.h: Same.
7346 (ADDITIONAL_REGISTER_NAMES): Add "xer".
7347 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
7348 that mode_iterator "P" is the size for arithmetic carries as well.
7349 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
7350
7351 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7352
7353 PR bootstrap/44255
7354 * combine.c (struct rtx_subst_pair): Define unconditionally.
7355 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
7356 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
7357 Call make_compound_operation on pair->to.
7358 (propagate_for_debug): Don't call make_compound_operation here.
7359 Always use simplify_replace_fn_rtx.
7360
7361 2010-05-27 Sterling Augustine <sterling@tensilica.com>
7362
7363 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
7364 * config/xtensa/xtensa.c (override_options): Check
7365 TARGET_FORCE_NO_PIC and set flag_pic.
7366 * config/xtensa/xtensa.opt: Document -mforce-no-pic
7367
7368 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7369
7370 PR bootstrap/44299
7371 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
7372 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
7373
7374 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7375
7376 * diagnostic-core.h: New. Contents moved from diagnostic.h and
7377 toplev.h.
7378 * diagnostic.c: Don't include toplev.h.
7379 (progname): Define. Moved from toplev.c.
7380 (seen_error): New function.
7381 * diagnostic.h: Include diagnostic-core.h.
7382 (diagnostic_t, emit_diagnostic): Don't declare here.
7383 * toplev.c (progname): Move to toplev.c.
7384 (emit_debug_global_declarations, compile_file, finalize,
7385 do_compile, toplev_main): Use seen_error.
7386 * toplev.h: Include diagnostic-core.h.
7387 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
7388 internal_error, warning, warning_at, error, error_n, error_at,
7389 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
7390 verbatim, fnotice, progname): Move to diagnostic-core.h.
7391 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
7392 (expand_builtin_expect): Use seen_error.
7393 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
7394 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
7395 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
7396 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
7397 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
7398 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
7399 errorcount for errors.
7400 * c-opts.c (c_common_finish): Use seen_error.
7401 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7402 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
7403 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
7404 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
7405 (get_coverage_counts): Use seen_error.
7406 * dwarf2out.c (dwarf2out_finish): Use seen_error.
7407 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
7408 gimplify_body): Use seen_error.
7409 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
7410 * ipa-pure-const.c (gate_pure_const): Use seen_error.
7411 * ipa-reference.c (gate_reference): Use seen_error.
7412 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
7413 * lambda-code.c: Include diagnostic-core.h instead of
7414 diagnostic.h.
7415 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7416 * lto-compress.c: Include diagnostic-core.h instead of
7417 diagnostic.h.
7418 * lto-section-in.c: Include diagnostic-core.h instead of
7419 diagnostic.h.
7420 * lto-streamer-out.c: Include diagnostic-core.h instead of
7421 diagnostic.h.
7422 * lto-streamer.c: Include diagnostic-core.h instead of
7423 diagnostic.h.
7424 (gate_lto_out): Use seen_error.
7425 * matrix-reorg.c: Include diagnostic-core.h instead of
7426 diagnostic.h.
7427 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
7428 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
7429 (gate_expand_omp, lower_omp_1): Use seen_error.
7430 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
7431 (rest_of_decl_compilation, rest_of_type_compilation,
7432 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
7433 * tree-cfg.c (label_to_block_fn): Use seen_error.
7434 * tree-inline.c (optimize_inline_calls): Use seen_error.
7435 * tree-mudflap.c (mudflap_finish_file): Use
7436 seen_error.
7437 * tree-optimize.c (gate_all_optimizations,
7438 gate_all_early_local_passes, gate_all_early_optimizations): Use
7439 seen_error.
7440 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
7441 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
7442 (varpool_remove_unreferenced_decls,
7443 varpool_assemble_pending_decls): Use seen_error.
7444 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
7445 (TOPLEV_H, DIAGNOSTIC_H): Update.
7446 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
7447 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
7448 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
7449 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
7450 coverage.o, lambda-code.o): Update dependencies.
7451
7452 2010-05-25 Dodji Seketeli <dodji@redhat.com>
7453
7454 PR c++/44188
7455 * c-common.c (is_typedef_decl): Move this definition ...
7456 * tree.c (is_typedef_decl): ... here.
7457 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7458 * c-common.h (is_typedef_decl): Move this declaration ...
7459 * tree.h (is_typedef_decl): ... here.
7460 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7461 * dwarf2out.c (is_naming_typedef_decl): New function.
7462 (gen_tagged_type_die): Split out of ...
7463 (gen_type_die_with_usage): ... this function. When an anonymous
7464 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7465 is emitted for the typedef.
7466 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7467 anonymous tagged types.
7468
7469 2010-05-27 Jason Merrill <jason@redhat.com>
7470
7471 * print-tree.c (debug_vec_tree): New fn.
7472 (print_vec_tree): New fn.
7473 * tree.h: Declare them.
7474 * gdbinit.in (pvt): New command.
7475
7476 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
7477
7478 * gdbinit.in (pdd): New command.
7479
7480 2010-05-27 Jan Hubicka <jh@suse.cz>
7481
7482 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
7483 (update_caller_keys): Return early if there are no callers;
7484 only update fibheap when decresing the key.
7485 (update_callee_keys): Avoid recursion.
7486 (decide_inlining_of_small_functions): When badness does not match;
7487 re-insert into fibheap.
7488
7489 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
7490
7491 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
7492 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
7493 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
7494 (ALL_HOST_OBJS): Now a union of the above two.
7495 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
7496 all files in ALL_HOST_FRONTEND_OBJS.
7497 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
7498
7499 * c-common.c: Pretend to be a backend file by undefining
7500 IN_GCC_FRONTEND (still need rtl.h here).
7501
7502 2010-05-27 Jan Hubicka <jh@suse.cz>
7503
7504 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
7505 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
7506
7507 2010-05-27 Jan Hubicka <jh@suse.cz>
7508
7509 * sched-ebb.c: Rename struct deps to struct deps_desc.
7510 * ddg.c: Likewise.
7511 * sel-sched-ir.c: Likewise.
7512 * sched-deps.c: Likewise.
7513 * sched-int.h: Likewise.
7514 * sched-rgn.c: Likewise.
7515
7516 2010-05-27 Jon Beniston <jon@beniston.com>
7517
7518 PR 43726
7519 * config/lm32/lm32.h: Remove definition of
7520 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
7521
7522 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
7523
7524 PR lto/44230
7525 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
7526
7527 2010-05-27 Richard Guenther <rguenther@suse.de>
7528
7529 PR tree-optimization/44284
7530 * tree-vect-stmts.c (vectorizable_assignment): Handle
7531 sign-changing conversions as simple copy.
7532
7533 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7534
7535 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
7536 Bionic C library.
7537 (__gthread_active_p): Check for pthread_create if compiling against
7538 Bionic C library.
7539
7540 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7541
7542 Support compilation for Android platform. Reimplement -mandroid.
7543
7544 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
7545 (*android*): Set ANDROID_DEFAULT.
7546 (arm*-*-linux*): Include linux-android.h.
7547 (arm*-*-eabi*): Don't include previous -mandroid implementation.
7548 * config/arm/eabi.h: Remove, move Android-specific parts ...
7549 * config/linux-android.h: ... here. New file.
7550 * config/arm/eabi.opt: Rename to ...
7551 * config/linux-android.opt: ... this.
7552 (mandroid): Allow -mno-android option. Initialize based on
7553 ANDROID_DEFAULT.
7554 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
7555 Move logic to corresponding LINUX_TARGET_* macros.
7556 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
7557 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
7558 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
7559 Android definitions.
7560 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
7561 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
7562 Document.
7563
7564 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7565
7566 Add support for Bionic C library
7567
7568 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
7569 macro.
7570 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
7571 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
7572
7573 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
7574 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
7575 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
7576 to support multiple C libraries. Handle Bionic.
7577 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
7578 (BIONIC_DYNAMIC_LINKER64): Define.
7579 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
7580 Update.
7581 (TARGET_HAS_SINCOS): Enable for Bionic.
7582
7583 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
7584 the last option specified on command line take effect.
7585 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
7586 (mbionic): New.
7587 (mglibc, muclibc): Update.
7588
7589 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
7590 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
7591 DEFAULT_LIBC.
7592
7593 * doc/invoke.texi (-mglibc, -muclibc): Update.
7594 (-mbionic): Document.
7595
7596 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7597
7598 * c-common.h (c_register_addr_space): Add prototype.
7599 (ADDR_SPACE_KEYWORD): Remove.
7600 * c-common.c (c_register_addr_space): New function.
7601 (c_addr_space_name): Reimplement.
7602 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
7603
7604 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
7605 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
7606
7607 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
7608 Remove TARGET_ADDR_SPACE_KEYWORDS.
7609
7610 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7611
7612 * input.c: New file.
7613 * input.h (main_input_filename): Move declaration to toplev.h.
7614 * toplev.c (input_location, line_table): Move to input.c
7615 * toplev.h (main_input_filename): Move declaration from input.h.
7616 * tree.c (expand_location): Move to input.c.
7617 * Makefile.in (OBJS-common): Add input.o.
7618 (input.o): Add dependencies.
7619
7620 2010-05-27 Richard Guenther <rguenther@suse.de>
7621
7622 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
7623 for non-existant files.
7624 (fork_execute): Mark args_name file as deleted.
7625
7626 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7627
7628 PR bootstrp/44287
7629 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
7630 (narrow_signed_type): Likewise.
7631
7632 2010-05-26 Jan Hubicka <jh@suse.cz>
7633
7634 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
7635 edge only when checking is enabled; check using former_clone_of;
7636 check inline clones too.
7637 (cgraph_materialize_clone): Record former_clone_of pointer.
7638 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
7639 combining redirections; dump args_to_skip bitmap
7640 (cgraph_materialize_all_clones): Do no redirection here.
7641 * ipa-inline.c (inline_transform): Do redirection here.
7642 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
7643 cheking only).
7644
7645 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7646
7647 * config/avr/avr-c.c: Do not include regs.h.
7648 Include cpplib.h for cpp_define and tree.h for c-common.h.
7649 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7650 * config/avr/t-avr: Fix dependencies for avr-c.o.
7651
7652 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7653
7654 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7655 string instead of SYMBOL_REF rtx.
7656 * rtl.h (set_stack_check_libfunc): Move prototype from here...
7657 * libfuncs.h: ...to here. Adjust for explow.c change.
7658
7659 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7660
7661 * pretty-print.c: Don't include ggc.h.
7662 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7663 (identifier_to_locale): Use them for allocation.
7664 * pretty-print.h (identifier_to_locale_alloc,
7665 identifier_to_locale_free): Declare.
7666 * toplev.c (alloc_for_identifier_to_locale): New.
7667 (general_init): Set identifier_to_locale_alloc and
7668 identifier_to_locale_free.
7669 * Makefile.in (pretty-print.o): Update dependencies.
7670
7671 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7672
7673 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7674 pointer types if they have different alignment or mode.
7675
7676 2010-05-26 Anatoly Sokolov <aesok@post.ru>
7677
7678 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7679 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7680 * config/sparc/sparc-protos.h (function_value): Remove declaration.
7681 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7682 sparc_function_value_regno_p): New functions.
7683 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7684 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7685 (function_value): Rename to...
7686 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7687 argument to 'outgoing'.
7688 (function_arg_record_value, function_arg_union_value,
7689 function_arg_vector_value): Update comment.
7690
7691 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7692
7693 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7694 (fde_needed_for_eh_p): New predicate.
7695 (output_call_frame_info): Use it throughout to decide whether FDEs
7696 are needed for EH purpose.
7697 (dwarf2out_begin_prologue): Reorder assignments.
7698
7699 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7700
7701 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7702 special case loop->header.
7703 (is_predicated): New.
7704 (if_convertible_loop_p): Call it.
7705
7706 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7707
7708 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
7709 iterator in parameter. Do not generate code during the analysis.
7710 (tree_if_convert_cond_stmt): Removed.
7711 (tree_if_convert_stmt): Removed.
7712 (predicate_bbs): New.
7713 (if_convertible_loop_p): Call predicate_bbs.
7714 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
7715 now contains all the analysis part.
7716
7717 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7718
7719 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
7720 statements in the analysis part.
7721 (tree_if_convert_stmt): Update comment.
7722 (remove_conditions_and_labels): New.
7723 (combine_blocks): Call remove_conditions_and_labels.
7724 (tree_if_conversion): Update comment.
7725
7726 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7727
7728 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
7729 than 2 predecessors or more than 2 successors.
7730
7731 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7732
7733 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
7734 of loops in which the data dependence analysis fails.
7735
7736 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7737
7738 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
7739 CDI_POST_DOMINATORS.
7740 (tree_if_conversion): Same.
7741
7742 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7743
7744 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
7745
7746 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7747
7748 * tree-if-conv.c: Update copyright years. Fix comments.
7749 Fix indentation.
7750
7751 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
7752
7753 * builtin-types.def (BT_INT128): New primitive type.
7754 (BT_UINT128): Likewise.
7755 * c-common.c (c_common_r): Add __int128 keyword.
7756 (c_common_type_for_size): Handle __int128.
7757 (c_common_type_for_mode): Likewise.
7758 (c_common_signed_or_unsigned_type): Likewise.
7759 (c_common_nodes_and_builtins): Add builtin type
7760 if target supports 128-bit integer scalar.
7761 * c-common.h (enum rid): Add RID_INT128.
7762 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
7763 if target supports 128-bit integer scalar.
7764 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
7765 (finish_declspecs): Likewise.
7766 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
7767 (c_token_starts_declspecs): Likewise.
7768 (c_parser_declspecs): Likewise.
7769 (c_parser_attributes): Likewise.
7770 (c_parser_objc_selector): Likewise.
7771 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
7772 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
7773 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
7774 * tree.c (make_or_reuse_type): Likewise.
7775 (make_unsigned_type): Likewise.
7776 (build_common_tree_nodes_2): Likewise.
7777 * tree.h (enum integer_type_kind): Add itk_int128 and
7778 itk_unsigned_int128.
7779 (int128_integer_type_node): New define.
7780 (int128_unsigned_type_node): New define.
7781 * doc/extend.texi: Add documentation about __int128 type.
7782
7783 2010-05-26 Richard Guenther <rguenther@suse.de>
7784
7785 * tree-ssa-sccvn.c (copy_nary): Adjust.
7786 (copy_phis): Rename to ...
7787 (copy_phi): ... this. Adjust.
7788 (copy_references): Rename to ...
7789 (copy_reference): ... this. Adjust.
7790 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
7791 result into the valid table.
7792
7793 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7794
7795 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
7796 insn-config.h, insn-codes.h, recog.h, and optabs.h.
7797
7798 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7799
7800 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
7801
7802 2010-05-26 Richard Guenther <rguenther@suse.de>
7803
7804 * opts.c (common_handle_option): Handle OPT_Ofast.
7805
7806 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7807
7808 * diagnostic.c: Don't include opts.h.
7809 (permissive_error_option): Define.
7810 (diagnostic_initialize): Take n_opts parameter. Allocate memory
7811 for classify_diagnostic. Don't use memset for
7812 classify_diagnostic. Initialize new and recently added fields.
7813 (diagnostic_classify_diagnostic): Use context->n_opts instead of
7814 N_OPTS.
7815 (diagnostic_report_diagnostic): Pass context parameter to
7816 diagnostic_report_warnings_p. Use option_enabled and option_name
7817 hooks from context.
7818 (emit_diagnostic): Use permissive_error_option.
7819 (permerror): Likewise.
7820 * diagnostic.h: Don't include options.h.
7821 (struct diagnostic_context): Add n_opts, opt_permissive,
7822 inhibit_warnings, warn_system_headers, option_enabled and
7823 option_name fields. Change classify_diagnostic to a pointer.
7824 * opts-diagnostic.h: New file.
7825 * opts.c: Include opts-diagnostic.h.
7826 (common_handle_option): Set global_dc fields for -Wfatal-errors,
7827 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
7828 (option_name): New function.
7829 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
7830 (c_common_handle_option): Set global_dc->permissive for
7831 -fpermissive.
7832 * c-common.c (c_cpp_error): Save and restore
7833 global_dc->warn_system_headers, not variable warn_system_headers.
7834 * toplev.c: Include opts-diagnostic.h.
7835 (general_init): Update call to diagnostic_initialize. Set
7836 global_dc->show_column, global_dc->option_enabled and
7837 global_dc->option_name.
7838 (process_options): Don't set global_dc fields here.
7839 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7840 (diagnostic.o, opts.o, toplev.o): Update dependencies.
7841
7842 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7843
7844 * config/picochip/picochip.md (movsi): Split a movsi from a
7845 const after reload.
7846
7847 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7848
7849 * ggc-zone.c: Update copyright year.
7850 (poison_region): Mark memory for Valgrind as undefined before
7851 memset () call and inaccessible afterwards.
7852 (ggc_pch_total_size): Change type of i to int.
7853
7854 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7855
7856 * ggc-common.c (ggc_free_overhead): Allow empty slot.
7857
7858 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7859
7860 * ggc-common.c: Update copyright year.
7861 (ggc_rlimit_bound): Remove prototype. Compile only if
7862 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7863 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7864 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
7865 (ggc_min_heapsize_heuristic): Likewise.
7866
7867 2010-05-26 Richard Guenther <rguenther@suse.de>
7868
7869 PR rtl-optimization/44164
7870 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7871 no-common access-path disambiguation.
7872 (indirect_ref_may_alias_decl_p): Adjust.
7873 (indirect_refs_may_alias_p): Likewise.
7874 (refs_may_alias_p_1): Likewise.
7875
7876 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7877
7878 * c-typeck.c: Do not include expr.h.
7879
7880 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7881
7882 * rtl.h (decl_default_tls_model): Move prototype from here...
7883 * output.h: ...to here.
7884 * c-decl.c: Do not include rtl.h.
7885 * c-pragma.c: Likewise.
7886 * c-parser.c: Likewise.
7887 * c-gimplify.c: Likewise. And also not hard-reg-set.
7888 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
7889 FIXME note for it. Add a FIXME note for expr.h.
7890 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7891 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7892 defined.
7893
7894 2010-05-26 Jakub Jelinek <jakub@redhat.com>
7895
7896 PR target/44199
7897 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7898 or total_size is larger than red zone size for non-V4 ABI, emit a
7899 stack_tie resp. frame_tie insn before stack pointer restore.
7900 * config/rs6000/rs6000.md (frame_tie): New insn.
7901
7902 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
7903
7904 * function.h (struct function): Add can_throw_non_call_exceptions bit.
7905 * lto-streamer-in.c (input_function): Stream it in.
7906 * lto-streamer-out.c (output_function): Stream it out.
7907 * function.c (allocate_struct_function): Set it.
7908 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7909 for flag_non_call_exceptions.
7910 * cfgbuild.c (control_flow_insn_p): Likewise.
7911 (make_edges): Likewise.
7912 * cfgexpand.c (expand_stack_alignment): Likewise.
7913 * combine.c (distribute_notes): Likewise.
7914 * cse.c (cse_extended_basic_block): Likewise.
7915 * except.c (insn_could_throw_p): Likewise.
7916 * gcse.c (simple_mem): Likewise.
7917 * ipa-pure-const.c (check_call): Likewise.
7918 (check_stmt ): Likewise.
7919 * lower-subreg.c (lower-subreg.c): Likewise.
7920 * optabs.c (emit_libcall_block): Likewise.
7921 (prepare_cmp_insn): Likewise.
7922 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7923 * postreload.c (rest_of_handle_postreload): Likewise.
7924 * reload1.c (reload_as_needed): Likewise.
7925 (emit_input_reload_insns): Likewise.
7926 (emit_output_reload_insns): Likewise.
7927 (fixup_abnormal_edges): Likewise.
7928 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7929 * store-motion.c (find_moveable_store): Likewise.
7930 * tree-eh.c (stmt_could_throw_p): Likewise.
7931 (tree_could_throw_p): Likewise.
7932 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7933 * config/arm/arm.c (arm_expand_prologue): Likewise.
7934 (thumb1_expand_prologue): Likewise.
7935 * config/rx/rx.md (cbranchsf4): Likewise.
7936 (cmpsf): Likewise.
7937 * config/s390/s390.c (s390_emit_prologue): Likewise.
7938 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7939 (inline_forbidden_into_p): New predicate.
7940 (expand_call_inline): Use it to forbid inlining.
7941 (tree_can_inline_p): Likewise.
7942
7943 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7944
7945 * config/i386/i386-c.c: Do not include rtl.h.
7946 * config/i386/t-i386: Update dependencies.
7947
7948 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7949
7950 * attribs.c: Do not include rtl.h.
7951 * Makefile.in: Update dependencies.
7952
7953 2010-05-25 Anatoly Sokolov <aesok@post.ru>
7954
7955 * double-int.h (double_int_and): New.
7956 * combine.c (try_combine): Clean up, use double_int_* and
7957 immed_double_int_const functions.
7958
7959 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7960
7961 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7962 stderr to /dev/null instead of grep -q.
7963 * configure: Regenerate.
7964
7965 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7966
7967 * Makefile.in (EXCEPT_H): Fix typo.
7968
7969 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
7970
7971 * ira-build.c (update_conflict_hard_reg_costs): New.
7972 (ira_build): Call update_conflict_hard_reg_costs.
7973
7974 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7975
7976 PR debug/41371
7977 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7978 ENABLE_CHECKING.
7979 (intersect_loc_chains): Walk the s2var's loc_chain together
7980 with s1node chain as long as the locations are equal, don't
7981 call find_loc_in_1pdv in that case.
7982
7983 PR debug/42801
7984 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7985 (copy_bind_expr): ... instead of here.
7986 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7987 if the block hasn't been remapped.
7988 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7989 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7990
7991 2010-05-25 Richard Guenther <rguenther@suse.de>
7992
7993 PR middle-end/44069
7994 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7995 out-of-bounds array accesses.
7996
7997 2010-05-25 Richard Guenther <rguenther@suse.de>
7998
7999 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
8000 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
8001 (run_gcc): Re-organize to make cleanup easier.
8002
8003 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8004
8005 * config/s390/s390.c (optimization_options): Fix and move the
8006 flag_prefetch_loop_arrays override ...
8007 (override_options): ... here.
8008
8009 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8010
8011 * diagnostic.c: Don't include plugin.h.
8012 (diagnostic_report_diagnostic): Don't handle plugins specially
8013 here. Pass context to internal_error callback.
8014 * diagnostic.h (struct diagnostic_context): Add context parameter
8015 to internal_error callback.
8016 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
8017 * plugin.h (struct diagnostic_context): Declare.
8018 (warn_if_plugins, plugins_internal_error_function): Declare.
8019 * toplev.c (general_init): Set global_dc->internal_error.
8020 * Makefile.in (diagnostic.o): Update dependencies.
8021
8022 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
8023
8024 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
8025 * config/rs6000/t-darwin64: New.
8026 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
8027 build crt2.
8028
8029 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
8030
8031 PR 44203
8032 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
8033 match the original (and intended) behaviour before r159557. This
8034 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
8035 in two ways.
8036
8037 2010-05-25 Richard Guenther <rguenther@suse.de>
8038
8039 * doc/invoke.texi: Document -Ofast.
8040 * target.h (struct gcc_target): Add handle_ofast.
8041 * target-def.h (TARGET_HANDLE_OFAST): Add.
8042 (TARGET_INITIALIZER): Adjust.
8043 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
8044 * common.opt (Ofast): Add.
8045
8046 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8047
8048 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
8049 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
8050
8051 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8052
8053 PR target/43610
8054 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
8055 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
8056 false_rtx. Use false_rtx to compute the correct *ptest for reversed
8057 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
8058
8059 2010-05-25 Jakub Jelinek <jakub@redhat.com>
8060
8061 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
8062 DW_OP_minus with negated offset instead of DW_OP_plus.
8063 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
8064
8065 2010-05-25 Wei Guozhi <carrot@google.com>
8066
8067 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
8068 tst instruction and a new alternative.
8069 * config/arm/constraints.md (Pu): New constraint.
8070
8071 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
8072
8073 * function.c (assign_stack_local_1): Initialize variable
8074 to avoid warning when bootstrapping at -O3.
8075
8076 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
8077
8078 * configure.ac (all_lang_makefiles): Remove everything related to it.
8079 * configure: Regenerate.
8080 * Makefile.in: Fix reference to ada Make-lang.in.
8081 Remove support for LANG_MAKEFILES.
8082
8083 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
8084 Sandra Loosemore <sandra@codesourcery.com>
8085
8086 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
8087 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
8088 description. Add arm_neon_fp16_ok.
8089 (Add Options): Add arm_neon and arm_neon_fp16.
8090
8091 2010-05-24 Joseph Myers <joseph@codesourcery.com>
8092
8093 * diagnostic.c: Don't include flags.h.
8094 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
8095 context parameters. Check flags in the context passed as a parameter.
8096 (diagnostic_build_prefix): Add context parameter. Check
8097 show_column flag in context.
8098 (diagnostic_action_after_output): Check fatal_errors flag in context.
8099 (diagnostic_report_current_module): Check show_column flag in context.
8100 (default_diagnostic_starter): Update call to
8101 diagnostic_build_prefix.
8102 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
8103 (emit_diagnostic): Pass context to permissive_error_kind.
8104 (permerror): Pass context to permissive_error_kind.
8105 * diagnostic.h (struct diagnostic_context): Add show_column,
8106 pedantic_errors, permissive and fatal_errors fields.
8107 (diagnostic_build_prefix): Update prototype.
8108 * langhooks.c
8109 * toplev.c (process_options): Set flags in global_dc from
8110 flag_show_column, flag_pedantic_errors, flag_permissive,
8111 flag_fatal_errors.
8112 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
8113 to diagnostic_build_prefix.
8114 * Makefile.in (diagnostic.o): Update dependencies.
8115
8116 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
8117
8118 * config/i386/ia32intrin.h (__crc32q): Define only if
8119 __SSE4_2__ is defined.
8120
8121 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
8122
8123 PR target/44132
8124 PR middle-end/43602
8125 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
8126 DECL_VISIBILITY_SPECIFIED.
8127 (emutls_decl): Set DECL_PRESERVE_P and copy
8128 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
8129 (emutls_finalize_control_var): New callback.
8130 (emutls_finish): Finalize emutls control variables.
8131 * toplev.c (compile_file): Move the call to emutls_finish ()
8132 before varpool_assemble_pending_decls ().
8133
8134 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
8135
8136 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
8137 added to the preprocessor condition.
8138
8139 2010-05-24 Paul Brook <paul@codesourcery.com>
8140
8141 * gengtype-lex.l: Add HARD_REG_SET.
8142 * expr.c (expand_expr_real_1): Record writes to hard registers.
8143 * function.c (rtl_data): Add asm_clobbers.
8144 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
8145 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
8146 Use crtl->asm_clobbers.
8147
8148 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8149
8150 * doc/makefile.texi (Makefile): Mention stages 'profile'
8151 and 'feedback' for profiledbootstrap.
8152
8153 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
8154
8155 PR target/44245
8156 * config/i386/i386.c (def_builtin): Properly check
8157 OPTION_MASK_ISA_64BIT.
8158
8159 2010-05-23 Joseph Myers <joseph@codesourcery.com>
8160
8161 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
8162 typedefs with different but compatible types. Allow duplicate
8163 typedefs with the same type except for pedantic non-C1X, but give
8164 warning for variably modified types.
8165 * c-typeck.c (tagged_types_tu_compatible_p,
8166 function_types_compatible_p, type_lists_compatible_p,
8167 comptypes_internal): Add parameter different_types_p; set
8168 *different_types_p for different but compatible types. All
8169 callers changed.
8170 (comptypes_check_different_types): New.
8171 * c-tree.h (comptypes_check_different_types): Declare.
8172
8173 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8174
8175 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
8176 * jump.c: Include basic-block.h.
8177 * profile.c: Likewise.
8178 * tree-profile.c: Likewise.
8179 * coverage.c: Likewise.
8180 * basic-block.h (optimize_function_for_size_p): Move to function.h.
8181 (optimize_function_for_speed_p): Likewise.
8182 * function.h (optimize_function_for_size_p,
8183 optimize_function_for_speed_p): Moved here from basic-block.h.
8184 * Makefile.in: Update dependencies.
8185
8186 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8187
8188 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
8189 before calling make; allow override through $MAKE.
8190 * doc/invoke.texi (Optimize Options): Document override.
8191
8192 2010-05-23 Anatoly Sokolov <aesok@post.ru>
8193
8194 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
8195 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8196 (rs6000_mode_dependent_address_ptr): Make static.
8197 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8198 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
8199 Remove.
8200
8201 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
8202
8203 PR target/43869
8204 * config/i386/i386.c: Make sure that the correct regparm is passed.
8205
8206 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8207
8208 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
8209 * sbitmap.c: ...to here to internalize sbitmap element access.
8210 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
8211 Explain why basic-block.h is included.
8212 * function.h: Include tm.h for CUMULATIVE_ARGS.
8213 * Makefile.in: Update dependencies.
8214
8215 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8216
8217 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
8218 New core types.
8219 * sbitmap.h (struct sbitmap_def): Do not typedef here.
8220 * sbitmap.c: Include sbitmap.h.
8221 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
8222 hard-reg-set.h. Split everything related to regsets out from here...
8223 * regset.h: ...to here. New file.
8224 * df.h: Include regset.h and sbitmap.h.
8225 * tree-flow.h: Likewise.
8226 * cfgloop.h: Likewise.
8227 * except.h: Do not include sbitmap.h. Include hashtab.h.
8228 * cgraph.h: Include vec.h and function.h.
8229 * reload.h (struct insn_chain): Change types of live_throughout
8230 and dead_or_set from regset_head to bitmap_head.
8231 (compute_use_by_pseudos): Be defined also if regset.h is not included.
8232 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8233 spilled_regs from regset_head to bitmap_head to avoid dependency
8234 in regset.h.
8235 * sel-sched-ir.h: Include regset.h.
8236 * reload.c: Include df.h before reload.h.
8237 * caller-save.c: Likewise.
8238 * reload1.c: Likewise.
8239 * ira.c: Likewise.
8240 (mark_elimination): Update type of r to bitmap, consistent with
8241 DF_LR_IN.
8242 * dominance.c: Include bitmap.h.
8243 * modulo-sched.c: Include df.h.
8244 * cfganal.c: Include bitmap.h and sbitmap.h.
8245 * cfgbuild.c: Include sbitmap.h.
8246 * lcm.c: Include sbitmap.h.
8247 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8248 * domwalk.c: Include sbitmap.h, exclude ggc.h.
8249 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8250 * cselib.c: Include bitmap.h.
8251 * tree-optimize.c: Include regset.h.
8252 * stmt.c: Include bitmap.h.
8253 * Makefile.in: Update dependencies.
8254
8255 2010-05-22 Jan Hubicka <jh@suse.cz>
8256
8257 * cgraph.h (struct varpool_node): Add same_comdat_group.
8258 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8259 pointer.
8260 (output_varpool): Update call of lto_output_varpool_node.
8261 (input_varpool): Read same_comdat_group pointer.
8262 (input_varpool_1): Fixup same_comdat_group pointer.
8263 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8264 group is needed, all are.
8265 * varpool.c (varpool_remove_node): Remove node from same comdat group
8266 linklist too.
8267 (varpool_analyze_pending_decls): Walk same comdat groups.
8268
8269 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8270
8271 * rtl.h (union rtunion_def): Remove rt_bit member.
8272 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8273 * print-rtl (print_rtx): Do not print the member.
8274 * gengtype.c (adjust_field_rtx_def): Do not handle it.
8275 * gengenrtl.c (type_from_format): Likewise.
8276 (accessor_from_format): Likewise.
8277
8278 2010-05-22 Joseph Myers <joseph@codesourcery.com>
8279
8280 * dbgcnt.c: Include toplev.h instead of errors.h.
8281 * ira-emit.c: Don't include errors.h.
8282 * ira.c: Include toplev.h instead of errors.h.
8283 * lto-compress.c: Include toplev.h instead of errors.h.
8284 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8285 ira.o, dbgcnt.o): Update dependencies.
8286
8287 2010-05-22 Richard Guenther <rguenther@suse.de>
8288
8289 * gimple.c (gimple_types_compatible_p): Check type qualifications
8290 before merging pointer to complete and pointer to incomplete type.
8291 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8292 we use our own resolution algorithm. The gold linker plugin
8293 doesn't do the job we want it to do here.
8294
8295 2010-05-22 Anatoly Sokolov <aesok@post.ru>
8296
8297 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8298 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8299 (sparc_mode_dependent_address_p): New function.
8300
8301 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8302
8303 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
8304
8305 * timevar.c: Do not include any core headers.
8306 (timevar_print): De-i18n-ize.
8307 (print_time): Likewise.
8308 * timevar.h (timevar_push, timevar_pop): Make inline functions.
8309
8310 2010-05-21 Joseph Myers <joseph@codesourcery.com>
8311
8312 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
8313 langhooks-def.h.
8314 (diagnostic_initialize): Initialize x_data not last_function.
8315 (diagnostic_report_current_function): Move to tree-diagnostic.c.
8316 (default_diagnostic_starter): Call
8317 diagnostic_report_current_module not
8318 diagnostic_report_current_function.
8319 (diagnostic_report_diagnostic): Initialize x_data not
8320 abstract_origin.
8321 (verbatim): Likewise.
8322 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
8323 x_data.
8324 (struct diagnostic_context): Change last_function to x_data.
8325 (diagnostic_auxiliary_data): Replace with
8326 diagnostic_context_auxiliary_data and
8327 diagnostic_info_auxiliary_data.
8328 (diagnostic_last_function_changed, diagnostic_set_last_function,
8329 diagnostic_report_current_function): Move to tree-diagnostic.h.
8330 (print_declaration, dump_generic_node, print_generic_stmt,
8331 print_generic_stmt_indented, print_generic_expr,
8332 print_generic_decl, debug_c_tree, dump_omp_clauses,
8333 print_call_name, debug_generic_expr, debug_generic_stmt,
8334 debug_tree_chain, default_tree_printer): Move to
8335 tree-pretty-print.h.
8336 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
8337 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
8338 gimple-pretty-print.h.
8339 * pretty-print.c: Don't include tree.h
8340 (pp_base_format): Don't handle %K here.
8341 (pp_base_tree_identifier): Move to tree-pretty-print.c.
8342 * pretty-print.h (text_info): Change abstract_origin to x_data.
8343 (pp_tree_identifier, pp_unsupported_tree,
8344 pp_base_tree_identifier): Move to tree-pretty-print.h.
8345 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
8346 tree-pretty-print.h: New files.
8347 * tree-pretty-print.c: Include tree-pretty-print.h.
8348 (percent_K_format): New. Moved from pretty-print.c.
8349 (pp_base_tree_identifier): Move from pretty-print.c.
8350 * c-objc-common.c: Include tree-pretty-print.h.
8351 (c_tree_printer): Handle %K here.
8352 * langhooks.c: Include tree-diagnostic.h.
8353 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
8354 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
8355 (default_tree_printer): Handle %K using percent_K_format.
8356 (general_init): Use default_tree_diagnostic_starter.
8357 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
8358 (free_lang_data): Use default_tree_diagnostic_starter.
8359 * c-pretty-print.c: Include tree-pretty-print.h.
8360 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8361 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8362 * dwarf2out.c: Include tree-pretty-print.h.
8363 * except.c: Include tree-pretty-print.h.
8364 * gimple-pretty-print.c: Include tree-pretty-print.h and
8365 gimple-pretty-print.h.
8366 * gimplify.c: Include tree-pretty-print.h.
8367 * graphite-poly.c: Include tree-pretty-print.h and
8368 gimple-pretty-print.h.
8369 * ipa-cp.c: Include tree-pretty-print.h.
8370 * ipa-inline.c: Include gimple-pretty-print.h.
8371 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8372 * ipa-pure-const.c: Include gimple-pretty-print.h.
8373 * ipa-struct-reorg.c: Include tree-pretty-print.h and
8374 gimple-pretty-print.h.
8375 * ipa-type-escape.c: Include tree-pretty-print.h.
8376 * print-rtl.c: Include tree-pretty-print.h.
8377 * print-tree.c: Include gimple-pretty-print.h.
8378 * sese.c: Include tree-pretty-print.h.
8379 * tree-affine.c: Include tree-pretty-print.h.
8380 * tree-browser.c: Include tree-pretty-print.h.
8381 * tree-call-cdce.c: Include gimple-pretty-print.h.
8382 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8383 * tree-chrec.c: Include tree-pretty-print.h.
8384 * tree-data-ref.c: Include tree-pretty-print.h and
8385 gimple-pretty-print.h.
8386 * tree-dfa.c: Include tree-pretty-print.h.
8387 * tree-if-conv.c: Include tree-pretty-print.h and
8388 gimple-pretty-print.h.
8389 * tree-inline.c: Include tree-pretty-print.h.
8390 * tree-into-ssa.c: Include tree-pretty-print.h and
8391 gimple-pretty-print.h.
8392 * tree-nrv.c: Include tree-pretty-print.h.
8393 * tree-object-size.c: Include tree-pretty-print.h and
8394 gimple-pretty-print.h.
8395 * tree-outof-ssa.c: Include tree-pretty-print.h and
8396 gimple-pretty-print.h.
8397 * tree-parloops.c: Include tree-pretty-print.h and
8398 gimple-pretty-print.h.
8399 * tree-predcom.c: Include tree-pretty-print.h and
8400 gimple-pretty-print.h.
8401 * tree-scalar-evolution.c: Include tree-pretty-print.h and
8402 gimple-pretty-print.h.
8403 * tree-sra.c: Include tree-pretty-print.h.
8404 * tree-ssa-address.c: Include tree-pretty-print.h.
8405 * tree-ssa-alias.c: Include tree-pretty-print.h.
8406 * tree-ssa-ccp.c: Include tree-pretty-print.h and
8407 gimple-pretty-print.h.
8408 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
8409 * tree-ssa-copy.c: Include tree-pretty-print.h and
8410 gimple-pretty-print.h.
8411 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
8412 * tree-ssa-dce.c: Include tree-pretty-print.h and
8413 gimple-pretty-print.h.
8414 * tree-ssa-dom.c: Include tree-pretty-print.h and
8415 gimple-pretty-print.h.
8416 * tree-ssa-dse.c: Include gimple-pretty-print.h.
8417 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
8418 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
8419 * tree-ssa-live.c: Include tree-pretty-print.h and
8420 gimple-pretty-print.h.
8421 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
8422 gimple-pretty-print.h.
8423 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
8424 gimple-pretty-print.h.
8425 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
8426 gimple-pretty-print.h.
8427 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
8428 gimple-pretty-print.h.
8429 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
8430 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
8431 * tree-ssa-operands.c: Include tree-pretty-print.h and
8432 gimple-pretty-print.h.
8433 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
8434 gimple-pretty-print.h.
8435 * tree-ssa-pre.c: Include tree-pretty-print.h and
8436 gimple-pretty-print.h.
8437 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
8438 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
8439 gimple-pretty-print.h.
8440 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
8441 gimple-pretty-print.h.
8442 * tree-ssa-sink.c: Include gimple-pretty-print.h.
8443 * tree-ssa-ter.c: Include tree-pretty-print.h and
8444 gimple-pretty-print.h.
8445 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
8446 * tree-ssa.c: Include tree-pretty-print.h and
8447 gimple-pretty-print.h.
8448 * tree-stdarg.c: Include gimple-pretty-print.h.
8449 * tree-switch-conversion.c: Include gimple-pretty-print.h.
8450 * tree-tailcall.c: Include tree-pretty-print.h and
8451 gimple-pretty-print.h.
8452 * tree-vect-data-refs.c: Include tree-pretty-print.h and
8453 gimple-pretty-print.h.
8454 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
8455 gimple-pretty-print.h.
8456 * tree-vect-loop.c: Include tree-pretty-print.h and
8457 gimple-pretty-print.h.
8458 * tree-vect-patterns.c: Include gimple-pretty-print.h.
8459 * tree-vect-slp.c: Include tree-pretty-print.h and
8460 gimple-pretty-print.h.
8461 * tree-vect-stmts.c: Include tree-pretty-print.h and
8462 gimple-pretty-print.h.
8463 * tree-vectorizer.c: Include tree-pretty-print.h.
8464 * tree-vrp.c: Include tree-pretty-print.h and
8465 gimple-pretty-print.h.
8466 * value-prof.c: Include tree-pretty-print.h and
8467 gimple-pretty-print.h.
8468 * var-tracking.c: Include tree-pretty-print.h.
8469 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
8470 (tree-diagnostic.o): New dependencies.
8471 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
8472 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
8473 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
8474 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
8475 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
8476 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
8477 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
8478 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
8479 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
8480 tree-ssa-address.o, tree-ssa-loop-niter.o,
8481 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
8482 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
8483 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
8484 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
8485 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
8486 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
8487 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
8488 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
8489 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
8490 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
8491 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
8492 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
8493 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
8494 tree-switch-conversion.o, var-tracking.o, value-prof.o,
8495 cfgexpand.o, pretty-print.o): Update dependencies.
8496
8497 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
8498
8499 * tree-ssa-structalias.c: Remove tm_p.h from include.
8500
8501 2010-05-21 Jeff Law <law@redhat.com>
8502
8503 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
8504
8505 2010-05-21 Jason Merrill <jason@redhat.com>
8506
8507 * tree-eh.c (cleanup_is_dead_in): New.
8508 (lower_try_finally): Don't generate a dead cleanup region.
8509 (lower_cleanup): Likewise.
8510
8511 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8512
8513 PR debug/44223
8514 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
8515 unchain each use from the cyclic next_regno_use chain first.
8516
8517 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8518
8519 * real: Do not include gmp.h, mpfr.h, and mpc.h.
8520 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
8521 (real_value_negate, real_value_abs): New prototypes.
8522 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
8523 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
8524 new include file for interface between MPFR and REAL_VALUE_TYPE.
8525 * real.c: Include realmpfr.h.
8526 (real_arithmetic2): Remove legacy function.
8527 (real_value_negate): New.
8528 (real_value_abs): New.
8529 (mfpr_from_real, real_from_mpfr): Move from here...
8530 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
8531 * builtins.c: Include realmpfr.h.
8532 * fold-const.c: Include realmpfr.h.
8533 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
8534 (fold_negate_const): Likewise.
8535 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
8536 * toplev.c: Include realmpfr.h.
8537 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
8538 and real_value_negate.
8539 * fixed-value.c (check_real_for_fixed_mode): Likewise.
8540 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
8541 (vfp3_const_double_index): Likewise.
8542 (arm_print_operand): Likewise.
8543 * Makefile.in: Update dependencies.
8544
8545 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8546
8547 * config/s390/s390.c (override_options): Increase the default
8548 of max-completely-peel-times.
8549
8550 2010-05-21 Julian Brown <julian@codesourcery.com>
8551 Mark Mitchell <mark@codesourcery.com>
8552
8553 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
8554 sibling calls for Thumb-1.
8555 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
8556 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
8557 Thumb-2.
8558 (*call_insn, *call_value_insn): Don't use for Thumb-2.
8559 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
8560 for Thumb-2.
8561 (return): New expander.
8562 (*arm_return): New name for ARM return insn.
8563 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
8564
8565 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
8566
8567 * config.gcc (sparc64-*-rtems*): New target.
8568
8569 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8570
8571 * tree.c (build_function_decl_skip_args): Fix grammar.
8572 (build_function_type_list_1): Fix typos, adjust formatting.
8573
8574 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8575
8576 * tree.h: Include real.h and fixed-value.h as basic datatypes.
8577 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
8578 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
8579 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
8580 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
8581 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
8582 tree-pretty-print.c, tree-loop-distribution.c,
8583 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
8584 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
8585 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
8586 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
8587 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
8588 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
8589 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
8590 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
8591 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
8592 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
8593 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
8594 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
8595 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
8596 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
8597 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
8598 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
8599 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
8600 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
8601 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
8602 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
8603 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
8604 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
8605 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
8606 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
8607 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
8608 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
8609 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
8610 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
8611 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
8612 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
8613 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
8614 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
8615 config/score/score7.c, config/score/score.c, config/arm/arm.c,
8616 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
8617 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
8618 config/bfin/bfin.c: Clean up redundant includes.
8619 * Makefile.in: Update accordingly.
8620
8621 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8622
8623 PR middle-end/44204
8624 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
8625 statement has no arguments.
8626
8627 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
8628
8629 PR/44139
8630 * varasm.c (emutls_decl): Merge attributes to new decl.
8631
8632 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
8633
8634 PR middle-end/44101
8635 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
8636 around the uniquized constructor if its type requires a conversion.
8637
8638 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8639
8640 PR debug/44205
8641 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
8642 at -O0 goto_locus of any of the incoming edges differs from
8643 goto_locus of outgoing edge, or gimple_location of any of the
8644 labels differs.
8645
8646 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
8647
8648 * ira.c (ira_non_ordered_class_hard_regs): Define.
8649 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8650 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8651 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8652 cost of unaligned hard regs when allocating multi-reg pseudos.
8653
8654 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
8655
8656 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8657 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8658 for TARGET_NO_FLOAT.
8659 * config/mips/mips.c (mips_file_start): Expand conditional expression
8660 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8661 (mips_override_options): Move -mno-float override -msoft-float and
8662 -mhard-float.
8663 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8664 Condition(TARGET_SUPPORTS_NO_FLOAT).
8665 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8666 __mips_no_float here.
8667 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8668 (TARGET_SUPPORTS_NO_FLOAT): Define.
8669 * config/mips/sdemtk.opt: Delete.
8670
8671 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
8672
8673 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8674
8675 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
8676
8677 PR target/43733
8678 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8679 * configure: Regenerate.
8680 * config.in: Regenerate.
8681 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8682 instead of sahf only for 64bit targets.
8683
8684 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8685
8686 PR debug/44178
8687 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8688 setup_ref_regs for DEBUG_INSNs.
8689
8690 2010-05-20 Jan Hubicka <jh@suse.cz>
8691
8692 PR middle-end/44197
8693 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8694
8695 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
8696
8697 PR bootstrap/43870
8698 * df-scan.c (df_ref_compare): Stabilize sort.
8699
8700 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8701
8702 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8703 argument. Don't use DW_OP_piece if offset is non-zero,
8704 put offset into second DW_OP_bit_piece argument.
8705 (dw_sra_loc_expr): Adjust callers. For memory expressions
8706 compute offset.
8707
8708 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
8709
8710 PR target/44202
8711 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
8712 settings for 16-bit-constant "addo" alternative.
8713
8714 2010-05-19 James E. Wilson <wilson@codesourcery.com>
8715
8716 * config/mips/mips-dsp.md (add<DSPV:mode>3,
8717 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
8718
8719 PR target/43764
8720 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
8721 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
8722 Use it.
8723
8724 2010-05-19 Joseph Myers <joseph@codesourcery.com>
8725
8726 * diagnostic.c (FLOAT, FFS): Don't undefine.
8727 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
8728 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
8729 include ordering.
8730
8731 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
8732
8733 * combine.c (propagate_for_debug): Call make_compound_operation
8734 on the source value.
8735 (try_combine): When implementing a split chosen by find_split_point,
8736 either copy i2src or set it to null. Assert that i2src is not null
8737 before substituting into CALL_INSN_FUNCTION_USAGE.
8738
8739 2010-05-19 Anatoly Sokolov <aesok@post.ru>
8740
8741 * double-int.h (double_int_ior): New function.
8742 * tree.h (build_int_cst_wide_type): Remove.
8743 * tree.c (build_int_cst_wide_type): Remove.
8744 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
8745 of build_int_cst_wide_type.
8746 * stor-layout.c (set_sizetype): (Ditto.).
8747 * dojump.c (do_jump): Use build_int_cstu instead of
8748 build_int_cst_wide_type.
8749
8750 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8751
8752 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
8753 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
8754 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
8755 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
8756 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
8757 propagate the 'data' argument to copy_tree_r.
8758 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
8759 Propagate 'data' argument to walk_tree.
8760 (copy_if_shared): New function.
8761 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
8762 (unmark_visited): New function.
8763 (unshare_body): Call copy_if_shared instead of doing it manually.
8764 (unvisit_body): Call unmark_visited instead of doing it manually.
8765
8766 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
8767
8768 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
8769 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
8770 * hooks.c: Likewise.
8771 * target-def.h (TARGET_FOLD_BUILTIN): Define to
8772 hook_tree_tree_int_treep_bool_null.
8773 * target.h (struct gcc_target): Update signature of fold_builtin
8774 field.
8775 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
8776 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
8777 instead of the call expression.
8778 (fold_builtin_call_array): Pass n and argarray directly.
8779 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
8780 consing a list.
8781 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
8782 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
8783 `i' and use it in place of `arity'.
8784 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
8785 Dereference `args' directly.
8786 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
8787
8788 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8789
8790 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8791 3dnow, sse3, sse2.
8792 (Directives): Document optional dg-require-effective-target
8793 selector.
8794
8795 2010-05-19 Richard Guenther <rguenther@suse.de>
8796
8797 PR lto/44196
8798 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
8799
8800 2010-05-19 Richard Guenther <rguenther@suse.de>
8801
8802 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
8803 * common.opt (fwhopr=): New.
8804 * opts.c (common_handle_option): Handle OPT_fwhopr.
8805 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
8806 * collect2.c (main): Match -fwhopr*.
8807 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
8808 Execute ltrans stage in parallel when jobs is bigger than 1.
8809
8810 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8811
8812 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8813 pentiumpro on Solaris 8/x86 with Sun as.
8814 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
8815 hidden alias bug.
8816 (gcc_cv_as_ix86_quad): Check for .quad directive.
8817 * configure: Regenerate.
8818 * config.in: Regenerate.
8819 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
8820
8821 2010-05-19 Martin Jambor <mjambor@suse.cz>
8822
8823 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
8824 also for indirect edges. Actual printing moved...
8825 (ipa_print_node_jump_functions_for_edge): ...here.
8826 (ipa_compute_jump_functions): Renamed to
8827 ipa_compute_jump_functions_for_edge and made static.
8828 (ipa_compute_jump_functions): New function.
8829 (make_edge_direct_to_target): Check if the number of arguments on
8830 the newly direct edge is the same as the number of parametrs of
8831 the callee.
8832 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
8833 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
8834 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8835 analysis functions unconditionally, call the new
8836 ipa_analyze_params_uses on the node instead of every edge.
8837
8838 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
8839
8840 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8841 to tree.
8842 (dump_mem_ref): Adopt debug code to handle a tree as step. This
8843 also checks for a constant int vs. non-constant but
8844 loop-invariant steps.
8845 (find_or_create_group): Change the sort algorithm to only consider
8846 steps that are constant ints.
8847 (idx_analyze_ref): Adopt code to handle a tree instead of a
8848 HOST_WIDE_INT for step.
8849 (gather_memory_references_ref): Handle tree instead of int and be
8850 prepared to see a NULL_TREE.
8851 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8852 prefetches if the step cannot be calculated at compile time.
8853 (issue_prefetch_ref): Issue prefetches for non-constant but
8854 loop-invariant steps.
8855
8856 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8857
8858 Revert:
8859 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8860
8861 * tree.h (build_call_list): Remove.
8862 * tree.c (build_call_list): Remove.
8863
8864 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8865
8866 * tree.h (build_call_list): Remove.
8867 * tree.c (build_call_list): Remove.
8868
8869 2010-05-18 Jan Hubicka <jh@suse.cz>
8870
8871 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8872
8873 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
8874
8875 PR rtl-optimization/43332
8876 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8877
8878 2010-05-18 Anatoly Sokolov <aesok@post.ru>
8879
8880 * tree.h (build_int_cstu): Implement as static inline.
8881 * tree.c (build_int_cstu): Remove function.
8882 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8883 sign extended.
8884
8885 2010-05-18 Richard Guenther <rguenther@suse.de>
8886
8887 PR lto/44143
8888 * lto-wrapper.c (verbose): New variable. Initialize from -v.
8889 (debug): Initialize from -save-temps.
8890 (collect_execute): Print command-line when verbose.
8891 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
8892 for ltrans invocation. Produce -dumpbase flag again.
8893 (process_args): Remove.
8894 (main): Simplify.
8895 * collect2.c (maybe_run_lto_and_relink): Only pass object
8896 files to lto-wrapper.
8897 * gcc.c (LINK_COMMAND_SPEC): Likewise.
8898
8899 2010-05-18 Jan Hubicka <jh@suse.cz>
8900
8901 * opts.c (decode_options): Do not disable whopr at ipa_cp.
8902 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8903
8904 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8905
8906 PR lto/44184
8907 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8908 in a GIMPLE_ASM.
8909 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8910 in a GIMPLE_ASM.
8911
8912 2010-05-18 Jakub Jelinek <jakub@redhat.com>
8913
8914 PR debug/41371
8915 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8916 rtx_equal_p inline.
8917
8918 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8919
8920 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8921 lto-macho as lto_binary_reader.
8922
8923 * darwin.c (darwin_asm_named_section): Do not add assembler comment
8924 after .section directive; just print it before the directive instead.
8925
8926 2010-05-17 Jan Hubicka <jh@suse.cz>
8927
8928 * cgraph.c (cgraph_create_virtual_clone): Only check
8929 versionable_function_p when not in wpa and checking is enabled.
8930 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8931 there are no more functions to materialize.
8932
8933 2010-05-17 Jan Hubicka <jh@suse.cz>
8934
8935 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8936 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8937 New functions.
8938 (output_cgraph): Call output_cgraph_opt_summary.
8939 (input_cgrpah): Call input_cgraph_opt_summary.
8940 (output_cgraph_opt_summary_p, output_node_opt_summary,
8941 input_node_opt_summary, input_cgraph_opt_section): New functions.
8942 * lto-section-in.c (lto_section_name): Add cgraphopt.
8943 * tree-inline.c (tree_function_versioning): Handle parm_num.
8944 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8945 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8946
8947 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8948
8949 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8950 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8951 the insn to prefetch ratio heuristic to loops with known trip count.
8952
8953 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8954
8955 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8956 (schedule_prefetches): Do not generate a prefetch if the unroll factor
8957 is far from what is required by the prefetch.
8958
8959 2010-05-17 Jan Hubicka <jh@suse.cz>
8960
8961 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8962 (ipcp_estimate_growth): Likewise.
8963 (ipcp_const_param_count): Likewise.
8964 (ipcp_insert_stage): Likewise.
8965 * ipa-prop.c (visit_load_for_mod_analysis): New function.
8966 (visit_store_addr_for_mod_analysis): Set used flag.
8967 (ipa_detect_param_modifications): Set used flag for SSE params;
8968 update use of walk_stmt_load_store_addr_ops.
8969 (ipa_print_node_params): Print used flag.
8970 (ipa_write_node_info): Stream used flag.
8971 (ipa_read_node_info): Likewise.
8972 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8973 (ipa_is_param_used): New function.
8974 (lto_ipa_fixup_call_notes): Remove unused declaration.
8975
8976 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8977
8978 PR target/44074
8979 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8980 * configure: Regenerate.
8981 * config.in: Regenerate.
8982 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8983 !HAVE_AS_IX86_REP_LOCK_PREFIX.
8984 Don't emit whitespace.
8985 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8986 (*rep_movsi): Likewise.
8987 (*rep_movsi_rex64): Likewise.
8988 (*rep_movqi): Likewise.
8989 (*rep_movqi_rex64): Likewise.
8990 (*rep_stosdi_rex64): Likewise.
8991 (*rep_stossi): Likewise.
8992 (*rep_stossi_rex64): Likewise.
8993 (*rep_stosqi): Likewise.
8994 (*rep_stosqi_rex64): Likewise.
8995 (*cmpstrnqi_nz_1): Use {%;} after repz.
8996 (*cmpstrnqi_nz_rex_1): Likewise.
8997 (*cmpstrnqi_1): Likewise.
8998 (*cmpstrnqi_rex_1): Likewise.
8999 (*strlenqi_1): Use {%;} after repnz.
9000 (*strlenqi_rex_1): Likewise.
9001 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
9002 (*sync_compare_and_swap<mode>): Likewise.
9003 (sync_double_compare_and_swap<mode>): Likewise.
9004 (*sync_double_compare_and_swapdi_pic): Likewise.
9005 (sync_old_add<mode>): Likewise.
9006 (sync_add<mode>): Likewise.
9007 (sync_sub<mode>): Likewise.
9008 (sync_<code><mode>): Likewise.
9009
9010 2010-05-17 Martin Jambor <mjambor@suse.cz>
9011
9012 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
9013 otr_token and polymorphic.
9014 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
9015 (cgraph_clone_edge): Copy the above fields.
9016 * tree.c (get_binfo_at_offset): New function.
9017 * tree.h (get_binfo_at_offset): Declare.
9018 * ipa-prop.h (enum jump_func_type): Added known_type jump function
9019 type, reordered items, updated comments.
9020 (union jump_func_value): Added base_type field, reordered fields.
9021 (enum ipa_lattice_type): Moved down in the file.
9022 (struct ipa_param_descriptor): New field polymorphic.
9023 (ipa_is_param_polymorphic): New function.
9024 * ipa-prop.c: Include gimple.h and gimple-fold.h.
9025 (ipa_print_node_jump_functions): Print known type jump functions.
9026 (compute_complex_pass_through): Renamed to...
9027 (compute_complex_assign_jump_func): this.
9028 (compute_complex_ancestor_jump_func): New function.
9029 (compute_known_type_jump_func): Likewise.
9030 (compute_scalar_jump_functions): Create known type and complex ancestor
9031 jump functions.
9032 (ipa_note_param_call): New parameter polymorphic, set the corresponding
9033 flag in the call note accordingly.
9034 (ipa_analyze_call_uses): Renamed to...
9035 (ipa_analyze_indirect_call_uses): this. New parameter target, define
9036 variable var only in the block where it is used.
9037 (ipa_analyze_virtual_call_uses): New function.
9038 (ipa_analyze_call_uses): Likewise.
9039 (combine_known_type_and_ancestor_jfs): Likewise.
9040 (update_jump_functions_after_inlining): Implemented handling of a
9041 number of new jump function types combination.
9042 (print_edge_addition_message): Removed.
9043 (make_edge_direct_to_target): New function.
9044 (try_make_edge_direct_simple_call): Likewise.
9045 (try_make_edge_direct_virtual_call): Likewise.
9046 (update_call_notes_after_inlining): Renamed to...
9047 (update_indirect_edges_after_inlining): this. Moved edge creation for
9048 indirect calls to try_make_edge_direct_simple_call, also calls
9049 try_make_edge_direct_virtual_call for virtual calls.
9050 (ipa_print_node_params): Changed the header message.
9051 (ipa_write_jump_function): Stream also known type jump functions.
9052 (ipa_read_jump_function): Likewise.
9053 (ipa_write_indirect_edge_info): Stream new fields in
9054 cgraph_indirect_call_info.
9055 (ipa_read_indirect_edge_info): Likewise.
9056 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
9057 GIMPLE_FOLD_H.
9058
9059 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9060
9061 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
9062
9063 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
9064
9065 * tree.h (CALL_EXPR_ARGS): Delete.
9066 (call_expr_arglist): Delete.
9067 * tree.c (call_expr_arglist): Delete.
9068 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
9069 targetm.fold_builtin.
9070 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
9071 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
9072 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
9073 arglist parameter. Use CALL_EXPR_ARG.
9074 (picochip_expand_builtin_3op): Likewise.
9075 (picochip_expand_builtin_2opvoid): Likewise.
9076 (picochip_expand_array_get): Likewise.
9077 (picochip_expand_array_put): Likewise.
9078 (picochip_expand_array_testport): Likewise.
9079 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
9080 rather than arglist.
9081 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
9082 CALL_EXPR_ARGS.
9083 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
9084 than TREE_VALUE and TREE_CHAIN.
9085 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
9086 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
9087 the arglist.
9088
9089 2010-05-17 Jakub Jelinek <jakub@redhat.com>
9090
9091 PR bootstrap/42347
9092 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
9093 to have no fallthru edge.
9094
9095 PR middle-end/44102
9096 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
9097 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
9098 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
9099 add BARRIER after previous bb if needed.
9100
9101 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
9102
9103 * tree.c (build_function_type_list_1): Remove bogus assert condition.
9104
9105 2010-05-17 Alan Modra <amodra@gmail.com>
9106
9107 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
9108 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
9109 with copy_reg rtx param.
9110 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
9111 Correct cases where code for ABI_V4 did not initialise the reg
9112 used to access frame. Also leave frame_reg_rtx as sp for large
9113 frames that save no regs.
9114
9115 2010-05-17 Martin Jambor <mjambor@suse.cz>
9116
9117 PR middle-end/44133
9118 * tree-sra.c (create_access_replacement): New parameter rename, mark
9119 the replaement for renaming only when it is true.
9120 (get_access_replacement): Pass true in the rename parameter of
9121 create_access_replacement.
9122 (get_unrenamed_access_replacement): New function.
9123 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
9124 replacement declaration from it.
9125
9126 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
9127
9128 * function.c (try_fit_stack_local, add_frame_space): New static
9129 functions.
9130 (assign_stack_local_1): Use them. Look for opportunities to use
9131 space previously wasted on alignment.
9132 * function.h (struct frame_space): New.
9133 (struct rtl_data): Add FRAME_SPACE_LIST member.
9134 * reload1.c (something_was_spilled): New static variable.
9135 (alter_reg): Set it.
9136 (reload): Test it in addition to testing if the frame size changed.
9137
9138 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
9139
9140 * config/s390/s390.c: Define sane prefetch settings and activate
9141 flag_prefetch_loop_arrays on -O3.
9142 * config/s390/s390.h: Declare that read can use write prefetch.
9143
9144 2010-05-17 Jakub Jelinek <jakub@redhat.com>
9145
9146 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
9147 build.
9148
9149 2010-05-16 Jan Hubicka <jh@suse.cz>
9150
9151 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
9152 function body; do not check stdarg field of struct function.
9153
9154 2010-05-16 Jan Hubicka <jh@suse.cz>
9155
9156 * cgraph.c (dump_cgraph_node): Dump versionable flag.
9157 * cgraph.h (cgraph_local_info): Add versionable flag.
9158 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
9159 (ipcp_versionable_function_p): Use it.
9160 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
9161 versionable flag.
9162
9163 2010-05-16 Jan Hubicka <jh@suse.cz>
9164
9165 * cgraph.c (cgraph_clone_node): Take decl argument and insert
9166 clone into hash when it is different from orig.
9167 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
9168 * cgraph.h (cgraph_clone_node): Update prototype.
9169 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
9170 (lto_cgraph_encoder_delete): Delete body map.
9171 (lto_cgraph_encoder_size): Move to header.
9172 (lto_cgraph_encoder_encode_body_p,
9173 lto_set_cgraph_encoder_encode_body): New.
9174 (lto_output_node): Do not take written_decls argument; output clone_of
9175 pointer.
9176 (add_node_to): Add include_body_argument; call
9177 lto_set_cgraph_encoder_encode_body on master of the clone.
9178 (add_references): Update use of add_node_to.
9179 (compute_ltrans_boundary): Likewise.
9180 (output_cgraph): Do not create written_decls bitmap.
9181 (input_node): Take nodes argument; stream in clone_of correctly.
9182 (input_cgraph_1): Update use of input_node.
9183 * lto-streamer-out.c (lto_output): Use encoder info to decide
9184 what bodies to output.
9185 * ipa-inline.c (cgraph_clone_inlined_nodes,
9186 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
9187 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
9188 (lto_cgraph_encoder_size): Define here.
9189 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
9190 Declare.
9191
9192 2010-05-16 Richard Guenther <rguenther@suse.de>
9193
9194 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
9195 -fipa-type-escape.
9196 * ipa-type-escape.c (gate_type_escape_vars): Run when
9197 -fipa-struct-reorg runs.
9198 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
9199 * common.opt (fipa-type-escape): Remove.
9200
9201 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9202
9203 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
9204 (decode_options): Likewise.
9205 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
9206
9207 2010-05-16 Jan Hubicka <jh@suse.cz>
9208
9209 * ipa.c (function_and_variable_visibility): Also bring local all
9210 aliases.
9211
9212 2010-05-16 Richard Guenther <rguenther@suse.de>
9213
9214 * alias.c (nonoverlapping_memrefs_p): Remove use of
9215 IPA type-escape information.
9216
9217 2010-05-16 Joseph Myers <joseph@codesourcery.com>
9218
9219 * c-common.c (c_common_reswords): Add _Static_assert for C.
9220 * c-parser.c (c_token_starts_declaration,
9221 c_parser_next_token_starts_declaration,
9222 c_parser_static_assert_declaration_no_semi,
9223 c_parser_static_assert_declaration): New.
9224 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
9225 Handle static assertions if static_assert_ok.
9226 (c_parser_external_declaration, c_parser_declaration_or_fndef,
9227 c_parser_compound_statement_nostart, c_parser_label,
9228 c_parser_for_statement, c_parser_objc_methodprotolist,
9229 c_parser_omp_for_loop): All callers of
9230 c_parser_declaration_or_fndef changed.
9231 (c_parser_struct_declaration): Handle static assertions.
9232 (c_parser_compound_statement_nostart): Use
9233 c_parser_next_token_starts_declaration and
9234 c_token_starts_declaration to detect start of declarations.
9235 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9236 Likewise.
9237
9238 2010-05-16 Anatoly Sokolov <aesok@post.ru>
9239
9240 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9241 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9242 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9243 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9244 (mmix_function_outgoing_value): Rename to...
9245 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9246 (mmix_function_value_regno_p): Make static.
9247 (mmix_libcall_value): New function.
9248 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9249 mmix_function_value_regno_p): Remove declaration.
9250
9251 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9252
9253 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9254 BUILT_IN_ALLOCA if stack checking is enabled.
9255
9256 2010-05-16 Richard Guenther <rguenther@suse.de>
9257
9258 * var-tracking.c (vars_copy_1): Inline ...
9259 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
9260 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
9261 (variable_merge_over_cur): Adjust. Merge asserts.
9262 (variable_merge_over_src): Likewise.
9263 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9264 (variable_post_merge_new_vals): Merge asserts.
9265 (variable_post_merge_perm_vals): Likewise.
9266 (find_mem_expr_in_1pdv): Likewise.
9267 (dataflow_set_different_value): Remove.
9268 (onepart_variable_different_p): Merge asserts.
9269 (variable_different_p): Likewise.
9270 (dataflow_set_different_1): Inline ...
9271 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
9272 (emit_notes_for_differences_1): Merge asserts.
9273
9274 2010-05-16 Richard Guenther <rguenther@suse.de>
9275
9276 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9277 * optabs.c (libfunc_decl_hash): Likewise.
9278 * varasm.c (emutls_decl): Likewise.
9279
9280 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
9281
9282 * c-decl.c: Don't include gimple.h.
9283 (merge_decls): Do not copy gimple_body.
9284
9285 2010-05-15 Jason Merrill <jason@redhat.com>
9286
9287 * c.opt: Add -fnothrow-opt.
9288
9289 2010-05-15 Jan Hubicka <jh@suse.cz>
9290
9291 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9292 analyzed.
9293 * passes.c (ipa_write_summaries): Write all analyzed nodes.
9294
9295 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
9296
9297 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
9298 * Makefile.in: Add it.
9299 Fix all other Makefile dependencies for changes below.
9300 * tree.h: Include it instead of defining VEC primitives here.
9301 * gimple.h: Likewise.
9302 * rtl.h: Likewise.
9303 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
9304 * except.h: Include vecir.h, break dependence on tree.h.
9305
9306 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
9307 Move from here...
9308 * tree-iterator.c: ...to here.
9309 * tree-iterator.h: Fix file introduction comment. Add extern markers.
9310
9311 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
9312 tm_p.h.
9313 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
9314 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
9315 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
9316 tree-mudflap.h, and target.h.
9317 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
9318 predict.h, tree-inline.h, gimple.h, and langhooks.h.
9319 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
9320 Add FIXME for why gimple.h is still included (should be unnecessary
9321 since GCC 4.5 gimplification unit-at-a-time).
9322 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
9323 * c-pragma.c: Add FIXME for why function.h needs to be included just
9324 for cfun, at front-end level.
9325 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
9326 Do not include ggc.h, but include vecprim.h for VEC(char).
9327 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
9328 Explain why target.h is included.
9329 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
9330 Explain why gimple.h is included.
9331 * c-ppoutput.c: Do not include tm.h.
9332 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
9333 * c-parses.c: Explain why rtl.h is included, and that this (and only
9334 this) is also why tm.h must be included.
9335 Do not include except.h.
9336 * c-lang.c: Do not include ggc.h.
9337
9338 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
9339
9340 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
9341
9342 2010-05-15 Joseph Myers <joseph@codesourcery.com>
9343
9344 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
9345 unions by default if those structs and unions have no tags. Do
9346 not condition anonymous struct and unions handling on flag_iso.
9347 Allow anonymous structs and unions for C1X.
9348 (finish_struct): Do not diagnose lack of named fields when
9349 anonymous structs and unions present for C1X. Accept flexible
9350 array members in structure with anonymous structs or unions but no
9351 directly named fields.
9352 * doc/extend.texi (Unnamed Fields): Update.
9353
9354 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
9355
9356 * gimple.h (compare_field_offset): Rename into...
9357 (gimple_compare_field_offset): ...this.
9358 * gimple.c (compare_field_offset): Rename into...
9359 (gimple_compare_field_offset): ...this. Compare the full access if
9360 the offset is self-referential.
9361 (gimple_types_compatible_p): Adjust for above renaming.
9362 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
9363 DECL_NONADDRESSABLE_P flag of fields before merging them.
9364
9365 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
9366
9367 * tree.h (ctor_to_list): Delete.
9368 * tree.c (ctor_to_list): Delete.
9369
9370 2010-05-15 Jan Hubicka <jh@suse.cz>
9371
9372 * ipa-reference.c: Include toplev.h
9373 (is_proper_for_analysis): Only add to all_module_statics
9374 if it is allocated.
9375 (write_node_summary_p, stream_out_bitmap,
9376 ipa_reference_write_optimization_summary,
9377 ipa_reference_read_optimization_summary): New.
9378 (struct ipa_opt_pass_d pass_ipa_reference): Add
9379 optimization summary streaming.
9380 * lto-cgraph.c (referenced_from_this_partition_p,
9381 reachable_from_this_partition_p): New functions.
9382 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9383 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
9384 * opts.c (decode_options): Enable ipa_reference.
9385 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
9386 * lto-streamer.h (referenced_from_this_partition_p,
9387 reachable_from_this_partition_p): Declare.
9388
9389 2010-05-15 Richard Guenther <rguenther@suse.de>
9390
9391 PR tree-optimization/44038
9392 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
9393 taking the address of a V_C_E of a constant.
9394
9395 2010-05-14 Jan Hubicka <jh@suse.cz>
9396
9397 * tree.h (memory_identifier_string): Remove.
9398 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
9399 (ipa_reference_global_vars_info_d): Remove statics_not_read and
9400 statics_not_written.
9401 (ipa_reference_optimization_summary_d): New structure.
9402 (ipa_reference_optimization_summary_t): New type and vector.
9403 (ipa_reference_vars_info_d): Embedd structures instead of using
9404 pointers.
9405 (reference_vars_to_consider): Remove out of GGC space.
9406 (module_statics_escape): Remove.
9407 (global_info_obstack): Rename to ...
9408 (optimization_summary_obstack): ... this one.
9409 (initialization_status_t): Remove.
9410 (memory_identifier_string): Remove.
9411 (get_reference_vars_info): Fix indenting.
9412 (set_reference_vars_info): Likewise.
9413 (get_reference_optimization_summary): New.
9414 (set_reference_optimization_summary): New.
9415 (get_global_reference_vars_info): Remove.
9416 (ipa_reference_get_read_global): Remove.
9417 (ipa_reference_get_written_global): Remove.
9418 (ipa_reference_get_not_read_global): Update.
9419 (ipa_reference_get_not_written_global): Update.
9420 (is_proper_for_analysis): Outlaw addressable.
9421 (propagate_bits): Update for new datastructures.
9422 (analyze_variable): Remove.
9423 (init_function_info): Update for new datastructures.
9424 (clean_function_local_data): Remove.
9425 (clean_function): Remove.
9426 (copy_global_bitmap): Use optimizations_summary_obstack.
9427 (duplicate_node_data): Duplicate optimization summary only.
9428 (remove_node_data): Remove optimization summary only.
9429 (generate_summary): Do not analyze variables; do not compute
9430 module_statics_escape; do not prune solutions by it.
9431 (read_write_all_from_decl): Fix typos in comments.
9432 (propagate): Doscover readonly and nonaddressable first;
9433 update for new datastructures; share global bitmaps.
9434 * ipa-reference.h (ipa_reference_get_read_global,
9435 ipa_reference_get_written_global): Remove.
9436 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
9437 * Makefile.in: Remove ipa-refereference from GT files.
9438
9439 2010-05-14 Jakub Jelinek <jakub@redhat.com>
9440
9441 PR debug/44112
9442 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
9443 for all SYMBOL_REF_DECLs.
9444
9445 2010-05-14 Jan Hubicka <jh@suse.cz>
9446
9447 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
9448 (varpool_all_refs_explicit_p): New inline function.
9449 * ipa-reference.c: Update comment.
9450 (module_statics_written): Remove.
9451 (get_static_decl): Remove.
9452 (ipa_init): Do not initialize module_statics_written.
9453 (analyze_function): Likewise.
9454 (generate_summary): Likewise; do not compute module_statics_readonly
9455 and do not update variable flags.
9456 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
9457 * ipa.c: Inlucde flags.h
9458 (cgraph_local_node_p): New.
9459 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
9460 promote functions to local.
9461 (ipa_discover_readonly_nonaddressable_vars): New function.
9462 (function_and_variable_visibility): Use cgraph_local_node_p.
9463 * varpool.c (varpool_finalize_decl): Set force_output for
9464 DECL_PRESERVE_P vars.
9465
9466 2010-05-14 Jan Hubicka <jh@suse.cz>
9467
9468 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
9469
9470 2010-05-14 Richard Guenther <rguenther@suse.de>
9471
9472 PR tree-optimization/44119
9473 * tree-ssa-pre.c (eliminate): Properly mark replacement of
9474 a PHI node necessary.
9475
9476 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
9477
9478 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
9479
9480 2010-05-14 Jason Merrill <jason@redhat.com>
9481
9482 PR c++/44127
9483 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
9484 (gimple_call_set_nothrow): New.
9485 * gimple.c (gimple_build_call_from_tree): Call it.
9486 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
9487
9488 PR c++/44127
9489 * gimplify.c (gimplify_seq_add_stmt): No longer static.
9490 * gimple.h: Declare it.
9491 * gimple.c (gimple_build_eh_filter): No ops.
9492
9493 2010-05-14 Jan Hubicka <jh@suse.cz>
9494
9495 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
9496 nodes already in queue.
9497 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
9498 re-enqueueing node.
9499
9500 2010-05-14 Jakub Jelinek <jakub@redhat.com>
9501
9502 PR debug/44136
9503 * cfgexpand.c (expand_debug_expr): If non-memory op0
9504 has BLKmode, return NULL.
9505
9506 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
9507
9508 * config.gcc: Add support for --with-cpu option for bdver1.
9509 * config/i386/i386.h (TARGET_BDVER1): New macro.
9510 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
9511 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9512 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
9513 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9514 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
9515 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
9516 (processor_type): Add PROCESSOR_BDVER1.
9517 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
9518 processor_type in config/i386/i386.h.
9519 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
9520 movaps <reg, reg> instead of movapd <reg, reg> when replacing
9521 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
9522 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
9523 to emit packed xor instead of packed double/packed integer
9524 xor for SSE and AVX when moving a zero value.
9525 * config/i386/sse.md: Add check for
9526 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
9527 movapd/movdqa for SSE and AVX.
9528 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
9529 single logical operations i.e and, or and xor instead of packed double
9530 logical operations for SSE and AVX.
9531 * config/i386/i386-c.c (ix86_target_macros_internal):
9532 Add PROCESSOR_BDVER1.
9533 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
9534 (has_fma4, has_xop): New.
9535 * config/i386/i386.c (bdver1_cost): New variable.
9536 (m_BDVER1): New macro.
9537 (m_AMD_MULTIPLE): Add m_BDVER1.
9538 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
9539 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
9540 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
9541 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
9542 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
9543 x86_tune_sse_partial_reg_dependency,
9544 x86_tune_sse_unaligned_load_optimal,
9545 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
9546 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
9547 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
9548 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
9549 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
9550 Enable/disable for bdver1.
9551 (processor_target_table): Add bdver1_cost.
9552 (cpu_names): Add bdver1.
9553 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
9554 processor_alias_table.
9555 (ix86_expand_vector_move_misalign): Change.
9556 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
9557 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
9558 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
9559 of movupd/movdqu for SSE and AVX.
9560 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
9561 (ix86_tune_adjust_cost): Add code for bdver1.
9562 (standard_sse_constant_opcode): Add check for
9563 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
9564 of packed double xor for SSE and AVX.
9565
9566 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
9567
9568 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
9569 result to unsigned.
9570
9571 2010-05-14 Tristan Gingold <gingold@adacore.com>
9572
9573 * toplev.c (default_debug_hooks): Remove this variable.
9574 (process_options): Remove assignments to default_debug_hooks.
9575
9576 2010-05-14 Martin Jambor <mjambor@suse.cz>
9577
9578 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
9579 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
9580 * langhooks.h (struct lang_hooks_for_decls): Removed field
9581 fold_obj_type_ref.
9582 * tree.c (free_lang_data): Remove assignment to
9583 lang_hooks.fold_obj_type_ref.
9584 * tree.def (OBJ_TYPE_REF): Update comment.
9585
9586 2010-05-14 Richard Guenther <rguenther@suse.de>
9587
9588 PR tree-optimization/44124
9589 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
9590
9591 2010-05-14 Alan Modra <amodra@gmail.com>
9592
9593 PR target/44075
9594 * config/rs6000/rs6000.c (struct machine_function): Reorder
9595 fields for better packing. Add lr_save_state.
9596 (rs6000_ra_ever_killed): Return lr_save_state if set.
9597 (rs6000_emit_eh_reg_restore): Set lr_save_state.
9598
9599 2010-05-13 Jan Hubicka <jh@suse.cz>
9600
9601 * varpool.c (decide_is_variable_needed): Drop code checking
9602 TREE_SYMBOL_REFERENCED.
9603
9604 2010-05-13 Jan Hubicka <jh@suse.cz>
9605
9606 * final.c (output_addr_const): Do not call mark_decl_referenced.
9607 * cgraphunit.c (process_function_and_variable_attributes): Use
9608 mark_needed_node dirrectly.
9609 (assemble_thunk): Do not call mark_decl_referenced.
9610
9611 2010-05-13 Anatoly Sokolov <aesok@post.ru>
9612
9613 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
9614
9615 2010-05-13 Jeff Law <law@redhat.com>
9616
9617 * ira-conflicts.c (print_allocno_conflicts): New function broken out
9618 from...
9619 (print_conflicts): Call print_allocno_conflicts.
9620
9621 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9622
9623 PR debug/44104
9624 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
9625 if it is NULL.
9626
9627 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
9628
9629 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
9630 t-mingw-w64 or t-mingw-w32 for multilib configuration.
9631 * config/i386/t-mingw-w32: New.
9632 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
9633
9634 2010-05-13 Martin Jambor <mjambor@suse.cz>
9635
9636 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
9637 gimple-fold.c).
9638 * gimple-fold.c (get_base_binfo_for_type): New function.
9639 (gimple_get_relevant_ref_binfo): Likewise.
9640 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9641 (gimple_fold_obj_type_ref): Likewise.
9642 (fold_gimple_call): Simplify condition for folding virtual calls
9643 and call gimple_fold_obj_type_ref.
9644 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
9645 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9646
9647 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
9648
9649 * config/rs6000/rs6000-protos.h
9650 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9651 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9652 (rs6000_debug_mode_dependent_address)
9653 (rs6000_mode_dependent_address_ptr): Likewise.
9654
9655 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9656
9657 PR debug/43983
9658 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9659 by SRA.
9660 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9661 * tree-sra.c (create_access_replacement): Call unshare_expr before
9662 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9663 * dwarf2out.c: Include tree-flow.h.
9664 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9665 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9666 Handle DW_OP_bit_piece.
9667 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9668 construct_piece_list, adjust_piece_list): New functions.
9669 (add_var_loc_to_decl): Handle SRA optimized variables.
9670 Adjust for var_loc_note to loc field renaming.
9671 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9672 in VAR_LOCATION note.
9673 (new_loc_descr_op_bit_piece): New function.
9674 (dw_sra_loc_expr): New function.
9675 (dw_loc_list): Use it. Don't handle the last range after the
9676 loop, handle it inside of the loop. Adjust for var_loc_note
9677 to loc field renaming.
9678 (add_location_or_const_value_attribute): Only special case
9679 single entry loc lists if loc is NOTE_P. Adjust for
9680 var_loc_note to loc field renaming.
9681 (dwarf2out_var_location): Don't set newloc->var_loc_note
9682 and newloc->next here.
9683
9684 2010-05-12 Jan Hubicka <jh@suse.cz>
9685
9686 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9687 flag.
9688 * cgraph.h (cgraph_only_called_directly_p,
9689 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9690 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9691 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9692 (assemble
9693 * ipa.c (cgraph_remove_unreachable_nodes): Use
9694 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9695 flags.
9696 * tree-inline.c (copy_bb): Check address_taken flag.
9697 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9698 externally_visible flag.
9699
9700 2010-05-12 Jason Merrill <jason@redhat.com>
9701
9702 PR bootstrap/44048
9703 PR target/44099
9704 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9705 * sdbout.c (plain_type_1): Likewise.
9706 * dwarf2out.c (is_base_type): Likewise.
9707 (gen_type_die_with_usage): Likewise. Generate
9708 DW_TAG_unspecified_type for any LANG_TYPE.
9709
9710 2010-05-12 Jan Hubicka <jh@suse.cz>
9711
9712 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
9713 indrect edges too.
9714 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
9715 (cgraph_clone_edge): Update.
9716 (cgraph_node_remove_callees): Remove indirect calls too.
9717 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
9718 (cgraph_create_indirect_edge): Update prototype.
9719 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
9720 is_proper_for_analysis.
9721 (add_new_function, visited_nodes, function_insertion_hook_holder,
9722 get_local_reference_vars_info, mark_address_taken, mark_address,
9723 mark_load, mark_store, check_asm_memory_clobber, check_call,
9724 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
9725 (ipa_init): Do not initialize visited_nodes;
9726 function_insertion_hook_holder.
9727 (analyze_variable): Rewrite.
9728 (analyze_function): Rewrite.
9729 (copy_local_bitmap): Remove.
9730 (duplicate_node_dat): Do not duplicate local info.
9731 (generate_summary): Simplify to only walk cgraph.
9732 (write_node_summary_p, ipa_reference_write_summary,
9733 ipa_reference_read_summary): Remove.
9734 (propagate): Do not remove function insertion;
9735 generate summary.
9736 (pass_ipa_reference): NULLify summary handling fields.
9737 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
9738 (input_edge): Input ecf_flags.
9739 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
9740 (update_indirect_edges_after_inlining): Ignore edges with unknown
9741 param.
9742
9743 2010-05-12 Sriraman Tallam <tmsriram@google.com>
9744
9745 * implicit-zee.c: New file.
9746 * tree-pass.h (pass_implicit_zee): Declare.
9747 * passes.c (init_optimization_passes): Add zee pass.
9748 * common.opt (fzee): New flag.
9749 * timevar.def (TV_ZEE): Define.
9750 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
9751 and beyond.
9752 * Makefile.in (implicit-zee.o): Add new build file.
9753
9754 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9755 Nathan Froyd <froydnj@codesourcery.com>
9756
9757 * c-common.c (sync_resolve_params): Remove write-only variable.
9758
9759 2010-05-12 Anatoly Sokolov <aesok@post.ru>
9760
9761 * target.h (struct gcc_target): Add mode_dependent_address_p field.
9762 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9763 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
9764 * targhooks.c (default_mode_dependent_address_p): New function.
9765 * targhooks.h (default_mode_dependent_address_p): Declare function.
9766 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9767 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
9768 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
9769 target hook. Change return type to bool.
9770 * recog.h (mode_dependent_address_p): Change return type to bool.
9771
9772 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9773 Nathan Froyd <froydnj@codesourcery.com>
9774
9775 * tree-mudflap.c (build_function_type_0, build_function_type_1,
9776 build_function_type_2, build_function_type_3): Remove.
9777 (mudflap_init): Use build_function_type_list.
9778
9779 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9780 Nathan Froyd <froydnj@codesourcery.com>
9781
9782 * coverage.c (build_fn_info_value): Call build_constructor instead of
9783 build_constructor_from_list.
9784 (build_ctr_info_value): Likewise.
9785 (build_gcov_info): Likewise.
9786
9787 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
9788
9789 * tree.c (build_constructor): Compute TREE_CONSTANT for the
9790 resultant constructor.
9791 (build_constructor_single): Don't set TREE_CONSTANT.
9792 (build_constructor_from_list): Don't compute TREE_CONSTANT.
9793
9794 2010-05-12 Jan Hubicka <jh@suse.cz>
9795
9796 * cgraph.h (struct varpool_node): Add aux.
9797 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
9798 * varpool.c (varpool_remove_node): Do not remove initializer.
9799 (varpool_reset_queue): Export.
9800 (varpool_finalize_decl): Volatile vars are forced to be output.
9801 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
9802 replaced decl.
9803 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
9804 process_references, varpool_can_remove_if_no_refs): New functions.
9805 (cgraph_remove_unreachable_nodes): Handle variables too.
9806
9807 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
9808
9809 PR target/44088
9810 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
9811
9812 2010-05-12 Jakub Jelinek <jakub@redhat.com>
9813
9814 PR middle-end/44085
9815 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
9816 change value of ORT_TASK.
9817 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
9818 (omp_notice_threadprivate_variable): New function.
9819 (omp_notice_variable): Call it for threadprivate variables.
9820 If enclosing ctx is a task, print enclosing task rather than
9821 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
9822 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
9823 if task has untied clause.
9824
9825 PR debug/42278
9826 * dwarf2out.c (base_type_die): Don't add name attribute here.
9827 (modified_type_die): Instead of sizetype use
9828 its underlying original type. If a DW_TAG_base_type doesn't
9829 have name added, add __unknown__.
9830 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
9831 always call force_type_die instead.
9832
9833 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
9834
9835 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
9836 for __stack_chk_guard.
9837
9838 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9839
9840 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9841 don't call start_source_file debug hook here...
9842 (finish_options): ... but here, after outputting predefined and
9843 command line defines and undefs.
9844
9845 PR middle-end/44071
9846 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9847 no fallthru edge.
9848 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9849 optimizing away empty bb with no successors, move over its
9850 footer chain to fallthru predecessor.
9851 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9852 (rtl_split_edge): For asm goto call patch_jump_insn even if
9853 splitting fallthru edge.
9854
9855 PR c++/44059
9856 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9857 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9858 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9859 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9860 on DW.ref.* decls.
9861
9862 PR c++/44062
9863 * c-parser.c (c_parser_expression): Mark LHS of a comma
9864 expression as read if it is a decl, handled component or
9865 COMPOUND_EXPR with that on the RHS.
9866 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9867 if it is a decl or handled component.
9868
9869 2010-05-11 Jan Hubicka <jh@suse.cz>
9870
9871 * lto-symtab.c (lto_symtab_free): New function.
9872 * lto-streamer.h (lto_symtab_free): Declare.
9873
9874 2010-05-11 Jan Hubicka <jh@suse.cz>
9875
9876 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9877 that if function is needed it is reachable.
9878 (lto_output_node): See if it the function is reachable or referenced.
9879 (output_cgraph): Update call of lto_output_node.
9880 * lto-streamer.h (reachable_from_other_partition_p): Declare.
9881
9882 2010-05-11 Jan Hubicka <jh@suse.cz>
9883
9884 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9885 Mark as used.
9886
9887 2010-05-11 Jan Hubicka <jh@suse.cz>
9888
9889 PR tree-optimize/44063
9890 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9891 queue.
9892 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9893 limits.
9894 (estimate_function_body_sizes): Compute sizes even when disregarding.
9895
9896 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
9897
9898 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9899
9900 2010-05-11 Jan Hubicka <jh@suse.cz>
9901
9902 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9903 into every boundary.
9904
9905 2010-05-11 Jan Hubicka <jh@suse.cz>
9906
9907 * matrix-reorg.c (matrix_reorg): Rebuild edges.
9908
9909 2010-05-11 Jan Hubicka <jh@suse.cz>
9910
9911 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9912 lto_streamer_cache_delete): Put nodes into heap.
9913 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9914 heap.
9915
9916 2010-05-11 Jan Hubicka <jh@suse.cz>
9917
9918 * cgraphbuild.c (cgraph_rebuild_references): New.
9919 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9920 out extern inlines.
9921 * cgraph.h (cgraph_rebuild_references): Declare.
9922 * tree-inline.c (tree_function_versioning): Use it.
9923 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9924
9925 2010-05-11 Jan Hubicka <jh@suse.cz>
9926
9927 * cgraph.c: Include ipa-utils.h
9928 (cgraph_create_virtual_clone): Update references.
9929 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9930
9931 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9932
9933 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9934 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9935 cache size.
9936
9937 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9938
9939 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9940
9941 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9942
9943 * gcc.c (execute): For -### don't quote arguments that
9944 contain just alphanumerics and _/-. characters.
9945 * doc/invoke.texi: Document that change for -###.
9946
9947 PR debug/44023
9948 * df-problems.c (struct dead_debug): Add to_rescan field.
9949 (dead_debug_init): Clear to_rescan field.
9950 (dead_debug_finish): Rescan all debug insns in to_rescan
9951 bitmap and free the bitmap.
9952 (dead_debug_insert_before): Instead of rescanning debug insns
9953 immediately queue their rescanning until dead_debug_finish.
9954 (df_note_bb_compute): After dead_debug_add do continue instead
9955 of break.
9956
9957 2010-05-10 Jakub Jelinek <jakub@redhat.com>
9958
9959 PR debug/44028
9960 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9961 clear also INSN_REG_USE_LIST.
9962
9963 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9964
9965 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9966
9967 2010-05-10 Jan Hubicka <jh@suse.cz>
9968
9969 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9970 commited change.
9971
9972 2010-05-10 Jan Hubicka <jh@suse.cz>
9973
9974 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9975 Allocate encoders.
9976 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9977 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9978 (lto_streamer_cache_create): Init alloc pool.
9979 (lto_streamer_cache_delete): Free alloc pool.
9980 * lto-streamer.h: Include alloc pool.
9981 (lto_streamer_cache_d): Use alloc pool.
9982 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9983
9984 2010-05-10 Jan Hubicka <jh@suse.cz>
9985
9986 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9987 * cgraphbuild.c: Include except.h
9988 (record_type_list, record_eh_tables): New function.
9989 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9990
9991 2010-05-10 Jan Hubicka <jh@suse.cz>
9992
9993 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9994 __frame_dummy_init_array_entry, force_to_data): Attribute as used
9995 rather than unused.
9996
9997 2010-05-10 Michael Matz <matz@suse.de>
9998
9999 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
10000 (can_reassociate_p): Use FLOAT_TYPE_P.
10001 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
10002 (vect_force_simple_reduction): ... this.
10003 * tree-parloops.c (gather_scalar_reductions): Use
10004 vect_force_simple_reduction.
10005 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
10006 vect_is_simple_reduction, add modify argument, if true rewrite
10007 "a-b" into "a+(-b)".
10008 (vect_is_simple_reduction, vect_force_simple_reduction): New
10009 functions.
10010 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
10011
10012 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
10013 Vladimir Makarov <vmakarov@redhat.com>
10014
10015 PR rtl-optimization/44012
10016 * ira-build.c (remove_unnecessary_allocnos): Nullify
10017 regno_allocno_map of the removed allocno.
10018
10019 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10020
10021 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
10022 to /dev/null.
10023 * configure: Regenerate.
10024
10025 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10026
10027 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
10028 unused.
10029 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
10030 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
10031 support in Sun ld.
10032 * configure: Regenerate.
10033
10034 2010-05-10 Richard Guenther <rguenther@suse.de>
10035
10036 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
10037 marked if the entry identifier is marked.
10038
10039 2010-05-10 Richard Guenther <rguenther@suse.de>
10040
10041 * c-common.c (struct c_common_attributes): Add fnspec attribute.
10042 (handle_fnspec_attribute): New function.
10043 * gimple.h (gimple_call_return_flags): Declare.
10044 (gimple_call_arg_flags): Likewise.
10045 * gimple.c (gimple_call_arg_flags): New function.
10046 (gimple_call_return_flags): Likewise.
10047 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
10048 New argument flags.
10049 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
10050 return value flags.
10051 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
10052 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
10053 main work to ...
10054 (make_heapvar_for): ... this new function.
10055 (handle_rhs_call): Handle fnspec attribute argument specifiers.
10056 (handle_lhs_call): Likewise.
10057 (find_func_aliases): Adjust.
10058
10059 2010-05-10 Richard Guenther <rguenther@suse.de>
10060
10061 PR tree-optimization/44050
10062 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
10063
10064 2010-05-10 Wei Guozhi <carrot@google.com>
10065
10066 PR target/42879
10067 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
10068
10069 2010-05-09 Joseph Myers <joseph@codesourcery.com>
10070
10071 PR c/10676
10072 * c-typeck.c (lookup_field): Take a type directly. Update
10073 recursive calls.
10074 (build_component_ref): Update call to lookup_field.
10075 (set_init_label): Use lookup_field to find initialized field.
10076 Handle returned list of fields like a sequence of designators.
10077
10078 2010-05-09 Richard Guenther <rguenther@suse.de>
10079
10080 PR middle-end/44024
10081 * fold-const.c (tree_single_nonzero_warnv_p): Properly
10082 handle &FUNCTION_DECL.
10083
10084 2010-05-09 Joseph Myers <joseph@codesourcery.com>
10085
10086 PR c/4784
10087 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
10088 structures and unions recursively.
10089 (detect_field_duplicates): Move duplicate detection with a hash to
10090 detect_field_duplicates_hash. Always use a hash if anonymous
10091 structures or unions are present.
10092 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
10093 give errors.
10094
10095 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
10096
10097 PR target/44046
10098 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
10099 detect Atom, Core 2 and Core i7.
10100
10101 2010-05-09 Richard Guenther <rguenther@suse.de>
10102
10103 * gcc.c (store_arg): Handle temporary file deletion for
10104 joined arguments.
10105
10106 2010-05-09 Richard Guenther <rguenther@suse.de>
10107
10108 PR middle-end/44043
10109 * ipa-inline.c (estimate_function_body_sizes): Return after
10110 disregarding inline limits.
10111
10112 2010-05-09 Richard Guenther <rguenther@suse.de>
10113
10114 * gcc.c (store_arg): Revert last change.
10115
10116 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
10117
10118 PR middle-end/28685
10119 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
10120 (optimize_ops_list): Call it.
10121
10122 2010-05-08 Richard Guenther <rguenther@suse.de>
10123
10124 PR tree-optimization/44030
10125 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
10126 NECESSARY flag if we propagate from a inserted expression.
10127
10128 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
10129
10130 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
10131 domain types as equal if they are both PLACEHOLDER_EXPRs.
10132
10133 2010-05-08 Richard Guenther <rguenther@suse.de>
10134
10135 * lto-wrapper.c (run_gcc): Remove linker output from
10136 command line for LTRANS invocation.
10137
10138 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10139
10140 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10141 lto-macho as lto_binary_reader.
10142 * target.h (struct gcc_target): New hooks lto_start and lto_end.
10143 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
10144 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
10145 in lto_start and lto_end calls.
10146 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
10147 magic numbers.
10148 (scan_prog_file): Update is_elf_or_coff call.
10149 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
10150
10151 * collect2.c (main): Fix enum comparison.
10152
10153 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
10154 Add prototypes.
10155 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
10156 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
10157 and TARGET_ASM_LTO_END.
10158 * darwin.c: Include obstack.h and lto-streamer.h.
10159 (lto_section_names_offset, lto_section_names_obstack,
10160 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
10161 global variables.
10162 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
10163 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
10164 to a temporary file.
10165 (darwin_asm_lto_end): New function. Restore asm_out_file.
10166 (darwin_asm_named_section): For LTO sections, replace the name with
10167 the offset of the section name in a string table, and build this
10168 table.
10169 (darwin_file_start): Initialize global vars for LTO support.
10170 (darwin_file_end): If output to asm_out_file was redirected, append it
10171 to the proper asm_out_file here. Add the section names section.
10172
10173 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10174
10175 * c-pragma.c (pending_weak_d, pending_weak): New.
10176 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
10177 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
10178 handle_pragma_weak): Update the uses of pending_weaks.
10179
10180 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10181
10182 PR documentation/44016
10183 * doc/standards.texi (Standards): Link to unversioned
10184 cxx0x_status.html page.
10185
10186 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
10187
10188 PR target/43708
10189 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
10190 in addition to TREE_USED, to avoid "set but unused" warnings.
10191
10192 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10193
10194 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
10195 (is_loop_prefetching_profitable): Do not insert prefetches
10196 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
10197 times the prefetch ahead distance.
10198
10199 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10200
10201 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
10202 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
10203 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
10204 the unroll_factor.
10205
10206 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10207
10208 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
10209 a diagnostic info when the insn-to-mem ratio is too small.
10210
10211 2010-05-07 Richard Guenther <rguenther@suse.de>
10212
10213 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
10214 the linker plugin.
10215 (store_arg): Queue temp_filename for deletion instead of
10216 the whole argument.
10217
10218 2010-05-07 Richard Guenther <rguenther@suse.de>
10219
10220 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
10221 (run_gcc): Handle LTRANS phase invocation.
10222 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
10223
10224 2010-05-07 Jakub Jelinek <jakub@redhat.com>
10225
10226 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10227 this is also meaningful on PARM_DECLs and RESULT_DECLs.
10228
10229 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10230
10231 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10232
10233 2010-05-07 Richard Guenther <rguenther@suse.de>
10234
10235 PR tree-optimization/44020
10236 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10237 code when PRE is not yet initialized.
10238
10239 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10240
10241 * config/mips/dbxmdebug.h: Remove.
10242 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10243
10244 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
10245
10246 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10247 with null pointer and also warn about ordered comparison of zero with
10248 pointer if -Wextra.
10249
10250 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10251
10252 * graphite-blocking.c
10253 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10254 * graphite-clast-to-gimple.c
10255 (clast_to_gcc_expression): Same.
10256 (precision_for_value): Same.
10257 (precision_for_interval): Same.
10258 (gcc_type_for_interval): Same.
10259 (graphite_create_new_guard): Same.
10260 (compute_bounds_for_level): Same.
10261 (graphite_create_new_loop_guard): Same.
10262 * graphite-interchange.c
10263 (build_linearized_memory_access): Same.
10264 (pdr_stride_in_loop): Same.
10265 (memory_strides_in_loop_1): Same.
10266 (memory_strides_in_loop): Same.
10267 (extend_scattering): Same.
10268 (psct_scattering_dim_for_loop_depth): Same.
10269 (pbb_number_of_iterations): Same.
10270 * graphite-poly.h
10271 (debug_iteration_domains): Same.
10272 * graphite-ppl.c
10273 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10274 (ppl_set_inhomogeneous_gmp): Same.
10275 (ppl_strip_loop): Same.
10276 (ppl_lexico_compare_linear_expressions): Same.
10277 (ppl_read_polyhedron_matrix): Same.
10278 (ppl_max_for_le_pointset): Same.
10279 * graphite-ppl.h
10280 (ppl_read_polyhedron_matrix): Same.
10281 (tree_int_to_gmp): Same.
10282 (gmp_cst_to_tree): Same.
10283 (ppl_set_inhomogeneous): Same.
10284 (ppl_set_inhomogeneous_tree): Same.
10285 (ppl_set_coef): Same.
10286 (ppl_set_coef_tree): Same.
10287 * graphite-sese-to-poly.c
10288 (build_pbb_scattering_polyhedrons): Same.
10289 (build_scop_scattering): Same.
10290 (scan_tree_for_params_right_scev): Same.
10291 (scan_tree_for_params): Same.
10292 (find_params_in_bb): Same.
10293 (find_scop_parameters): Same.
10294 (add_upper_bounds_from_estimated_nit): Same.
10295 (build_loop_iteration_domains): Same.
10296 (add_condition_to_domain): Same.
10297 (pdr_add_memory_accesses): Same.
10298
10299 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10300
10301 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
10302 CLooG's value_* macros to their respective mpz_* counterparts.
10303 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
10304 (graphite_create_new_loop_guard): Same.
10305 * graphite-interchange.c (build_linearized_memory_access): Same.
10306 (pdr_stride_in_loop): Same.
10307 (memory_strides_in_loop_1): Same.
10308 (1st_interchange_profitable_p): Same.
10309 * graphite-poly.c (extend_scattering): Same.
10310 (psct_scattering_dim_for_loop_depth): Same.
10311 (pbb_number_of_iterations): Same.
10312 (pbb_number_of_iterations_at_time): Same.
10313 * graphite-poly.h (new_1st_loop): Same.
10314 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
10315 (oppose_constraint): Same.
10316 (insert_constraint_into_matrix): Same.
10317 (ppl_set_inhomogeneous_gmp): Same.
10318 (ppl_set_coef_gmp): Same.
10319 (ppl_strip_loop): Same.
10320 (ppl_lexico_compare_linear_expressions): Same.
10321 (ppl_max_for_le_pointset): Same.
10322 (ppl_min_for_le_pointset): Same.
10323 (ppl_build_realtion): Same.
10324 * graphite-ppl.h (gmp_cst_to_tree): Same.
10325 (ppl_set_inhomogeneous): Same.
10326 (ppl_set_inhomogeneous_tree): Same.
10327 (ppl_set_coef): Same.
10328 (ppl_set_coef_tree): Same.
10329 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10330 (build_scop_scattering): Same.
10331 (add_value_to_dim): Same.
10332 (scan_tree_for_params_right_scev): Same.
10333 (scan_tree_for_params_int): Same.
10334 (scan_tree_for_params): Same.
10335 (find_params_in_bb): Same.
10336 (find_scop_parameters): Same.
10337 (add_upper_bounds_from_estimated_nit): Same.
10338 (build_loop_iteration_domains): Same.
10339 (create_linear_expr_from_tree): Same.
10340 (add_condition_to_domain): Same.
10341 (pdr_add_memory_accesses): Same.
10342
10343 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
10344 Jason Merrill <jason@redhat.com>
10345
10346 * c-common.c (c_common_reswords): Add nullptr.
10347 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
10348 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
10349 (gen_type_die_with_usage): Likewise.
10350 * dbxout.c (dbxout_type): Likewise.
10351 * sdbout.c (plain_type_1): Likewise.
10352
10353 2010-05-06 Jason Merrill <jason@redhat.com>
10354
10355 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
10356 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
10357 ret appropriately.
10358 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
10359
10360 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
10361 stripping WITH_SIZE_EXPR.
10362 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
10363 change.
10364
10365 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10366
10367 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
10368 list of obsolete configurations.
10369 Disabled check for obsolete configurations.
10370 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
10371 Removed support for previous versions.
10372 * config/mips/iris.h: Removed.
10373 * config/mips/iris5.h: Removed.
10374 * config/mips/iris6.h: Merged old iris.h contents.
10375 (TARGET_IRIX): Removed.
10376 (DRIVER_SELF_SPECS): Removed mabi=32.
10377 (IDENT_ASM_OP): Removed undef.
10378 (STARTFILE_SPEC): Removed mabi=32.
10379 (ENDFILE_SPEC): Likewise.
10380 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
10381 (MACHINE_TYPE): Update for IRIX 6.5.
10382 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
10383 TARGET_IRIX by TARGET_IRIX6.
10384 (mips_file_start): Likewise.
10385 (mips_output_external): Remove IRIX 5/6 O32 support.
10386 (mips_output_function_prologue): Likewise.
10387 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
10388 TARGET_IRIX6.
10389 (TARGET_CPU_CPP_BUILTINS): Likewise.
10390 (TARGET_IRIX): Removed.
10391 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
10392 (MULTILIB_DIRNAMES): Removed 32.
10393 (MULTILIB_OSDIRNAMES): Removed ../lib.
10394 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
10395 (Specific, mips-sgi-irix5): Document removal.
10396 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
10397 Remove references to older IRIX 6 releases and the O32 ABI.
10398
10399 2010-05-06 Jakub Jelinek <jakub@redhat.com>
10400
10401 PR bootstrap/43994
10402 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
10403 instead of DF_REF_REAL_REG.
10404
10405 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
10406
10407 PR target/43888
10408 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
10409 handling to still return true for x64 targets.
10410
10411 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10412
10413 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
10414
10415 2010-05-06 Jan Hubicka <jh@suse.cz>
10416
10417 PR tree-optimization/43791
10418 * ipa-inline.c (update_caller_keys): Remove bogus
10419 disregard_inline_limits check.
10420
10421 2010-05-06 Michael Matz <matz@suse.de>
10422
10423 PR tree-optimization/43984
10424 * tree-ssa-pre.c (inserted_phi_names): Remove.
10425 (inserted_exprs): Change to bitmap.
10426 (create_expression_by_pieces): Set bits, don't append to vector.
10427 (insert_into_preds_of_block): Don't handle inserted_phi_names.
10428 (eliminate): Don't look at inserted_phi_names, remove deleted
10429 insns from inserted_exprs.
10430 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
10431 (init_pre, fini_pre): Allocate and free bitmaps.
10432 (execute_pre): Insert insns on edges before elimination.
10433
10434 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10435
10436 * tree.c (initializer_zerop): Handle STRING_CST.
10437
10438 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
10439
10440 PR 40989
10441 * doc/invoke.texi (Wimplicit): Document as C only.
10442 * opts.c (common_handle_option): Add argument kind.
10443 (handle_option): Rename as read_cmdline_option. Factor out code to...
10444 (handle_option): ... here. New.
10445 (handle_options): Rename as read_cmdline_options.
10446 (decode_options): Update call.
10447 (set_option): Use option index instead of option pointer. Classify
10448 diagnostics correctly.
10449 (enable_warning_as_error): Call handle_option.
10450 * opts.h (set_option): Update declaration.
10451 (handle_option): Declare.
10452 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
10453 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
10454 * c-opts.c (set_Wimplicit): Delete.
10455 (c_family_lang_mask): New static constant.
10456 (c_common_handle_option): Add argument kind. Use handle_option
10457 instead of set_Wimplicit.
10458 (c_common_post_options): warn_implicit and warn_implicit_int
10459 are disabled by default.
10460 * c-common.c (warn_implicit): Do not define here.
10461 * c-common.h (warn_implicit): Do not declare here.
10462 (c_common_handle_option): Update declaration.
10463 * lto-opts.c (lto_reissue_options): Update call to set_option.
10464
10465 2010-05-06 Richard Guenther <rguenther@suse.de>
10466
10467 PR tree-optimization/43571
10468 * domwalk.c (walk_dominator_tree): Walk the dominator
10469 sons in more optimal order.
10470
10471 2010-05-06 Richard Guenther <rguenther@suse.de>
10472
10473 PR tree-optimization/43934
10474 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
10475 (stmt_cost): Likewise.
10476 (extract_true_false_args_from_phi): New helper.
10477 (determine_max_movement): For PHI nodes verify we can hoist them
10478 and compute their cost.
10479 (determine_invariantness_stmt): Handle PHI nodes.
10480 (move_computations_stmt): Likewise. Hoist PHI nodes in
10481 if-converted form using COND_EXPRs.
10482 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
10483 (tree_ssa_lim): Likewise.
10484 * tree-flow.h (tree_ssa_lim): Adjust prototype.
10485 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
10486
10487 2010-05-06 Richard Guenther <rguenther@suse.de>
10488
10489 PR tree-optimization/43987
10490 * tree-ssa-structalias.c (could_have_pointers): For possibly
10491 address-taken variables force pointers to be recorded.
10492 (create_variable_info_for_1): Likewise.
10493 (push_fields_onto_fieldstack): Pass in wheter all fields
10494 must have pointers.
10495 (find_func_aliases): Query types instead of vars whether
10496 they contain pointers where appropriate.
10497
10498 2010-05-06 Jan Hubicka <jh@suse.cz>
10499
10500 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
10501 (record_reference, mark_address, mark_load, mark_store): Record
10502 references.
10503 (record_references_in_initializer): Update call of record_references.
10504 (rebuild_cgraph_edges): Remove all references before rebuiding.
10505 * cgraph.c (cgraph_create_node): Clear ref list.
10506 (cgraph_remove_node): Remove references.
10507 (dump_cgraph_node): Dump references.
10508 (cgraph_clone_node): Clone references.
10509 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
10510 (struct cgraph_node, varpool_node): Add ref_lst.
10511 * ipa-ref.c: New file.
10512 * ipa-ref.h: New file.
10513 * ipa-ref-inline.h: New file.
10514 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
10515 (referenced_from_other_partition_p): New function.
10516 (lto_output_varpool_node): Take set arugment; call
10517 referenced_from_other_partition.
10518 (lto_output_ref): New.
10519 (add_references): New.
10520 (output_refs): New.
10521 (output_cgraph): Compute boundary based on references; output refs.
10522 (output_varpool): Accept cgraph_node_set argument.
10523 (input_ref): New.
10524 (input_refs): New.
10525 (input_cgraph): Call input_refs.
10526 * lto-section-in.c (lto_section_name): Add refs.
10527 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
10528 (ipa-ref.o): New file.
10529 * varpool.c (varpool_node): Clear ipa ref list.
10530 (varpool_remove_node): Remove references.
10531 (dump_varpool_node): Dump references.
10532 (varpool_assemble_decl): Only compile finalized ones.
10533 (varpool_extra_name_alias): Initialize ref list.
10534 * lto-streamer.c (lto-get_section_name): Add .refs section.
10535 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
10536 (referenced_from_other_partition_p): Declared.
10537
10538 2010-05-06 Ira Rosen <irar@il.ibm.com>
10539
10540 PR tree-optimization/43901
10541 * tree-vect-stmts.c (vectorizable_call): Assert that vector
10542 type is not NULL if it's transformation phase, and return
10543 FALSE if it's analysis.
10544 (vectorizable_conversion, vectorizable_operation,
10545 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
10546
10547 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
10548
10549 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10550 Delete.
10551 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10552 New define.
10553 * config/mips/mips-protos.h
10554 (mips_small_register_classes_for_mode_p): Delete prototype.
10555
10556 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
10557
10558 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
10559 * config/arm/arm.c (multiple_operation_profitable_p,
10560 compute_offset_order): New static functions.
10561 (load_multiple_sequence, store_multiple_sequence): Use them.
10562 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
10563 memory offsets, not register numbers.
10564 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
10565
10566 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
10567
10568 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
10569 (get_pending_sizes, put_pending_size, put_pending_sizes):
10570 Update the uses of pending_sizes.
10571 * c-decl.c (store_parm_decls): Likewise.
10572 * c-tree.h (struct c_arg_info): Likewise.
10573 * tree.h: Update the prototype for get_pending_sizes and
10574 put_pending_sizes.
10575
10576 2010-05-05 Jason Merrill <jason@redhat.com>
10577
10578 PR debug/43370
10579 * c-common.c (handle_aligned_attribute): Respect
10580 ATTR_FLAG_TYPE_IN_PLACE.
10581
10582 PR testsuite/43758
10583 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
10584 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10585 (TARGET_INITIALIZER): Use it.
10586 * c-common.c (attribute_takes_identifier_p): Call it.
10587 * c-common.h: Update prototype.
10588 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
10589 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10590
10591 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10592
10593 PR debug/43950
10594 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
10595 DW_ID_down_case for Fortran compilation units.
10596
10597 2010-05-05 Jan Hubicka <jh@suse.cz>
10598
10599 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
10600 handle aliases.
10601
10602 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
10603
10604 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
10605 a variable-sized RESULT_DECL.
10606
10607 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
10608
10609 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
10610
10611 2010-05-05 Jason Merrill <jason@redhat.com>
10612
10613 PR c++/43787
10614 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
10615 returns GS_OK.
10616 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
10617
10618 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
10619 Jakub Jelinek <jakub@redhat.com>
10620
10621 PR debug/43478
10622 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
10623 (dead_debug_init, dead_debug_finish): New functions.
10624 (dead_debug_add, dead_debug_insert_before): Likewise.
10625 (df_note_bb_compute): Initialize a dead_debug object, add dead
10626 debug uses to it, insert debug bind insns before death insns,
10627 reset debug insns that refer to pending uses at the end.
10628 * rtl.h (make_debug_expr_from_rtl): New prototype.
10629 * varasm.c (make_debug_expr_from_rtl): New function.
10630
10631 2010-05-05 Jan Hubicka <jh@suse.cz>
10632
10633 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
10634 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10635 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10636 lto_varpool_encoder_deref, lto_varpool_encoder_size,
10637 lto_varpool_encoder_encode_initializer_p,
10638 lto_set_varpool_encoder_encode_initializer): New functions.
10639 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
10640 call output_varpool.
10641 (input_varpool_node): Do not always set analyzed.
10642 (input_cgraph_1): Return vector of cgraph nodes.
10643 (input_varpool_1): Return vector of varpools.
10644 (input_cgraph): Free the vectors.
10645 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10646 output only initializers needed.
10647 (lto_output): Only call output_cgraph.
10648 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10649 * lto-section-out.c (lto_new_out_decl_state): Initialize
10650 state->varpool_node_encoder.
10651 * lto-streamer.h (lto_varpool_encoder_d): New.
10652 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10653 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10654 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10655 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10656 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10657 Declare.
10658 (output_varpool, input_varpool): Remove declarations.
10659
10660 2010-05-05 Jan Hubicka <jh@suse.cz>
10661
10662 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10663 with body can prevail.
10664
10665 2010-05-05 Jan Hubicka <jh@suse.cz>
10666
10667 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10668 size.
10669
10670 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10671
10672 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10673
10674 * gengtype.h (erro_at_line): Constify pos argument.
10675
10676 * gengtype.c: Include hashtab.h.
10677 (enum gc_used): Document GC_MAYBE_POINTED_TO.
10678 (error_at_line): Constify pos argument.
10679 (do_typedef): Initialize p->opt field.
10680 (get_file_gtfilename): Fix comment typo.
10681 (struct walk_type_data): Constify line field.
10682 (get_output_file_for_structure): New function.
10683 (write_local_func_for_structure): Constify orig_s argument.
10684 Use get_output_file_for_structure.
10685 (write_func_for_structure): Use get_output_file_for_structure.
10686 (INDENT): New define.
10687 (dump_pair, dump_type, dump_type_list, dump_typekind)
10688 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10689 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10690 functions.
10691 (seen_types): New variable.
10692 (main): New variable do_dump. Process "-d" command line option.
10693 Call dump_everything if dump requested.
10694
10695 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10696
10697 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10698 in a temporary instead of invoking the macro multiple times.
10699 (track_expr_p): Likewise.
10700
10701 2010-05-04 Neil Vachharajani <nvachhar@google.com>
10702
10703 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10704 per new semantics.
10705 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10706 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
10707 conditions for printing notes.
10708 * common.opt (-Wcoverage-mismatch): Allow negative, default to
10709 true, update documentation.
10710 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
10711
10712 2010-05-04 Jakub Jelinek <jakub@redhat.com>
10713
10714 PR c/43981
10715 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
10716 on dimen.
10717
10718 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10719
10720 PR target/43799
10721 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
10722 (*sse_prologue_save_insn1): Likewise.
10723 (SSE prologue save splitter): Likewise.
10724
10725 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
10726
10727 * tree.c (free_lang_data_in_one_sizepos): New inline function.
10728 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
10729 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
10730 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
10731 all decls. Call it on DECL_FIELD_OFFSET of fields.
10732 (find_decls_types_r): Follow DECL_VALUE_EXPR.
10733 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
10734
10735 2010-05-04 Martin Jambor <mjambor@suse.cz>
10736
10737 * tree-sra.c (build_access_from_expr_1): The first parameter type
10738 changed to simple tree.
10739 (build_access_from_expr): Likewise, gsi parameter was eliminated.
10740 (scan_assign_result): Renamed to assignment_mod_result, enum elements
10741 renamed as well.
10742 (build_accesses_from_assign): Removed all parameters except for a
10743 simple gimple statement. Now returns a simple bool.
10744 (scan_function): All non-analysis parts moved to separate functions
10745 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
10746 parameters and updated both callers.
10747 (sra_modify_expr): Removed parameter data.
10748 (sra_modify_function_body): New function.
10749 (perform_intra_sra): Call sra_modify_function_body to modify the
10750 function body.
10751 (replace_removed_params_ssa_names): Parameter data changed into
10752 adjustments vector.
10753 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
10754 changed the parameter dont_convert to convert with the opposite
10755 meaning.
10756 (sra_ipa_modify_assign): Parameter data changed into adjustments
10757 vector, return value changed to bool.
10758 (ipa_sra_modify_function_body): New function.
10759 (sra_ipa_reset_debug_stmts): Updated a comment.
10760 (modify_function): Use ipa_sra_modify_function_body to modify function
10761 body.
10762
10763 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10764
10765 PR middle-end/43671
10766 * alias.c (true_dependence): Handle the same VALUE in x and mem.
10767 (canon_true_dependence): Likewise.
10768 (write_dependence_p): Likewise.
10769
10770 2010-05-04 Jan Hubicka <jh@suse.cz>
10771
10772 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
10773 * cgraphbuild.c: Include ipa-utils.h
10774 (record_reference_ctx): New struct.
10775 (record_reference): Simplify to work on initializers; not statements.
10776 (mark_address, mark_load, mark_store): New.
10777 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10778 walk PHI nodes too.
10779 (record_references_in_initializer): Update use of record_reference.
10780 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10781 walk PHI nodes too.
10782
10783 2010-05-04 Jan Hubicka <jh@suse.cz>
10784
10785 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
10786 node will be removed anyway.
10787 (lto_varpool_replace_node): Allow also unanalyzed nodes;
10788 relink aliases of node into prevailing node.
10789 * varpool.c (varpool_remove_node): Remove aliases properly;
10790 when removing node, remove all its aliases too; remove DECL_INITIAL
10791 of removed node; ggc_free the varpool node.
10792
10793 2010-05-04 Richard Guenther <rguenther@suse.de>
10794
10795 PR tree-optimization/43879
10796 * tree-ssa-structalias.c (alias_get_name): Use
10797 DECL_ASSEMBLER_NAME if available.
10798 (create_function_info_for): Return the varinfo node.
10799 (ipa_pta_execute): Associate same-body aliases and extra names
10800 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
10801
10802 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
10803
10804 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
10805
10806 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
10807
10808 PR bootstrap/43964
10809 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
10810 only if HONOR_REG_ALLOC_ORDER is not defined.
10811
10812 2010-05-04 Richard Guenther <rguenther@suse.de>
10813
10814 PR tree-optimization/43949
10815 * tree-vrp.c (extract_range_from_binary_expr): Only handle
10816 TRUNC_MOD_EXPR.
10817
10818 2010-04-26 Jason Merrill <jason@redhat.com>
10819
10820 * c.opt (-fstrict-enums): New.
10821 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
10822
10823 2010-05-03 David Ung <davidu@mips.com>
10824 James E. Wilson <wilson@codesourcery.com>
10825
10826 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
10827 emit the trap instruction before the divide for TUNE_74K.
10828
10829 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
10830
10831 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
10832 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
10833 based on the above, for new target hook.
10834
10835 * hooks.c (hook_bool_mode_true): New generic hook.
10836 * hooks.h (hook_bool_mode_true): Add prototype.
10837
10838 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
10839 target hook.
10840 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10841 target hook, set to hook_bool_mode_false.
10842 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10843 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10844 with targetm.small_register_classes_for_mode_p.
10845 (find_reusable_reload): Likewise.
10846 (combine_reloads): Likewise.
10847 * reload1.c (reload_as_needed): Likewise.
10848 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10849 * ifcvt.c (noce_process_if_block, check_cond_move_block,
10850 dead_or_predicable): Likewise.
10851 * regmove.c (optimize_reg_copy_1): Likewise.
10852 * calls.c (prepare_call_address): Likewise.
10853 (precompute_register_parameters): Likewise.
10854
10855 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10856 hook definition.
10857 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10858 implementation of the hook that considers all register classes
10859 small except for SH64.
10860 (sh_override_options): Use the new hook.
10861 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10862 Add prototype.
10863
10864 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10865 hook definition.
10866 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10867 implementation of the hook that considers all register classes
10868 small for THUMB1.
10869 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10870 Add prototype.
10871
10872 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10873 hook definition.
10874 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10875 implementation of the hook that considers all register classes
10876 small for MIPS16.
10877 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10878 Add prototype.
10879
10880 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10881 hook definition.
10882 * config/m32c/m32c.h: Likewise.
10883 * config/pdp11/pdp11.h: Likewise.
10884 * config/avr/avr.h: Likewise.
10885 * config/xtensa/xtensa.h: Likewise.
10886 * config/m68hc11/m68hc11.h: Likewise.
10887 * config/mn10300/mn10300.h: Likewise.
10888 * config/mcore/mcore.h: Likewise.
10889 * config/h8300/h8300.h: Likewise.
10890 * config/bfin/bfin.h: Likewise.
10891
10892 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10893 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10894
10895 2010-05-03 Anatoly Sokolov <aesok@post.ru>
10896
10897 * double-int.h (tree_to_double_int): Remove macro.
10898 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10899 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10900 (tree_to_double_int): New function.
10901 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10902 Move ...
10903 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10904
10905 2010-05-03 Richard Guenther <rguenther@suse.de>
10906
10907 PR tree-optimization/43971
10908 * tree-ssa-structalias.c (get_constraint_for_1): Fix
10909 constraints in the !flag_delete_null_pointer_checks case.
10910
10911 2010-05-03 Jakub Jelinek <jakub@redhat.com>
10912
10913 PR debug/43972
10914 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10915 result mode matches original rtl mode.
10916
10917 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
10918
10919 PR target/43888
10920 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10921
10922 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10923
10924 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10925 when processing flag options.
10926
10927 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10928
10929 * gcov-iov.c (main): Change format string placeholder
10930 from %#08x to 0x%08x.
10931 * genchecksum.c (dosum): Change format string placeholder
10932 from %#02x to 0x%02x.
10933
10934 2010-05-02 Richard Guenther <rguenther@suse.de>
10935
10936 PR tree-optimization/43879
10937 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10938
10939 2010-05-02 Bruno Haible <bruno@clisp.org>
10940
10941 * doc/extend.texi (Function Attributes): Fix a typo.
10942
10943 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10944
10945 Revert:
10946 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10947 placeholder from 0x%x to %#x.
10948 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10949 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10950 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10951 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10952 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10953 * config/i386/i386.c (ix86_target_string): Ditto.
10954 * config/i386/i386.c (output_pic_addr_const): Ditto.
10955 (print_operand): Ditto.
10956
10957 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10958
10959 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10960 placeholder from 0x%x to %#x.
10961 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10962 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10963 (ASM_OUTPUT_DEBUG_DATA): Ditto.
10964 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10965 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10966 * optc-gen.awk: Ditto.
10967 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10968 (HOST_WIDE_INT_PRINT_HEX): Ditto.
10969 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10970 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10971
10972 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10973
10974 * target.h (struct calls): Add function_value_regno_p field.
10975 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10976 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10977 * targhooks.c (default_function_value_regno_p): New function.
10978 * targhooks.h (default_function_value_regno_p): Declare function.
10979 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10980 * builtins.c. (apply_result_size): (Ditto.).
10981 * combine.c. (likely_spilled_retval_p): (Ditto.).
10982 * mode-switching.c. Include 'target.h'.
10983 (create_pre_exit): Use function_value_regno_p hook.
10984 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10985 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10986 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10987
10988 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10989 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10990 (ix86_function_value_regno_p): Declare as static, change argument
10991 type to const unsigned int.
10992 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10993
10994 2010-05-01 Richard Guenther <rguenther@suse.de>
10995
10996 PR tree-optimization/43949
10997 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10998 types.
10999 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
11000
11001 2010-05-01 Anatoly Sokolov <aesok@post.ru>
11002
11003 * rtl.h (CONST_DOUBLE_P): Define.
11004 (rtx_to_double_int): Declare.
11005 * emit-rtl.c (rtx_to_double_int): New function.
11006 * dwarf2out.c (insert_double): New function.
11007 (loc_descriptor, add_const_value_attribute): Clean up, use
11008 rtx_to_double_int and insert_double functions.
11009
11010 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
11011
11012 * doc/extend.texi (Inline): Add missing return keyword to examples.
11013 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
11014 "command-line".
11015
11016 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
11017
11018 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
11019 the variable part of the offset as well. Use highest_pow2_factor for
11020 all alignment checks.
11021
11022 2010-04-30 Richard Guenther <rguenther@suse.de>
11023
11024 PR tree-optimization/43879
11025 * tree-ssa-structalias.c (type_could_have_pointers): Functions
11026 can have pointers.
11027
11028 2010-04-30 Jan Hubicka <jh@suse.cz>
11029
11030 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
11031 varpool.
11032 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
11033
11034 2010-04-30 Jan Hubicka <jh@suse.cz>
11035
11036 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
11037 New.
11038 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
11039 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
11040 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
11041 cgraph_node_set_needs_ltrans_p): Remove.
11042
11043 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
11044
11045 * sdbout.c: Include vec.h, do not include varray.h.
11046 (deferred_global_decls, sdbout_global_decl,
11047 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
11048 * toplev.c: Do not include varray.h.
11049 (dump_memory_report): Do not dump VARRAY statistics.
11050 * gengtype.c (open_base_file): Ignore varray.h.
11051 * Makefile.in: Update for abovementioned changes.
11052 Remove all traces of varray.c and varray.h.
11053 * varray.c: Remove file.
11054 * varray.h: Remove file.
11055
11056 2010-04-30 Jan Hubicka <jh@suse.cz>
11057
11058 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
11059 references.
11060
11061 2010-04-30 Jan Hubicka <jh@suse.cz>
11062
11063 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
11064 needed.
11065
11066 2010-04-30 Richard Guenther <rguenther@suse.de>
11067
11068 * tree-ssa-structalias.c (get_constraint_for_1): Generate
11069 constraints for CONSTRUCTOR.
11070
11071 2010-04-30 Richard Guenther <rguenther@suse.de>
11072
11073 PR lto/43946
11074 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
11075 first after all lowering passes.
11076
11077 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
11078
11079 * toplev.c: Include varray.h for statistics dumping.
11080 * tree.h: Do not declare varray_head_tag.
11081 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
11082 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
11083 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
11084 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
11085 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
11086 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
11087 c-common.c, c-common.h, reg-stack.c, basic-block.h,
11088 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
11089 include varray.h.
11090 * Makefile.in: Update for abovementioned changes.
11091
11092 2010-04-30 Jakub Jelinek <jakub@redhat.com>
11093
11094 PR debug/43942
11095 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
11096
11097 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
11098
11099 * config/picochip/picochip.c (picochip_legitimize_address): Define.
11100 Use this function to do machine-specific conversion.
11101 (picochip_legitimize_reload_address): Likewise.
11102 (picochip_legitimate_address_p): Check valid base register only if
11103 strict.
11104 (picochip_check_conditional_copy): Check for modw only if opnd is
11105 register.
11106 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
11107 to call the function in c.
11108 * config/picochip/picochip-protos.h
11109 (picochip_legitimize_reload_address): Define.
11110 * config/picochip/picochip.md (supported_compare1): Define.
11111
11112 2010-04-30 Jan Hubicka <jh@suse.cz>
11113
11114 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
11115 (cgraph_global_info): Remove inlined.
11116 (LTO_cgraph_tag_names): Remove.
11117 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
11118 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
11119 simplify cgraph tags and document.
11120 (lto_output_node): Use only LTO_cgraph_unavail_node and
11121 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
11122 for_functions_valid, global info, process and output flags.
11123 (input_overwrite_node): Initialize estimated stack size and
11124 estimated growth. Do not read flags we no longer store.
11125 (input_node): Likewise do not read info no longer stored.
11126 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
11127 flag.
11128
11129 2010-04-30 Richard Guenther <rguenther@suse.de>
11130
11131 PR tree-optimization/43879
11132 * tree-ssa-structalias.c (get_constraint_for_1): Properly
11133 handle non-zero initializers.
11134
11135 2010-04-30 Richard Guenther <rguenther@suse.de>
11136
11137 * builtins.c (fold_builtin_1): Delete free (0).
11138
11139 2010-04-29 Jan Hubicka <jh@suse.cz>
11140
11141 * gengtype.c (open_base_files): Add lto-streamer.h
11142 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
11143 (pass_ipa_cp): GGC collect.
11144 * toplev. (compile_file): Do not output symbols.
11145 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
11146 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
11147 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
11148 * lto-section-in.c: Include ggc.h
11149 (lto_new_in_decl_state): Alloc in GGC.
11150 (lto_delete_in_decl_state): Likewise.
11151 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
11152 Collect.
11153
11154 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11155
11156 PR target/42895
11157 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
11158 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
11159 (HONOR_REG_ALLOC_ORDER): Describe new macro.
11160 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
11161 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
11162 account only if HONOR_REG_ALLOC_ORDER is not defined.
11163 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
11164 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
11165
11166 2010-04-29 Jon Grant <04@jguk.org>
11167
11168 * collect2.c (vflag): Change type from int to bool.
11169 (debug): Likewise.
11170 (helpflag): New global bool.
11171 (main): Set vflag and debug with boolean, not integer truth values.
11172 Accept new "--help" option and output usage text if found.
11173 * collect2.h (vflag): Update prototype.
11174 (debug): Likewise.
11175
11176 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11177
11178 PR bootstrap/43936
11179 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
11180
11181 2010-04-29 Richard Guenther <rguenther@suse.de>
11182
11183 PR bootstrap/43935
11184 * plugin.h (invoke_plugin_callbacks): Annotate arguments
11185 with ATTRIBUTE_UNUSED.
11186
11187 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11188
11189 PR target/43921
11190 * config/i386/i386.c (get_some_local_dynamic_name): Replace
11191 INSN_P with NONDEBUG_INSN_P.
11192 (distance_non_agu_define): Likewise.
11193 (distance_agu_use): Likewise.
11194
11195 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11196
11197 From Dominique d'Humieres <dominiq@lps.ens.fr>
11198 PR bootstrap/43858
11199 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
11200 test_set.
11201
11202 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
11203
11204 * plugin.h (invoke_plugin_callbacks): New inline function.
11205 * plugin.c (flag_plugin_added): New global flag.
11206 (add_new_plugin): Initialize above flag.
11207 (invoke_plugin_callbacks): Rename to ...
11208 (invoke_plugin_callbacks_full): ... this.
11209
11210 2010-04-28 Jan Hubicka <jh@suse.cz>
11211
11212 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
11213 (lto_varpool_replace_node): New.
11214 (lto_symtab_resolve_symbols): Resolve varpool nodes.
11215 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
11216 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
11217 * cgraph.h (varpool_node_ptr): New type.
11218 (varpool_node_ptr): New vector.
11219 (varpool_node_set_def): New structure.
11220 (varpool_node_set): New type.
11221 (varpool_node_set): New vector.
11222 (varpool_node_set_element_def): New structure.
11223 (varpool_node_set_element, const_varpool_node_set_element): New types.
11224 (varpool_node_set_iterator): New type.
11225 (varpool_node): Add prev pointers, add used_from_other_partition,
11226 in_other_partition.
11227 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11228 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11229 varpool_get_node, varpool_remove_node): Declare.
11230 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11231 varpool_node_set_size): New inlines.
11232 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11233 * tree-pass.h (varpool_node_set_def): Forward declare.
11234 (ipa_opt_pass_d): Summary writting takes vnode sets too.
11235 (ipa_write_optimization_summaries): Update prototype.
11236 * ipa-cp.c (ipcp_write_summary): Update.
11237 * ipa-reference.c (ipa_reference_write_summary): Update.
11238 * lto-cgraph.c (lto_output_varpool_node): New static function.
11239 (output_varpool): New function.
11240 (input_varpool_node): New static function.
11241 (input_varpool_1): New function.
11242 (input_cgraph): Input varpool.
11243 * ipa-pure-const.c (pure_const_write_summary): Update.
11244 * lto-streamer-out.c (lto_output): Update, output varpool too.
11245 (write_global_stream): Kill WPA hack.
11246 (produce_asm_for_decls): Update.
11247 (output_alias_pair_p): Handle variables.
11248 (output_unreferenced_globals): Output only needed partition of varpool.
11249 * ipa-inline.c (inline_write_summary): Update.
11250 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11251 cgraph.
11252 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11253 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11254 varpool_node_set_new, varpool_node_set_add,
11255 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11256 debug_varpool_node_set): New functions.
11257 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11258 (execute_one_pass): Process new decls too.
11259 (ipa_write_summaries_2): Pass around vsets.
11260 (ipa_write_summaries_1): Likewise.
11261 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11262 to add.
11263 (ipa_write_optimization_summaries_1): Pass around vsets.
11264 (ipa_write_optimization_summaries): Likewise.
11265 * varpool.c (varpool_get_node): New.
11266 (varpool_node): Update doubly linked lists.
11267 (varpool_remove_node): New.
11268 (dump_varpool_node): More dumping.
11269 (varpool_enqueue_needed_node): Update doubly linked lists.
11270 (decide_is_variable_needed): Kill ltrans hack.
11271 (varpool_finalize_decl): Kill lto hack.
11272 (varpool_assemble_decl): Skip decls in other partitions.
11273 (varpool_assemble_pending_decls): Update doubly linkes lists.
11274 (varpool_empty_needed_queue): Likewise.
11275 (varpool_extra_name_alias): Likewise.
11276 * lto-streamer.c (lto_get_section_name): Add vars section.
11277 * lto-streamer.h (lto_section_type): Update.
11278 (output_varpool, input_varpool): Declare.
11279
11280 2010-04-28 Mike Stump <mikestump@comcast.net>
11281
11282 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11283
11284 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11285
11286 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11287 record or union type with RECORD_OR_UNION_TYPE_P predicate.
11288 (lto_input_ts_type_tree_pointers): Likewise.
11289 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11290 (lto_output_ts_type_tree_pointers): Likewise.
11291
11292 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11293
11294 Uniquization of constants at the Tree level
11295 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
11296 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
11297 bit to the end.
11298 (tree_output_constant_def): Declare.
11299 * gimplify.c (gimplify_init_constructor): When using block copy, first
11300 uniquize the constant constructor on the RHS.
11301 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11302 DECL_IN_CONSTANT_POOL flag.
11303 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
11304 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
11305 constant pool.
11306 (assemble_variable): Deal with symbols belonging to the tree constant
11307 pool.
11308 (get_constant_section): Add ALIGN parameter and simplify.
11309 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
11310 (assemble_constant_contents): Use the expression of the VAR_DECL.
11311 (output_constant_def_contents): Use the alignment of the VAR_DECL.
11312 (tree_output_constant_def): New global function.
11313 (mark_constant): Use the expression of the VAR_DECL.
11314 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
11315 its expression.
11316 (output_object_block): Likewise and assemble the expression.
11317
11318 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11319
11320 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
11321 hash_tree, eq_tree): New tree hash table.
11322 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
11323 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
11324 lto_orig_address_remove): Reimplement.
11325
11326 2010-04-28 Xinliang David Li <davidxl@google.com>
11327
11328 PR c/42643
11329 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
11330 (compute_uninit_opnds_pos): New function.
11331 (is_non_loop_exit_postdominating): New function.
11332 (compute_control_dep_chain): New function.
11333 (find_pdom): New function.
11334 (convert_control_dep_chain_into_preds): New function.
11335 (find_predicates): New function.
11336 (find_control_equiv_block): New function.
11337 (collect_phi_def_edges): New function.
11338 (find_def_preds): New function.
11339 (find_dom): New function.
11340 (dump_predicates): New function.
11341 (get_cmp_code): New function.
11342 (is_value_included_in): New function.
11343 (find_matching_predicate_in_rest_chains): New function.
11344 (use_pred_not_overlap_with_undef_path_pred): New function.
11345 (is_use_properly_guarded): New function.
11346 (normalize_cond_1): New function.
11347 (is_and_or_or): New function.
11348 (normalize_cond): New function.
11349 (is_gcond_subset_of): New function.
11350 (is_subset_of_any): New function.
11351 (is_or_set_subset_of): New function.
11352 (is_and_set_subset_of): New function.
11353 (is_norm_cond_subset_of): New function.
11354 (is_pred_expr_subset_of): New function.
11355 (is_pred_chain_subset_of): New function.
11356 (is_included_in): New function.
11357 (is_superset_of): New function.
11358 (find_uninit_use): New function.
11359 (warn_uninitialized_phi): New function.
11360 (compute_possibly_undefined_names): New function.
11361 (ssa_undefined_value_p): New function.
11362 (execute_late_warn_uninitialized): New function.
11363 * tree-ssa.c (ssa_undefined_value_p): Removed.
11364 (warn_uninit): Changed to extern.
11365 (warn_uninitialized_phi): Removed.
11366 (warn_uninitialized_vars): Changed to extern.
11367 (execute_late_warn_uninitialized): Removed
11368 * tree-flow.h: Add new prototypes.
11369 * timevar.def: Add new time variable.
11370 * Makefile.in: Add new build file.
11371
11372 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
11373
11374 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11375 type if available.
11376
11377 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11378
11379 PR target/22224
11380 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
11381
11382 2010-04-28 Martin Jambor <mjambor@suse.cz>
11383
11384 * cgraph.h (struct cgraph_node): New field indirect_calls.
11385 (struct cgraph_indirect_call_info): New type.
11386 (struct cgraph_edge): Removed field indirect_call. New fields
11387 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
11388 (cgraph_create_indirect_edge): Declare.
11389 (cgraph_make_edge_direct): Likewise.
11390 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
11391 * ipa-prop.h (struct ipa_param_call_note): Removed.
11392 (struct ipa_node_params): Removed field param_calls.
11393 (ipa_create_all_structures_for_iinln): Declare.
11394 * cgraph.c: Described indirect edges and uids in initial comment.
11395 (cgraph_add_edge_to_call_site_hash): New function.
11396 (cgraph_edge): Search also among the indirect edges, use
11397 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
11398 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
11399 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
11400 site hash.
11401 (initialize_inline_failed): Assign a reason to indirect edges.
11402 (cgraph_create_edge_1): New function.
11403 (cgraph_create_edge): Moved some functionality to
11404 cgraph_create_edge_1.
11405 (cgraph_create_indirect_edge): New function.
11406 (cgraph_edge_remove_callee): Add an assert checking for
11407 non-indirectness.
11408 (cgraph_edge_remove_caller): Special-case indirect edges.
11409 (cgraph_remove_edge): Likewise.
11410 (cgraph_set_edge_callee): New function.
11411 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
11412 (cgraph_make_edge_direct): New function.
11413 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
11414 the declaration of the call statement matches.
11415 (cgraph_node_remove_callees): Special-case indirect edges.
11416 (cgraph_clone_edge): Likewise.
11417 (cgraph_clone_node): Clone also the indirect edges.
11418 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
11419 indirect_call, dump count of indirect_calls edges.
11420 * ipa-prop.c (iinlining_processed_edges): New variable.
11421 (ipa_note_param_call): Create indirect edges instead of
11422 creating notes. New parameter node.
11423 (ipa_analyze_call_uses): New parameter node, pass it on to
11424 ipa_note_param_call.
11425 (ipa_analyze_stmt_uses): Likewise.
11426 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
11427 (print_edge_addition_message): Work on edges rather than on notes.
11428 (update_call_notes_after_inlining): Likewise, renamed to
11429 update_indirect_edges_after_inlining.
11430 (ipa_create_all_structures_for_iinln): New function.
11431 (ipa_free_node_params_substructures): Do not free notes.
11432 (ipa_edge_duplication_hook): Propagate bits within
11433 iinlining_processed_edges bitmap.
11434 (ipa_node_duplication_hook): Do not duplicate notes.
11435 (free_all_ipa_structures_after_ipa_cp): Renamed to
11436 ipa_free_all_structures_after_ipa_cp.
11437 (free_all_ipa_structures_after_iinln): Renamed to
11438 ipa_free_all_structures_after_iinln.
11439 (ipa_write_param_call_note): Removed.
11440 (ipa_read_param_call_note): Removed.
11441 (ipa_write_indirect_edge_info): New function.
11442 (ipa_read_indirect_edge_info): Likewise.
11443 (ipa_write_node_info): Do not stream notes, do stream information
11444 in indirect edges.
11445 (ipa_read_node_info): Likewise.
11446 (lto_ipa_fixup_call_notes): Removed.
11447 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
11448 * ipa-inline.c (pass_ipa_inline): Likewise.
11449 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
11450 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
11451 * tree-inline.c (copy_bb): Removed an unnecessary double check for
11452 is_gimple_call.
11453 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
11454 edges.
11455 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
11456 (output_cgraph): Stream also indirect edges.
11457 (lto_output_edge): Added capability to stream indirect edges.
11458 (input_edge): Likewise.
11459 (input_cgraph_1): Likewise.
11460 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
11461 of indirect edges.
11462
11463 2010-04-28 Richard Guenther <rguenther@suse.de>
11464
11465 PR tree-optimization/43879
11466 PR tree-optimization/43909
11467 * tree-ssa-structalias.c (struct variable_info): Add
11468 only_restrict_pointers flag.
11469 (new_var_info): Initialize it. Increment stats.total_vars here.
11470 (create_function_info_for): Do not increment stats.total_vars here.
11471 (get_function_part_constraint): Fix build with C++.
11472 (insert_into_field_list): Remove.
11473 (push_fields_onto_fieldstack): Properly merge fields.
11474 (create_variable_info_for): Split and simplify.
11475 (create_variable_info_for_1): New piece.
11476 (intra_create_variable_infos): Properly make restrict constraints
11477 from parameters.
11478
11479 2010-04-28 Richard Guenther <rguenther@suse.de>
11480
11481 PR c++/43880
11482 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
11483
11484 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
11485 Jan Hubicka <hubicka@ucw.cz>
11486
11487 * doc/invoke.texi (-Wsuggest-attribute=const,
11488 -Wsuggest-attribute=pure): Document.
11489 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
11490 (function_always_visible_to_compiler_p,
11491 suggest_attribute, warn_function_pure, warn_function_const):
11492 New functions.
11493 (check_call): Improve debug info.
11494 (analyze_function): Do not check availability.
11495 (add_new_function): Check availability.
11496 (propagate): Output warnings.
11497 (skip_function_for_local_pure_const): New function.
11498 (local_pure_const): Use it; output warnings.
11499 * common.opt (Wsuggest-attribute=const,
11500 Wsuggest-attribute=pure): New.
11501
11502 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11503
11504 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
11505 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
11506 or DW_CFA_def_cfa_offset{,_sf}.
11507
11508 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
11509
11510 * tree.h: Fix truncated long macros.
11511
11512 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
11513
11514 * collect2.c (TARGET_64BIT): Redefine to target's default.
11515 * tlink.c: Likewise.
11516 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
11517 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
11518 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
11519 for underscoring __USER_LABEL_PREFIX__.
11520 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
11521 (SUB_LINK_ENTRY32): New.
11522 (SUB_LINK_ENTRY64): New.
11523 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
11524 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
11525 (SUB_LINK_ENTRY64): New.
11526 (SUB_LINK_ENTRY): New.
11527 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
11528 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
11529 x64 target is choosen.
11530 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
11531 * configure: Regenerated.
11532 * configure.ac (leading-mingw64-underscores): Option added.
11533
11534 2010-04-27 Jan Hubicka <jh@suse.cz>
11535
11536 * doc/invoke.texi (-fipa-profile): Document.
11537 * opts.c (decode_options): Enable ipa-profile at -O1.
11538 * timevar.def (TV_IPA_PROFILE): Define.
11539 * common.opt (fipa-profile): Add.
11540 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
11541 flag for clones.
11542 (cgraph_propagate_frequency): Handle only local ones.
11543 * tree-pass.h (pass_ipa_profile): Declare.
11544 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
11545 (pass_ipa_profile): Use TV_IPA_PROFILE.
11546 * ipa.c (ipa_profile): New function.
11547 (gate_ipa_profile): Likewise.
11548 (pass_ipa_profile): New global variable.
11549 * passes.c (pass_ipa_profile): New.
11550
11551 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
11552
11553 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
11554
11555 2010-04-27 Martin Jambor <mjambor@suse.cz>
11556
11557 PR middle-end/43812
11558 * ipa.c (dissolve_same_comdat_group_list): New function.
11559 (function_and_variable_visibility): Call
11560 dissolve_same_comdat_group_list when comdat group contains external or
11561 newly local nodes.
11562 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
11563 lists are circular and that they contain only DECL_ONE_ONLY nodes.
11564
11565 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
11566
11567 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
11568 (const_hash_1) <VECTOR_CST>: New case.
11569 (compare_constant) <VECTOR_CST>: Likewise.
11570 <ADDR_EXPR>: Deal with LABEL_REFs.
11571 (copy_constant) <VECTOR_CST>: New case.
11572
11573 2010-04-27 Jan Hubicka <jh@suse.cz>
11574
11575 * cgraph.c (cgraph_propagate_frequency): New function.
11576 * cgraph.h (cgraph_propagate_frequency): Declare.
11577 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
11578 cgraph_propagate_frequency.
11579
11580 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11581
11582 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
11583
11584 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
11585
11586 PR target/40657
11587 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
11588 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
11589 here to determine which regs to push and how much stack to reserve.
11590
11591 2010-04-27 Jie Zhang <jie@codesourcery.com>
11592
11593 * doc/gimple.texi (gimple_statement_with_ops): Remove
11594 addresses_taken field.
11595 (gimple_statement_with_memory_ops): Likewise.
11596
11597 2010-04-27 Jan Hubicka <jh@suse.cz>
11598
11599 * tree-inline.c (eni_inlining_weights): Remove.
11600 (estimate_num_insns): Special case more builtins.
11601
11602 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
11603
11604 PR c/32207
11605 * c-typeck.c (build_binary_op): Move forward check for comparison
11606 pointer with null pointer constant and adjust the diagnostic message.
11607
11608 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
11609
11610 PR lto/42776
11611 * configure.ac (gcc_cv_as_section_has_align): Set if installed
11612 binutils supports extended .section directive needed by LTO, or
11613 warn if older binutils found.
11614 (LTO_BINARY_READER): New AC_SUBST'd variable.
11615 (LTO_USE_LIBELF): Likewise.
11616 * gcc/config.gcc (lto_binary_reader): New target-specific configure
11617 variable.
11618 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
11619 (LTO_USE_LIBELF): Likewise.
11620 * configure: Regenerate.
11621
11622 * collect2.c (is_elf): Rename from this ...
11623 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
11624 object files in addition to ELF-formatted ones.
11625 (scan_prog_file): Caller updated. Also allow for LTO info marker
11626 symbol to be prefixed or not by an extra underscore.
11627
11628 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
11629 * config/i386/winnt.c: Also #include lto-streamer.h
11630 (i386_pe_asm_named_section): Specify 1-byte section alignment for
11631 LTO named sections.
11632 (i386_pe_asm_output_aligned_decl_common): Add comment.
11633 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
11634
11635 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
11636
11637 PR target/43889
11638 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
11639 Add missing earlyclobber for second alternative.
11640
11641 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
11642
11643 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
11644 bits for artificial defs at the top of the block.
11645 * fwprop.c (single_def_use_enter_block): Don't call it.
11646
11647 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
11648
11649 PR 43715
11650 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11651 instead of "$gcc_cv_objdump -T".
11652 Use "-undefined dynamic_lookup" on darwin.
11653 * gcc/configure: Regenerate.
11654
11655 2010-04-26 Jakub Jelinek <jakub@redhat.com>
11656
11657 PR c/43893
11658 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11659
11660 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11661
11662 * c-parser.c (struct c_token): Move location field up.
11663 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11664 (struct c_declspecs): Convert typespec_word, storage_class, and
11665 default_int_p into bitfields.
11666 (struct c_declarator): Move loc field up.
11667
11668 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11669
11670 * cfgloop.h (struct loop): Move can_be_parallel field up.
11671 * ipa-prop.h (struct ip_node_params): Move bitfields up.
11672 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11673 down.
11674 (struct iv_cand): Convert pos field into a bitfield.
11675 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11676 field up.
11677 (struct _stmt_vec_info): Shuffle fields for better packing.
11678
11679 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11680
11681 * varasm.c (IN_NAMED_SECTION): Remove guard.
11682 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11683 (IN_NAMED_SECTION_P): ...this.
11684 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11685 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11686
11687 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11688
11689 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11690 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
11691 of shadowing it. Fix comments.
11692
11693 2010-04-26 Jan Hubicka <jh@suse.cz>
11694
11695 * cgraph.c (cgraph_create_node): Set node frequency to normal.
11696 (cgraph_clone_node): Copy function frequency.
11697 * cgraph.h (node_frequency): New enum
11698 (struct cgraph_node): Add.
11699 * final.c (rest_of_clean_state): Update.
11700 * lto-cgraph.c (lto_output_node): Output node frequency.
11701 (input_overwrite_node): Input node frequency.
11702 * tre-ssa-loop-ivopts (computation_cost): Update.
11703 * lto-streamer-out.c (output_function): Do not output function
11704 frequency.
11705 * predict.c (maybe_hot_frequency_p): Update and handle functions
11706 executed once.
11707 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11708 attribute lookup.
11709 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
11710 (compute_function_frequency): Set noreturn functions to be executed
11711 once.
11712 (choose_function_section): Update.
11713 * lto-streamer-in.c (input_function): Do not input function frequency.
11714 * function.c (allocate_struct_function): Do not initialize function
11715 frequency.
11716 * function.h (function_frequency): Remove.
11717 (struct function): Remove function frequency.
11718 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
11719 (try_update): Update.
11720 * tree-inline.c (initialize_cfun): Do not update function frequency.
11721 * passes.c (pass_init_dump_file): Update.
11722 * i386.c (ix86_compute_frame_layout): Update.
11723 (ix86_pad_returns): Update.
11724
11725 2010-04-26 Jie Zhang <jie@codesourcery.com>
11726
11727 PR tree-optimization/43833
11728 * tree-vrp.c (range_int_cst_p): New.
11729 (range_int_cst_singleton_p): New.
11730 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
11731 when both operands are constants. Use range_int_cst_p in
11732 BIT_IOR_EXPR case.
11733
11734 2010-04-26 Jan Hubicka <jh@suse.cz>
11735
11736 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
11737
11738 2010-04-26 Richard Guenther <rguenther@suse.de>
11739
11740 PR lto/43080
11741 * gimple.c (gimple_decl_printable_name): Deal gracefully
11742 with a NULL DECL_NAME.
11743
11744 2010-04-26 Richard Guenther <rguenther@suse.de>
11745
11746 PR lto/42425
11747 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
11748 if emitting debug information and it is either a function
11749 or a namespace decl.
11750
11751 2010-04-26 Ira Rosen <irar@il.ibm.com>
11752
11753 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
11754 determine if the statement is vectorizable, and a macro to access it.
11755 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11756 Skip statements that can't be vectorized. If the analysis fails,
11757 mark the statement as unvectorizable if vectorizing basic block.
11758 (vect_compute_data_refs_alignment): Likewise.
11759 (vect_verify_datarefs_alignment): Skip statements marked as
11760 unvectorizable. Add print.
11761 (vect_analyze_group_access): Skip statements that can't be
11762 vectorized. If the analysis fails, mark the statement as
11763 unvectorizable if vectorizing basic block.
11764 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
11765 * tree-vect-stmts.c (vectorizable_store): Fix the number of
11766 generated stmts for SLP.
11767 (new_stmt_vec_info): Initialize the new field.
11768 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
11769 statements marked as unvectorizable.
11770
11771 2010-04-25 Joseph Myers <joseph@codesourcery.com>
11772
11773 * c-common.c (flag_isoc1x): New.
11774 (flag_isoc99): Update comment.
11775 * c-common.h (flag_isoc1x): New.
11776 (flag_isoc99): Update comment.
11777 * c-cppbuiltin.c (builtin_define_float_constants): Also define
11778 __<type>_DECIMAL_DIG__.
11779 * c-opts.c (set_std_c1x): New.
11780 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
11781 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
11782 * c.opt (-std=c1x, -std=gnu1x): New options.
11783 * doc/cpp.texi: Mention -std=c1x.
11784 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
11785 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
11786 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
11787 * doc/standards.texi: Mention C1X.
11788 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
11789 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
11790 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11791 Define for C1X.
11792
11793 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
11794
11795 * config/i386/gmon-sol2.c (_mcleanup): Change format string
11796 placeholder from 0x%x to %#x.
11797 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11798 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11799 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11800 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11801 * config/i386/i386.c (ix86_target_string): Ditto.
11802 (output_pic_addr_const): Ditto.
11803 (print_operand): Ditto.
11804
11805 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
11806
11807 * combine.c (find_split_point): Add third argument. Use it
11808 to find nested multiply-accumulate instructions. Adjust calls.
11809 (try_combine): Adjust call to find_split_point.
11810
11811 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
11812
11813 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
11814
11815 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
11816
11817 PR tree-optimization/41442
11818 * fold-const.c (merge_truthop_with_opposite_arm): New function.
11819 (fold_binary_loc): Call it.
11820
11821 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11822
11823 * toplev.c (general_init): Set default for fdiagnostics-show-option.
11824 * opts.c (common_handle_option): Allow disabling it.
11825 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
11826
11827 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
11828
11829 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
11830 between modes if both types are integral.
11831
11832 2010-04-23 Richard Guenther <rguenther@suse.de>
11833
11834 PR tree-optimization/43572
11835 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
11836
11837 2010-04-23 Richard Guenther <rguenther@suse.de>
11838
11839 PR lto/43455
11840 * tree-inline.c (tree_can_inline_p): Also check compatibility
11841 of return types.
11842
11843 2010-04-23 Martin Jambor <mjambor@suse.cz>
11844
11845 PR tree-optimization/43846
11846 * tree-sra.c (struct access): New flag grp_assignment_read.
11847 (build_accesses_from_assign): Set grp_assignment_read.
11848 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11849 (enum mark_read_status): New type.
11850 (analyze_access_subtree): Propagate grp_assignment_read, create
11851 accesses also if both direct_read and root->grp_assignment_read.
11852
11853 2010-04-23 Martin Jambor <mjambor@suse.cz>
11854
11855 PR middle-end/43835
11856 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11857 function does not have type attributes.
11858
11859 2010-04-23 Richard Guenther <rguenther@suse.de>
11860
11861 PR lto/42653
11862 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11863 of FUNCTION_DECLs.
11864
11865 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11866
11867 * sese.h (create_if_region_on_edge): Remove.
11868
11869 * sese.c (create_if_region_on_edge): Make static.
11870
11871 * tree-inline.c: Do not include ggc.h.
11872
11873 * expr.c: Do not include ggc.h.
11874
11875 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11876 dependencies.
11877
11878 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
11879
11880 PR target/43744
11881 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11882 in the middle of insns for casesi_worker_2.
11883
11884 2010-04-22 David Edelsohn <edelsohn@gnu.org>
11885
11886 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11887
11888 2010-04-22 Ira Rosen <irar@il.ibm.com>
11889
11890 PR tree-optimization/43842
11891 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11892 loop unrolling in update of exit phis. Fix comment.
11893 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11894 least two reduction statements in the loop before starting SLP
11895 analysis.
11896
11897 2010-04-22 Nick Clifton <nickc@redhat.com>
11898
11899 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11900
11901 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
11902
11903 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11904 to simplify a + ~a.
11905
11906 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11907
11908 * tree-parloops.c (loop_parallel_p): New argument
11909 parloop_obstack. Pass it down.
11910 (parallelize_loops): New variable parloop_obstack. Initialize it,
11911 pass it down, free it.
11912
11913 * tree-loop-linear.c (linear_transform_loops): Pass down
11914 lambda_obstack.
11915
11916 * tree-data-ref.h (lambda_compute_access_matrices): New argument
11917 of type struct obstack *.
11918
11919 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11920 scratch_obstack. Initialize it, pass down, free it.
11921
11922 * lambda.h (lambda_loop_new): Remove.
11923 (lambda_matrix_new, lambda_matrix_inverse)
11924 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11925 argument of type struct obstack *.
11926
11927 * lambda-trans.c (lambda_trans_matrix_new): New argument
11928 lambda_obstack. Pass it down, use obstack allocation for ret.
11929 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
11930 it down.
11931
11932 * lambda-mat.c (lambda_matrix_get_column)
11933 (lambda_matrix_project_to_null): Remove.
11934 (lambda_matrix_new): New argument lambda_obstack. Use obstack
11935 allocation for mat.
11936 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11937 lambda_obstack.
11938
11939 * lambda-code.c (lambda_loop_new): New function.
11940 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11941 (lambda_compute_auxillary_space, lambda_compute_target_space)
11942 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11943 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11944 (build_access_matrix): New argument lambda_obstack. Use obstack
11945 allocation for am.
11946 (lambda_compute_step_signs, lambda_compute_access_matrices): New
11947 argument lambda_obstack. Pass it down.
11948
11949 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11950
11951 * optabs.h (expand_widening_mult): Declare.
11952
11953 2010-04-22 Richard Guenther <rguenther@suse.de>
11954
11955 PR tree-optimization/43845
11956 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11957 lookup the CALL_EXPR function and arguments.
11958
11959 2010-04-22 Nick Clifton <nickc@redhat.com>
11960
11961 * config/stormy16/stormy16.c
11962 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11963 * config/stormy16/stormy16.h: Tidy up formatting.
11964 (DONT_USE_BUILTIN_SETJMP): Remove definition.
11965 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11966 (ineqbranchsi): Delete pattern.
11967 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11968 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11969 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11970 stormy16-lib2-ucmpsi2.c.
11971
11972 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11973
11974 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11975 df_simulate_find_noclobber_defs as appropriate. Keep track of an
11976 extra set merge_set_noclobber, and use it to relax the final test
11977 slightly.
11978 * df.h (df_simulate_find_noclobber_defs): Declare.
11979 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11980 conditional defs.
11981 (df_simulate_find_noclobber_defs): New function.
11982
11983 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
11984
11985 * config/i386/i386.md: Use {} around multi-line preparation statements.
11986
11987 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11988
11989 * c-tree.h (push_init_level, pop_init_level, set_init_index)
11990 (process_init_element): New argument of type struct obstack *.
11991
11992 * c-typeck.c (push_init_level, pop_init_level, set_designator)
11993 (set_init_index, set_init_label, set_nonincremental_init)
11994 (set_nonincremental_init_from_string, find_init_member)
11995 (output_init_element, output_pending_init_elements)
11996 (process_init_element): New argument braced_init_obstack. Pass it
11997 down.
11998 (push_range_stack, add_pending_init): New argument
11999 braced_init_obstack. Use obstack allocation.
12000
12001 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
12002 braced_init_obstack. Pass it down.
12003 (c_parser_braced_init): New variables ret, braced_init_obstack.
12004 Initialize obstack, pass it down and finally free it.
12005
12006 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12007
12008 PR middle-end/29274
12009 * tree-pass.h (pass_optimize_widening_mul): Declare.
12010 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
12011 gate_optimize_widening_mul): New static functions.
12012 (pass_optimize_widening_mul): New.
12013 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
12014 <case MULT_EXPR>: Remove support for widening multiplies.
12015 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
12016 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
12017 simplify_gen_unary rather than directly building extensions.
12018 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
12019 WIDEN_MULT_EXPR.
12020 * expmed.c (expand_widening_mult): New function.
12021 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
12022
12023 2010-04-21 Jan Hubicka <jh@suse.cz>
12024
12025 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
12026 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
12027 * lto-wpa-fixup.c: Remove.
12028 * Makefile.in (lto-wpa-fixup.o): Remove.
12029 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
12030 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
12031 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
12032
12033 2010-04-21 Jan Hubicka <jh@suse.cz>
12034
12035 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
12036 add write_optimization_summary, read_optimization_summary.
12037 (ipa_write_summaries_of_cgraph_node_set): Remove.
12038 (ipa_write_optimization_summaries): Declare.
12039 (ipa_read_optimization_summaries): Declare.
12040 * ipa-cp.c (pass_ipa_cp): Update.
12041 * ipa-reference.c (pass_ipa_reference): Update.
12042 * ipa-pure-const.c (pass_ipa_pure_const): Update.
12043 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
12044 Update.
12045 * ipa-inline.c (pass_ipa_inline): Update.
12046 * ipa.c (pass_ipa_whole_program): Update.
12047 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
12048 * passes.c (ipa_write_summaries_1): Do not test wpa.
12049 (ipa_write_optimization_summaries_1): New.
12050 (ipa_write_optimization_summaries): New.
12051 (ipa_read_summaries): Do not test ltrans.
12052 (ipa_read_optimization_summaries_1): New.
12053 (ipa_read_optimization_summaries): New.
12054
12055 2010-04-21 Jan Hubicka <jh@suse.cz>
12056
12057 * lto-cgraph.c (lto_output_node): Do not output comdat groups
12058 for boundary nodes.
12059 (output_cgraph): Do not arrange comdat groups for boundary nodes.
12060
12061 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12062
12063 PR debug/40040
12064 * dwarf2out.c (add_name_and_src_coords_attributes): Add
12065 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
12066
12067 2010-04-21 Jan Hubicka <jh@suse.cz>
12068
12069 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
12070
12071 2010-04-21 Jan Hubicka <jh@suse.cz>
12072
12073 * varpool.c (decide_is_variable_needed): Variable is always needed
12074 during ltrans.
12075
12076 2010-04-21 Jan Hubicka <jh@suse.cz>
12077
12078 * opts.c (decode_options): Enable pure-const pass for whopr.
12079
12080 2010-04-21 Jan Hubicka <jh@suse.cz>
12081
12082 * cgraph.c (dump_cgraph_node): Dump also assembler name.
12083 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
12084 at WPA dumping.
12085 (cgraph_decide_inlining): Do not expect callee to be removed in all
12086 cases.
12087
12088 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
12089
12090 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
12091
12092 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
12093
12094 * config/i386/i386.md (x86_shrd): Add athlon_decode and
12095 amdfam10_decode attributes.
12096
12097 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12098
12099 PR middle-end/43570
12100 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
12101 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
12102 (lower_copyprivate_clauses): Use private var in outer
12103 context instead of original var. Make sure the types
12104 are correct for VLAs.
12105
12106 2010-04-21 Richard Guenther <rguenther@suse.de>
12107
12108 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
12109 to non-pointer objects.
12110
12111 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12112
12113 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
12114 last chain entry if it starts with the still current label.
12115 (add_location_or_const_value_attribute): Check that
12116 loc_list->first->next is NULL instead of comparing ->first with ->last.
12117 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
12118 to add_var_loc_to_decl.
12119
12120 * dwarf2out.c (output_call_frame_info): For dw_cie_version
12121 >= 4 add also address size and segment size fields into CIE header.
12122
12123 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
12124 long as address size is the same as sizeof (void *) and
12125 segment size is 0.
12126 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
12127 address size or segment size is unexpected, return DW_EH_PE_omit.
12128 (classify_object_over_fdes): If get_cie_encoding returned
12129 DW_EH_PE_omit, return -1.
12130 (init_object): If classify_object_over_fdes returned -1,
12131 pretend there were no FDEs at all.
12132
12133 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
12134
12135 * config/i386/i386.md (bswap<mode>2): Macroize expander from
12136 bswap{si,di}2 using SWI48 mode iterator.
12137 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
12138 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
12139 set modrm attribute of bswap insn to 0 and remove length attribute.
12140 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
12141 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
12142 set mode attribute to <MODE> and remove length attribute.
12143
12144 2010-04-20 James E. Wilson <wilson@codesourcery.com>
12145
12146 PR rtl-optimization/43520
12147 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
12148 zero available registers.
12149
12150 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12151
12152 * builtins.c (fold_builtin_cproj): Fold more cases.
12153
12154 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12155
12156 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
12157 (fold_builtin_1): Fold builtin cproj.
12158 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
12159 Use ATTR_CONST_NOTHROW_LIST.
12160
12161 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
12162
12163 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
12164 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
12165 ffsi2_no_cmove for !TARGET_CMOVE.
12166 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
12167 (ffssi2): Remove expander.
12168 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
12169 mode iterator.
12170 (ctz<mode>2): Ditto from ctz{si,di}2.
12171 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
12172 mode iterator.
12173 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
12174 mode iterator.
12175
12176 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12177
12178 * dwarf2out.c (AT_linkage_name): Define.
12179 (clone_as_declaration): Handle DW_AT_linkage_name.
12180 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
12181 of DW_AT_MIPS_linkage_name.
12182 (move_linkage_attr): Likewise.
12183 (dwarf2out_finish): Likewise.
12184
12185 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
12186
12187 PR middle-end/41952
12188 * fold-const.c (fold_comparison): New folding rule.
12189
12190 2010-04-20 Anatoly Sokolov <aesok@post.ru>
12191
12192 * double-int.h (double_int_setbit): Declare.
12193 * double-int.c (double_int_setbit): New function.
12194 * rtl.h (immed_double_int_const): Declare.
12195 * emit-rtl.c (immed_double_int_const): New function.
12196 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
12197 and immed_double_int_const functions.
12198 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
12199 expand_copysign_bit): (Ditto.).
12200 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
12201 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
12202 * dojump.c (prefer_and_bit_test): (Ditto.).
12203 * expr.c (convert_modes, reduce_to_bit_field_precision,
12204 const_vector_from_tree): (Ditto.).
12205 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12206
12207 2010-04-20 Jan Hubicka <jh@suse.cz>
12208
12209 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
12210 (dump_cgraph_node): Dump new flags.
12211 * cgraph.h (struct cgraph_node): Add flags
12212 reachable_from_other_partition and in_other_partition.
12213 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
12214 other partition can not be removed.
12215 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
12216 the other partition must be output; silence sanity checking on
12217 leaking functions bodies from other paritition.
12218 * lto-cgraph.c (reachable_from_other_partition_p): New function.
12219 (lto_output_node): Output new flags; do not sanity check that inline
12220 clones are output; drop lto_forced_extern_inline_p code; do not mock
12221 visibility flags at partition boundaries.
12222 (add_node_to): New function.
12223 (output_cgraph): Use it to sort functions so masters appear before
12224 clones.
12225 (input_overwrite_node): Input new flags.
12226 * passes.c (ipa_write_summaries): Do not call
12227 lto_new_extern_inline_states.
12228 * lto-section-out.c (forced_extern_inline,
12229 lto_new_extern_inline_states lto_delete_extern_inline_states,
12230 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12231 * lto-streamer.h (lto_new_extern_inline_states,
12232 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12233 lto_forced_extern_inline_p): Kill.
12234
12235 2010-04-20 Richard Guenther <rguenther@suse.de>
12236
12237 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12238 from vars that can have pointers.
12239 (process_constraint): Dump useless constraints.
12240
12241 2010-04-20 Richard Guenther <rguenther@suse.de>
12242
12243 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12244 (dump_sa_points_to_info): Remove asserts.
12245 (init_base_vars): nothing_id isn't an escape point nor does it
12246 have pointers.
12247
12248 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12249
12250 * tree.h (TYPE_REF_IS_RVALUE): Define.
12251 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12252 should_move_die_to_comdat, prune_unused_types_walk): Handle
12253 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12254 (modified_type_die, gen_reference_type_die): Emit
12255 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12256 if TYPE_REF_IS_RVALUE and -gdwarf-4.
12257
12258 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12259
12260 PR target/43635
12261 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12262 calls for -fpic -m31 if they have been sibcall optimized.
12263
12264 2010-04-19 James E. Wilson <wilson@codesourcery.com>
12265
12266 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12267 ar.lc fixed and call-used.
12268
12269 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12270
12271 2010-04-19 Jan Hubicka <jh@suse.cz>
12272
12273 * opts.c (decode_options): Disable whpr incompatible passes.
12274 * lto/lto.c (lto_1_to_1_map): Skip clones.
12275 (read_cgraph_and_symbols): Do not mark everything as needed.
12276 (do_whole_program_analysis): Do map only after optimizing;
12277 set proper cgraph_state; use passmanager.
12278
12279 2010-04-19 DJ Delorie <dj@redhat.com>
12280
12281 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12282 POINTER_PLUS_EXPR and fix them.
12283
12284 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
12285
12286 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12287 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12288 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12289 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12290 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12291 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12292 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
12293 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
12294 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
12295 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
12296 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
12297
12298 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
12299
12300 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
12301 (check_cond_move_block): Likewise.
12302 (cond_move_process_if_block): Likewise.
12303 (noce_find_if_block): Improve formatting.
12304 (find_if_header): Pass 0 to memset and tweak conditions.
12305 (cond_exec_find_if_block): Fix long lines and tweak conditions.
12306
12307 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12308
12309 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
12310 for -gdwarf-4.
12311
12312 PR middle-end/43337
12313 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
12314 with non-local decl doesn't need chain.
12315
12316 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
12317
12318 * ira-color.c (allocno_reload_assign): Avoid accumulating
12319 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
12320
12321 2010-04-19 Martin Jambor <mjambor@suse.cz>
12322
12323 * gimple.h (create_tmp_reg): Declare.
12324 * gimplify.c (create_tmp_reg): New function.
12325 (gimplify_return_expr): Use create_tmp_reg.
12326 (gimplify_omp_atomic): Likewise.
12327 (gimple_regimplify_operands): Likewise.
12328 * tree-dfa.c (make_rename_temp): Likewise.
12329 * tree-predcom.c (predcom_tmp_var): Likewise.
12330 (reassociate_to_the_same_stmt): Likewise.
12331 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
12332 (get_replaced_param_substitute): Likewise.
12333 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12334 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
12335 * tree-ssa-pre.c (get_representative_for): Likewise.
12336 (create_expression_by_pieces): Likewise.
12337 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12338 (create_tailcall_accumulator): Likewise.
12339
12340 2010-04-19 Martin Jambor <mjambor@suse.cz>
12341
12342 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
12343 new_stmt.
12344 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
12345
12346 2010-04-19 Richard Guenther <rguenther@suse.de>
12347
12348 PR tree-optimization/43796
12349 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
12350 from SCEV in the lattice.
12351 (vrp_visit_phi_node): Dump change.
12352
12353 2010-04-19 Richard Guenther <rguenther@suse.de>
12354
12355 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
12356 * configure: Re-generated.
12357
12358 2010-04-19 Richard Guenther <rguenther@suse.de>
12359
12360 PR tree-optimization/43783
12361 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
12362 constant ARRAY_REF operands two and three if possible.
12363
12364 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
12365
12366 PR target/43766
12367 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
12368
12369 2010-04-19 Jie Zhang <jie@codesourcery.com>
12370
12371 PR target/43662
12372 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
12373
12374 2010-04-19 Ira Rosen <irar@il.ibm.com>
12375
12376 PR tree-optimization/37027
12377 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
12378 and macro to access it.
12379 (vectorizable_reduction): Add argument.
12380 (vect_get_slp_defs): Likewise.
12381 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
12382 statements for possible use in SLP.
12383 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
12384 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
12385 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
12386 add new argument.
12387 (vectorizable_reduction): Likewise.
12388 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
12389 vect_get_slp_defs.
12390 (vectorizable_type_demotion, vectorizable_type_promotion,
12391 vectorizable_store): Likewise.
12392 (vect_analyze_stmt): Update call to vectorizable_reduction.
12393 (vect_transform_stmt): Likewise.
12394 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
12395 (vect_build_slp_tree): Fix indentation. Check that there are no loads
12396 from different interleaving chains in same node.
12397 (vect_slp_rearrange_stmts): New function.
12398 (vect_supported_load_permutation_p): Allow load permutations for
12399 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
12400 inside SLP nodes if necessary.
12401 (vect_analyze_slp_instance): Handle reductions.
12402 (vect_analyze_slp): Try to build SLP instances originating from groups
12403 of reductions.
12404 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
12405 (vect_get_constant_vectors): Create initial vectors for reductions
12406 according to reduction code. Add new argument.
12407 (vect_get_slp_defs): Add new argument, pass it to
12408 vect_get_constant_vectors.
12409 (vect_schedule_slp_instance): Remove SLP tree root statements.
12410
12411 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12412
12413 * tree.h (ENUM_IS_SCOPED): Define.
12414 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
12415 for ENUM_IS_SCOPED enums.
12416
12417 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
12418
12419 * fold-const.c (fold_comparison): Use ssizetype.
12420 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
12421 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
12422 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
12423 * tree-object-size.c (compute_object_sizes): Use size_type_node.
12424
12425 * tree.h (initialize_sizetypes): Remove parameter.
12426 (build_common_tree_nodes): Remove second parameter.
12427 * stor-layout.c (initialize_sizetypes): Remove parameter.
12428 Always create an unsigned type.
12429 (set_sizetype): Assert that the passed type is unsigned and simplify.
12430 * tree.c (build_common_tree_nodes): Remove second parameter.
12431 Adjust call to initialize_sizetypes.
12432 * c-decl.c (c_init_decl_processing): Remove second argument in call to
12433 build_common_tree_nodes.
12434
12435 2010-04-18 Matthias Klose <doko@ubuntu.com>
12436
12437 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
12438
12439 2010-04-18 Ira Rosen <irar@il.ibm.com>
12440
12441 PR tree-optimization/43771
12442 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
12443 load permutation doesn't have gaps.
12444
12445 2010-04-18 Jan Hubicka <jh@suse.cz>
12446
12447 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
12448 (sse_prologue_save_insn expander): Use new pattern.
12449 (sse_prologue_save_insn1): New pattern and splitter.
12450 (sse_prologue_save_insn): Update to deal also with 64bit aligned
12451 blocks.
12452 * i386.c (setup_incoming_varargs_64): Do not compute jump
12453 destination here.
12454 (ix86_gimplify_va_arg): Update alignment needed.
12455 (ix86_local_alignment): Do not align all local arrays to 128bit.
12456
12457 2010-04-17 Jan Hubicka <jh@suse.cz>
12458
12459 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
12460
12461 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12462
12463 * arm.md (negdi2): Remove redundant code to force values into a
12464 register.
12465
12466 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12467
12468 * arm/bpabi.S: Add EABI alignment attributes to objects.
12469 * arm/bpabi-v6m.S: Likewise.
12470 * arm/crti.asm: Likewise.
12471 * arm/crtn.asm: Likewise.
12472 * arm/lib1funcs.asm: Likewise.
12473 * arm/libunwind.S: Likewise.
12474
12475 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12476
12477 * arm-protos.h (tune_params): New structure.
12478 * arm.c (current_tune): New variable.
12479 (arm_constant_limit): Delete.
12480 (struct processors): Add pointer to the tune parameters.
12481 (arm_slowmul_tune): New tuning option.
12482 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
12483 (all_cores): Adjust to pick up the tuning model.
12484 (arm_constant_limit): New function.
12485 (arm_override_options): Select the appropriate tuning model. Delete
12486 initialization of arm_const_limit.
12487 (arm_split_constant): Use the new constant-limit model.
12488 (arm_rtx_costs): Pick up the current tuning model.
12489 * arm.md (is_strongarm, is_xscale): Delete.
12490 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
12491 for Xscale variant architectures.
12492 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
12493
12494 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12495
12496 * config/arm/arm.c (arm_gen_constant): Remove unused variable
12497 can_shift.
12498 (arm_rtx_costs_1): Remove unused variable extra_cost.
12499 (arm_unwind_emit_set): Use variable offset.
12500 (thumb1_output_casesi): Remove unused variable flags.
12501
12502 2010-04-16 Jeff Law <law@redhat.com>
12503
12504 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
12505 needing assignment rather than doing a two-phase assignment. Remove
12506 unused variable 'm'.
12507
12508 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12509
12510 PR bootstrap/43767
12511 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
12512
12513 2010-04-16 Doug Kwan <dougkwan@google.com>
12514
12515 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
12516 (next_operand_entry_id): New static variable.
12517 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
12518 (add_to_ops_vec): Assigned unique ID to operand entry.
12519 (struct oecount_s): New field ID.
12520 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
12521 (undistribute_ops_list): Assign unique IDs to oecounts.
12522 (init_reassoc): reset next_operand_entry_id.
12523
12524 2010-04-16 Doug Kwan <dougkwan@google.com>
12525
12526 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
12527 missing left parenthesis.
12528
12529 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
12530
12531 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
12532 *btdi_rex64 using SWI48 mode iterator.
12533 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
12534 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
12535 *jcc_btdi_mask_rex64.
12536
12537 2010-04-16 Anatoly Sokolov <aesok@post.ru>
12538
12539 * double-int.h (tree_to_double_int): Convert to macro.
12540 * double-int.c (tree_to_double_int): Remove.
12541
12542 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12543
12544 PR debug/43762
12545 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
12546 with want_address 2 and in case a single element list might be
12547 possible, call it again with want_address 0.
12548
12549 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12550
12551 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
12552 case 'W' print operands for HI mode.
12553 * config/h8300/h8300.h (Y0, Y2) : New constraints.
12554 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
12555 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
12556 * config/h8300/predicate.md (bit_register_indirect_operand): New.
12557
12558 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
12559
12560 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
12561 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
12562 #xx:3 and #xx:4 mode.
12563
12564 * config/h8300/h8300.md (inverted load with HImode dest): Add
12565 support for H8300SX.
12566
12567 * config/h8300/predicate.md (bit_operand): Allow immediate values that
12568 satisfy 'U' constraint.
12569
12570 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12571
12572 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
12573 * configure: Regenerate.
12574 * config.in: Regenerate.
12575 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
12576 works.
12577
12578 2010-04-16 Richard Guenther <rguenther@suse.de>
12579
12580 * tree.h (struct tree_decl_minimal): Move pt_uid ...
12581 (struct tree_decl_common): ... here.
12582 (DECL_PT_UID): Adjust.
12583 (SET_DECL_PT_UID): Likewise.
12584 (DECL_PT_UID_SET_P): Likewise.
12585
12586 2010-04-16 Richard Guenther <rguenther@suse.de>
12587
12588 PR tree-optimization/43572
12589 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
12590 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
12591 * tree-flow.h (is_call_clobbered): Remove.
12592 * tree-flow-inline.h (is_call_clobbered): Likewise.
12593 * tree-dfa.c (dump_variable): Do not dump call clobber state.
12594 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
12595 (execute_return_slot_opt): Adjust.
12596 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
12597 check for call clobbered vars here.
12598 (find_tail_calls): Move tailcall verification to the
12599 proper place.
12600
12601 2010-04-16 Diego Novillo <dnovillo@google.com>
12602
12603 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
12604
12605 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12606
12607 PR target/40603
12608 * config/arm/arm.md (cbranchqi4): New pattern.
12609 * config/arm/predicates.md (const0_operand,
12610 cbranchqi4_comparison_operator): New predicates.
12611
12612 2010-04-16 Richard Guenther <rguenther@suse.de>
12613
12614 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
12615 (dump_gimple_stmt): Likewise.
12616
12617 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12618
12619 * recog.h (struct recog_data): New field is_operator.
12620 (struct insn_operand_data): New field is_operator.
12621 * recog.c (extract_insn): Set recog_data.is_operator.
12622 * genoutput.c (output_operand_data): Emit code to set the
12623 is_operator field.
12624 * reload.c (find_reloads): Use it rather than testing for an
12625 empty constraint string.
12626
12627 PR target/41514
12628 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
12629 If the previous insn is a cbranchsi4_insn with the same arguments,
12630 omit the compare instruction.
12631
12632 * config/arm/arm.md (addsi3_cbranch): If destination is a high
12633 register, inputs must be low registers and we need a low register
12634 scratch. Handle alternative 2 like alternative 3.
12635
12636 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12637
12638 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
12639 don't call get_addr on both. If one expression is a VALUE and
12640 the other a REG, check VALUE's locs if the REG isn't among them.
12641
12642 2010-04-16 Christian Bruel <christian.bruel@st.com>
12643
12644 * config/sh/sh.h (sh_frame_pointer_required): New function.
12645 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
12646 (flag_omit_frame_pointer) Set.
12647 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12648 (rounded_frame_size): Adjust size with outgoing_args_size.
12649 (sh_set_return_address): Must return from stack pointer.
12650 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12651 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12652 (ACCUMULATE_OUTGOING_ARGS): Define.
12653 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12654 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12655
12656 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12657
12658 PR target/43471
12659 * config/sh/sh.c (sh_legitimize_reload_address): Use
12660 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12661 Remove a unneeded check for offset_base.
12662
12663 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
12664
12665 * configure: Regenerated.
12666
12667 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12668
12669 * config/s390/s390.c (s390_call_save_register_used): Switch back
12670 to HARD_REGNO_NREGS.
12671
12672 2010-04-15 Richard Guenther <rguenther@suse.de>
12673
12674 * alias.c (alias_set_subset_of): Handle alias-set zero
12675 child properly.
12676
12677 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
12678 Julian Brown <julian@codesourcery.com>
12679
12680 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12681 alternatives according to use of high and low regs.
12682 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12683 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12684 optimizing for size on Thumb-2.
12685
12686 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
12687
12688 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12689
12690 2010-04-15 Richard Guenther <rguenther@suse.de>
12691
12692 * tree-ssa-structalias.c (struct variable_info): Add
12693 is_fn_info flag.
12694 (new_var_info): Initialize it.
12695 (dump_constraints): Support printing last added constraints.
12696 (debug_constraints): Adjust.
12697 (dump_constraint_graph): Likewise.
12698 (make_heapvar_for): Check for NULL cfun.
12699 (get_function_part_constraint): New function.
12700 (get_fi_for_callee): Likewise.
12701 (find_func_aliases): Properly implement IPA PTA constraints.
12702 (process_ipa_clobber): New function.
12703 (find_func_clobbers): Likewise.
12704 (insert_into_field_list_sorted): Remove.
12705 (create_function_info_for): Properly allocate vars for IPA mode.
12706 Do not use insert_into_field_list_sorted.
12707 (create_variable_info_for): Properly generate constraints for
12708 global vars in IPA mode.
12709 (dump_solution_for_var): Always dump the solution.
12710 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
12711 (find_what_var_points_to): Adjust.
12712 (pt_solution_set): Change.
12713 (pt_solution_ior_into): New function.
12714 (pt_solution_empty_p): Export.
12715 (pt_solution_includes_global): Adjust.
12716 (pt_solution_includes_1): Likewise.
12717 (pt_solutions_intersect_1): Likewise.
12718 (dump_sa_points_to_info): Check some invariants.
12719 (solve_constraints): Move constraint dumping ...
12720 (compute_points_to_sets): ... here.
12721 (ipa_pta_execute): ... and here.
12722 (compute_may_aliases): Do not re-compute points-to info
12723 locally if IPA info is available.
12724 (ipa_escaped_pt): New global var.
12725 (ipa_pta_execute): Properly implement IPA PTA.
12726 * tree-into-ssa.c (dump_decl_set): Support dumping
12727 decls not in referenced-vars.
12728 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
12729 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
12730 (dump_points_to_solution): Likewise.
12731 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
12732 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
12733 (remap_gimple_stmt): Reset call clobber/use information if necessary.
12734 (copy_decl_to_var): Copy DECL_PT_UID.
12735 (copy_result_decl_to_var): Likewise.
12736 * tree.c (make_node_stat): Initialize DECL_PT_UID.
12737 (copy_node_stat): Copy it.
12738 * tree.h (DECL_PT_UID): New macro.
12739 (SET_DECL_PT_UID): Likewise.
12740 (DECL_PT_UID_SET_P): Likewise.
12741 (struct tree_decl_minimal): Add pt_uid member.
12742 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
12743 (pt_solution_empty_p): Declare.
12744 (pt_solution_set): Adjust.
12745 (ipa_escaped_pt): Declare.
12746 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
12747 * gimple-pretty-print.c (pp_points_to_solution): New function.
12748 (dump_gimple_call): Dump call clobber/use information.
12749 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
12750 * tree-pass.h (TDF_ALIAS): New dump option.
12751 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
12752 * doc/invoke.texi (-fipa-pta): Update documentation.
12753
12754 2010-04-15 Richard Guenther <rguenther@suse.de>
12755
12756 * Makefile.in (OBJS-common): Add gimple-fold.o.
12757 (gimple-fold.o): New rule.
12758 * tree.h (maybe_fold_offset_to_reference,
12759 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
12760 prototypes ...
12761 * gimple.h: ... here.
12762 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
12763 may_propagate_address_into_dereference): Move prototypes ...
12764 * gimple.h: ... here.
12765 * tree-ssa-ccp.c (get_symbol_constant_value,
12766 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
12767 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
12768 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
12769 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
12770 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
12771 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
12772 gimplify_and_update_call_from_tree): Move ...
12773 * gimple-fold.c: ... here. New file.
12774 (ccp_fold_builtin): Rename to ...
12775 (gimple_fold_builtin): ... this.
12776 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
12777
12778 2010-04-15 Richard Guenther <rguenther@suse.de>
12779
12780 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
12781 fit_double_type, force_fit_type_double, add_double_with_sign,
12782 neg_double, mul_double_with_sign, lshift_double, rshift_double,
12783 lrotate_double, rrotate_double, div_and_round_double): Move ...
12784 * double-int.c: ... here.
12785 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
12786 add_double, neg_double, mul_double_with_sign, mul_double,
12787 lshift_double, rshift_double, lrotate_double, rrotate_double,
12788 div_and_round_double): Move prototypes ...
12789 * double-int.h: ... here.
12790
12791 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
12792
12793 PR target/43742
12794 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
12795 matching constraints to ensure inputs match the output.
12796
12797 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12798
12799 PR target/43742
12800 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
12801 in an input-only operand.
12802
12803 2010-04-15 Anatoly Sokolov <aesok@post.ru>
12804
12805 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
12806 (double_int_not, double_int_lshift, double_int_rshift): Declare.
12807 (double_int_negative_p): Convert to static inline function.
12808 * double-int.c (double_int_lshift, double_int_lshift): New functions.
12809 (double_int_negative_p): Remove.
12810 * tree.h (lshift_double, rshift_double):
12811 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
12812 * fold-const.c (fold_convert_const_int_from_real,
12813 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
12814 (lshift_double): Change type of arith argument to bool.
12815 (rshift_double): Change type of arith argument to bool. Correct
12816 comment.
12817 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12818
12819 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
12820
12821 PR target/21803
12822 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
12823 at the start and end of the then/else blocks, and omit them from the
12824 conversion.
12825 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
12826 argument; all callers changed. Pass zero to old_insns_match_p instead.
12827 (flow_find_head_matching_sequence): New function.
12828 (old_insns_match_p): Check REG_EH_REGION notes for calls.
12829 * basic-block.h (flow_find_cross_jump,
12830 flow_find_head_matching_sequence): Declare functions.
12831
12832 2010-04-14 Jason Merrill <jason@redhat.com>
12833
12834 PR c++/36625
12835 * c-common.c (attribute_takes_identifier_p): New fn.
12836 * c-common.h: Declare it.
12837
12838 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12839
12840 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12841 splitter condition.
12842 (*udivmod<mode>4): Ditto.
12843
12844 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12845
12846 * config/i386/i386.md (maxmin_int): Rename code attribute from
12847 maxminiprefix and update all users.
12848 (maxmin_float): Ditto from maxminfprefix.
12849 (logic): Ditto from logicprefix.
12850 (absneg_mnemonic): Ditto from absnegprefix.
12851 * config/i386/mmx.md: Update all users of maxminiprefix,
12852 maxminfprefix and logicprefix for rename.
12853 * config/i386/sse.md: Ditto.
12854 * config/i386/sync.md (sync_<code><mode>): Update for
12855 logicprefix rename.
12856
12857 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12858
12859 PR 42966
12860 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12861 warnings converted to errors.
12862
12863 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12864
12865 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12866 used insn_type variable.
12867 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12868 to avoid set-but-not-used warning.
12869
12870 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12871
12872 * df-core.c (df_ref_debug): Change format string placeholder
12873 from 0x%x to %#x.
12874 * dwarf2asm.c (dw2_asm_output_data_raw,
12875 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12876 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12877 * dwarf2out.c (output_cfi, output_cfi_directive,
12878 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12879 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12880 Ditto.
12881 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12882 * print-rtl.c (print_rtx): Ditto.
12883
12884 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12885
12886 PR middle-end/42694
12887 * builtins.c (expand_builtin_pow_root): New function to expand pow
12888 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12889 series of sqrt and cbrt calls under -ffast-math.
12890 (expand_builtin_pow): Call it.
12891
12892 2010-04-14 Michael Matz <matz@suse.de>
12893
12894 PR tree-optimization/42963
12895 * tree-cfg.c (touched_switch_bbs): New static variable.
12896 (group_case_labels_stmt): New function broken out from ...
12897 (group_case_labels): ... here, use the above.
12898 (start_recording_case_labels): Allocate touched_switch_bbs.
12899 (end_recording_case_labels): Deallocate it, call
12900 group_case_labels_stmt.
12901 (gimple_redirect_edge_and_branch): Remember index of affected BB.
12902
12903 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12904
12905 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12906 from insn template.
12907
12908 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12909
12910 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12911
12912 2010-04-13 Jan Hubicka <jh@suse.cz>
12913
12914 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12915 of optimized out static functions.
12916 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12917 cost computation. Also sanity check for overflows.
12918 (update_caller_keys): Update cgraph_edge_badness call; properly
12919 update fibheap and sanity check that it is up to date.
12920 (add_new_edges_to_heap): Update cgraph_edge_badness.
12921 (cgraph_decide_inlining_of_small_function): Likewise;
12922 add sanity checking that badness in heap is up to date;
12923 improve dumping of reason; Update badness of calls to the
12924 offline copy of function currently inlined; dump badness
12925 of functions not inlined because of unit growth limits.
12926
12927 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12928
12929 PR middle-end/32628
12930 * c-common.c (pointer_int_sum): Disregard overflow that occured only
12931 because of sign-extension change when converting to sizetype here...
12932 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12933
12934 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12935 the folding to constants. Remove redundant final conversion.
12936 (fold_binary) <associate>: Do not associate if the re-association of
12937 constants alone overflows.
12938 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12939 to the end of the list.
12940 (multiple_of_p) <COND_EXPR>: New case.
12941
12942 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
12943
12944 * opt-functions.awk (opt_sanitized_name): New.
12945 (opt_enum): New.
12946 * optc-gen.awk: Use it
12947 * opth-gen.awk: Use it.
12948
12949 2010-04-13 Martin Jambor <mjambor@suse.cz>
12950
12951 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12952 (sra_modify_assign): Delete stmts loading dead data even if racc has no
12953 children. Call replace_uses_with_default_def_ssa_name to handle
12954 SSA_NAES on lhs.
12955
12956 2010-04-13 Michael Matz <matz@suse.de>
12957
12958 PR middle-end/43730
12959 * builtins.c (expand_builtin_interclass_mathfn): Also create
12960 a register if the predicate doesn't match.
12961
12962 2010-04-13 Diego Novillo <dnovillo@google.com>
12963
12964 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12965 * c-pch.c: Include timevar.h.
12966 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12967 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12968 * ggc-common.c: Include timevar.h.
12969 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12970 * timevar.def (TV_PCH_SAVE): Define.
12971 (TV_PCH_CPP_SAVE): Define.
12972 (TV_PCH_PTR_REALLOC): Define.
12973 (TV_PCH_PTR_SORT): Define.
12974 (TV_PCH_RESTORE): Define.
12975 (TV_PCH_CPP_RESTORE): Define.
12976
12977 2010-04-13 Michael Matz <matz@suse.de>
12978
12979 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12980 into MINUS_EXPRs.
12981 (can_reassociate_p): New function.
12982 (break_up_subtract_bb, reassociate_bb): Use it.
12983
12984 2010-04-13 Richard Guenther <rguenther@suse.de>
12985
12986 PR bootstrap/43737
12987 * builtins.c (c_readstr): Fix assert.
12988
12989 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
12990
12991 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12992 when generating cltd insn.
12993
12994 (*ashl<mode>3_1): Remove special handling for register operand 2.
12995 (*ashlsi3_1_zext): Ditto.
12996 (*ashlhi3_1): Ditto.
12997 (*ashlhi3_1_lea): Ditto.
12998 (*ashlqi3_1): Ditto.
12999 (*ashlqi3_1_lea): Ditto.
13000 (*<shiftrt_insn><mode>3_1): Ditto.
13001 (*<shiftrt_insn>si3_1_zext): Ditto.
13002 (*<shiftrt_insn>qi3_1_slp): Ditto.
13003 (*<rotate_insn><mode>3_1): Ditto.
13004 (*<rotate_insn>si3_1_zext): Ditto.
13005 (*<rotate_insn>qi3_1_slp): Ditto.
13006
13007 2010-04-13 Richard Guenther <rguenther@suse.de>
13008
13009 * tree-ssa-structalias.c (callused_id): Remove.
13010 (call_stmt_vars): New.
13011 (get_call_vi): Likewise.
13012 (lookup_call_use_vi): Likewise.
13013 (lookup_call_clobber_vi): Likewise.
13014 (get_call_use_vi): Likewise.
13015 (get_call_clobber_vi): Likewise.
13016 (make_transitive_closure_constraints): Likewise.
13017 (handle_const_call): Adjust to do per-call call-used handling.
13018 (handle_pure_call): Likewise.
13019 (find_what_var_points_to): Remove general callused handling.
13020 (init_base_vars): Likewise.
13021 (init_alias_vars): Initialize call_stmt_vars.
13022 (compute_points_to_sets): Process call-used and call-clobbered
13023 vars for call statements.
13024 (delete_points_to_sets): Free call_stmt_vars.
13025
13026 2010-04-13 Richard Guenther <rguenther@suse.de>
13027
13028 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13029 Only add RW dependence for dependence distance zero.
13030 Adjust maximal vectorization factor according to dependences.
13031 Move alignment handling ...
13032 (vect_find_same_alignment_drs): ... here. New function.
13033 (vect_analyze_data_ref_dependences): Adjust.
13034 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
13035 (vect_analyze_data_refs): Adjust minimal vectorization factor
13036 according to data references.
13037 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
13038 dependences before determining the vectorization factor.
13039 Analyze alignment after determining the vectorization factor.
13040 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
13041 dependences before alignment.
13042 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
13043 Adjust prototype.
13044 (vect_analyze_data_refs): Likewise.
13045 (MAX_VECTORIZATION_FACTOR): New define.
13046
13047 2010-04-13 Duncan Sands <baldrick@free.fr>
13048
13049 * except.h (lang_eh_type_covers): Remove.
13050 * except.c (lang_eh_type_covers): Likewise.
13051
13052 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13053 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13054
13055 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
13056 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
13057 UNITS_PER_LONG where it is ABI relevant.
13058 (s390_return_addr_rtx): Likewise.
13059 (s390_back_chain_rtx): Likewise.
13060 (s390_frame_area): Likewise.
13061 (s390_frame_info): Likewise.
13062 (s390_initial_elimination_offset): Likewise.
13063 (save_gprs): Likewise.
13064 (s390_emit_prologue): Likewise.
13065 (s390_emit_epilogue): Likewise.
13066 (s390_function_arg_advance): Likewise.
13067 (s390_function_arg): Likewise.
13068 (s390_va_start): Likewise.
13069 (s390_gimplify_va_arg): Likewise.
13070 (s390_function_profiler): Likewise.
13071 (s390_optimize_prologue): Likewise.
13072 (s390_rtx_costs): Likewise.
13073 (s390_secondary_reload): Likewise.
13074 (s390_promote_function_mode): Likewise.
13075 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
13076 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
13077 registers available.
13078 (s390_unwind_word_mode): New function.
13079 (s390_function_value): Split 64 bit values into register pair if
13080 used as return value.
13081 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
13082 function call parameters. Handle parallels.
13083 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
13084 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
13085 (DWARF_CIE_DATA_ALIGNMENT): New macro.
13086 (s390_expand_setmem): Remove unused variable src_addr.
13087 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
13088 deal with 64 bit registers.
13089 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
13090 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
13091 (UNITS_PER_LONG): New macro.
13092 * libjava/include/s390-signal.h: Define extended ucontext
13093 structure containing the upper halfs of the 64 bit registers.
13094
13095 2010-04-13 Simon Baldwin <simonb@google.com>
13096
13097 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
13098
13099 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
13100
13101 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
13102 rvalue on the RHS if the LHS is of a non-renamable type.
13103 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
13104
13105 2010-04-13 Matthias Klose <doko@ubuntu.com>
13106
13107 * gcc.c (cc1_options): Handle -iplugindir before processing
13108 the cc1 spec. Only add -iplugindir once.
13109 (cpp_unique_options): Add -iplugindir option if -fplugin* options
13110 found.
13111 * common.opt (iplugindir): Remove `Separate' property, initialize.
13112 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
13113 option.
13114 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
13115 (distclean): Remove plugin dir.
13116 * doc/invoke.texi: Document -iplugindir.
13117
13118 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
13119
13120 * doc/plugins.texi (Loading Plugins): Document short
13121 -fplugin=foo option.
13122 (Plugin API): Mention default_plugin_dir_name function.
13123
13124 * gcc.c (find_file_spec_function): Add new declaration.
13125 (static_spec_func): Use it for "find-file".
13126 (find_file_spec_function): Add new function.
13127 (cc1_options): Add -iplugindir option if -fplugin* options found.
13128
13129 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
13130
13131 * plugin.c (add_new_plugin): Updated comment, and handle short
13132 plugin name.
13133 (default_plugin_dir_name): Added new function.
13134
13135 * common.opt (iplugindir): New option to set the plugin directory.
13136
13137 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
13138
13139 * config/i386/i386.md (any_rotate): New code iterator.
13140 (rotate_insn): New code attribute.
13141 (rotate): Ditto.
13142 (SWIM124): New mode iterator.
13143 (<rotate_insn>ti3): New expander.
13144 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
13145 any_rotate code iterator.
13146 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
13147 using any_rotate code iterator and SWIM124 mode iterator.
13148 (ix86_rotlti3): New insn_and_split pattern.
13149 (ix86_rotrti3): Ditto.
13150 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
13151 ix86_rotl{di,ti}3 patterns.
13152 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
13153 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
13154 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
13155 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
13156 code iterator and SWI mode iterator.
13157 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
13158 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
13159 code iterator.
13160 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
13161 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
13162 (bswap rotatert splitter): Add splitter.
13163 (bswap splitter): Macroize splitter using any_rotate code iterator.
13164 Add insn predicate to split only for TARGET_USE_XCHGB or when
13165 optimizing function for size.
13166
13167 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13168
13169 * config/pa/pa.c (emit_move_sequence): Remove use of
13170 deleted variable flag_argument_noalias.
13171
13172 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13173
13174 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
13175 configurations.
13176 Add to unsupported targets list.
13177 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
13178 sparc*-sun-solaris2.[567]* from target lists.
13179 * configure: Regenerate.
13180 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
13181 removal.
13182 Remove Solaris 7 patch references.
13183 (Specific, sparc-sun-solaris2.7): Removed.
13184 (sparc-sun-solaris2*): Update Solaris 7 example.
13185 (sparc64-*-solaris2*): Likewise.
13186
13187 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13188
13189 * config.build (alpha*-dec-osf4*): Remove.
13190 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
13191 of obsolete configurations.
13192 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
13193 support.
13194 * config/alpha/t-osf4: Renamed to ...
13195 * config/alpha/t-osf5: ... this.
13196 * config/alpha/osf.h: Renamed to ...
13197 * config/alpha/osf5.h: ... this.
13198 Merged old osf5.h contents.
13199 Update comments.
13200 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
13201 (EXTRA_SPECS): Removed.
13202 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
13203 reflect removal of Tru64 UNIX V4.0/V5.0 support.
13204 Document that.
13205
13206 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13207
13208 * doc/contrib.texi (Contributors, Rainer Orth): Update.
13209
13210 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
13211
13212 PR/43702
13213 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
13214 __thiscall convention.
13215
13216 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13217
13218 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
13219 orig_base.
13220 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
13221
13222 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13223
13224 * function.c (assign_parms_initialize_all): Add unused attribute
13225 to fntype.
13226
13227 2010-04-12 Richard Guenther <rguenther@suse.de>
13228
13229 * gsstruct.def (GSS_CALL): New.
13230 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13231 * gimple.h: Include tree-ssa-alias.h.
13232 (struct gimple_statement_call): New.
13233 (union gimple_statement_struct_d): Add gimple_call member.
13234 (gimple_call_reset_alias_info): Declare.
13235 (gimple_call_use_set): New function.
13236 (gimple_call_clobber_set): Likewise.
13237 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13238 * gimple.c (gimple_call_reset_alias_info): New function.
13239 (gimple_build_call_1): Call it.
13240 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13241 * tree-inline.c (remap_gimple_stmt): Likewise.
13242 (expand_call_inline): Remove callused handling.
13243 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13244 * tree-dfa.c (dump_variable): Likewise.
13245 * tree-parloops.c (parallelize_loops): Likewise.
13246 * tree-ssa.c (init_tree_ssa): Likewise.
13247 (delete_tree_ssa): Likewise.
13248 * tree-flow-inline.h (is_call_used): Remove.
13249 * tree-flow.h (struct gimple_df): Remove callused member.
13250 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13251 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13252 (ref_maybe_used_by_call_p_1): Simplify.
13253 (call_may_clobber_ref_p_1): Likewise.
13254 * tree-ssa-structalias.c (compute_points_to_sets): Set
13255 the call stmt used and clobbered sets.
13256 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13257 (find_tail_calls): Verify the tail call.
13258
13259 2010-04-12 Richard Guenther <rguenther@suse.de>
13260
13261 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13262 single-iteration always-inline inlining.
13263 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13264 (cgraph_decide_inlining): Do not handle always-inline specially.
13265 (try_inline): Remove always-inline cycle detection special case.
13266 Do not recurse on always-inlines.
13267 (cgraph_early_inlining): Do not iterate if not optimizing.
13268 (cgraph_gate_early_inlining): remove.
13269 (pass_early_inline): Run unconditionally.
13270 (gate_cgraph_decide_inlining): New function.
13271 (pass_ipa_inline): Use it. Do not run the IPA inliner if
13272 not inlining or optimizing.
13273 (cgraph_decide_inlining_of_small_functions): Also consider
13274 always-inline functions.
13275 (cgraph_default_inline_p): Return true for nodes which should
13276 disregard inline limits.
13277 (estimate_function_body_sizes): Assume zero size and time for
13278 nodes which are marked as disregarding inline limits.
13279 (cgraph_decide_recursive_inlining): Do not perform recursive
13280 inlining on always-inline nodes.
13281
13282 2010-04-12 Jakub Jelinek <jakub@redhat.com>
13283
13284 PR bootstrap/43699
13285 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13286 for exprs satisfying handled_component_p.
13287
13288 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
13289
13290 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13291 non-constant aggregate elements.
13292
13293 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
13294 is a real initialization.
13295
13296 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
13297
13298 PR c/36774
13299 * c-decl.c (start_function): Move forward check for nested function.
13300
13301 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
13302
13303 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
13304 * config/sh/sh.c: Include reload.h.
13305 (sh_legitimize_reload_address): New.
13306 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
13307 sh_legitimize_reload_address.
13308
13309 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13310
13311 * config/sh/sh.md (*movqi_pop): New insn pattern.
13312 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
13313
13314 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13315
13316 * config/i386/i386.md (any_shiftrt): New code iterator.
13317 (shiftrt_insn): New code attribute.
13318 (shiftrt): Ditto.
13319 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
13320 using any_shiftrt code iterator.
13321 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
13322 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
13323 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
13324 pattern from corresponding peephole2 patterns.
13325 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
13326 using any_shiftrt code iterator.
13327 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
13328 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
13329 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
13330 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
13331 *{ashr,lshr}<mode>3_cmp_zext.
13332 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
13333
13334 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13335
13336 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
13337 scratch register.
13338 (*lshr<mode>3_cconly): Ditto.
13339
13340 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13341
13342 * config/i386/i386.md (lshr<mode>3): Macroize expander from
13343 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13344 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13345 pattern from *lshr{di,ti}3_1 and corresponding splitters using
13346 DWI mode iterator.
13347 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13348 from corresponding peephole2 patterns.
13349 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
13350 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
13351 and *lshrdi3_1_rex64 using SWI mode iterator.
13352 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
13353 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
13354 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
13355 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
13356 and *lshrdi3_cmp_rex64 using SWI mode iterator.
13357 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
13358 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
13359 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
13360 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
13361 SWI mode iterator.
13362
13363 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
13364
13365 * config/i386/i386.md (ashr<mode>3): Macroize expander from
13366 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13367 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13368 pattern from *ashr{di,ti}3_1 and corresponding splitters using
13369 DWI mode iterator.
13370 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13371 from corresponding peephole2 patterns.
13372 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
13373 (ashrsi3_cvt): Rename from ashrsi3_31.
13374 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
13375 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
13376 and x86_64_shift_adj_3 using SWI48 mode iterator.
13377 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
13378 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
13379 and *ashrdi3_1_rex64 using SWI mode iterator.
13380 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
13381 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
13382 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
13383 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
13384 and *ashrdi3_cmp_rex64 using SWI mode iterator.
13385 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
13386 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
13387 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
13388 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
13389 SWI mode iterator.
13390 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
13391 * config/i386/i386.c (ix86_split_ashr): Update for renamed
13392 x86_shift<mode>_adj_3 expanders.
13393
13394 2010-04-10 Wei Guozhi <carrot@google.com>
13395
13396 PR target/42601
13397 * config/arm/arm.c (arm_pic_static_addr): New function.
13398 (legitimize_pic_address): Call arm_pic_static_addr when it detects
13399 a static symbol.
13400 (arm_output_addr_const_extra): Output expression for new pattern.
13401 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
13402
13403 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
13404
13405 * ira-costs.c (record_reg_classes): Ignore alternatives that are
13406 not enabled.
13407
13408 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
13409 * web.c: Include "insn-config.h" and "recog.h".
13410 (union_match_dups): New function.
13411 (web_main): Call it.
13412 (union_defs): Don't try to recognize match_dups.
13413
13414 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
13415 if doing so would replace the entire pattern.
13416
13417 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13418
13419 PR target/43707
13420 PR target/43709
13421 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
13422 and splitter pattern. Change splitter operand 1 predicate to
13423 nonmemory_operand.
13424
13425 2010-04-09 Martin Jambor <mjambor@suse.cz>
13426
13427 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
13428 lattices are addresses of CONST_DECLs with the same initial value.
13429 (ipcp_print_all_lattices): Print values of CONST_DECLs.
13430 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
13431
13432 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
13433 Bernd Schmidt <bernds@codesourcery.com>
13434
13435 * loop-invariant.c (replace_uses): New static function.
13436 (move_invariant_reg): Use it to ensure we can replace the uses.
13437
13438 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
13439
13440 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
13441 function template.
13442 (picochip_override_options): Enable section anchors only above -O1.
13443 (picochip_reorg): Fixed a couple of build warnings.
13444
13445 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13446
13447 * configure.ac (plugin -rdynamic test): Log result.
13448 * configure: Regenerate.
13449 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
13450 (RDYNAMIC_SPEC): Define.
13451 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
13452
13453 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13454
13455 * configure.ac: Determine Sun ld version numbers.
13456 (comdat_group): Restrict GNU ld version checks to gld.
13457 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
13458 (enable_comdat): Support --enable-comdat.
13459 * configure: Regenerate.
13460 * doc/install.texi (Configuration): Document --enable-comdat.
13461
13462 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13463
13464 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
13465 * config/sol2-gld.h: ... here.
13466 * config.gcc (sparc*-*-solaris2*): Reflect this.
13467 (i[34567]86-*-solaris2*): Use it.
13468
13469 2010-04-09 Steve Ellcey <sje@cup.hp.com>
13470
13471 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
13472 setup_clocks_p.
13473 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
13474
13475 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13476
13477 PR 42965
13478 * diagnostic.c (diagnostic_initialize): Initialize
13479 some_warnings_are_errors.
13480 (diagnostic_finish): New.
13481 (diagnostic_action_after_output): Call it before exiting.
13482 (diagnostic_report_diagnostic): Do not print message here. Set
13483 some_warnings_are_errors.
13484 * diagnostic.h (diagnostic_context): Delete
13485 issue_warnings_are_errors_message. Add some_warnings_are_errors.
13486 (diagnostic_finish): Declare.
13487 * toplev.c (toplev_main): Call it before exit.
13488
13489 2010-04-09 Jason Merrill <jason@redhat.com>
13490
13491 PR c++/42623
13492 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
13493 for incomplete type.
13494
13495 PR c++/41788
13496 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
13497 based on a warning flag.
13498
13499 2010-04-09 Richard Guenther <rguenther@suse.de>
13500
13501 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
13502
13503 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
13504
13505 PR bootstrap/43684
13506 * varasm.c (default_assemble_visibility): Wrap vars that are
13507 set, but unused, by targets without GAS.
13508 * config/rs6000/rs6000.c (paired_emit_vector_compare):
13509 Remove set, but unused, vars.
13510 (rs6000_legitimize_tls_address): Likewise.
13511 (altivec_expand_dst_builtin): Likewise.
13512 * config/darwin.c (machopic_classify_symbol): Likewise.
13513 (machopic_indirection_name): Likewise.
13514
13515 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13516
13517 * config/i386/i386.md (DWI): New mode iterator.
13518 (S): New mode attribute.
13519 (shift_operand): Ditto.
13520 (shift_immediate_operand): Ditto.
13521 (ashl_input_operand): Ditto.
13522 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
13523 using SDWIM mode iterator.
13524 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
13525 pattern from *ashl{di,ti}3_1 and corresponding splitters using
13526 DWI mode iterator.
13527 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
13528 from corresponding peephole2 patterns.
13529 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
13530 and x86_64_shift_adj_1 using SWI48 mode iterator.
13531 (x86_shift<mode>_adj_2): Ditto.
13532 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
13533 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
13534 using SWI48 mode iterator.
13535 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
13536 *ashldi3_cmp_rex64 using SWI mode iterator.
13537 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
13538 *ashldi3_cconly_rex64 using SWI mode iterator.
13539 * config/i386/i386.c (ix86_split_ashl): Update for renamed
13540 x86_shift<mode>_adj_{1,2}.
13541 (ix86_split_ashr): Ditto.
13542 (ix86_split_lshr): Ditto.
13543
13544 2010-04-09 Richard Guenther <rguenther@suse.de>
13545
13546 * target.h (builtin_conversion): Pass in input and output types.
13547 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
13548 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
13549 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
13550 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
13551
13552 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
13553 Handle AVX modes.
13554 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
13555
13556 2010-04-09 Richard Guenther <rguenther@suse.de>
13557
13558 PR target/43152
13559 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
13560
13561 2010-04-09 Richard Guenther <rguenther@suse.de>
13562
13563 * tree-vectorizer.h (struct _stmt_vec_info): Document
13564 that vectype is the type of the LHS.
13565 (supportable_widening_operation, supportable_narrowing_operation):
13566 Get both input and output vector types as arguments.
13567 (vect_is_simple_use_1): Declare.
13568 (get_same_sized_vectype): Likewise.
13569 * tree-vect-loop.c (vect_determine_vectorization_factor):
13570 Set STMT_VINFO_VECTYPE to the vector type of the def.
13571 (vectorizable_reduction): Adjust.
13572 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
13573 Adjust. Specify the output vector type.
13574 (vect_pattern_recog_1): Adjust.
13575 * tree-vect-stmts.c (get_same_sized_vectype): New function.
13576 (vectorizable_call): Adjust.
13577 (vectorizable_conversion): Likewise.
13578 (vectorizable_operation): Likewise.
13579 (vectorizable_type_demotion): Likewise.
13580 (vectorizable_type_promotion): Likewise.
13581 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
13582 the def.
13583 (vect_is_simple_use_1): New function.
13584 (supportable_widening_operation): Get both input and output
13585 vector types.
13586 (supportable_narrowing_operation): Likewise.
13587 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
13588
13589 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
13590
13591 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
13592 __thiscall and _thiscall as predefined macros.
13593 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
13594 thiscall attribute handling.
13595 (ix86_comp_type_attributes): Likewise.
13596 (ix86_function_regparm): Likewise.
13597 (ix86_return_pops_args): Likewise.
13598 (init_cumulative_args): Likewise.
13599 (find_drap_reg): Likewise.
13600 (ix86_static_chain): Likewise.
13601 (x86_this_parameter): Likewise.
13602 (x86_output_mi_thunk): Likewise.
13603 (ix86_attribute_table): Add description for thiscall attribute.
13604 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
13605 * doc/extend.texi: Add documentation for thiscall.
13606
13607 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13608
13609 PR c++/28584
13610 * c.opt (Wint-to-pointer-cast): Available in C++.
13611 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
13612
13613 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
13614
13615 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
13616 * calls.c (expand_call): Pass the function type to aggregate_value_p.
13617 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
13618 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
13619 function type instead. Reorder and simplify checks.
13620
13621 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
13622
13623 2010-04-08 Jing Yu <jingyu@google.com>
13624 Zdenek Dvorak <ook@ucw.cz>
13625
13626 PR tree-optimization/42720
13627 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
13628 loop unswitch conditions here from ...
13629 (tree_unswitch_single_loop): ... here.
13630
13631 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13632
13633 * tree-if-conv.c: Fix comments and simplify logic.
13634
13635 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13636
13637 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
13638 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
13639 (main_tree_if_conversion): Update call to tree_if_conversion.
13640
13641 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13642
13643 PR 42485
13644 * doc/invoke.texi (-b,-V): Delete.
13645 * doc/tm.texi: Do not mention -b.
13646 * gcc.c (display_help): Delete -b and -V.
13647 (process_command): Delete -b and -V.
13648 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13649
13650 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
13651 Wolfgang Gellerich <gellerich@de.ibm.com>
13652
13653 Implement target hook for loop unrolling
13654 * target.h (loop_unroll_adjust): Add a new target hook function.
13655 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13656 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13657 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13658 (s390_loop_unroll_adjust): Implement the new target hook for s390.
13659 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13660 target hook.
13661 (decide_unroll_stupid): Likewise.
13662
13663 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13664
13665 PR target/43643
13666 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13667
13668 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13669
13670 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13671 (Specific, *-*-solaris2*): Likewise.
13672 Don't prefer Sun as over GNU as.
13673
13674 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
13675
13676 * config/s390/s390.c (override_options): Adjust the z10 defaults
13677 for max-unroll-times, max-completely-peeled-insns
13678 and max-completely-peel-times.
13679
13680 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13681
13682 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13683 instructions for z10.
13684 (s390_expand_setmem): Likewise.
13685 (s390_expand_cmpmem): Likewise.
13686
13687 2010-04-08 Richard Guenther <rguenther@suse.de>
13688
13689 PR tree-optimization/43679
13690 * tree-ssa-pre.c (eliminate): Only propagate copies.
13691
13692 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13693
13694 PR bootstrap/43681
13695 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13696 set but not used variable warning.
13697
13698 2010-04-08 Wei Guozhi <carrot@google.com>
13699
13700 PR target/41653
13701 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13702 (arm_size_rtx_costs): Call the new function when optimized for size.
13703
13704 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13705
13706 PR debug/43670
13707 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13708 op0 is not a MEM, just return NULL instead of assertion
13709 failure.
13710 (discover_nonconstant_array_refs): Don't walk debug stmts.
13711
13712 2010-04-08 Doug Kwan <dougkwan@google.com>
13713
13714 * configure.ac: Recognize gold and do not use its version number
13715 to test ld features.
13716 * configure: Regenerate.
13717
13718 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
13719
13720 PR middle-end/40815
13721 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
13722 (negate_value): Move code to push elements to broken_up_substracts ...
13723 (eliminate_plus_minus_pair): ... here. Push operands that have no
13724 negative pair to plus_negates.
13725 (repropagate_negates, init_reassoc, fini_reassoc): Update.
13726
13727 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13728
13729 * doc/install.texi (Configuration): Move description of
13730 --enable-lto, --with-libelf*, --enable-gold from Java section to
13731 general section.
13732
13733 * doc/generic.texi (Working with declarations)
13734 (Function Properties, C and C++ Trees): Fix typos.
13735 * doc/sourcebuild.texi (Top Level): Likewise.
13736
13737 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13738
13739 PR c/18624
13740 * tree.h (DECL_READ_P): Define.
13741 (struct tree_decl_common): Add decl_read_flag.
13742 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
13743 a set but not used warning.
13744 (merge_decls): Merge DECL_READ_P flag.
13745 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
13746 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
13747 * c-common.c (handle_used_attribute, handle_unused_attribute):
13748 Likewise.
13749 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
13750 New prototypes.
13751 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
13752 New functions.
13753 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
13754 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
13755 c_parser_binary_expression, c_parser_cast_expression,
13756 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
13757 Call default_function_array_read_conversion instead of
13758 default_function_array_conversion where needed.
13759 (c_parser_unary_expression, c_parser_conditional_expression,
13760 c_parser_postfix_expression_after_primary, c_parser_initelt):
13761 Likewise. Call mark_exp_read where needed.
13762 (c_parser_statement_after_labels, c_parser_asm_operands,
13763 c_parser_typeof_specifier, c_parser_sizeof_expression,
13764 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
13765 where needed.
13766 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
13767 New.
13768 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
13769 (warn_unused_but_set_parameter): Default to warn_unused
13770 && extra_warnings.
13771 * doc/invoke.texi: Document -Wunused-but-set-variable and
13772 -Wunused-but-set-parameter.
13773
13774 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
13775 used count variable.
13776 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
13777 when operandN variables aren't used in the body of the expander
13778 or splitter.
13779 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
13780 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
13781 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
13782 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
13783 FOR_EACH_IMM_USE_ON_STMT): Likewise.
13784 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
13785 * tree.c (PROCESS_ARG): Likewise.
13786
13787 2010-04-07 Simon Baldwin <simonb@google.com>
13788
13789 * diagnostic.h (diagnostic_override_option_index): New macro to
13790 set a diagnostic's option_index.
13791 * c-tree.h (c_cpp_error): Add warning reason argument.
13792 * opts.c (_warning_as_error_callback): New.
13793 (register_warning_as_error_callback): Store callback for
13794 warnings enabled via enable_warning_as_error.
13795 (enable_warning_as_error): Call callback, minor code tidy.
13796 * opts.h (register_warning_as_error_callback): Declare.
13797 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
13798 response to -Werror=.
13799 (c_common_init_options): Register warning_as_error_callback in opts.c.
13800 * common.opt: Add -Wno-cpp option.
13801 * c-common.c (struct reason_option_codes_t): Map cpp warning
13802 reason codes to gcc option indexes.
13803 * (c_option_controlling_cpp_error): New function, lookup the gcc
13804 option index for a cpp warning reason code.
13805 * (c_cpp_error): Add warning reason argument, call
13806 c_option_controlling_cpp_error for diagnostic_override_option_index.
13807 * doc/invoke.texi: Document -Wno-cpp.
13808
13809 2010-04-07 Richard Guenther <rguenther@suse.de>
13810
13811 * ipa-reference.c (mark_load): Use get_base_address.
13812 (mark_store): Likewise.
13813
13814 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
13815 inserting GIMPLE_NOPs into the IL.
13816 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13817 Explicitly strip handled components and indirect references.
13818
13819 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
13820 folding address expressions.
13821 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
13822 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
13823 operand_equal_p to compare decls.
13824 (ptr_deref_may_alias_decl_p): Likewise.
13825 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
13826 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
13827 Handle reversed comparison ops.
13828 * tree-sra.c (asm_visit_addr): Use get_base_address.
13829 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
13830 * ipa-reference.c (mark_address): Use get_base_address.
13831
13832 2010-04-07 Richard Guenther <rguenther@suse.de>
13833
13834 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
13835 Propagate constants everywhere.
13836
13837 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13838
13839 PR debug/43516
13840 * tree.c (MAX_INT_CACHED_PREC): Define.
13841 (nonstandard_integer_type_cache): New array.
13842 (build_nonstandard_integer_type): Cache results for precision
13843 <= MAX_INT_CACHED_PREC.
13844
13845 2010-04-07 Richard Guenther <rguenther@suse.de>
13846
13847 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13848 -fargument-noalias-global, -fargument-noalias-anything): Remove.
13849 * common.opt: Likewise.
13850 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13851 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13852 (nonoverlapping_memrefs_p): Likewise.
13853 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13854 * opts.c (common_handle_option): Handle OPT_fargument_alias,
13855 OPT_fargument_noalias, OPT_fargument_noalias_anything and
13856 OPT_fargument_noalias_global for backward compatibility.
13857
13858 2010-04-07 Richard Guenther <rguenther@suse.de>
13859
13860 PR tree-optimization/43270
13861 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13862 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13863 * tree-ssa-pre.c (phi_translate_1): Adjust.
13864 (fully_constant_expression): Split out vn_reference handling to ...
13865 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13866 Fold reads from constant strings.
13867 (vn_reference_lookup): Handle fully constant references.
13868 (vn_reference_lookup_pieces): Likewise.
13869 * Makefile.in (expmed.o-warn): Add -Wno-error.
13870
13871 2010-04-07 Martin Jambor <mjambor@suse.cz>
13872
13873 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13874
13875 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
13876
13877 PR driver/41594
13878 * gcc.c: Add -static-libstdc++ to list of recognized options.
13879
13880 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13881
13882 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13883
13884 2010-04-07 Richard Guenther <rguenther@suse.de>
13885
13886 PR middle-end/42617
13887 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13888 bases build simple mem attributes to retain points-to information.
13889
13890 2010-04-07 Richard Guenther <rguenther@suse.de>
13891
13892 PR middle-end/42617
13893 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13894 preserve points-to related information.
13895
13896 2010-04-07 Richard Guenther <rguenther@suse.de>
13897
13898 PR middle-end/42617
13899 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13900 discard plain indirect references.
13901 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13902 * tree.c (tree_nop_conversion): Likewise.
13903
13904 2010-04-07 Dodji Seketeli <dodji@redhat.com>
13905
13906 PR debug/43628
13907 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13908
13909 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
13910
13911 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13912 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13913
13914 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13915
13916 * tree-if-conv.c: Fix indentation and comments.
13917
13918 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13919
13920 * tree-if-conv.c: Sort static functions in topological order.
13921
13922 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13923
13924 * tree-if-conv.c: Fix indentation and comments.
13925
13926 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13927
13928 PR middle-end/43519
13929 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13930 lang_hooks.types.type_for_size instead of
13931 build_nonstandard_integer_type.
13932 When converting an unsigned type to signed, double its precision.
13933 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13934 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13935 (graphite_create_new_loop_guard): When ub + 1 wraps around,
13936 use lb <= ub.
13937
13938 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13939
13940 PR middle-end/43519
13941 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13942 POINTER_PLUS_EXPR for pointer types.
13943
13944 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13945
13946 PR middle-end/43519
13947 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13948 * graphite-clast-to-gimple.c: Include langhooks.h.
13949 (max_signed_precision_type): New.
13950 (max_precision_type): Takes two types as arguments.
13951 (precision_for_value): New.
13952 (precision_for_interval): New.
13953 (gcc_type_for_interval): New.
13954 (gcc_type_for_value): New.
13955 (gcc_type_for_clast_term): New.
13956 (gcc_type_for_clast_red): New.
13957 (gcc_type_for_clast_bin): New.
13958 (gcc_type_for_clast_expr): Split up into several functions.
13959 (gcc_type_for_clast_eq): Rewritten.
13960 (compute_bounds_for_level): New.
13961 (compute_type_for_level_1): New.
13962 (compute_type_for_level): New.
13963 (gcc_type_for_cloog_iv): Removed.
13964 (gcc_type_for_iv_of_clast_loop): Rewritten.
13965 (graphite_create_new_loop): Compute the lower and upper bound types
13966 with gcc_type_for_clast_expr.
13967 (graphite_create_new_loop_guard): Same.
13968 (find_cloog_iv_in_expr): Removed.
13969 (compute_cloog_iv_types_1): Removed.
13970 (compute_cloog_iv_types): Removed.
13971 (gloog): Do not call compute_cloog_iv_types.
13972 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13973 GBB_CLOOG_IV_TYPES.
13974 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13975 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13976 (GBB_CLOOG_IV_TYPES): Removed.
13977
13978 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13979
13980 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13981 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13982 (detect_commutative_reduction): Same.
13983
13984 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13985
13986 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13987 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
13988 argument.
13989 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13990 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13991 (rewrite_commutative_reductions_out_of_ssa): Same.
13992 * passes.c (execute_function_todo): Call verify_ssa for every pass
13993 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
13994 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13995 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13996 with an extra argument.
13997 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
13998 verify_ssa only when the extra argument is true.
13999 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
14000 with an extra argument.
14001 (tree_transform_and_unroll_loop): Same.
14002
14003 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14004
14005 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
14006 for all the passes of the LNO having LOOP_CLOSED_SSA.
14007 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
14008 * tree-loop-distribution.c (pass_loop_distribution): Same.
14009 * tree-pass.h (TODO_verify_loops): Removed.
14010 * tree-ssa-loop.c (pass_tree_loop_init): Same.
14011 (pass_lim): Same.
14012 (pass_tree_unswitch): Same.
14013 (pass_predcom): Same.
14014 (pass_vectorize): Same.
14015 (pass_linear_transform): Same.
14016 (pass_graphite_transforms): Same.
14017 (pass_iv_canon): Same.
14018 (pass_complete_unroll): Same.
14019 (pass_complete_unrolli): Same.
14020 (pass_parallelize_loops): Same.
14021 (pass_loop_prefetch): Same.
14022 (pass_iv_optimize): Same.
14023
14024 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
14025
14026 PR middle-end/32824
14027 * passes.c (init_optimization_passes): Move pass_lim before
14028 pass_copy_prop and pass_dce_loop.
14029
14030 2010-04-06 Jakub Jelinek <jakub@redhat.com>
14031
14032 PR target/43667
14033 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
14034 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
14035 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
14036 MULTI_* defines for 4 argument vpermil2p* builtins.
14037
14038 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14039
14040 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
14041 * config/i386/i386.c (x86_maybe_negate_const_int): New.
14042 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
14043 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
14044 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
14045 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
14046 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
14047 Use x86_maybe_negate_const_int to output insn mnemonic.
14048 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
14049 check from instruction predicate. Update comments.
14050 * config/i386/sync.md (sync_add<mode>): Use
14051 x86_maybe_negate_const_int to output insn mnemonic.
14052
14053 2010-04-06 Jan Hubicka <jh@suse.cz>
14054
14055 PR tree-optimization/42906
14056 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
14057 IGNORE_SELF argument. Set visited_control_parents for fully
14058 processed BBs.
14059 (find_obviously_necessary_stmts): Update call of
14060 mark_control_dependent_edges_necessary.
14061 (propagate_necessity): Likewise. Handle PHI edges more curefully.
14062
14063 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14064
14065 * config/i386/i386.md: Remove comment about 'e' and 'E'
14066 operand modifier.
14067
14068 2010-04-06 Richard Guenther <rguenther@suse.de>
14069
14070 PR tree-optimization/43627
14071 * tree-vrp.c (extract_range_from_unary_expr): Widenings
14072 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
14073 not varying.
14074
14075 2010-04-06 Jakub Jelinek <jakub@redhat.com>
14076
14077 * BASE-VER: Change to 4.6.0.
14078
14079 PR target/43638
14080 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
14081 handling.
14082
14083 2010-04-06 Richard Guenther <rguenther@suse.de>
14084
14085 PR middle-end/43661
14086 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
14087
14088 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14089
14090 * doc/invoke.texi (Optimize Options): Document that LTO
14091 won't remove object access purely due to incompatible
14092 declarations.
14093
14094 2010-04-04 Matthias Klose <doko@ubuntu.com>
14095
14096 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
14097 Initialize variable.
14098
14099 2010-04-03 Richard Guenther <rguenther@suse.de>
14100
14101 PR middle-end/42509
14102 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
14103 require a non-NULL MEM_OFFSET.
14104
14105 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
14106
14107 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
14108 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
14109 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
14110 config/alpha/predicates.md, config/arm/arm.md,
14111 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
14112 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
14113 config/darwin9.h, config/darwin.c, config/darwin.h,
14114 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
14115 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
14116 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
14117 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
14118 config/mips/mips.md, config/mn10300/mn10300.c,
14119 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
14120 config/rs6000/aix.h, config/rs6000/dfp.md,
14121 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
14122 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
14123 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
14124 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
14125 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
14126 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
14127 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
14128 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
14129 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
14130 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
14131 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
14132 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
14133 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
14134 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
14135 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
14136 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
14137 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
14138 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
14139 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
14140 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
14141 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
14142 opt-functions.awk, opth-gen.awk, params.def, passes.c,
14143 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
14144 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
14145 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
14146 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
14147 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
14148 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14149 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
14150 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
14151 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
14152 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14153 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
14154 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
14155 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
14156 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
14157
14158 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14159
14160 PR other/43620
14161 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
14162 * aclocal.m4: Regenerate.
14163
14164 2010-04-02 Richard Guenther <rguenther@suse.de>
14165
14166 PR tree-optimization/43629
14167 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
14168 if we have seen a constant value.
14169
14170 2010-04-02 Joseph Myers <joseph@codesourcery.com>
14171
14172 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
14173
14174 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
14175
14176 PR target/43469
14177 * arm.c (legitimize_tls_address): Adjust call to
14178 gen_tls_load_dot_plus_four.
14179 (arm_note_pic_base): New function.
14180 (arm_cannot_copy_insn_p): Use it.
14181 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
14182 constraint.
14183
14184 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14185
14186 PR bootstrap/43531
14187
14188 Revert:
14189 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14190
14191 * Makefile.in ($(out_object_file)): Depend on
14192 gt-$(basename $(notdir $(out_file))).h.
14193
14194 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
14195
14196 * config.gcc (lm32-*-rtems*): Add t-lm32.
14197
14198 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
14199
14200 * config.gcc: Add lm32-*-rtems*.
14201 * config/lm32/rtems.h: New file.
14202
14203 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
14204
14205 PR target/42609
14206 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
14207
14208 2010-04-01 Jakub Jelinek <jakub@redhat.com>
14209
14210 * dwarf2out.c (output_compilation_unit_header): For
14211 -gdwarf-4 use version 4 instead of version 3.
14212 (output_line_info): For version 4 and above emit additional
14213 maximum ops per insn header field.
14214 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
14215
14216 * dwarf2out.c (is_c_family, is_java): Remove.
14217 (lower_bound_default): New function.
14218 (add_bound_info, gen_descr_array_type_die): Use it.
14219
14220 2010-04-01 Dodji Seketeli <dodji@redhat.com>
14221
14222 PR debug/43325
14223 * dwarf2out.c (gen_variable_die): Allow debug info for variable
14224 re-declaration when it happens in a function.
14225
14226 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
14227
14228 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14229 (cgraph_remove_function_insertion_hook): Same.
14230 (cgraph_call_function_insertion_hooks): Same.
14231
14232 2010-04-01 Richard Guenther <rguenther@suse.de>
14233
14234 PR middle-end/43614
14235 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14236 and TREE_THIS_VOLATILE.
14237 (copy_ref_info): Likewise.
14238 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14239 * tree.c (build6_stat): Ignore side-effects of all but arg5
14240 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
14241 TARGET_MEM_REF.
14242
14243 2010-04-01 Richard Guenther <rguenther@suse.de>
14244
14245 PR tree-optimization/43607
14246 * ipa-type-escape.c (check_call): Do not access non-existing
14247 arguments.
14248
14249 2010-04-01 Richard Guenther <rguenther@suse.de>
14250
14251 PR middle-end/43602
14252 Revert
14253 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14254 Jack Howarth <howarth@bromo.med.uc.edu>
14255
14256 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14257 variables TLS.
14258
14259 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14260
14261 * doc/install.texi (Prerequisites): Document libelf usability on
14262 IRIX 5/6 and Solaris 2.
14263 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14264 Update GNU as, GNU ld requirements.
14265 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14266 Document Sun Studio compiler download.
14267 Update and simplify as, ld recommendations.
14268 (Specific, *-*-solaris2.7): Note obsoletion, removal.
14269
14270 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14271
14272 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14273 with_tune_32 to pentium4.
14274
14275 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
14276
14277 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14278
14279 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14280
14281 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14282 obsoletion, removal.
14283 Update IDO URL.
14284 Document GNU as requirement.
14285 Update configure requirements.
14286 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14287 Recomment IRIX 6.5.18+.
14288 Document IDF/IDL requirement.
14289 Document GNU as requirement.
14290 Document GNU ld bootstrap failure.
14291 Remove freeware.sgi.com reference.
14292
14293 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14294
14295 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
14296 UNIX V4.0, V5.0 obsoletion, removal.
14297 Remove --with-gc=simple reference.
14298 Update VM requirements during bootstrap.
14299 Remove -oldas bootstrap description.
14300 Update binutils reference.
14301 Remove comparison failure note.
14302
14303 2010-03-31 Richard Guenther <rguenther@suse.de>
14304 Zdenek Dvorak <ook@ucw.cz>
14305 Sebastian Pop <sebastian.pop@amd.com>
14306
14307 PR middle-end/43464
14308 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
14309 with multiple arguments.
14310 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
14311
14312 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14313
14314 * graphite-dependences.c (print_pddr): Call print_pdr with an
14315 extra argument.
14316 * graphite-poly.c (debug_pdr): Add an extra argument for the
14317 verbosity level.
14318 (print_pdr): Same.
14319 (print_pbb_domain): Same.
14320 (print_pbb): Same.
14321 (print_scop_context): Same.
14322 (print_scop): Same.
14323 (print_cloog): Same.
14324 (debug_pbb_domain): Same.
14325 (debug_pbb): Same.
14326 (print_pdrs): Same.
14327 (debug_pdrs): Same.
14328 (debug_scop_context): Same.
14329 (debug_scop): Same.
14330 (debug_cloog): Same.
14331 (print_scop_params): Same.
14332 (debug_scop_params): Same.
14333 (print_iteration_domain): Same.
14334 (print_iteration_domains): Same.
14335 (debug_iteration_domain): Same.
14336 (debug_iteration_domains): Same.
14337 (print_scattering_function): Same.
14338 (print_scattering_functions): Same.
14339 (debug_scattering_function): Same.
14340 (debug_scattering_functions): Same.
14341 * graphite-poly.h (debug_pdr): Update declaration.
14342 (print_pdr): Same.
14343 (print_pbb_domain): Same.
14344 (print_pbb): Same.
14345 (print_scop_context): Same.
14346 (print_scop): Same.
14347 (print_cloog): Same.
14348 (debug_pbb_domain): Same.
14349 (debug_pbb): Same.
14350 (print_pdrs): Same.
14351 (debug_pdrs): Same.
14352 (debug_scop_context): Same.
14353 (debug_scop): Same.
14354 (debug_cloog): Same.
14355 (print_scop_params): Same.
14356 (debug_scop_params): Same.
14357 (print_iteration_domain): Same.
14358 (print_iteration_domains): Same.
14359 (debug_iteration_domain): Same.
14360 (debug_iteration_domains): Same.
14361 (print_scattering_function): Same.
14362 (print_scattering_functions): Same.
14363 (debug_scattering_function): Same.
14364 (debug_scattering_functions): Same.
14365
14366 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14367
14368 * graphite-poly.c (print_scattering_function_1): New.
14369 (print_scattering_function): Call it.
14370 (print_scop_params): Remove spaces at the end of lines.
14371 (print_cloog): New.
14372 (debug_cloog): New.
14373 * graphite-poly.h (print_cloog): Declared.
14374 (debug_cloog): Declared.
14375
14376 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14377
14378 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
14379 in loop->header.
14380 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
14381 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
14382 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
14383 to switch between adding the IV bump in loop->latch or in loop->header.
14384
14385 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14386
14387 * graphite-poly.c (print_scattering_function): Pretty print following
14388 the scoplib format.
14389 (print_pdr): Same.
14390 (print_pbb_domain): Same.
14391 (dump_gbb_cases): Same.
14392 (dump_gbb_conditions): Same.
14393 (print_pdrs): Same.
14394 (print_pbb): Same.
14395 (print_scop_params): Same.
14396 (print_scop_context): Same.
14397 (print_scop): Same.
14398 (print_pbb_body): New.
14399 (lst_indent_to): New.
14400 (print_lst): Start new lines with a #.
14401 * graphite-poly.h (pbb_bb): New.
14402 (pbb_index): Use pbb_bb.
14403 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
14404 disjuncts.
14405 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
14406
14407 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14408
14409 * dwarf2out.c (size_of_die): For -gdwarf-4 use
14410 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
14411 and 0 instead of 1 for dw_val_class_flag.
14412 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
14413 dw_val_class_range_list, dw_val_class_loc_list,
14414 dw_val_class_lineptr and dw_val_class_macptr, use
14415 DW_FORM_flag_present for dw_val_class_flag and
14416 DW_FORM_exprloc for dw_val_class_loc.
14417 (output_die): For -gdwarf-4 print dw_val_class_loc
14418 size as uleb128 instead of 1 or 2 bytes and don't print
14419 anything for dw_val_class_flag.
14420
14421 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
14422 instead of cselib_lookup following by tweaking locs->setting_insn.
14423
14424 PR bootstrap/43596
14425 * cselib.c (cselib_process_insn): Clear cselib_current_insn
14426 even before returning from label, setjmp call or volatile asm
14427 handling.
14428
14429 2010-03-31 Richard Guenther <rguenther@suse.de>
14430
14431 PR middle-end/43600
14432 * cgraphunit.c (cgraph_output_in_order): Do not allocate
14433 temporary data on stack.
14434
14435 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14436
14437 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
14438 (PUSHSECTION_ASM_OP): Remove.
14439 (POPSECTION_ASM_OP): Remove.
14440 (PUSHSECTION_FORMAT): Remove.
14441 * config/sol2.h (PUSHSECTION_FORMAT): Define.
14442 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
14443 * config/sol2.c (solaris_output_init_fini): Use it.
14444
14445 2010-03-31 Jie Zhang <jie@codesourcery.com>
14446
14447 PR 43574
14448 * opt-functions.awk (var_type_struct): Use signed char type
14449 for simple variables.
14450
14451 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14452
14453 * config/sol2.c: Include output.h.
14454 (solaris_assemble_visibility): New function.
14455 * config/t-sol2 (sol2.o): Add output.h dependency.
14456 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
14457 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
14458 Redefine.
14459
14460 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14461
14462 PR target/43580
14463 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
14464 V2SImode or XFmode on PRE_DEC.
14465
14466 PR debug/43557
14467 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
14468 BLKmode.
14469
14470 2010-03-31 Jie Zhang <jie@codesourcery.com>
14471
14472 PR 43562
14473 * reload.h (caller_save_initialized_p): Declare.
14474 * toplev.c (backend_init_target): Don't call
14475 init_caller_save but set caller_save_initialized_p to false.
14476 * caller-save.c (caller_save_initialized_p): Define.
14477 (init_caller_save): Check caller_save_initialized_p.
14478 * ira.c (ira): Call init_caller_save if flag_caller_saves.
14479
14480 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14481
14482 PR target/39048
14483 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
14484 and soft-fp/t-softfp to tmake_file.
14485 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
14486 (LIBGCC2_TF_CEXT): Define.
14487 (TF_SIZE): Define.
14488
14489 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
14490
14491 PR debug/42977
14492 * cselib.c (n_useless_values): Document handling of debug locs.
14493 (n_useless_debug_values, n_debug_values): New variables.
14494 (new_elt_loc_list): Don't add to debug values, keep count.
14495 (promote_debug_loc): New.
14496 (cselib_reset_table): Zero new variables.
14497 (entry_and_rtx_equal_p): Promote debug locs.
14498 (discard_useless_locs): Increment n_useless_debug_values for
14499 debug values.
14500 (remove_useless_values): Adjust n_useless_values and n_debug_values
14501 with n_useless_debug_values.
14502 (add_mem_for_addr): Promote debug locs.
14503 (cselib_lookup_mem): Likewise.
14504 (cselib_lookup_addr): Renamed to...
14505 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
14506 (cselib_log_lookup): ... this. Turn into...
14507 (cselib_lookup_addr): ... new wrapper.
14508 (cselib_lookup_from_insn): New.
14509 (cselib_invalidate_regno): Increment n_useless_debug_values for
14510 debug values.
14511 (cselib_invalidate_mem): Likewise.
14512 (cselib_process_insn): Take n_deleted and n_debug_values into
14513 account to guard remove_useless_value call.
14514 (cselib_finish): Zero n_useless_debug_values.
14515 * cselib.h (cselib_lookup_from_insn): Declare.
14516 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
14517 (sched_analyze_2): Likewise.
14518
14519 2010-03-30 Jakub Jelinek <jakub@redhat.com>
14520
14521 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
14522 functions.
14523 (adjust_mems): Replace narrowing SUBREG of expression containing
14524 just PLUS, MINUS, MULT and ASHIFT of registers and constants
14525 with operations in the narrower mode.
14526
14527 PR debug/43593
14528 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
14529 regs_invalidated_by_call instead all call_used_reg_set registers.
14530
14531 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
14532
14533 PR middle-end/43430
14534 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
14535 pointer comparisons with types_compatible_p.
14536 * tree-vect-stmts.c (vectorizable_call): Same.
14537 (vectorizable_condition): Same.
14538
14539 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14540
14541 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
14542 stack check if the mask would be zero.
14543
14544 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14545 Jack Howarth <howarth@bromo.med.uc.edu>
14546
14547 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14548 variables TLS.
14549
14550 2010-03-30 Joseph Myers <joseph@codesourcery.com>
14551
14552 PR other/25232
14553 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
14554 and __unordtf2.
14555 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
14556 Include ___unordxf2 and ___unordtf2.
14557 * config/i386/libgcc-glibc.ver: Do not define inheritance from
14558 GCC_4.4.0 here.
14559
14560 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
14561
14562 * config/lm32/t-lm32: New file.
14563 * config.gcc: Use the above file when targetting lm32.
14564
14565 2010-03-28 Duncan Sands <baldrick@free.fr>
14566
14567 * Makefile.in (PLUGIN_HEADERS): Add except.h.
14568
14569 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14570
14571 PR middle-end/43431
14572 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14573 Improve vectorization cost model diagnostic.
14574
14575 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14576
14577 PR middle-end/43436
14578 * tree-vect-data-refs.c (vect_analyze_data_refs): When
14579 compute_data_dependences_for_loop returns false, early exit
14580 and output an extra diagnostic for the failed data reference
14581 analysis.
14582
14583 2010-03-29 Richard Guenther <rguenther@suse.de>
14584
14585 PR tree-optimization/43560
14586 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
14587 (can_sm_ref_p): Treat stores to readonly locations as trapping.
14588
14589 2010-03-29 Jie Zhang <jie@codesourcery.com>
14590
14591 PR 43564
14592 * toplev.c (process_options): Set optimization_default_node
14593 and optimization_current_node.
14594 * opts.c (decode_options): Don't set optimization_default_node
14595 and optimization_current_node.
14596
14597 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
14598
14599 * config/rtems.h: Abandon -qrtems_debug.
14600
14601 2010-03-28 Jan Hubicka <jh@suse.cz>
14602
14603 PR tree-optimization/43505
14604 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
14605 map should not be copied.
14606
14607 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14608
14609 PR middle-end/41674
14610 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
14611 cdtors, set DECL_PRESERVE_P.
14612 * ipa.c (cgraph_externally_visible_p): Return true if declaration
14613 should be preseved.
14614
14615 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
14616
14617 PR tree-optimization/43528
14618 * stor-layout.c (place_field): Check that constant fits into
14619 unsigned HWI when skipping calculation of MS bitfield layout.
14620
14621 2010-03-27 Jan Hubicka <jh@suse.cz>
14622
14623 PR middle-end/43391
14624 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
14625 notice_global_symbol work.
14626
14627 2010-03-27 Jakub Jelinek <jakub@redhat.com>
14628
14629 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
14630 instead of dwarf2out_decl.
14631 (struct var_loc_node): Remove section_label field.
14632 (dwarf2out_function_decl): New function.
14633 (dwarf2out_var_location): Don't set section_label field.
14634 (dwarf2out_begin_function): Don't empty decl_loc_table here.
14635
14636 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14637
14638 PR tree-optimization/43544
14639 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14640 First argument for builtin vectorized function hook is now a
14641 tree to be able to distinguish between machine specific and
14642 standard builtins.
14643 * targhooks.c (default_builtin_vectorized_function): Ditto.
14644 * targhooks.h (default_builtin_vectorized_function): Ditto.
14645 * target.h (struct gcc_target): Ditto.
14646 * tree-vect-stmts.c (vectorizable_function): Ditto.
14647 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14648 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14649 Ditto.
14650
14651 2010-03-26 Joseph Myers <joseph@codesourcery.com>
14652
14653 PR c/43381
14654 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14655 nested binding iff it is a FUNCTION_DECL.
14656 (store_parm_decls_newstyle): Pass nested=true to bind for
14657 FUNCTION_DECLs amongst parameters.
14658
14659 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14660
14661 * var-tracking.c (vt_expand_loc_callback): Don't run
14662 cselib_expand_value_rtx_cb in dummy mode if
14663 cselib_dummy_expand_value_rtx_cb returned false.
14664
14665 * var-tracking.c (emit_note_insn_var_location): For one part
14666 notes with offset 0, don't add EXPR_LIST around the location.
14667 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14668 add_location_or_const_value_attribute): Adjust for that change.
14669
14670 PR debug/43540
14671 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14672 into first operand and location into second.
14673 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14674 dw_cfi_oprnd_loc for DW_CFA_expression.
14675 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14676 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14677 assume first argument is regnum and second argument is location.
14678
14679 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14680
14681 PR target/42113
14682 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14683 of scratch register to DImode. Split to DImode comparison operator.
14684 Use SImode subreg of scratch register in the multiplication.
14685 (*cmp_sadd_sidi): Ditto.
14686 (*cmp_ssub_si): Ditto.
14687 (*cmp_ssub_sidi): Ditto.
14688
14689 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14690
14691 PR target/43524
14692 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14693 Remove invalid assert and wrong comment.
14694
14695 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14696
14697 PR debug/43516
14698 * flags.h (final_insns_dump_p): New extern.
14699 * final.c (final_insns_dump_p): New variable.
14700 (rest_of_clean_state): Set it before -fdump-final-insns=
14701 dumping, clear afterwards.
14702 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14703 MEM_ALIAS_SET on MEMs.
14704
14705 2010-03-26 David S. Miller <davem@davemloft.net>
14706
14707 * configure.ac: Fix sparc GOTDATA_OP bug check.
14708 * configure: Rebuild.
14709
14710 2010-03-26 Alan Modra <amodra@gmail.com>
14711
14712 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
14713
14714 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14715
14716 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
14717 TLS_SECTION_ASM_FLAG.
14718
14719 2010-03-25 Jakub Jelinek <jakub@redhat.com>
14720
14721 PR bootstrap/43511
14722 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
14723 Clear first_function_block_is_cold.
14724
14725 PR c/43385
14726 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
14727 argument if the argument is truth_value_p.
14728
14729 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14730
14731 * config/rs6000/constraints.md: Update copyright year for my changes.
14732
14733 PR target/43484
14734 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
14735 used in reg+reg addressing, swap registers.
14736
14737 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14738
14739 PR debug/43293
14740 * target.h (struct gcc_target): Add code_end hook.
14741 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
14742 if not yet defined.
14743 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
14744 * toplev.c (compile_file): Call targetm.asm_out.code_end
14745 hook before unwind info/debug info output.
14746 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
14747 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
14748 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14749 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
14750 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14751 * config/i386/i386.c (ix86_file_end): Renamed to...
14752 (ix86_code_end): ... this. Make static. Don't call
14753 file_end_indicate_exec_stack. Emit unwind info using
14754 final_start_function/final_end_function.
14755 (darwin_x86_file_end): Remove.
14756 (TARGET_ASM_CODE_END): Define.
14757 * config/i386/i386.h (TARGET_ASM_FILE_END,
14758 NEED_INDICATE_EXEC_STACK): Don't define.
14759 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
14760 (TARGET_ASM_FILE_END): Define to darwin_file_end.
14761 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
14762 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
14763
14764 PR target/43498
14765 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
14766 at the beginning and final_end_function at the end.
14767 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14768
14769 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14770
14771 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
14772 and Sun as TLS syntax.
14773 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
14774 * configure: Regenerate.
14775 * config.in: Regenerate.
14776 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
14777 (default_elf_asm_named_section): Use it.
14778 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
14779 (i386_output_dwarf_dtprel): Likewise.
14780 (output_addr_const_extra): Likewise.
14781 (output_pic_addr_const): Lowercase @GOTTPOFF.
14782 (output_addr_const_extra): Likewise.
14783 (output_pic_addr_const): Lowercase @GOTNTPOFF.
14784 (output_addr_const_extra): Likewise.
14785 (output_pic_addr_const): Lowercase @INDNTPOFF.
14786 (output_addr_const_extra): Likewise.
14787 (output_pic_addr_const): Lowercase @NTPOFF.
14788 (output_addr_const_extra): Likewise.
14789 (output_pic_addr_const): Lowercase @TPOFF.
14790 (output_addr_const_extra): Likewise.
14791 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
14792 (*tls_global_dynamic_64): Likewise.
14793 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
14794 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
14795
14796 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
14797 (ASM_OUTPUT_TLS_COMMON): Use it.
14798 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
14799
14800 PR target/38118
14801 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
14802 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14803 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
14804 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
14805 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14806 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
14807
14808 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14809
14810 * config/i386/i386.c (override_options): Don't accept
14811 -mtls-dialect=sun any longer.
14812 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
14813 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
14814 (*tls_local_dynamic_base_32_sun): Likewise.
14815 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14816
14817 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14818
14819 PR debug/43508
14820 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14821 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
14822
14823 PR debug/43479
14824 * ira.c (adjust_cleared_regs): New function.
14825 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
14826
14827 PR debug/19192
14828 PR debug/43479
14829 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
14830 from gimple_block.
14831 * expr.c (expand_expr_real): Restore previous
14832 curr_insn_source_location and curr_insn_block after
14833 expand_expr_real_1 call.
14834 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
14835 instead of expand_expr_real_1.
14836
14837 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
14838
14839 PR rtl-optimization/43413
14840 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14841 hard regs too.
14842
14843 2010-03-22 James E. Wilson <wilson@codesourcery.com>
14844
14845 PR target/43348
14846 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14847 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14848
14849 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
14850
14851 * config/i386/i386.c (ix86_target_string): Add -mfma.
14852 Fix a typo in comment.
14853
14854 2010-03-22 Mike Stump <mikestump@comcast.net>
14855
14856 PR target/23071
14857 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14858 Don't overly align based upon packed packed fields.
14859
14860 2010-03-22 Jason Merrill <jason@redhat.com>
14861
14862 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14863 Use () rather than [], and move before the element type.
14864
14865 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14866
14867 * doc/configfiles.texi (Configuration Files): Removed
14868 fixinc/Makefile*, intl/Makefile.*.
14869 * doc/makefile.texi: Fixed markup. Abstract from version
14870 control system used.
14871 (Makefile): Removed obsolete gcc/java/parse.y example.
14872 * doc/sourcebuild.texi: Likewise.
14873 (Top Level): Added config, gnattools, libdecnumber, libgcc,
14874 libgomp, libssp. Removed fastjar.
14875 (Miscellaneous Docs): Clarify location.
14876 Added COPYING3, COPYING3.LIB.
14877 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14878
14879 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14880
14881 PR target/38085
14882 * config/i386/i386.c (x86_function_profiler)
14883 [!NO_PROFILE_COUNTERS]: Fix typo.
14884 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14885 instead of callq.
14886
14887 2010-03-22 Janis Johnson <janis187@us.ibm.com>
14888 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14889
14890 * doc/sourcebuild.texi (Test Directives): Split into six
14891 subsections, with most of the current text in new subsections
14892 Directives, Selectors, and Final Actions.
14893 (Directives): Split list of test directives into multiple
14894 subsubsections.
14895 (Selectors): Describe use and syntax of selectors.
14896 (Effective-Target Keywords): Describe all existing keywords.
14897 (Add Options): Describe features for dg-add-options.
14898 (Require Support): Describe variants of dg-require-support.
14899 (Final Actions): Describe commands to use in dg-final.
14900
14901 2010-03-22 Michael Matz <matz@suse.de>
14902
14903 PR middle-end/43475
14904 * recog.c (validate_replace_rtx_group): Replace also in
14905 REG_EQUAL and REG_EQUIV notes.
14906
14907 2010-03-22 Richard Guenther <rguenther@suse.de>
14908
14909 PR tree-optimization/43390
14910 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14911 sure vector extracts are type correct.
14912
14913 2010-03-22 Richard Guenther <rguenther@suse.de>
14914
14915 PR middle-end/40106
14916 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14917 x * sqrt (x) even when optimizing for size if the target
14918 has native support for sqrt.
14919
14920 2010-03-22 Jakub Jelinek <jakub@redhat.com>
14921
14922 * varasm.c (make_decl_rtl_for_debug): Also clear
14923 flag_mudflap for the duration of make_decl_rtl call.
14924
14925 PR debug/43443
14926 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14927 locs from preserved VALUEs.
14928
14929 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14930
14931 PR middle-end/42718
14932 * pa.md (movmemsi): Set align to one if zero.
14933 (movmemdi): Likewise.
14934
14935 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
14936
14937 PR target/42321
14938 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14939 with their corresponding prologue pushes.
14940
14941 2010-03-20 Andrew Pinski <pinskia@gmail.com>
14942
14943 PR target/43156
14944 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14945 at the begining or end.
14946 (spu_expand_epilogue): Likewise.
14947
14948 2010-03-20 Richard Guenther <rguenther@suse.de>
14949
14950 PR rtl-optimization/43438
14951 * combine.c (make_extraction): Properly zero-/sign-extend an
14952 extraction of the low part of a CONST_INT. Also handle
14953 CONST_DOUBLE.
14954
14955 2010-03-19 Mike Stump <mikestump@comcast.net>
14956
14957 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14958 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14959 (override_options): Use SUBTARGET32_DEFAULT_CPU.
14960
14961 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
14962
14963 PR c/43211
14964 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14965 an error.
14966
14967 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
14968
14969 PR rtl-optimization/42258
14970 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14971 use that may match DEF.
14972
14973 PR target/40697
14974 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14975 the cost of loading the constant rather than assuming
14976 COSTS_N_INSNS (1).
14977 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14978 outer code is AND, do the same tests as the andsi3 expander and
14979 return COSTS_N_INSNS (1) if and is cheap.
14980
14981 * optabs.c (avoid_expensive_constant): Fix formatting.
14982
14983 2010-03-19 Michael Matz <matz@suse.de>
14984
14985 PR c++/43116
14986 * attribs.c (decl_attributes): When rebuilding a function pointer
14987 type use the same qualifiers as the original pointer type.
14988
14989 2010-03-19 Martin Jambor <mjambor@suse.cz>
14990
14991 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14992 and is_gimple_ip_invariant_address.
14993
14994 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14995
14996 Revert
14997 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14998
14999 * config/arm/arm.c (arm_override_options): Turn off
15000 flag_dwarf2_cfi_asm for AAPCS variants.
15001
15002 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15003
15004 PR target/43399
15005 * config/arm/arm.c (emit_multi_reg_push): Update comments.
15006 Use PRE_MODIFY instead of PRE_DEC.
15007 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
15008 (vfp_emit_fstmd): Likewise.
15009
15010 2010-03-19 Michael Matz <matz@suse.de>
15011
15012 PR target/43305
15013 * builtins.c (expand_builtin_interclass_mathfn,
15014 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
15015 if that fails.
15016
15017 2010-03-19 Richard Guenther <rguenther@suse.de>
15018
15019 PR tree-optimization/43415
15020 * tree-ssa-pre.c (phi_translate): Split out worker to ...
15021 (phi_translate_1): ... this.
15022 (phi_translate): Move all caching here. Cache all NARY
15023 and REFERENCE translations.
15024
15025 2010-03-19 David S. Miller <davem@davemloft.net>
15026
15027 With help from Eric Botcazou.
15028 * config/sparc/sparc.c: Include dwarf2out.h.
15029 (emit_pic_helper): Delete.
15030 (pic_helper_symbol_name): Delete.
15031 (pic_helper_emitted_p): Delete.
15032 (pic_helper_needed): New.
15033 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
15034 (get_pc_thunk_name): New.
15035 (load_pic_register): Remove 'delay_pic_helper' arg. Use
15036 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
15037 Set pic_helper_needed to true. Don't call emit_pic_helper.
15038 (sparc_expand_prologue): Update load_pic_register call.
15039 (sparc_output_mi_thunk): Likewise.
15040 (sparc_file_end): Emit a hidden comdat symbol for the PIC
15041 thunk if possible. Output CFI information as needed.
15042
15043 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15044 Jack Howarth <howarth@bromo.med.uc.edu>
15045
15046 PR target/36399
15047 * config/i386/i386.h: Fix ABI on darwin x86-32.
15048
15049 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
15050
15051 * tree.h: Declare make_decl_rtl_for_debug.
15052 * varasm.c (make_decl_rtl_for_debug): New.
15053 * dwarf2out.c (rtl_for_decl_location): Call it.
15054 * cfgexpand.c (expand_debug_expr): Call it.
15055
15056 2010-03-18 Jakub Jelinek <jakub@redhat.com>
15057
15058 PR bootstrap/43399
15059 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
15060 mem_mode.
15061
15062 PR bootstrap/43403
15063 * var-tracking.c (vt_init_cfa_base): Do nothing if
15064 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
15065
15066 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
15067
15068 PR debug/42873
15069 * var-tracking.c (canonicalize_vars_star): New.
15070 (dataflow_post_merge_adjust): Use it.
15071
15072 2010-03-18 Jakub Jelinek <jakub@redhat.com>
15073
15074 PR debug/43058
15075 * var-tracking.c (non_suitable_const): New function.
15076 (add_uses): For DEBUG_INSNs with constants, don't record any
15077 value, instead just the constant value itself.
15078 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
15079 is not VAR_LOC_UNKNOWN_P, set var to the constant.
15080 (emit_notes_in_bb): Likewise.
15081 (emit_note_insn_var_location): For onepart variables if
15082 cur_loc is a VOIDmode constant, use DECL_MODE.
15083
15084 2010-03-18 Martin Jambor <mjambor@suse.cz>
15085
15086 PR middle-end/42450
15087 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
15088 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
15089 all non-clones. Moved call redirection...
15090 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
15091 (cgraph_materialize_all_clones): Dispose of all
15092 combined_args_to_skip bitmaps.
15093 (verify_cgraph_node): Do not check for edges pointing to wrong
15094 nodes in inline clones.
15095 * tree-inline.c (copy_bb): Call
15096 cgraph_redirect_edge_call_stmt_to_callee.
15097 * ipa.c (cgraph_remove_unreachable_nodes): Call
15098 cgraph_node_remove_callees even when there are used clones.
15099
15100 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
15101
15102 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
15103
15104 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
15105
15106 PR target/43383
15107 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
15108 for 32bit.
15109
15110 2010-03-18 Michael Matz <matz@suse.de>
15111
15112 PR middle-end/43419
15113 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
15114 into sqrt(x) if we need to preserve signed zeros.
15115
15116 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
15117 Eric Botcazou <ebotcazou@adacore.com>
15118
15119 PR rtl-optimization/43360
15120 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
15121 note if we don't know its invariant status.
15122
15123 2010-03-18 Michael Matz <matz@suse.de>
15124
15125 PR tree-optimization/43402
15126 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
15127 PHI chains of ssa names registered for update.
15128
15129 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
15130
15131 PR target/42427
15132 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
15133 non-offsettable and pre_modify update addressing.
15134 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
15135 and "2" alternatives "#".
15136 (*movdd_softfloat32): Make all alternatives "#";
15137 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
15138 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
15139 (*movdf_softfloat32): Make all alternatives "#";
15140 (movdi): Use the new DIFD mode iterator to create a common splitter
15141 for movdi, movdf and movdd patterns.
15142
15143 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
15144
15145 * common.opt (dumpdir): Remove redundant tab.
15146
15147 2010-03-17 Martin Jambor <mjambor@suse.cz>
15148
15149 PR tree-optimization/43347
15150 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
15151 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
15152
15153 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
15154
15155 PR rtl-optimization/42216
15156 * regrename.c (create_new_chain): New function, broken out from...
15157 (scan_rtx_reg): ... here. Call it. Handle the case where we are
15158 appending a use to an empty chain.
15159 (build_def_use): Remove previous changes that convert OP_INOUT to
15160 OP_OUT operands; instead detect the case where an OP_INOUT operand
15161 uses a previously untracked register and create an empty chain for it.
15162
15163 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15164
15165 * doc/extend.texi (Function Attributes): Rewrite unfinished
15166 sentence in ms_abi documentation.
15167
15168 2010-03-17 Alan Modra <amodra@gmail.com>
15169
15170 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
15171 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
15172 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
15173 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
15174
15175 2010-03-16 Richard Henderson <rth@redhat.com>
15176
15177 PR middle-end/43365
15178 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
15179 (lower_try_finally): Save and restore eh_seq around the expansion
15180 of the try-finally.
15181
15182 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15183
15184 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
15185 statements before splitting block.
15186
15187 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15188
15189 * doc/sourcebuild.texi (Testsuites): Fix markup.
15190 Use pathnames relative to gcc/testsuite.
15191 (Test Directives): Move description of how timeout is determined.
15192 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
15193 (C Tests): Correct gcc.misc-tests directory.
15194 Framework tests now live in gcc.test-framework.
15195
15196 2010-03-16 Richard Guenther <rguenther@suse.de>
15197
15198 PR middle-end/43379
15199 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
15200 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
15201
15202 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15203 Alexandre Oliva <aoliva@redhat.com>
15204
15205 PR tree-optimization/42917
15206 * lambda-code.c (remove_iv): Skip debug statements.
15207 (lambda_loopnest_to_gcc_loopnest): Likewise.
15208 (not_interesting_stmt): Debug statements are not interesting.
15209
15210 2010-03-16 Jakub Jelinek <jakub@redhat.com>
15211
15212 PR debug/43051
15213 PR debug/43092
15214 * cselib.c (cselib_preserve_constants,
15215 cfa_base_preserved_val): New static variables.
15216 (preserve_only_constants): New function.
15217 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
15218 clear its REG_VALUES. If cselib_preserve_constants, don't
15219 empty the whole hash table, but preserve there VALUEs with constants,
15220 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
15221 (cselib_preserve_cfa_base_value): New function.
15222 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
15223 (cselib_init): Change argument to int bitfield. Set
15224 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
15225 is in it.
15226 (cselib_finish): Clear cselib_preserve_constants and
15227 cfa_base_preserved_val.
15228 * cselib.h (enum cselib_record_what): New enum.
15229 (cselib_init): Change argument to int.
15230 (cselib_preserve_cfa_base_value): New prototype.
15231 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15232 * dse.c (dse_step1): Likewise.
15233 * cfgcleanup.c (thread_jump): Likewise.
15234 * sched-deps.c (sched_analyze): Likewise.
15235 * gcse.c (local_cprop_pass): Likewise.
15236 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15237 If FN is non-NULL, call the callback always and whenever it returns
15238 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
15239 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15240 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15241 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15242 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15243 * var-tracking.c: Include recog.h.
15244 (bb_stack_adjust_offset): Remove.
15245 (vt_stack_adjustments): Don't call it, instead just gather the
15246 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15247 (adjust_stack_reference): Remove.
15248 (compute_cfa_pointer): New function.
15249 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15250 (struct adjust_mem_data): New type.
15251 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15252 functions.
15253 (get_address_mode): New function.
15254 (replace_expr_with_values): Use it.
15255 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15256 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
15257 (adjust_sets): Remove.
15258 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15259 Use get_address_mode.
15260 (get_adjusted_src): Remove.
15261 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
15262 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
15263 (add_with_sets): Don't call adjust_sets.
15264 (fp_setter, vt_init_cfa_base): New functions.
15265 (vt_initialize): Change return type to bool. Move most of pool etc.
15266 initialization to the beginning of the function from end. Pass
15267 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15268 If !frame_pointer_needed, call vt_stack_adjustment before mos
15269 vector is filled, call vt_init_cfa_base if argp/framep has been
15270 eliminated to sp. If frame_pointer_needed and argp/framep has
15271 been eliminated to hard frame pointer, set
15272 hard_frame_pointer_adjustment and call vt_init_cfa_base after
15273 encountering fp setter in the prologue. For MO_ADJUST, call
15274 log_op_type before pusing the op into mos vector, not afterwards.
15275 Call adjust_insn before cselib_process_insn/add_with_sets,
15276 call cancel_changes (0) afterwards.
15277 (variable_tracking_main_1): Adjust for vt_initialize calling
15278 vt_stack_adjustments and returning whether it succeeded or not.
15279
15280 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
15281
15282 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15283 debug statements.
15284
15285 2010-03-15 Jakub Jelinek <jakub@redhat.com>
15286
15287 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15288 has been set.
15289 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15290 drap_reg has not been set.
15291
15292 2010-03-15 Michael Matz <matz@suse.de>
15293
15294 PR middle-end/43300
15295 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
15296 use it to expand block copies.
15297 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
15298 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
15299 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
15300
15301 2010-03-15 Richard Guenther <rguenther@suse.de>
15302
15303 PR tree-optimization/43367
15304 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
15305 elimination check.
15306
15307 2010-03-15 Richard Guenther <rguenther@suse.de>
15308
15309 PR tree-optimization/43317
15310 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
15311
15312 2010-03-15 Martin Jambor <mjambor@suse.cz>
15313
15314 PR tree-optimization/43141
15315 * tree-sra.c (create_abstract_origin): New function.
15316 (modify_function): Call create_abstract_origin.
15317
15318 2010-03-15 Chris Demetriou <cgd@google.com>
15319
15320 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
15321 wasn't copied.
15322
15323 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15324
15325 PR middle-end/43354
15326 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
15327 call insert_out_of_ssa_copy for default definitions.
15328
15329 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15330
15331 * graphite-clast-to-gimple.c (my_long_long): Defined.
15332 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
15333 * graphite-sese-to-poly.c (my_long_long): Defined.
15334 (scop_ivs_can_be_represented): Use it.
15335
15336 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15337
15338 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
15339 graphite-max-bbs-per-function, and loop-block-tile-size.
15340 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
15341 with "maximum".
15342 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
15343
15344 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15345
15346 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
15347 forward declaration.
15348 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
15349 (add_upper_bounds_from_estimated_nit): New.
15350 (build_loop_iteration_domains): Use it.
15351
15352 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15353
15354 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
15355
15356 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15357
15358 PR middle-end/43306
15359 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
15360 should be an INTEGER_CST. Also handle CASE_CONVERT.
15361
15362 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15363
15364 * graphite.c (graphite_initialize): To bound the number of bbs per
15365 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
15366 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
15367 * doc/invoke.texi: Document it.
15368
15369 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15370
15371 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
15372 * graphite-sese-to-poly.h (build_poly_scop): Same.
15373
15374 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15375
15376 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
15377 the number of parameters in the scop. Use as an upper bound
15378 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
15379 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
15380 * doc/invoke.texi: Document it.
15381
15382 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
15383
15384 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
15385 * doc/c-tree.texi: Remove.
15386 * doc/generic.texi: Merge c-tree.texi here.
15387 * doc/gccint.texi (Trees): Remove menu entry.
15388 (c-tree.texi): Remove @include.
15389 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
15390 * doc/languages.texi (Reading RTL): Ditto.
15391
15392 2010-03-12 Steve Ellcey <sje@cup.hp.com>
15393
15394 PR target/42869
15395 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
15396
15397 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15398
15399 PR middle-end/42431
15400 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
15401 code added to work around reload clobbering CONST insns.
15402
15403 2010-03-12 Jakub Jelinek <jakub@redhat.com>
15404
15405 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
15406 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
15407 (cselib_preserve_only_values): Remove retain argument, don't
15408 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
15409 * cselib.h (cselib_preserve_only_values): Remove retain argument.
15410 * var-tracking.c (micro_operation): Move insn field before union.
15411 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
15412 (struct variable_tracking_info_def): Remove n_mos field, change
15413 mos into a vector of micro_operations.
15414 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
15415 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
15416 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
15417 changing into a vector.
15418 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
15419 come before all other uops generated by add_stores.
15420 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
15421 argument removal.
15422 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
15423 a vector. Run just one pass over the bbs instead of separate counting
15424 and computation phase.
15425 (vt_finalize): Free VTI (bb)->mos vector instead of array.
15426
15427 PR debug/43329
15428 * tree-inline.c (remap_decls): Put old_var rather than origin_var
15429 into *nonlocalized_list vector.
15430 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
15431 even if origin is non-NULL.
15432 (gen_variable_die): Likewise.
15433 (process_scope_var): Don't change origin.
15434 (gen_decl_die): Likewise.
15435 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
15436 before adding new edges instead of after it, fix moving over
15437 debug stmts.
15438
15439 2010-03-11 David S. Miller <davem@davemloft.net>
15440
15441 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
15442 of four.
15443 * configure: Rebuild.
15444
15445 2010-03-11 Martin Jambor <mjambor@suse.cz>
15446
15447 PR tree-optimization/43257
15448 * tree.c (assign_assembler_name_if_neeeded): New function.
15449 (free_lang_data_in_cgraph): Assembler name assignment moved to the
15450 above new function.
15451 * tree.h (assign_assembler_name_if_neeeded): Declare.
15452 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
15453 the function if needed.
15454
15455 2010-03-11 Chris Demetriou <cgd@google.com>
15456
15457 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
15458 include/stdint-gcc.h, and include/stdint.h world-readable.
15459
15460 2010-03-11 Richard Guenther <rguenther@suse.de>
15461
15462 PR tree-optimization/43255
15463 * tree-vrp.c (process_assert_insertions_for): Do not insert
15464 asserts for trivial conditions.
15465
15466 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15467
15468 PR tree-optimization/43280
15469 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
15470 generation. Move calculation of size out of the if branch.
15471 (find_bswap): Modify compare number generation.
15472
15473 2010-03-11 Richard Guenther <rguenther@suse.de>
15474
15475 PR lto/43200
15476 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
15477 (input_gimple_stmt): Fixup handled component types during
15478 operand read. Also fix up decls in ADDR_EXPRs.
15479
15480 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
15481
15482 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
15483 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
15484
15485 2010-03-10 Jan Hubicka <jh@suse.cz>
15486
15487 PR c/43288
15488 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
15489 * varasm.c (get_variable_section): Don't do that here...
15490 (make_decl_rtl): ... and here.
15491 (do_assemble_alias): Produce decl RTL.
15492 (assemble_alias): Likewise.
15493
15494 2010-03-10 Jakub Jelinek <jakub@redhat.com>
15495
15496 PR debug/43290
15497 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
15498 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
15499 of fde->vdrap_reg.
15500 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
15501 (based_loc_descr): Only express drap or vdrap regno based expressions
15502 using DW_OP_fbreg when not optimizing.
15503 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
15504 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
15505 REG_CFA_SET_VDRAP note.
15506
15507 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
15508
15509 PR tree-optimization/43236
15510 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
15511 error in calculation of base address in reverse iteration case.
15512 (generate_builtin): Take number of latch executions if the statement
15513 is in the latch.
15514
15515 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
15516
15517 PR middle-end/42859
15518 * tree-eh.c: Include pointer-set.h.
15519 (lower_eh_dispatch): Filter out duplicate case labels and
15520 remove the unneeded edge when the label is unused. Return
15521 true when some edges are removed.
15522 (execute_lower_eh_dispatch): When any lowering resulted in
15523 removing an edge, also delete unreachable blocks.
15524
15525 2010-03-10 Jakub Jelinek <jakub@redhat.com>
15526
15527 PR bootstrap/43287
15528 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15529 UNSPEC_MACHOPIC_OFFSET.
15530
15531 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
15532
15533 PR target/43294
15534 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
15535 (m68k_delegitimize_address): New function.
15536
15537 2010-03-09 Jakub Jelinek <jakub@redhat.com>
15538
15539 PR debug/43299
15540 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
15541
15542 PR debug/43299
15543 * var-tracking.c (adjust_sets): New function.
15544 (count_with_sets, add_with_sets): Use it.
15545 (get_adjusted_src): New inline function.
15546 (add_stores): Use it.
15547
15548 PR debug/43304
15549 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
15550 call cselib_dummy_expand_value_rtx_cb instead of
15551 cselib_expand_value_rtx_cb.
15552
15553 PR debug/43293
15554 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
15555 * config/i386/i386.c: Include debug.h and dwarf2out.h.
15556 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
15557 and .cfi_endproc around the pic thunks.
15558 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
15559 all queued unwind info register saves are saved before the call.
15560 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
15561 considered as sp-=4 for unwind info and the pop as sp+=4 which
15562 also clobbers dest, but doesn't actually restore it.
15563
15564 PR debug/43290
15565 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
15566 RTX_FRAME_RELATED_P.
15567
15568 2010-03-09 Jie Zhang <jie@codesourcery.com>
15569
15570 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
15571 whitespaces in output template.
15572
15573 2010-03-09 Jie Zhang <jie@codesourcery.com>
15574
15575 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
15576 out array boundary.
15577
15578 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15579
15580 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
15581 builtins.exp in a separate job.
15582
15583 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15584
15585 * graphite-sese-to-poly.c (add_param_constraints): Use
15586 lower_bound_in_type and upper_bound_in_type.
15587
15588 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15589
15590 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
15591 instead of unsigned_type_node.
15592
15593 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15594 Reza Yazdani <reza.yazdani@amd.com>
15595
15596 PR middle-end/43065
15597 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
15598 on pointer type parameters.
15599
15600 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15601
15602 PR middle-end/42644
15603 PR middle-end/42130
15604 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
15605 handle conversions from pointer to integers.
15606 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
15607 induction variable, to be able to work with code generated by CLooG.
15608 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
15609 (build_poly_scop): Bail out if we cannot codegen a loop.
15610
15611 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15612
15613 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
15614 code generation with gloog_error.
15615
15616 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15617
15618 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
15619 Call fold_convert on all the returned values.
15620 (expand_scalar_variables_expr): Pass to
15621 expand_scalar_variables_ssa_name the type of the resulting expression.
15622
15623 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15624
15625 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
15626 ppl_min_for_le_pointset.
15627 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
15628 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
15629
15630 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15631
15632 * graphite-dependences.c (map_into_dep_poly): Removed.
15633 (dependence_polyhedron_1): Use combine_context_id_scat.
15634
15635 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15636
15637 * graphite-poly.h (struct poly_scattering): Add layout documentation.
15638 (struct poly_bb): Same.
15639 (combine_context_id_scat): New.
15640
15641 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15642
15643 PR middle-end/42326
15644 * sese.c (name_defined_in_loop_p): Return false for default
15645 definitions.
15646
15647 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15648
15649 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15650 and clean up the logic.
15651
15652 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15653
15654 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15655 early return.
15656
15657 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15658
15659 * var-tracking.c (remove_cselib_value_chains): Define only for
15660 ENABLE_CHECKING.
15661 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15662 delete_slot_part, emit_notes_for_differences_1): Don't call
15663 remove_cselib_value_chains here.
15664 (set_slot_part, emit_notes_for_differences_2): Don't call
15665 add_cselib_value_chains here.
15666 (preserved_values): New vector.
15667 (preserve_value): New function.
15668 (add_uses, add_stores, vt_add_function_parameters): Use it
15669 instead of cselib_preserve_value.
15670 (changed_values_stack): New vector.
15671 (check_changed_vars_0): New function.
15672 (check_changed_vars_1, check_changed_vars_2): Use it.
15673 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15674 changed_values_stack VALUEs.
15675 (vt_emit_notes): For all preserved_values call
15676 add_cselib_value_chains. If ENABLE_CHECKING call
15677 remove_cselib_value_chains before verifying value_chains is empty.
15678 Initialize and free changed_values_stack.
15679 (vt_initialize): Initialize preserved_values.
15680 (vt_finalize): Free preserved_values.
15681
15682 2010-03-08 Richard Guenther <rguenther@suse.de>
15683
15684 PR tree-optimization/43269
15685 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15686 region detection.
15687
15688 2010-03-08 Martin Jambor <mjambor@suse.cz>
15689
15690 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15691 (ipa_is_param_called): Removed.
15692 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15693 (ipa_print_node_params): Do not print the called flag.
15694 (ipa_write_node_info): Do not stream the called flag.
15695 (ipa_read_node_info): Likewise.
15696
15697 2010-03-07 Jakub Jelinek <jakub@redhat.com>
15698
15699 PR debug/43176
15700 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15701 * cselib.c (struct expand_value_data): Add dummy field.
15702 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15703 dummy to false.
15704 (cselib_dummy_expand_value_rtx_cb): New function.
15705 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15706 any rtl.
15707 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15708 * var-tracking.c: Include pointer-set.h.
15709 (variable): Change n_var_parts to char from int. Add
15710 cur_loc_changed and in_changed_variables fields.
15711 (variable_canonicalize): Remove.
15712 (shared_var_p): New inline function.
15713 (unshare_variable): Maintain cur_loc_changed and
15714 in_changed_variables fields. If var was in changed_variables,
15715 replace it there with new_var. Just copy cur_loc instead of
15716 resetting it to something else.
15717 (variable_union): Don't recompute cur_loc. Use shared_var_p.
15718 (dataflow_set_union): Don't call variable_canonicalize.
15719 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
15720 of their DEBUG_EXPR_TREE_DECLs.
15721 (canonicalize_loc_order_check): Verify that cur_loc is NULL
15722 and in_changed_variables and cur_loc_changed is false.
15723 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
15724 and cur_loc_changed. Don't update cur_loc here.
15725 (variable_merge_over_src): Don't call variable_canonicalize.
15726 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
15727 removing loc that is equal to cur_loc, clear cur_loc,
15728 set cur_loc_changed and ensure variable_was_changed is called.
15729 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
15730 compare pointers in cur_loc check, if it is equal to loc,
15731 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
15732 (variable_different_p): Remove compare_current_location argument,
15733 don't compare cur_loc.
15734 (dataflow_set_different_1): Adjust variable_different_p caller.
15735 (variable_was_changed): If dv had some var in changed_variables
15736 already, reset in_changed_variables flag for it and propagate
15737 cur_loc_changed over to the new variable. On empty var
15738 always set cur_loc_changed. Set in_changed_variables on whatever
15739 var is added to changed_variables.
15740 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
15741 Use shared_var_p. When removing loc that is equal to cur_loc,
15742 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
15743 end, don't set it to something else, just call variable_was_changed.
15744 (delete_slot_part): Use shared_var_p. When cur_loc equals to
15745 loc being removed, clear cur_loc and set cur_loc_changed.
15746 Set cur_loc_changed if all locations have been removed.
15747 (struct expand_loc_callback_data): New type.
15748 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
15749 allocated. Always create SUBREGs if simplify_subreg failed.
15750 Prefer to use cur_loc, when that fails and still in
15751 changed_variables (and seen first time) recompute it. Set
15752 cur_loc_changed of variables which had to change cur_loc and
15753 compute elcd->cur_loc_changed if any of the subexpressions used
15754 had to change cur_loc.
15755 (vt_expand_loc): Adjust to pass arguments in
15756 expand_loc_callback_data structure.
15757 (vt_expand_loc_dummy): New function.
15758 (emitted_notes): New variable.
15759 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
15760 that weren't used for any other decl in current
15761 emit_notes_for_changes call call vt_expand_loc_dummy to update
15762 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
15763 first loc_chain location if NULL before. Always use just
15764 cur_loc instead of first loc_chain location. When cur_loc_changed
15765 is false, when not --enable-checking=rtl just don't emit any note.
15766 When rtl checking, compute the note and assert it is the same
15767 as previous note. Clear cur_loc_changed and in_changed_variables
15768 at the end before removing from changed_variables.
15769 (check_changed_vars_3): New function.
15770 (emit_notes_for_changes): Traverse changed_vars to call
15771 check_changed_vars_3 on each changed var.
15772 (emit_notes_for_differences_1): Clear cur_loc_changed and
15773 in_changed_variables. Recompute cur_loc of new_var.
15774 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
15775 (vt_emit_notes): Initialize and destroy emitted_notes.
15776
15777 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
15778
15779 PR rtl-optimization/42220
15780 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
15781 Use verify_reg_tracked to determine if we should use OP_OUT rather
15782 than OP_INOUT.
15783 (build_def_use): If we see an in-out operand for a register that we
15784 know nothing about, treat is an output if possible, fail the block if
15785 not.
15786
15787 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15788
15789 PR debug/42897
15790 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
15791 permanently.
15792
15793 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15794
15795 PR debug/42897
15796 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
15797 uses of relevant DEFs that are dead outside the loop too.
15798
15799 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15800
15801 * var-tracking.c (dataflow_set_merge): Swap src and src2.
15802 Reverted:
15803 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15804 PR debug/41371
15805 * var-tracking.c (values_to_unmark): New variable.
15806 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15807 values_to_unmark vector. Moved body to...
15808 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15809 instead queue it into values_to_unmark vector.
15810 (vt_find_locations): Free values_to_unmark vector.
15811
15812 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
15813
15814 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
15815 (site.exp): Export them when plugins are enabled.
15816
15817 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
15818
15819 PR middle-end/42326
15820 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
15821 that contain scevs.
15822 (chrec_fold_multiply): Same.
15823
15824 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
15825
15826 PR c/43248
15827 * c-decl.c (build_compound_literal): Return early if init is
15828 an error_mark_node.
15829
15830 2010-03-04 Martin Jambor <mjambor@suse.cz>
15831
15832 PR tree-optimization/43164
15833 PR tree-optimization/43191
15834 * tree-sra.c (type_consists_of_records_p): Reject records with
15835 zero-size bit-fields at the end.
15836
15837 2010-03-04 Mike Stump <mikestump@comcast.net>
15838
15839 * Makefile.in (TAGS): Remove *.y.
15840
15841 2010-03-04 Richard Guenther <rguenther@suse.de>
15842
15843 PR tree-optimization/40761
15844 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15845 in reverse order.
15846 (my_rev_post_order_compute): New function.
15847 (init_pre): Call it.
15848
15849 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
15850
15851 PR middle-end/43209
15852 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15853 decrease the cost of an IV candidate when the cost is infinite.
15854
15855 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15856
15857 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15858 Use '3DNow!' for the extension of that name, ensure normal space
15859 after the string.
15860 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15861
15862 2010-03-03 Jeff Law <law@redhat.com>
15863
15864 * PR middle-end/32693
15865 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15866 than gen_rtx_SUBREG.
15867 (extract_bit_field_1): Likewise.
15868
15869 2010-03-03 Janis Johnson <janis187@us.ibm.com>
15870
15871 * doc/sourcebuild.texi (Test directives): Document that arguments
15872 include-opts and exclude-opts are now optional for dg-skip-if,
15873 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15874
15875 2010-03-03 Jason Merrill <jason@redhat.com>
15876
15877 PR c++/12909
15878 * cgraph.h (varpool_node): Add extra_name field.
15879 * varpool.c (varpool_extra_name_alias): New.
15880 (varpool_assemble_decl): Emit extra name aliases.
15881 (varpool_mark_needed_node): Look past an extra name alias.
15882 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15883 * lto-streamer-in.c (lto_input_tree): Read it.
15884 * lto-streamer-out.c (output_unreferenced_globals): Write it.
15885
15886 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
15887
15888 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15889 (sparc*-*-solaris2*): ...this.
15890
15891 2010-03-03 Jakub Jelinek <jakub@redhat.com>
15892
15893 PR debug/43229
15894 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15895 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
15896 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15897 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15898
15899 PR debug/43237
15900 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15901 fallthrough to default handling, just with want_address 0 instead of 2.
15902 For single element lists, add_AT_loc directly, otherwise create an
15903 artificial variable DIE and stick location list to it.
15904
15905 PR debug/43177
15906 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15907 (VAL_EXPR_HAS_REVERSE): Define.
15908 (reverse_op): New function.
15909 (add_stores): For reversible operations add an extra MO_VAL_USE.
15910
15911 2010-03-02 Jason Merrill <jason@redhat.com>
15912
15913 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15914
15915 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
15916
15917 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15918 (sparc64-*-linux*): Likewise.
15919 (sparc64-*-solaris2*): Include assembler files before linker ones.
15920 (sparc-*-solaris2*): Simplify and reorder to match previous case.
15921 * config/sparc/gas.h: Delete.
15922 * config/sparc/sol2-64.h: Add copyright notice.
15923 * config/sparc/sol2-gas-bi.h: Likewise.
15924 * config/sparc/sol2-gld.h: Likewise.
15925 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15926 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15927 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15928 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15929 (sparc_elf_asm_named_section): Rename into...
15930 (sparc_solaris_elf_asm_named_section): ...this. Always define.
15931
15932 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
15933
15934 * config/alpha/alpha.c (override_options): Fix -mtune error message.
15935
15936 2010-03-02 Jeff Law <law@redhat.com>
15937
15938 PR middle-end/42431
15939 * reload1.c (rtx_p, substitute_stack): Declare.
15940 (substitute): Record addresses of changed rtxs.
15941 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15942 Restore the original rtx when complete.
15943 (reload): Free subsitute_stack when complete.
15944
15945 2010-03-02 Janis Johnson <janis187@us.ibm.com>
15946
15947 * doc/gccint.texi (menu): Add Testsuites as a chapter.
15948 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15949 new chapter.
15950 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15951 LTO Testing, gcov Testing, profopt Testing, compat Testing,
15952 Torture Tests): Change from subsection to section.
15953
15954 2010-03-02 Jakub Jelinek <jakub@redhat.com>
15955 Steven Bosscher <steven@gcc.gnu.org>
15956
15957 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15958 instead of bb.
15959
15960 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
15961
15962 PR middle-end/42640
15963 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15964 the assignment from the new induction variable to the assignment
15965 of the value from the original loop PHI function.
15966
15967 2010-03-01 Janis Johnson <janis187@us.ibm.com>
15968 Daniel Jacobowitz <dan@codesourcery.com>
15969
15970 * doc/sourcebuild.texi (Test directives): Clarify options to
15971 dg-skip-if.
15972
15973 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15974
15975 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15976 Disable cfi directives unless GCC and gas agree on using read-only
15977 .eh_frame sections for 64-bit.
15978 * configure: Regenerate.
15979
15980 2010-03-01 Richard Guenther <rguenther@suse.de>
15981
15982 PR tree-optimization/43220
15983 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15984 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15985
15986 2010-03-01 Richard Guenther <rguenther@suse.de>
15987 Martin Jambor <mjambor@suse.cz>
15988
15989 PR middle-end/41250
15990 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15991 gimplified parameters.
15992
15993 2010-03-01 Christian Bruel <christian.bruel@st.com>
15994
15995 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15996
15997 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15998
15999 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
16000
16001 2010-03-01 Richard Guenther <rguenther@suse.de>
16002
16003 PR middle-end/43213
16004 * expr.c (expand_assignment): Use the alias-oracle to tell
16005 if the rhs aliases the result decl.
16006
16007 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16008
16009 PR pch/14940
16010 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
16011 to sol_gt_pch_get_address.
16012 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
16013 64-bit, SPARC and x86.
16014 (sol_gt_pch_get_address): New function.
16015
16016 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
16017
16018 * toplev.h (inform_n, error_n): Declare.
16019 * diagnostic.c (inform_n, error_n): New function.
16020
16021 2010-03-01 Jakub Jelinek <jakub@redhat.com>
16022
16023 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
16024 has no rtl yet when processing local_decls, queue it and recheck
16025 if deferred stack allocation hasn't assigned it rtl.
16026
16027 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
16028
16029 * config/sh/sh.c (unspec_bbr_uid): New.
16030 (gen_block_redirect): Use it instead of INSN_UID.
16031 (gen_far_branch): Likewise.
16032
16033 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
16034
16035 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
16036 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
16037
16038 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16039
16040 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
16041 (Warning Options): -Wno-conversion-null is valid for
16042 Objective-C++ as well.
16043 * doc/tm.texi (Named Address Spaces): Likewise.
16044 * doc/plugins.texi (Plugins): Replace TABs with spaces.
16045 * doc/tree-ssa.texi (Tree SSA): Likewise.
16046
16047 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16048
16049 PR bootstrap/43202
16050 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
16051 by default. Don't set the default arch for
16052 i[34567]86-*-darwin*|x86_64-*-darwin*.
16053
16054 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16055
16056 PR bootstrap/43202
16057 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
16058 default. Set the default 32bit/64bit archs with $with_arch
16059 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
16060
16061 2010-02-27 Richard Guenther <rguenther@suse.de>
16062
16063 PR tree-optimization/43186
16064 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
16065 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
16066 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
16067 unroller iterations.
16068
16069 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16070
16071 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
16072 required and i[34567]86-*-* targets don't support 64bit ISA.
16073
16074 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
16075
16076 PR ada/43096
16077 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16078 the same alias set.
16079
16080 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
16081
16082 * config.gcc: Set the default arch at least to Prescott for
16083 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
16084 if SSE math is enabled.
16085
16086 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16087
16088 * diagnostic.c (diagnostic_initialize): Update.
16089 (diagnostic_report_diagnostic): Test inhibit_notes_p for
16090 informative notes.
16091 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
16092 (diagnostic_inhibit_notes): New.
16093 * toplev.c (process_options): inhibit notes with -fcompare-debug.
16094
16095 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16096
16097 PR c/20631
16098 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
16099 * doc/standards.texi: Likewise.
16100 * doc/extend.texi: Likewise.
16101 * doc/trouble.texi: Likewise.
16102 * doc/cppopts.texi: Likewise.
16103 * doc/install.texi: Likewise.
16104 * c.opt (std=c90,std=gnu90): New options.
16105 * c-opts.c (c_common_handle_option): Handle them.
16106
16107 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16108
16109 PR c/24577
16110 * c-decl.c (undeclared_variable): Use an informative note.
16111
16112 2010-02-26 Richard Guenther <rguenther@suse.de>
16113
16114 PR tree-optimization/43186
16115 * gimple.h (gimple_fold): Remove.
16116 * gimple.c (gimple_fold): Remove. Inline into single user ...
16117 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
16118 Try harder for conditions.
16119
16120 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16121
16122 PR debug/43190
16123 * function.c (used_types_insert): Don't skip through named pointer
16124 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
16125 and it is different from the main variant's type.
16126
16127 2010-02-26 Nick Clifton <nickc@redhat.com>
16128
16129 * config/rx/rx.md (sminsi3): Remove bogus alternative.
16130
16131 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
16132
16133 * config.gcc: Support --with-fpmath=sse for x86.
16134
16135 * config/i386/ssemath.h: New.
16136
16137 * doc/install.texi (--with-fpmath=sse): Documented.
16138
16139 2010-02-26 Richard Guenther <rguenther@suse.de>
16140
16141 PR tree-optimization/43188
16142 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
16143 vector types of over-aligned element type.
16144
16145 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
16146
16147 PR target/43175
16148 * config/i386/i386.c (expand_vec_perm_blend): Use correct
16149 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
16150
16151 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16152
16153 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
16154
16155 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16156
16157 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
16158 * var-tracking.c: Include diagnostic.h.
16159 (debug_dv): New function.
16160 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
16161
16162 PR debug/43160
16163 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
16164 (add_value_chain, add_value_chains, remove_value_chain,
16165 remove_value_chains): Handle DEBUG_EXPRs.
16166 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
16167
16168 PR debug/43161
16169 * regcprop.c (struct queued_debug_insn_change): New type.
16170 (struct value_data_entry): Add debug_insn_changes field.
16171 (struct value_data): Add n_debug_insn_changes field.
16172 (debug_insn_changes_pool): New variable.
16173 (free_debug_insn_changes, apply_debug_insn_changes,
16174 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
16175 (kill_value_one_regno): Call free_debug_insn_changes if needed.
16176 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
16177 fields.
16178 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
16179 changes for them.
16180 (copyprop_hardreg_forward_1): Don't call apply_change_group for
16181 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
16182 changes, call cprop_find_used_regs via note_stores.
16183 (copyprop_hardreg_forward): When copying vd from predecessor
16184 which has any queued DEBUG_INSN changes, make sure the pointers are
16185 cleared. At the end call df_analyze and then if there are any
16186 DEBUG_INSN changes queued at the end of some basic block for still
16187 live registers, apply them.
16188 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
16189
16190 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
16191
16192 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
16193 (arm*-*-*): Ditto.
16194
16195 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
16196
16197 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
16198 targets. Set the default with_cpu/with_arch from arch/cpu.
16199 Allow x86-64 and native for with_cpu/with_arch.
16200
16201 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
16202
16203 * ebitmap.c: Change calls to verify_popcount with calls to
16204 sbitmap_verify_popcount.
16205 (ebitmap_clear_bit): Fixed map->cacheindex test and
16206 map>cache update when bit clearing results in an empty
16207 element.
16208
16209 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
16210
16211 PR target/43154
16212 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
16213 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
16214 and support both V2DF and V2DI modes.
16215 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
16216 support both V2DF and V2DI modes.
16217 (general): Delete trailing whitespace from a few patterns.
16218
16219 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16220 V2DF/V2DI interleave high/low builtins.
16221
16222 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
16223 new VSX builtins.
16224
16225 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16226 interleave high/low functions.
16227
16228 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16229
16230 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16231 #pragma extern_prefix.
16232
16233 2010-02-25 Jakub Jelinek <jakub@redhat.com>
16234
16235 PR debug/43166
16236 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16237 BLKmode, assert op0 is a MEM and just adjust its mode.
16238
16239 PR debug/43165
16240 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16241 if bitpos isn't multiple of mode's bitsize.
16242
16243 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16244
16245 * c.opt (-ftemplate-depth=): New.
16246 (-ftemplate-depth-): Deprecate.
16247 * optc-gen.awk: Handle -ftemplate-depth=.
16248 * opth-gen.awk: Likewise.
16249 * c-opts.c (c_common_handle_option): Likewise.
16250 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16251
16252 2010-02-24 Jason Merrill <jason@redhat.com>
16253
16254 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16255
16256 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16257
16258 * cfg.c (alloc_aux_for_block): Remove inline.
16259 (alloc_aux_for_edge): Likewise.
16260
16261 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16262
16263 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16264
16265 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16266
16267 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16268 * config/i386/sol2-gas.h: New file.
16269 * config.gcc (i[34567]86-*-solaris2*): Use it.
16270
16271 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16272
16273 PR c/43128
16274 * c-typeck.c (ep_convert_and_check): New.
16275 (build_conditional_expr): Use it.
16276 (build_binary_op): Likewise.
16277
16278 2010-02-24 Jakub Jelinek <jakub@redhat.com>
16279
16280 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16281
16282 PR debug/43150
16283 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16284 bounds even for -O+.
16285 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16286 expr needs to have DECL_NAME set.
16287
16288 2010-02-24 Nick Clifton <nickc@redhat.com>
16289
16290 * config/mep/mep.c: Include gimple.h.
16291 (mep_function_uses_sp): Delete unused function.
16292 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
16293 parameters. Use unsigned integers to count args. Return a
16294 NULL_RTX instead of an error_mark_node. Toidy up formatting.
16295
16296 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16297
16298 PR target/43107
16299 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
16300 greater or equal to nelt instead of 2 * nelt.
16301 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
16302 with nelt - 1.
16303
16304 2010-02-23 Jason Merrill <jason@redhat.com>
16305
16306 PR debug/42800
16307 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
16308 in cfun->local_decls even if they have register types.
16309
16310 PR c++/42837
16311 * stor-layout.c (place_field): Don't warn about unnecessary
16312 DECL_PACKED if the type is packed.
16313
16314 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16315
16316 PR target/43139
16317 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
16318 GOTOFF relocs, even when the base reg isn't pic pointer.
16319
16320 2010-02-23 Michael Matz <matz@suse.de>
16321
16322 PR debug/43077
16323 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
16324 (expand_gimple_basic_block): Generate and use debug temps if there
16325 are debug uses left after the last real use of TERed ssa names.
16326 Unlink debug immediate uses when they are expanded.
16327
16328 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
16329
16330 PR 43123
16331 * config/i386/i386.c (override_options): Reorganise to provide
16332 better error messages.
16333
16334 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16335
16336 PR middle-end/43083
16337 * graphite-scop-detection.c (create_single_exit_edge): Move
16338 the call to find_single_exit_edge to....
16339 (create_sese_edges): ...here. Don't handle multiple edges
16340 exiting the function.
16341 (build_graphite_scops): Don't handle multiple edges
16342 exiting the function.
16343
16344 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16345
16346 PR middle-end/43097
16347 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
16348 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
16349
16350 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16351
16352 PR middle-end/43026
16353 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
16354
16355 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
16356
16357 PR c++/43126
16358 * c-typeck.c (convert_arguments): Print declaration location.
16359 * c-common.c (validate_nargs): Rename as
16360 builtin_function_validate_nargs.
16361 (check_builtin_function_arguments): Update.
16362
16363 2010-02-22 Richard Guenther <rguenther@suse.de>
16364
16365 PR lto/43045
16366 * tree-inline.c (declare_return_variable): Use the type of
16367 the call stmt lhs if available.
16368
16369 2010-02-22 Duncan Sands <baldrick@free.fr>
16370
16371 * passes.c (register_pass): Always consider all pass lists when
16372 ref_pass_instance_number is zero.
16373
16374 2010-02-22 Richard Guenther <rguenther@suse.de>
16375
16376 PR tree-optimization/42749
16377 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
16378 parameter. Do arithmetic in the original type.
16379 (update_accumulator_with_ops): Likewise.
16380 (adjust_accumulator_values): Adjust.
16381
16382 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16383
16384 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
16385 (QI to BLKmode splitter): New splitter.
16386
16387 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
16388
16389 * config/i386/i386.c (initial_ix86_tune_features): Turn on
16390 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
16391
16392 2010-02-22 Richard Guenther <rguenther@suse.de>
16393
16394 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
16395
16396 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
16397
16398 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
16399 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
16400 ($(T)crti.o, $(T)crtn.o): Remove rules.
16401
16402 2010-02-21 Tobias Burnus <burnus@net-b.de>
16403
16404 PR fortran/35259
16405 * doc/invoke.texi (-fassociative-math): Document that this
16406 option is automatically enabled for Fortran.
16407
16408 2010-02-20 David S. Miller <davem@davemloft.net>
16409
16410 * configure.ac: Test if linker and assembler properly support
16411 GOTDATA_OP relocations.
16412 * configure: Rebuild.
16413 * config.in: Likewise.
16414 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
16415 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
16416 (movsi_high_pic): Likewise.
16417 (movdi_lo_sum_pic): Likewise.
16418 (movdi_high_pic): Likewise.
16419 (movsi_pic_gotdata_op): New pattern.
16420 (movdi_pic_gotdata_op): Likewise.
16421 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
16422 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
16423
16424 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
16425
16426 PR target/43067
16427 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
16428 attribute to ssemul.
16429 (xop_mulv2div2di3_high): Ditto.
16430
16431 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16432
16433 PR c++/35669
16434 * c.opt (Wconversion-null): New option.
16435 * doc/invoke.texi (Wconversion-null): Document.
16436
16437 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16438
16439 * common.opt (Wlarger-than-): Add Undocumented.
16440
16441 2010-02-19 Mike Stump <mikestump@comcast.net>
16442
16443 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
16444
16445 2010-02-19 Jason Merrill <jason@redhat.com>
16446
16447 PR target/40332
16448 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
16449 * configure: Likewise.
16450
16451 2010-02-20 Alan Modra <amodra@gmail.com>
16452
16453 PR middle-end/42344
16454 * cgraph.h (cgraph_make_decl_local): Declare.
16455 * cgraph.c (cgraph_make_decl_local): New function.
16456 (cgraph_make_node_local): Use it.
16457 * cgraphunit.c (cgraph_function_versioning): Likewise.
16458 * ipa.c (function_and_variable_visibility): Likewise.
16459
16460 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16461
16462 PR bootstrap/43121
16463 * except.c (sjlj_emit_function_enter): Don't call
16464 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
16465 directly.
16466 * rtl.h (add_reg_br_prob_note): Remove prototype.
16467
16468 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16469
16470 PR 41779
16471 * c-common.c (conversion_warning): Remove widening conversions
16472 before checking the conversion of integers to reals.
16473
16474 2010-02-19 Mike Stump <mikestump@comcast.net>
16475
16476 PR middle-end/43125
16477 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
16478
16479 PR objc/43061
16480 * cgraphunit.c (process_function_and_variable_attributes): Check
16481 DECL_PRESERVE_P instead of looking up attribute "used".
16482 * ipa-pure-const.c (check_decl): Likewise.
16483 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
16484 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
16485 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
16486 instead of attribute "used".
16487 * config/sol2-c.c (solaris_pragma_init): Likewise.
16488 (solaris_pragma_fini): Likewise.
16489
16490 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16491
16492 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
16493 Use XCNEW instead of xcalloc.
16494 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
16495 XNEW instead of xmalloc.
16496 (get_fields): Use XNEWVEC instead of xmalloc.
16497
16498 PR debug/43084
16499 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
16500 populate vars array.
16501 (create_new_general_access): For debug stmts just reset value.
16502 (get_stmt_accesses): For accesses within debug stmts just record them
16503 using add_access_to_acc_sites instead of preventing the peeling or
16504 counting them as accesses.
16505
16506 PR middle-end/42233
16507 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
16508
16509 2010-02-19 Richard Guenther <rguenther@suse.de>
16510
16511 PR tree-optimization/42916
16512 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
16513 instructions.
16514
16515 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
16516
16517 * configure.ac: Replace all uses of changequote in macro arguments
16518 with proper quoting.
16519
16520 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16521
16522 PR middle-end/42233
16523 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
16524
16525 2010-02-19 Richard Guenther <rguenther@suse.de>
16526
16527 PR tree-optimization/42944
16528 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
16529 test for aliasing with errno.
16530
16531 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16532
16533 PR middle-end/42233
16534 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
16535 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
16536 * dojump.c: Include output.h.
16537 (inv): New inline function.
16538 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
16539 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
16540 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
16541 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
16542 argument, pass it down to other calls.
16543 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
16544 add REG_BR_PROB note to the conditional jump.
16545 * cfgexpand.c (add_reg_br_prob_note): Removed.
16546 (expand_gimple_cond): Don't call it, add the probability
16547 as last argument to jumpif_1/jumpifnot_1.
16548 * Makefile.in (dojump.o): Depend on output.h.
16549 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
16550 callers.
16551 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
16552 * stmt.c (do_jump_if_equal): Likewise.
16553 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
16554 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16555 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
16556 Likewise.
16557 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
16558 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
16559 jumpifnot_1 callers.
16560 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
16561 callers.
16562 (store_expr): Adjust jumpifnot caller.
16563 (store_constructor): Adjust jumpif caller.
16564
16565 PR middle-end/42233
16566 * gimplify.c (gimple_boolify): For __builtin_expect call
16567 gimple_boolify also on its first argument.
16568
16569 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
16570
16571 * configure.ac (gnu-unique-object): Wrap regexps using [] in
16572 changequote block.
16573 (__stack_chk_fail): Ditto. Remove quadrigraphs.
16574 * configure: Regenerated.
16575
16576 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16577
16578 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
16579 lang_hooks.types_compatible_p instead of comptypes.
16580
16581 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
16582
16583 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
16584 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
16585 if __prefer_thumb__ is defined.
16586
16587 2010-02-18 Martin Jambor <mjambor@suse.cz>
16588
16589 PR tree-optimization/43066
16590 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
16591 array with zero-sized element type.
16592
16593 2010-02-18 Jakub Jelinek <jakub@redhat.com>
16594
16595 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
16596 rtx, allocate struct var_loc_node here and return it to the
16597 caller, and only if it is actually needed.
16598 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
16599 move it earlier and return immediately if it returns NULL.
16600
16601 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
16602
16603 * config/sparc/gas.h: New file. Restore
16604 TARGET_ASM_NAMED_SECTION to its ELF default.
16605 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
16606 check !HAVE_GNU_AS.
16607 * config/sparc/sparc.c (sparc_elf_asm_named_section):
16608 Likewise. Add ATTRIBUTE_UNUSED to prototype.
16609 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
16610 after sparc/sysv4.h.
16611
16612 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
16613
16614 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
16615
16616 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
16617
16618 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
16619 patterns from predicated pattern.
16620
16621 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
16622
16623 PR target/43103
16624 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
16625 for insn mnemonic suffix.
16626
16627 2010-02-17 Richard Guenther <rguenther@suse.de>
16628
16629 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
16630 to loop PHI nodes.
16631
16632 2010-02-17 Jakub Jelinek <jakub@redhat.com>
16633
16634 PR debug/42918
16635 * caller-save.c (save_call_clobbered_regs): If BB ends with
16636 a DEBUG_INSN, move any notes in between last real insn and the last
16637 DEBUG_INSN after the last DEBUG_INSN.
16638
16639 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
16640
16641 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
16642 Fix return type. Fix argument type. Explain meaning of return value.
16643
16644 2010-02-16 Richard Guenther <rguenther@suse.de>
16645
16646 PR tree-optimization/41043
16647 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
16648 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16649 statements ...
16650 (vrp_visit_phi_node): ... but only for loop PHI nodes.
16651
16652 2010-02-16 Ira Rosen <irar@il.ibm.com>
16653
16654 PR tree-optimization/43074
16655 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16656 * tree-vect-loop.c (vect_analyze_loop_operations): Add
16657 vectorizable cycles in hybrid SLP check.
16658 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16659
16660 2010-02-16 Richard Guenther <rguenther@suse.de>
16661
16662 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16663 (true_dependence): If memrefs_conflict_p computes must-alias
16664 trust it. Move TBAA check after offset-based disambiguation.
16665 (canon_true_dependence): Likewise.
16666
16667 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
16668
16669 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16670 * doc/invoke.texi: Document it.
16671 * var-tracking.c: Include toplev.h and params.h.
16672 (vt_find_locations): Return bool indicating success. Compute
16673 hash sizes unconditionally. Check new parameter, report.
16674 (variable_tracking_main_1): Check vt_find_locations results and
16675 retry. Renamed from...
16676 (variable_tracking_main): ... this. New wrapper to preserve
16677 flag_var_tracking_assignments.
16678 * Makefile.in (var-tracking.o): Adjust dependencies.
16679
16680 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
16681 Jakub Jelinek <jakub@redhat.com>
16682
16683 PR target/42854
16684 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16685 if weak_import attribute is present.
16686 * config/darwin.c (machopic_select_section): Likewise.
16687
16688 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
16689
16690 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16691 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16692 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16693 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16694
16695 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16696 types.
16697
16698 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16699 Fix argument types.
16700
16701 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16702 Rewrite text to refer to the names.
16703
16704 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
16705
16706 * config/i386/i386-builtin-types.def
16707 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16708 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
16709 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
16710 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
16711 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
16712 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
16713 IX86_BUILTIN_VPERMIL2PS256.
16714 (MULTI_ARG_4_DF2_DI_I): Defined.
16715 (MULTI_ARG_4_DF2_DI_I1): Defined.
16716 (MULTI_ARG_4_SF2_SI_I): Defined.
16717 (MULTI_ARG_4_SF2_SI_I1): Defined.
16718 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
16719 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
16720 __builtin_ia32_vpermil2ps256.
16721 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16722 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16723 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
16724 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16725 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16726 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
16727 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
16728 CODE_FOR_xop_vpermil2v8sf3.
16729 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
16730 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
16731 * config/i386/xopintrin.h (_mm_permute2_pd): New.
16732 (_mm256_permute2_pd): New.
16733 (_mm_permute2_ps): New.
16734 (_mm256_permute2_ps): New.
16735
16736 2010-02-15 Nick Clifton <nickc@redhat.com>
16737
16738 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
16739 boolean parameters. Use emit_jump_insn when emitting a pop
16740 instruction containing a return insn.
16741 (push): Use 'true' rather than '1' as second parameter to F.
16742 (h8300_expand_prologue): Likewise.
16743 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
16744 (h8300_expand_epilogue): Likewise.
16745
16746 2010-02-15 Richard Guenther <rguenther@suse.de>
16747
16748 PR middle-end/43068
16749 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
16750 if that is zero.
16751
16752 2010-02-15 Nick Clifton <nickc@redhat.com>
16753
16754 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
16755 delta.
16756
16757 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
16758
16759 * intl.c (fake_ngettext): New function.
16760 * intl.h (fake_ngettext): Declare.
16761 (ngettext): Define macro.
16762 * collect2.c (notice_translated): New function.
16763 (main): Use notice_translated and ngettext.
16764 * collect2.h (notice_translated): Declare.
16765
16766 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
16767
16768 * reorg.c (delete_computation): Comment fixes.
16769 * caller-save.c (setup_save_areas): Idem.
16770 * sel-sched-dump.c (dump_lv_set): Idem.
16771 * rtl.def: Idem.
16772
16773 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16774
16775 * config/s390/s390.c (s390_sched_init): New function.
16776 (TARGET_SCHED_INIT): Target hook defined.
16777
16778 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
16779 Jack Howarth <howarth@bromo.med.uc.edu>
16780 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16781
16782 PR target/42982
16783 Partial revert of unintended change in fix for PR41605.
16784 * config/darwin.h: Fix typo.
16785 * config/darwin9.h: Same.
16786
16787 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16788
16789 * c-pch.c (pch_init): Clear v.
16790
16791 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16792
16793 PR middle-end/42930
16794 * graphite-scop-detection.c (graphite_can_represent_scev): Call
16795 graphite_can_represent_init for MULT_EXPR.
16796
16797 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16798
16799 PR middle-end/42914
16800 PR middle-end/42530
16801 * graphite-sese-to-poly.c (remove_phi): New.
16802 (translate_scalar_reduction_to_array): Call remove_phi.
16803
16804 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16805
16806 PR middle-end/42771
16807 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
16808 * graphite-clast-to-gimple.h (gloog): Update declaration.
16809 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
16810 * graphite-poly.h (struct poly_bb): Add missing comments.
16811 (struct scop): Add poly_scop_p field.
16812 (POLY_SCOP_P): New.
16813 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
16814 * graphite.c (graphite_transform_loops): Build the polyhedral
16815 representation for each scop before code generation.
16816 * sese.c (rename_variables_in_operand): Removed.
16817 (rename_variables_in_expr): Return the renamed expression.
16818 (rename_sese_parameters): New.
16819 * sese.h (rename_sese_parameters): Declared.
16820
16821 2010-02-11 Richard Guenther <rguenther@suse.de>
16822
16823 PR tree-optimization/42998
16824 * tree-ssa-pre.c (create_expression_by_pieces): Treat
16825 POINTER_PLUS_EXPR properly.
16826
16827 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16828 Changpeng Fang <changpeng.fang@amd.com>
16829
16830 PR middle-end/40886
16831 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
16832 the cost of an IV candidate when the IV is used in a test against zero.
16833
16834 * gcc.dg/tree-ssa/ivopts-3.c: New.
16835
16836 2010-02-11 Richard Guenther <rguenther@suse.de>
16837
16838 PR lto/41664
16839 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16840 pointer-vs-decl case by swapping refs. Handle some cases
16841 of pointer-vs-decl disambiguations more conservatively.
16842 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16843 to false after expanding.
16844
16845 2010-02-11 Richard Guenther <rguenther@suse.de>
16846
16847 PR driver/43021
16848 * gcc.c (process_command): Handle LTO file@offset case more
16849 appropriately.
16850
16851 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16852
16853 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16854 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
16855 of DEBUG_INSNs.
16856 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16857
16858 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16859 if MEM's mode size isn't DWARF2_ADDR_SIZE.
16860 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16861 Optimize eq/ne comparisons when both arguments are known to be
16862 zero-extended.
16863 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16864 Don't mask operands unnecessarily if they are known to be already
16865 zero-extended.
16866
16867 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
16868
16869 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16870 instead of loop.
16871
16872 2010-02-10 Richard Guenther <rguenther@suse.de>
16873
16874 PR tree-optimization/43017
16875 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16876 for wrapping signed arithmetic.
16877
16878 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16879
16880 PR debug/43010
16881 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16882 if no debug info should be emitted for it.
16883
16884 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
16885
16886 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16887 note when flag_exceptions is set.
16888
16889 2010-02-10 Duncan Sands <baldrick@free.fr>
16890
16891 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16892
16893 2010-02-10 Richard Guenther <rguenther@suse.de>
16894
16895 PR c/43007
16896 * tree.c (get_unwidened): Handle constants.
16897 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16898
16899 2010-02-10 Martin Jambor <mjambor@suse.cz>
16900
16901 PR lto/42985
16902 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16903 check for variable argument counts independently.
16904
16905 2010-02-10 Christian Bruel <christian.bruel@st.com>
16906
16907 PR target/42841
16908 * config/sh/sh.c (find_barrier): Increase length for non delayed
16909 conditional branches.
16910
16911 2010-02-10 Christian Bruel <christian.bruel@st.com>
16912
16913 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16914
16915 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16916
16917 * builtins.c (set_builtin_user_assembler_name): Also handle
16918 ffs if int is smaller than word.
16919
16920 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
16921
16922 PR middle-end/42973
16923 * ira-conflicts.c (get_dup): Remove.
16924 (process_reg_shuffles): Add new parameter. Use it as an
16925 additional guard for copy generation.
16926 (add_insn_allocno_copies): Rewrite.
16927
16928 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
16929
16930 * common.opt (fsched2-use-traces): Preserved for backward
16931 compatibility.
16932 * doc/invoke.texi: Remove the documentation about option
16933 -fsched2-use-traces.
16934 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16935 flag_sched2_use_traces.
16936 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16937 the backward compatibility flag section.
16938
16939 2010-02-09 Richard Guenther <rguenther@suse.de>
16940
16941 PR tree-optimization/43008
16942 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16943 make HEAP variables initialized from global memory if they
16944 are not known builtin functions.
16945 (find_func_aliases): Adjust.
16946
16947 2010-02-09 Richard Guenther <rguenther@suse.de>
16948
16949 PR tree-optimization/43000
16950 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16951 arithmetic manually.
16952
16953 2010-02-08 Jakub Jelinek <jakub@redhat.com>
16954
16955 PR tree-optimization/42931
16956 * tree-loop-linear.c (try_interchange_loops): Don't call
16957 double_int_mul if estimated_loop_iterations failed.
16958
16959 2010-02-08 Martin Jambor <mjambor@suse.cz>
16960
16961 PR middle-end/42898
16962 * tree-sra.c (build_accesses_from_assign): Do not mark in
16963 should_scalarize_away_bitmap if stmt has volatile ops.
16964 (sra_modify_assign): Do not process assigns piecemeal if if stmt
16965 has volatile ops.
16966
16967 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
16968
16969 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16970
16971 2010-02-07 Adam Nemet <adambnmet@gmail.com>
16972
16973 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16974 before the pattern.
16975
16976 2010-02-07 Andrew Pinski <pinskia@gmail.com>
16977
16978 PR middle-end/42946
16979 * df-core.c (df_finish_pass): Change type of saved_flags to int.
16980
16981 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16982
16983 PR middle-end/42988
16984 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16985 to unknown_dependence.
16986 (graphite_legal_transform_dr): Handle the unknown_dependence.
16987 (graphite_carried_dependence_level_k): Same.
16988
16989 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16990
16991 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16992
16993 2010-02-07 Richard Guenther <rguenther@suse.de>
16994
16995 PR middle-end/42991
16996 * expr.c (get_inner_reference): Always initialize *pbitsize.
16997
16998 2010-02-07 Richard Guenther <rguenther@suse.de>
16999
17000 PR middle-end/42956
17001 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
17002 new ARRAY_REFs on variable size element or minimal index arrays.
17003 Complete.
17004 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
17005 gimple_fold_indirect_ref.
17006
17007 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
17008
17009 PR target/42957
17010 * arm.c (arm_override_options): Just return if the user has specified
17011 an invalid fpu name.
17012
17013 2010-02-03 Jason Merrill <jason@redhat.com>
17014
17015 PR c++/42870
17016 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
17017 i386_pe_maybe_record_exported_symbol.
17018
17019 2010-02-05 Steve Ellcey <sje@cup.hp.com>
17020
17021 PR target/42924
17022 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17023 (pa_delegitimize_address): New function.
17024
17025 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
17026
17027 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
17028 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
17029
17030 2010-02-05 Richard Guenther <rguenther@suse.de>
17031
17032 PR lto/42762
17033 * lto-streamer-in.c (get_resolution): Deal with references
17034 to undefined functions.
17035
17036 2010-02-05 Richard Guenther <rguenther@suse.de>
17037
17038 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
17039 (fold_const_aggregate_ref): Likewise.
17040 (ccp_fold_stmt): Substitute loads.
17041 (maybe_fold_reference): Verify types before substituting.
17042 Unshare properly.
17043 (fold_gimple_assign): Unshare properly.
17044 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
17045
17046 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
17047
17048 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
17049 for rs6000_gen_cell_microcode.
17050
17051 2010-02-04 Richard Guenther <rguenther@suse.de>
17052
17053 PR rtl-optimization/42952
17054 * dse.c (const_or_frame_p): Remove MEM handling.
17055
17056 2010-02-04 Nick Clifton <nickc@redhat.com>
17057
17058 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17059 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17060 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
17061 (mn10300_asm_output_mi_thunk): New function.
17062 (mn10300_can_output_mu_thunk): New function.
17063 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
17064 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
17065 (FUNCTION_ARG): Delete incorrect comment.
17066
17067 2010-02-03 Jason Merrill <jason@redhat.com>
17068
17069 PR c++/40138
17070 * fold-const.c (operand_equal_p): Handle erroneous types.
17071
17072 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17073
17074 * config/h8300/h8300.md (can_delay): Fix attibute condition.
17075
17076 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
17077
17078 PR rtl-optimization/42941
17079 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
17080 of xmalloc.
17081
17082 2010-02-03 Jason Merrill <jason@redhat.com>
17083
17084 PR c++/35652
17085 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
17086
17087 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
17088
17089 PR debug/42896
17090 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
17091 (cselib_reset_table): Renamed from...
17092 (cselib_reset_table_with_next_value): ... this.
17093 (cselib_get_next_uid): Renamed from...
17094 (cselib_get_next_unknown_value): ... this.
17095 * cselib.c (next_uid): Renamed from...
17096 (next_unknown_value): ... this.
17097 (cselib_clear_table): Adjust.
17098 (cselib_reset_table): Adjust. Renamed from...
17099 (cselib_reset_table_with_next_value): ... this.
17100 (cselib_get_next_uid): Adjust. Renamed from...
17101 (cselib_get_next_unknown_value): ... this.
17102 (get_value_hash): Use hash.
17103 (cselib_hash_rtx): Likewise.
17104 (new_cselib_val): Adjust. Set and dump uid.
17105 (cselib_lookup_mem): Pass next_uid as hash.
17106 (cselib_subst_to_values): Likewise.
17107 (cselib_log_lookup): Dump uid.
17108 (cselib_lookup): Pass next_uid as hash. Adjust.
17109 (cselib_process_insn): Adjust.
17110 (cselib_init): Initialize next_uid.
17111 (cselib_finish): Adjust.
17112 (dump_cselib_table): Likewise.
17113 * dse.c (canon_address): Dump value uid.
17114 * print-rtl.c (print_rtx): Print value uid.
17115 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
17116 (dvuid): New type.
17117 (dv_uid): New function, sort of renamed from...
17118 (dv_htab_hash): ... this, reimplemented in terms of it and...
17119 (dv_uid2hash): ... this. New.
17120 (variable_htab_eq): Drop excess assertions.
17121 (tie_break_pointers): Removed.
17122 (canon_value_cmp): Compare uids.
17123 (variable_post_merge_New_vals): Print uids.
17124 (vt_add_function_parameters): Adjust.
17125 (vt_initialize): Reset table. Adjust.
17126
17127 2010-02-03 Richard Guenther <rguenther@suse.de>
17128
17129 PR tree-optimization/42944
17130 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
17131 (call_may_clobber_ref_p_1): Likewise. Properly handle
17132 malloc and calloc clobbering errno.
17133
17134 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
17135
17136 * doc/invoke.texi: Fix name of sched1 dump.
17137
17138 * opts.c (decode_options): Set flag_tree_switch_conversion
17139 only conditionally on optimize >= 2.
17140
17141 * gcse.c: Assorted comment fixes in pass description.
17142
17143 2010-02-03 Anthony Green <green@moxielogic.com>
17144
17145 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
17146 nop padding in order to maintain alignment of storage location of
17147 target function address.
17148 (moxie_trampoline_init): Store target function address at newly
17149 aligned location.
17150 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
17151 to 32.
17152 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
17153
17154 2010-02-03 Richard Guenther <rguenther@suse.de>
17155
17156 PR middle-end/42927
17157 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
17158
17159 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17160
17161 * config.gcc: Reenable check for obsolete targets.
17162 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
17163 mips-sgi-irix6.[0-4]*.
17164
17165 2010-02-02 Nick Clifton <nickc@redhat.com>
17166
17167 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
17168 constant size of 4 as being the same as 0.
17169 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
17170 can take values in the range 0..4.
17171
17172 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
17173
17174 PR java/41991
17175 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
17176 as _darwin10_Unwind_FindEnclosingFunction().
17177 * libgcc-libsystem.ver: New.
17178
17179 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
17180
17181 PR target/41399
17182 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
17183 implicitly set registers.
17184
17185 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
17186
17187 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
17188 (arm_override_options): Allow automatic selection of the thread
17189 pointer register if thumb2.
17190 (legitimize_pic_address): Improve code sequences for Thumb2.
17191 (arm_call_tls_get_addr): Likewise.
17192 (legitimize_tls_address): Likewise.
17193 * arm.md (pic_load_addr_arm): Delete. Replace with ...
17194 (pic_load_addr_32bit): ... this. New named pattern.
17195 * thumb2.md (pic_load_addr_thumb2): Delete.
17196 (pic_load_dot_plus_four): Delete.
17197 (tls_load_dot_plus_four): New named pattern.
17198
17199 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17200
17201 PR libgomp/29986
17202 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
17203 Document fix for TLS bug.
17204
17205 2010-01-31 Richard Guenther <rguenther@suse.de>
17206
17207 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
17208 conservatively correct.
17209
17210 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17211
17212 PR target/42850
17213 Revert:
17214 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17215
17216 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17217
17218 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17219
17220 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
17221
17222 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
17223
17224 * config.gcc: Adjust order of makefile fragments for mingw targets.
17225
17226 2010-01-31 Richard Guenther <rguenther@suse.de>
17227
17228 PR middle-end/42898
17229 * gimplify.c (gimplify_init_constructor): For volatile LHS
17230 initialize a temporary.
17231
17232 2010-01-31 Matthias Klose <doko@ubuntu.com>
17233
17234 * configure.ac: Fix __stack_chk_fail check for cross builds configured
17235 --with-headers
17236 * configure: Regenerate.
17237
17238 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
17239
17240 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17241 the same alias set and their sizes different constantness.
17242 (aliasing_component_refs_p): Revert 2009-10-24 change.
17243
17244 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17245
17246 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17247 unused.
17248
17249 2010-01-29 Richard Guenther <rguenther@suse.de>
17250
17251 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17252 Assert we successfully updated the call.
17253
17254 2010-01-29 Jakub Jelinek <jakub@redhat.com>
17255
17256 PR rtl-optimization/42889
17257 * df.h (df_set_bb_dirty_nonlr): New prototype.
17258 * df-core.c (df_set_bb_dirty_nonlr): New function.
17259 * df-scan.c (df_insn_rescan): Call it instead of
17260 df_set_bb_dirty for DEBUG_INSNs.
17261
17262 2010-01-29 Richard Guenther <rguenther@suse.de>
17263
17264 PR middle-end/37448
17265 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17266 quadratic behavior in most cases.
17267
17268 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
17269
17270 PR target/42891
17271 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17272 in the call to gen_x86_movsicc_0_m1.
17273
17274 2010-01-28 Richard Guenther <rguenther@suse.de>
17275
17276 PR tree-optimization/42871
17277 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17278
17279 2010-01-28 Richard Guenther <rguenther@suse.de>
17280
17281 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17282 into call arguments.
17283
17284 2010-01-28 Richard Guenther <rguenther@suse.de>
17285
17286 PR middle-end/42883
17287 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17288 the forwarder if the destination is an EH landing pad.
17289
17290 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
17291
17292 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
17293 block list passed to gimple_duplicate_sese_tail.
17294 (parallelize_loops): Avoid parallelization when the function
17295 has_nonlocal_label.
17296 Avoid parallelization when the preheader is IRREDUCIBLE.
17297 Try to optimize when estimated_loop_iterations_int is unresolved.
17298 Add the loop's location to the dump file.
17299 * tree-cfg.c (add_phi_args_after_redirect): Remove.
17300 (gimple_duplicate_sese_tail): Remove the check for the latch.
17301 Redirect nexits to the exit block.
17302 Remove handling of the incoming edges to the latch.
17303 Redirect the backedge from the copied latch to the exit bb.
17304
17305 2010-01-28 Michael Matz <matz@suse.de>
17306
17307 PR target/42881
17308 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
17309 Wrap force_reg into a sequence, emit it before user.
17310
17311 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
17312
17313 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
17314 (arm_rev): New.
17315 (arm_legacy_rev): Likewise.
17316 (thumb_legacy_rev): Likewise.
17317
17318 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17319
17320 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
17321 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
17322 on MEM's address failed, try avoid_constant_pool_reference and
17323 recurse if it returned something different.
17324 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
17325 address, try avoid_constant_pool_reference and recurse if it
17326 returned something different.
17327 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
17328 address and avoid_constant_pool_reference returned something
17329 different, don't set have_address.
17330
17331 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
17332
17333 PR debug/42861
17334 * var-tracking.c (val_store): Add modified argument, obey it.
17335 Adjust callers.
17336 (count_uses): Move down logging of main.
17337 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
17338 don't need resolution.
17339 (emit_notes_in_bb): Likewise.
17340
17341 2010-01-27 Richard Guenther <rguenther@suse.de>
17342
17343 PR middle-end/42878
17344 * tree-inline.c (remap_decl): Delay remapping of SSA name
17345 default definitions until we need them.
17346
17347 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17348
17349 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17350 (rs6000_delegitimize_address): New function.
17351
17352 * config/s390/s390.c (s390_delegitimize_address): Call
17353 delegitimize_mem_from_attrs.
17354
17355 PR middle-end/42874
17356 * tree-inline.c (cannot_copy_type_1): Removed.
17357 (copy_forbidden): Don't forbid copying of functions containing
17358 records/unions with variable length fields.
17359
17360 2010-01-27 Christian Bruel <christian.bruel@st.com>
17361
17362 Revert:
17363 PR target/42841
17364 * config/sh/sh.c (find_barrier): Increase length for non delayed
17365 conditional branches.
17366
17367 2010-01-27 Matthias Klose <doko@ubuntu.com>
17368
17369 * configure.ac (gnu-unique-object): Fix ldd version check.
17370 * configure: Regenerate.
17371
17372 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17373
17374 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
17375 HAVE_GNU_AS value.
17376 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
17377 Test for HAVE_GNU_AS value.
17378
17379 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17380
17381 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
17382 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
17383 INT64_TYPE): Define.
17384 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
17385 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17386 INT_LEAST64_TYPE): Define.
17387 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
17388 UINT_LEAST64_TYPE): Define.
17389 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
17390 INT_FAST64_TYPE): Define.
17391 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17392 UINT_FAST64_TYPE): Define.
17393 (INTMAX_TYPE, UINTMAX_TYPE): Define.
17394 (INTPTR_TYPE, UINTPTR_TYPE): Define.
17395 (SIG_ATOMIC_TYPE): Define.
17396
17397 2010-01-26 Richard Guenther <rguenther@suse.de>
17398
17399 * df-scan.c (df_scan_set_bb_info): Remove assert.
17400 (df_insn_rescan_debug_internal): Merge asserts.
17401 (df_install_ref): Likewise.
17402 (df_mark_reg): Use bitmap_set_range.
17403 (df_hard_reg_used_p): Remove assert.
17404 (df_hard_reg_used_count): Likewise.
17405
17406 2010-01-26 Richard Guenther <rguenther@suse.de>
17407
17408 PR rtl-optimization/42685
17409 * web.c (web_main): Ignore DEBUG_INSNs.
17410
17411 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
17412
17413 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
17414
17415 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
17416 Fix types of fndecl and arglist parameters.
17417
17418 2010-01-26 Richard Guenther <rguenther@suse.de>
17419
17420 PR middle-end/42806
17421 * tree-eh.c (unsplit_eh): Skip debug insns.
17422
17423 2010-01-26 Richard Guenther <rguenther@suse.de>
17424
17425 PR tree-optimization/42250
17426 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
17427
17428 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17429
17430 PR fortran/42866
17431 * omp-low.c (expand_omp_sections): Only use single_pred if
17432 l2_bb is single_pred_p.
17433
17434 2010-01-25 Christian Bruel <christian.bruel@st.com>
17435
17436 PR target/42841
17437 * config/sh/sh.c (find_barrier): Increase length for non delayed
17438 conditional branches.
17439 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
17440
17441 2010-01-24 David S. Miller <davem@davemloft.net>
17442
17443 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
17444 define if not using GAS.
17445 * config/sparc/sparc.c (sparc_elf_asm_named_section):
17446 Likewise. Delete SECTION_MERGE code, which is only applicable
17447 when using GAS.
17448
17449 2010-01-24 Mark Mitchell <mark@codesourcery.com>
17450
17451 PR c++/42748
17452 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
17453 mangling of va_list in system headers.
17454
17455 2010-01-23 Toon Moene <toon@moene.org>
17456
17457 * tree-predcom.c (combine_chains): Return NULL, not false.
17458
17459 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
17460
17461 * tree-loop-distribution.c (distribute_loop): Fix declaration and
17462 initialization of variable res to agree with return type.
17463
17464 2010-01-22 Steve Ellcey <sje@cup.hp.com>
17465
17466 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
17467 * tree-sra.c: Add include of expr.h.
17468
17469 2010-01-22 Jakub Jelinek <jakub@redhat.com>
17470
17471 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
17472 insert the debug stmt on the single non-EH edge from the stmt.
17473
17474 2010-01-22 Richard Henderson <rth@redhat.com>
17475
17476 PR tree-opt/42833
17477 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
17478 the RHS until after generate_subtree_copies has insertted its
17479 code before the current statement.
17480
17481 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
17482
17483 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
17484
17485 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
17486
17487 2010-01-21 Martin Jambor <mjambor@suse.cz>
17488
17489 PR tree-optimization/42585
17490 * tree-sra.c (struct access): New field grp_total_scalarization.
17491 (dump_access): Dump the new field.
17492 (should_scalarize_away_bitmap): New variable.
17493 (cannot_scalarize_away_bitmap): Likewise.
17494 (sra_initialize): Allocate new bitmaps.
17495 (sra_deinitialize): Free new bitmaps.
17496 (create_access_1): New function.
17497 (create_access): Parts moved to create_access_1.
17498 (type_consists_of_records_p): New function.
17499 (completely_scalarize_record): Likewise.
17500 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
17501 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
17502 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
17503 access.
17504 (analyze_all_variable_accesses): Completely scalarize small eligible
17505 records.
17506
17507 2010-01-21 Martin Jambor <mjambor@suse.cz>
17508
17509 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
17510
17511 2010-01-21 Andrew Haley <aph@redhat.com>
17512
17513 * gcc.c (process_command): Move lang_specific_driver before
17514 setting cc_libexec_prefix.
17515
17516 2010-01-21 Richard Guenther <rguenther@suse.de>
17517
17518 PR middle-end/19988
17519 * fold-const.c (negate_expr_p): Pretend only negative
17520 real constants are easily negatable.
17521
17522 2010-01-20 Janis Johnson <janis187@us.ibm.com>
17523 Jason Merrill <jason@redhat.com>
17524
17525 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
17526 (TYPE_TRANSPARENT_AGGR): this, for union and record.
17527 * calls.c (initialize argument_information): Handle it.
17528 * c-common.c (handle_transparent_union_attribute): Use new name.
17529 * c-decl.c (finish_struct): Ditto.
17530 * c-typeck.c (type_lists_compatible_p): Ditto.
17531 (convert_for_assignment): Use new name and also handle record.
17532 * function.c (aggregate_value_p): Handle it.
17533 (pass_by_reference): Ditto.
17534 (assign_parm_data_types): Ditto.
17535 * print-tree.c (print_node): Ditto.
17536 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
17537 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
17538 * tree.c (first_field): New fn.
17539
17540 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
17541
17542 PR target/42818
17543 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
17544 even when linking statically, for now.
17545
17546 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17547
17548 PR debug/42715
17549 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
17550 without a cselib val.
17551 (count_uses): Accept MO_VAL_SET with no val on stores.
17552 (add_stores): Likewise.
17553
17554 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17555
17556 * var-tracking.c (check_value_val): Add a compile time assertion.
17557 (dv_is_decl_p): Simplify.
17558 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
17559 gcc_assert if ENABLE_CHECKING.
17560
17561 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17562
17563 PR debug/42782
17564 * var-tracking.c: Include tree-flow.h.
17565 (mem_dies_at_call): New.
17566 (dataflow_set_preserve_mem_locs): Use it.
17567 (dataflow_set_remove_mem_locs): Likewise.
17568 (dump_var): Renamed from dump_variable. Adjust all callers.
17569 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
17570 * Makefile.in (var-tracking.o): Adjust deps.
17571
17572 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
17573
17574 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
17575
17576 2010-01-20 Richard Guenther <rguenther@suse.de>
17577
17578 PR tree-optimization/42717
17579 * tree-ssa-dce.c (get_live_post_dom): Remove.
17580 (forward_edge_to_pdom): Take an arbitrary edge to copy
17581 degenerate PHI args from.
17582 (remove_dead_stmt): Use the first post-dominator even if it
17583 does not contain live statements as redirection destination.
17584
17585 2010-01-20 Richard Guenther <rguenther@suse.de>
17586
17587 * tree-inline.c (estimate_num_insns): Handle EH builtins.
17588
17589 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17590
17591 * sel-sched.c (create_speculation_check): Remove set but not used
17592 variable twin.
17593 (try_transformation_cache): Remove set but not used variable ds.
17594 (calculate_privileged_insns): Remove set but not used variables
17595 cur_insn and min_spec_insn.
17596 (find_best_expr): Remove set but not used variable avail_n.
17597 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
17598 variable e.
17599 * cgraphunit.c (assemble_thunk): Remove set but not used variable
17600 false_label.
17601 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
17602 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
17603 new_scop_exit_edge.
17604
17605 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
17606
17607 PR bootstrap/42786
17608 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
17609 cpu types. Add support for *-sse3 cpu types.
17610 (x86_64-*-*): Ditto.
17611
17612 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17613
17614 PR middle-end/42803
17615 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
17616 argument, call initializer_constant_valid_p_1 instead of
17617 initializer_constant_valid_p, pass CACHE to it, return NULL
17618 immediately if first call returns NULL.
17619 (initializer_constant_valid_p_1): New function.
17620 (initializer_constant_valid_p): Use it.
17621
17622 2010-01-20 Thomas Quinot <quinot@adacore.com>
17623
17624 * tree.def (PLACEHOLDER_EXPR): Fix comment.
17625
17626 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17627
17628 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
17629 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
17630 (loc_list_from_tree): Don't handle unsigned division. Handle
17631 signed modulo using DW_OP_{over,over,div,mul,minus}.
17632 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
17633 modulo instead of signed.
17634
17635 2010-01-20 DJ Delorie <dj@redhat.com>
17636
17637 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
17638 (Fpa): Pass it
17639 (h8300_emit_stack_adjustment): Propogate it.
17640 (push): Pass it.
17641 (h8300_expand_prologue): Likewise.
17642 (h8300_expand_epilogue): Likewise.
17643
17644 2010-01-19 Michael Matz <matz@suse.de>
17645
17646 PR tree-optimization/41783
17647 * tree-data-ref.c (toplevel): Include flags.h.
17648 (dump_data_dependence_relation): Also dump the inputs if the
17649 result will be unknown.
17650 (split_constant_offset_1): Look through some conversions.
17651 * tree-predcom.c (determine_roots_comp): Restart a new chain if
17652 the offset from last element is too large.
17653 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17654 (reassociate_to_the_same_stmt): Handle vector registers.
17655 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17656 (e.g. conversions).
17657 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17658 wide_prolog_niters argument, emit widening instructions.
17659 (vect_do_peeling_for_alignment): Adjust caller, use widened
17660 variant of the iteration cound.
17661 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17662
17663 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17664
17665 PR target/38697
17666 * config/arm/neon-testgen.m (emit_automatics): New parameter
17667 features. Adjust for Fixed_return_reg feature.
17668 (test_intrinsic): Call emit_automatics with new feature.
17669 * config/arm/neon.ml: Update copyright years.
17670 (features): New Fixed_return_reg feature.
17671 (ops): Update feature for Vget_low.
17672
17673 2010-01-19 Jakub Jelinek <jakub@redhat.com>
17674
17675 PR tree-optimization/42719
17676 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17677 stmt uses.
17678
17679 PR debug/42728
17680 * fwprop.c (all_uses_available_at): Return false if def_set dest
17681 is a REG that is used in def_insn.
17682
17683 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
17684
17685 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17686
17687 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17688 Add argument names.
17689
17690 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17691
17692 * target.h (struct gcc_target) <secondary_reload>: Change type
17693 of last argument to secondary_reload_info *.
17694
17695 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
17696
17697 PR target/42774
17698 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17699 memory references with unaligned offsets. Remove CQImode handling.
17700 (unaligned_memory_operand): Return 1 for memory references with
17701 unaligned offsets. Remove CQImode handling.
17702
17703 2010-01-18 Richard Guenther <rguenther@suse.de>
17704
17705 PR middle-end/39954
17706 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17707 builtin calls.
17708
17709 2010-01-18 Richard Guenther <rguenther@suse.de>
17710
17711 PR tree-optimization/42781
17712 * tree-ssa-structalias.c (find_what_var_points_to): Skip
17713 restrict processing only if the original variable was artificial.
17714
17715 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
17716
17717 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
17718 find number of popped argument bytes.
17719
17720 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
17721 Fix the text that describes the return value for invalid insns.
17722
17723 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
17724
17725 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
17726 Clarify what 'cost of the -dependence' is. Fix quoting.
17727
17728 * toplev.c (default_get_pch_validity): Rename argument to "sz".
17729 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
17730
17731 2010-01-17 Jakub Jelinek <jakub@redhat.com>
17732
17733 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17734 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
17735
17736 2010-01-17 Richard Guenther <rguenther@suse.de>
17737
17738 PR middle-end/42248
17739 * function.c (split_complex_args): Take a VEC to modify.
17740 (assign_parms_augmented_arg_list): Build a VEC instead of
17741 a chain of PARM_DECLs.
17742 (assign_parms_unsplit_complex): Take a VEC of arguments.
17743 Do not fixup unmodified parms.
17744 (assign_parms): Deal with the VEC.
17745 (gimplify_parameters): Likewise.
17746
17747 2010-01-17 Richard Guenther <rguenther@suse.de>
17748
17749 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
17750 node existence check.
17751 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
17752 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
17753 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17754 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
17755 (gimple_execute_on_growing_pred): Likewise.
17756
17757 2010-01-17 Richard Guenther <rguenther@suse.de>
17758
17759 PR tree-optimization/42773
17760 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
17761 (compute_antic_aux): Likewise.
17762 (compute_partial_antic_aux): Likewise.
17763
17764 2010-01-17 Jie Zhang <jie.zhang@analog.com>
17765
17766 PR debug/42767
17767 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
17768 and US_TRUNCATE.
17769
17770 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
17771
17772 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
17773 appearance.
17774
17775 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
17776 Fix markup for strict argument.
17777
17778 (TARGET_SCHED_REORDER2): Fix argument types.
17779
17780 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
17781 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
17782
17783 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
17784 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
17785
17786 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
17787 Add argument name.
17788
17789 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
17790 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
17791 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
17792 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
17793 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
17794
17795 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
17796
17797 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
17798
17799 (TARGET_ASM_RELOC_RW_MASK): Add return type.
17800 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
17801
17802 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
17803
17804 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
17805 Use prototype.
17806
17807 (TARGET_ASM_NAMED_SECTION): Fix argument list.
17808
17809 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
17810 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
17811
17812 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
17813
17814 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
17815
17816 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
17817 referring to it. Fix language.
17818
17819 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
17820
17821 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
17822
17823 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
17824
17825 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
17826
17827 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
17828 '@var{stream}. Remove stray 'and'.
17829
17830 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
17831
17832 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
17833
17834 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
17835
17836 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
17837 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
17838
17839 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17840 Fix description of return value.
17841 Rename argument "sz" to "len."
17842
17843 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17844 Clarify meaning of 'true' return value.
17845
17846 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17847
17848 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17849 rep_mode versus mode_rep.
17850
17851 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17852
17853 (TARGET_BUILTIN_DECL): Fix name.
17854
17855 (TARGET_COMMUTATIVE_P): Fix type of first argument.
17856
17857 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17858
17859 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17860
17861 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17862
17863 (TARGET_RELAXED_ORDERING): Use @deftypevr.
17864
17865 (TARGET_GET_DRAP_RTX): Note that this is a hook.
17866 Clarify language.
17867
17868 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17869 Rename argument tm_fn to md_fn.
17870
17871 (TARGET_OPTION_PRINT): Fix argument list.
17872
17873 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
17874
17875 PR target/42664
17876 * config/i386/i386.c (ix86_fixup_binary_operands):
17877 Revert FMA4 fixup of operands.
17878
17879 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17880
17881 PR gcc/42525
17882 * Makefile.in (write_entries_to_file, install-plugin):
17883 Use \012 instead of \n with tr.
17884
17885 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
17886
17887 * configure.ac (HAVE_AS_REF): New C macro.
17888 * configure: Regenerate.
17889 * config.in: Likewise.
17890 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17891 if HAVE_AS_REF.
17892 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17893 if HAVE_AS_REF.
17894
17895 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
17896
17897 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17898
17899 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17900
17901 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17902
17903 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17904
17905 (TARGET_IN_SMALL_DATA_P): Fix argument type.
17906
17907 (TARGET_BINDS_LOCAL_P): Fix argument type.
17908
17909 (TARGET_ASM_FILE_END): Use prototype.
17910
17911 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17912
17913 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17914
17915 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17916
17917 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17918
17919 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17920 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17921
17922 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17923 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17924
17925 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17926 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17927 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17928 (TARGET_ADDR_SPACE_CONVERT): Likewise.
17929
17930 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17931
17932 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17933
17934 (TARGET_INIT_BUILTINS): Use prototype.
17935
17936 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17937 Put 'const char *' in braces. Fix parameter types.
17938 (TARGET_INVALID_CONVERSION): Fix parameter types.
17939 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17940 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17941
17942 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17943 Fix argument type.
17944
17945 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17946
17947 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17948
17949 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
17950
17951 * doc/tm.texi (TARGET_HELP): Fix return type.
17952
17953 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17954 in braces. Fix argument types.
17955
17956 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17957
17958 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17959
17960 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17961
17962 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17963 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17964
17965 (TARGET_MANGLE_TYPE): Fix argument types.
17966
17967 (TARGET_IRA_COVER_CLASSES): Use prototype.
17968
17969 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
17970
17971 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17972
17973 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17974
17975 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17976
17977 (TARGET_CALLEE_COPIES): Fix argument types.
17978
17979 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17980
17981 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17982
17983 (TARGET_FUNCTION_VALUE): Fix argument types.
17984
17985 (TARGET_RETURN_IN_MSB): Fix argument type.
17986
17987 (TARGET_RETURN_IN_MEMORY): Fix argument types.
17988
17989 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17990
17991 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17992
17993 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17994 agree with return type.
17995
17996 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17997
17998 2010-01-15 Jing Yu <jingyu@google.com>
17999
18000 PR rtl-optimization/42691
18001 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
18002 a pseudo to a constant and are merged, and adjust comments.
18003
18004 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
18005
18006 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
18007
18008 2010-01-15 Richard Guenther <rguenther@suse.de>
18009
18010 PR middle-end/42739
18011 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
18012 labels of computed or non-local gotos to the destination.
18013 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
18014 landing pad label is the first label.
18015
18016 2010-01-15 Richard Guenther <rguenther@suse.de>
18017
18018 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
18019
18020 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18021
18022 PR target/42747
18023 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
18024 to allow generation of the xssqrtdp instruction on power7.
18025 (sqrtdf2_fpr): Ditto.
18026
18027 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18028
18029 PR middle-end/42674
18030 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
18031 functions with noreturn attribute.
18032
18033 PR c++/42608
18034 * varasm.c (declare_weak): Add weak attribute to decl if it
18035 doesn't have one already.
18036 (assemble_external): Only add decls to weak_decls if they also
18037 have weak attribute.
18038
18039 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
18040
18041 * var-tracking.c (var_reg_delete): Don't delete the association
18042 between REGs and values or one-part variables if the register
18043 isn't clobbered.
18044
18045 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18046
18047 PR debug/42657
18048 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
18049 because its first operand is a non-localized variable.
18050
18051 2010-01-14 Martin Jambor <mjambor@suse.cz>
18052
18053 PR tree-optimization/42706
18054 * tree-sra.c (encountered_recursive_call): New variable.
18055 (encountered_unchangable_recursive_call): Likewise.
18056 (sra_initialize): Initialize both new variables.
18057 (callsite_has_enough_arguments_p): New function.
18058 (scan_function): Call decl and flags check only for IPA-SRA, check
18059 whether there is a recursive call and whether it has enough arguments.
18060 (all_callers_have_enough_arguments_p): New function.
18061 (convert_callers): Look for recursive calls only when
18062 encountered_recursive_call is set.
18063 (ipa_early_sra): Bail out either if
18064 !all_callers_have_enough_arguments_p or
18065 encountered_unchangable_recursive_call.
18066
18067 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18068
18069 * sel-sched.c: Add 2010 to copyright years.
18070 * sel-sched-ir.c: Likewise.
18071 * sel-sched-ir.h: Likewise.
18072
18073 2010-01-14 Martin Jambor <mjambor@suse.cz>
18074
18075 PR tree-optimization/42714
18076 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
18077 constructors specially.
18078
18079 2010-01-14 Andi Kleen <ak@linux.intel.com>
18080
18081 * config/i386/drivers-i386.c (detect_caches_intel):
18082 Add l2sizekb parameter and fill in.
18083 (host_detect_local_cpu): Add l2sizekb, fill in.
18084 Add Atom small cache heuristic.
18085
18086 2010-01-14 Andi Kleen <ak@linux.intel.com>
18087
18088 * config/i386/drivers-i386.c (detect_caches_cpuid4):
18089 Add level3 parameter and fill in.
18090 (detect_caches_intel): Handle level3 cache.
18091
18092 2010-01-14 Andi Kleen <ak@linux.intel.com>
18093
18094 * config/i386/drivers-i386.c (host_detect_local_cpu):
18095 Fix core duo detection.
18096
18097 2010-01-14 Andi Kleen <ak@linux.intel.com>
18098
18099 * config/i386/drivers-i386.c (host_detect_local_cpu):
18100 Fix Atom detection.
18101
18102 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18103
18104 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
18105 (rs6000_variable_issue_1): this. Use...
18106 (rs6000_variable_issue): here. Reimplement. Print debug info.
18107
18108 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18109
18110 * sel-sched-ir.c (sel_restore_other_notes): Rename to
18111 sel_restore_notes. Update all callers. Call reemit_notes
18112 for all insns.
18113
18114 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18115
18116 PR rtl-optimization/42246
18117 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
18118 loops.
18119
18120 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18121
18122 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
18123 all successors is the same as number of successors in current region.
18124
18125 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18126
18127 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
18128 to rename is not separable. Otherwise check that its LHS is not NULL.
18129
18130 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18131
18132 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
18133
18134 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18135
18136 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
18137 available registers when failed to discover LHS register class.
18138 Fix indentation. Update comment.
18139
18140 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18141 Alexander Monakov <amonakov@ispras.ru>
18142
18143 PR rtl-optimization/42389
18144 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
18145 to can_issue_more.
18146 (advance_state_on_fence): Likewise.
18147 (sel_target_adjust_priority): Print debug output only when
18148 sched_verbose >= 4, not 2.
18149 (get_expr_cost): Do not issue all unique insns on the next cycle.
18150 (fill_insns): Initialize can_issue_more from the value saved
18151 with the fence.
18152 * sel-sched-ir.c (flist_add): New parameter issue_more.
18153 Init FENCE_ISSUE_MORE with it.
18154 (merge_fences): Likewise.
18155 (init_fences): Update call to flist_add.
18156 (add_to_fences, add_clean_fence_to_fences)
18157 (add_dirty_fence_to_fences): Likewise.
18158 (move_fence_to_fences): Update call to merge_fences.
18159 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
18160 sched groups.
18161 * sel-sched-ir.h (struct _fence): New field issue_more.
18162 (FENCE_ISSUE_MORE): New accessor macro.
18163
18164 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18165
18166 PR rtl-optimization/42388
18167 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
18168 that have no predecessors nor successors. Do not call move_bb_info
18169 for empty blocks outside of current region.
18170
18171 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18172
18173 PR rtl-optimization/42294
18174 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
18175 * sel-sched.c (move_exprs_to_boundary): Transitively add all
18176 originators' originators.
18177
18178 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18179
18180 PR rtl-optimization/39453
18181 PR rtl-optimization/42246
18182 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
18183 for pipelining_p.
18184 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
18185
18186 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18187 Alexander Monakov <amonakov@ispras.ru>
18188
18189 PR middle-end/42245
18190 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
18191 (maybe_tidy_empty_bb): ... here. Make static. Add new
18192 argument. Update all callers.
18193 (tidy_control_flow): ... and here. Recompute topological order
18194 of basic blocks in region if necessary.
18195 (sel_redirect_edge_and_branch): Change return type. Return true
18196 if topological order might have been invalidated.
18197 (purge_empty_blocks): Export and move from...
18198 * sel-sched.c (purge_empty_blocks): ... here.
18199 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
18200 (maybe_tidy_empty_bb): Delete prototype.
18201 (purge_empty_blocks): Declare.
18202
18203 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18204
18205 PR rtl-optimization/42249
18206 * sel-sched.c (try_replace_dest_reg): When chosen register
18207 and original register is the same, do not bail out early, but
18208 still check all original insns for validity of replacing destination
18209 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
18210 in this case.
18211
18212 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18213
18214 PR c/42721
18215 Port from no-undefined-overflow branch:
18216 2009-03-09 Richard Guenther <rguenther@suse.de>
18217
18218 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
18219
18220 2010-01-14 Richard Guenther <rguenther@suse.de>
18221
18222 PR lto/42665
18223 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
18224
18225 2010-01-14 Ira Rosen <irar@il.ibm.com>
18226
18227 PR tree-optimization/42709
18228 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18229 as scalar type in creation of constant vector operand.
18230
18231 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18232
18233 PR testsuite/42414
18234 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18235 (check-parallel-%): Match `testsuite' directory component only
18236 at the end.
18237
18238 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
18239
18240 PR translation/39521
18241 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18242 strings with _().
18243
18244 2010-01-13 Richard Guenther <rguenther@suse.de>
18245
18246 PR tree-optimization/42730
18247 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18248 offset zero.
18249
18250 2010-01-13 Steve Ellcey <sje@cup.hp.com>
18251
18252 PR target/pr42542
18253 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18254 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18255 them signed.
18256
18257 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
18258
18259 * config/bfin/libgcc-bfin.ver: Regenerate based on current
18260 libgcc-std.ver. Add entries for ___smulsi3_highpart and
18261 ___umulsi3_highpart.
18262
18263 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18264 rather than schedule_insns if the pass is enabled.
18265
18266 2010-01-13 Martin Jambor <mjambor@suse.cz>
18267
18268 PR tree-optimization/42704
18269 * tree-sra.c (sra_modify_assign): Do not delete assignments to
18270 SSA_NAMEs.
18271
18272 2010-01-13 Martin Jambor <mjambor@suse.cz>
18273
18274 PR tree-optimization/42703
18275 * tree-sra.c (analyze_access_subtree): Check that we can build a
18276 reference to the original data within the aggregate.
18277
18278 2010-01-13 Richard Guenther <rguenther@suse.de>
18279
18280 PR tree-optimization/42705
18281 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18282
18283 2010-01-13 Richard Guenther <rguenther@suse.de>
18284
18285 PR middle-end/42716
18286 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18287
18288 2010-01-13 Jakub Jelinek <jakub@redhat.com>
18289
18290 PR debug/41371
18291 * var-tracking.c (values_to_unmark): New variable.
18292 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18293 values_to_unmark vector. Moved body to...
18294 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
18295 instead queue it into values_to_unmark vector.
18296 (vt_find_locations): Free values_to_unmark vector.
18297
18298 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
18299
18300 * config/s390/s390.c (override_options): Set
18301 default of max-pending-list-length to 256
18302
18303 2010-01-13 Richard Guenther <rguenther@suse.de>
18304
18305 PR lto/42678
18306 * tree-pass.h (PROP_gimple_lcx): New.
18307 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
18308 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
18309 before the final cleanup_eh.
18310 (dump_properties): Dump PROP_gimple_lcx.
18311 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
18312 (tree_lower_complex_O0): Remove.
18313 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
18314 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
18315 tree_lower_complex, schedule TODO_update_ssa.
18316 * lto-streamer-out.c (output_function): Stream the functions
18317 properties.
18318 * lto-streamer-in.c (input_function): Likewise.
18319 (lto_read_body): Do not override them here.
18320
18321 2010-01-12 Joseph Myers <joseph@codesourcery.com>
18322
18323 PR c/42708
18324 * c-typeck.c (build_c_cast): Fold value cast to union type before
18325 wrapping it in a CONSTRUCTOR.
18326
18327 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18328
18329 PR rtl-optimization/42699
18330 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
18331 involved.
18332
18333 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18334
18335 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18336 SUBTARGET_WARN_UNUSED_SPEC): Move ...
18337 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18338 SUBTARGET_WARN_UNUSED_SPEC): ... here
18339 * config/mips/iris5.h (LIBGCC_SPEC): Define.
18340
18341 2010-01-12 Julian Brown <julian@codesourcery.com>
18342
18343 * config/arm/neon-schedgen.ml (Utils): Don't try to
18344 open missing module.
18345 (find_with_result): New.
18346
18347 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18348
18349 PR debug/42662
18350 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
18351 sharing when canonicalizing ({lt,ge}u (plus a b) b).
18352
18353 PR tree-optimization/42645
18354 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
18355 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
18356 decl_map, set processing_debug_stmt to -1 and return name without
18357 any remapping.
18358
18359 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
18360
18361 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
18362 binutils version, and reword target configuration description.
18363
18364 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18365
18366 * config/avr/avr.h (LINKER_NAME): Remove.
18367
18368 2010-01-11 Janis Johnson <janis187@us.ibm.com>
18369
18370 PR target/42416
18371 * config/rs6000/rs6000.c (rs6000_override_options): On targets
18372 that support VSX, warn for -mno-altivec if vsx is not disabled,
18373 and disable vsx.
18374
18375 2010-01-11 Joseph Myers <joseph@codesourcery.com>
18376 Shujing Zhao <pearly.zhao@oracle.com>
18377
18378 PR translation/42469
18379 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
18380 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
18381 character between option name and help text.
18382 * c.opt (imultilib): Likewise.
18383
18384 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
18385
18386 * lto-streamer-out.c (output_unreferenced_globals): Output static
18387 variables.
18388
18389 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
18390
18391 PR rtl-optimization/42621
18392 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
18393 optimizing for size.
18394 (duplicate_computed_gotos): Remove now-redundant check.
18395
18396 2010-01-10 Steve Ellcey <sje@cup.hp.com>
18397
18398 PR target/37454
18399 * configure.ac: Save and restore LDFLAGS and LIBS
18400 * configure: Regenerate.
18401
18402 2010-01-10 Richard Guenther <rguenther@suse.de>
18403
18404 PR middle-end/42667
18405 * builtins.c (fold_builtin_strlen): Add type argument and
18406 convert the resulting length to it.
18407 (fold_builtin_1): Adjust.
18408
18409 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18410
18411 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
18412 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
18413 1 insn.
18414 (num_insns_constant_wide): Adjust for that change.
18415
18416 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18417
18418 PR debug/42631
18419 * web.c (union_defs): Add used argument, to combine uses of
18420 uninitialized regs.
18421 (entry_register): Adjust type and tests of used argument.
18422 (web_main): Widen used for new use. Pass it to union_defs.
18423 * df.h (union_defs): Adjust prototype.
18424
18425 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18426
18427 PR debug/42630
18428 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
18429 uses in new incoming argument. Free body.
18430 (reset_debug_uses_in_loop): New.
18431 (analyze_insn_to_expand_var): Call the latter if the former found
18432 anything. Fix whitespace. Reject invalid dest overlaps before
18433 going through all insns in the loop.
18434
18435 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18436
18437 PR debug/42629
18438 * haifa-sched.c (dying_use_p): Debug insns don't count.
18439
18440 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18441
18442 PR middle-end/42363
18443 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
18444 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
18445 (verify_gimple_call): Reject LHS in noreturn calls.
18446
18447 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18448
18449 PR debug/42604
18450 PR debug/42395
18451 * tree-vect-loop-manip.c (adjust_info): New type.
18452 (adjust_vec): New pointer to vector.
18453 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
18454 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
18455 (slpeel_update_phis_for_duplicate_loop): Use them.
18456 (slpeel_update_phi_nodes_for_guard1): Likewise.
18457 (slpeel_update_phi_nodes_for_guard2): Likewise.
18458 (slpeel_tree_peel_loop_to_edge): Likewise.
18459 (vect_update_ivs_after_vectorizer): Likewise.
18460
18461 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18462
18463 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
18464 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18465
18466 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18467
18468 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
18469 bogus uninitialized warning.
18470
18471 2010-01-09 Richard Guenther <rguenther@suse.de>
18472
18473 PR middle-end/42512
18474 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
18475 the evolution is compatible with the initial condition.
18476
18477 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18478
18479 * gcc.c (process_command): Update copyright notice dates.
18480 * gcov.c (print_version): Likewise.
18481 * gcov-dump.c (print_version): Likewise.
18482 * mips-tfile.c (main): Likewise.
18483 * mips-tdump.c (main): Likewise.
18484
18485 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18486
18487 PR target/41885
18488 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
18489 (rotlhi3): Delete.
18490 (rotlhi3_8): Delete.
18491 (rotlsi3): Delete.
18492 (rotlsi3_8): Delete.
18493 (rotlsi3_16): Delete.
18494 (rotlsi3_24): Delete.
18495 (rotl<mode>3): New.
18496 (*rotw<mode>3): New.
18497 (*rotb<mode>3): New.
18498 * config/avr/avr.c (avr_rotate_bytes): New function.
18499 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
18500
18501 2010-01-08 Steve Ellcey <sje@cup.hp.com>
18502
18503 PR target/37454
18504 * configure.ac: Modify -rdynamic check.
18505 * configure: Regenerate.
18506
18507 2010-01-08 DJ Delorie <dj@redhat.com>
18508
18509 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
18510 register popping order.
18511
18512 2010-01-08 Richard Guenther <rguenther@suse.de>
18513
18514 PR lto/42528
18515 * c.opt (fsigned-char): Also let LTO handle this option.
18516 (funsigned-char): Likewise.
18517
18518 2010-01-07 Richard Guenther <rguenther@suse.de>
18519
18520 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
18521 (gimple_op): Likewise.
18522 (gimple_op_ptr): Likewise.
18523 (gimple_assign_set_lhs): Remove gcc_assert.
18524 (gimple_assign_set_rhs1): Likewise.
18525 (gimple_assign_set_rhs2): Likewise.
18526 (gimple_call_set_lhs): Likewise.
18527 (gimple_call_set_fn): Likewise.
18528 (gimple_call_set_fndecl): Likewise.
18529 (gimple_call_fndecl): Likewise.
18530 (gimple_call_return_type): Likewise.
18531 (gimple_call_set_chain): Likewise.
18532 (gimple_call_num_args): Likewise.
18533 (gimple_call_set_arg): Likewise.
18534 (gimple_cond_set_code): Likewise.
18535 (gimple_cond_set_lhs): Likewise.
18536 (gimple_cond_set_rhs): Likewise.
18537 (gimple_cond_set_true_label): Likewise.
18538 (gimple_cond_set_false_label): Likewise.
18539 (gimple_label_set_label): Likewise.
18540 (gimple_goto_set_dest): Likewise.
18541 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
18542 (gimple_debug_bind_get_value): Likewise.
18543 (gimple_debug_bind_get_value_ptr): Likewise.
18544 (gimple_debug_bind_set_var): Likewise.
18545 (gimple_debug_bind_set_value): Likewise.
18546 (gimple_debug_bind_reset_value): Likewise.
18547 (gimple_debug_bind_has_value_p): Likewise.
18548 (gimple_return_retval_ptr): Remove gcc_assert.
18549 (gimple_return_retval): Likewise.
18550 (gimple_return_set_retval): Likewise.
18551 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
18552 (safe_referenced_var_iterator): Remove.
18553 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
18554 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
18555 (fill_referenced_var_vec): Remove.
18556 (first_readonly_imm_use): Remove redundant gcc_assert.
18557 (phi_arg_index_from_use): Combine gcc_asserts.
18558 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
18559 (first_imm_use_stmt): Remove redundant gcc_assert.
18560 * tree-cfg.c (verify_gimple_call): Verify function and chain
18561 operands. Verify arguments.
18562 (verify_types_in_gimple_stmt): Verify condition code and labels.
18563
18564 2010-01-07 Richard Guenther <rguenther@suse.de>
18565
18566 PR tree-optimization/42641
18567 * sese.c (rename_map_elt_info): Use the SSA name version, do
18568 not hash pointers.
18569
18570 2010-01-07 Jakub Jelinek <jakub@redhat.com>
18571
18572 PR tree-optimization/42625
18573 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
18574 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
18575
18576 2010-01-07 Duncan Sands <baldrick@free.fr>
18577
18578 * Makefile.in (PLUGIN_HEADERS): Add version.h.
18579
18580 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
18581
18582 PR target/42511
18583 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
18584 note itself is not function_invariant_p.
18585
18586 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
18587
18588 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
18589 Do not add the DF_NOTE problem.
18590 * store-motion.c (execute_rtl_store_motion): Likewise.
18591
18592 2010-01-07 Martin Jambor <mjambor@suse.cz>
18593
18594 PR tree-optimization/42157
18595 * tree-sra.c (compare_access_positions): Stabilize sort if both
18596 accesses have integer types, return zero immediately if they are the
18597 same.
18598
18599 2010-01-06 Richard Henderson <rth@redhat.com>
18600
18601 PR middle-end/41883
18602 * haifa-sched.c (add_to_note_list): Merge into ...
18603 (concat_note_lists): ... here, and ...
18604 (unlink_other_notes, rm_other_notes): Merge into...
18605 (remove_notes): ... here. Create REG_SAVE_NOTEs for
18606 NOTE_INSN_EPILOGUE_BEG.
18607
18608 2010-01-06 Richard Guenther <rguenther@suse.de>
18609
18610 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
18611 not inline regular functions into always-inline functions.
18612
18613 2010-01-06 Nick Clifton <nickc@redhat.com>
18614
18615 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
18616 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
18617 used together.
18618 (OVERRIDE_OPTIONS): Delete.
18619 (OPTIMIZATION_OPTIONS): Define.
18620 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
18621 * config/rx/rx.c (rx_handle_option): Issue an error message if
18622 -mcpu=rx200 and -fpu are used together.
18623 (rx_set_optimization_options): New function. Issue an error
18624 message if an optimization attribute attempts to reset the FPU/
18625 math optimization pairing.
18626 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
18627 * config/rx/rx.opt: Set the default to 32-bit doubles.
18628 * config/rx/t-rx: Add multilibs for -nofpu option.
18629 * doc/invoke.texi: Update documentation of RX options.
18630
18631 2010-01-06 Richard Guenther <rguenther@suse.de>
18632
18633 * tree-ssa-pre.c (name_to_id): New global.
18634 (alloc_expression_id): Simplify SSA name handling.
18635 (lookup_expression_id): Likewise.
18636 (init_pre): Zero name_to_id.
18637 (fini_pre): Free it.
18638
18639 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
18640
18641 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
18642
18643 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
18644
18645 PR target/42542
18646 * config/i386/sse.md (smaxv2di3): New.
18647 (umaxv2di3): Likewise.
18648 (sminv2di3): Likewise.
18649 (uminv2di3): Likewise.
18650
18651 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
18652
18653 PR target/42564
18654 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18655 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18656 (legitimize_tls_address): Likewise.
18657 (sparc_tls_referenced_p): Likewise.
18658 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18659 and adjust calls to legitimize_pic_address.
18660 (legitimate_constant_p) Use sparc_tls_referenced_p.
18661 (legitimate_pic_operand_p): Likewise.
18662 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18663 (sparc_tls_symbol_ref_1): Delete.
18664 (sparc_tls_referenced_p): Make static, recognize specific patterns.
18665 (legitimize_tls_address): Make static, handle CONST patterns.
18666 (legitimize_pic_address): Make static, remove unused parameter and
18667 adjust recursive calls.
18668 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18669 and adjust call to legitimize_pic_address.
18670 (sparc_output_mi_thunk): Likewise.
18671
18672 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
18673 H.J. Lu <hongjiu.lu@intel.com>
18674
18675 PR target/42542
18676 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18677 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18678 operands to make them signed.
18679
18680 Revert:
18681 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18682
18683 PR target/42542
18684 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18685 GTU to GT for V4SI and V2DI.
18686
18687 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18688 (umin<mode>3): Removed.
18689 (uminv8hi3): New.
18690 (uminv4si3): Likewise.
18691
18692 2010-01-05 Martin Jambor <mjambor@suse.cz>
18693
18694 PR tree-optimization/42462
18695 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18696 current_function_decl to helper functions and macros.
18697
18698 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18699
18700 PR bootstrap/41771
18701 * flags.h: Don't include real.h.
18702 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18703 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18704 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18705 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18706 * dominance.c: Update copyright.
18707 * gimple.c (walk_gimple_op): Remove inline.
18708 * tree-ssa-reassoc.c: Include real.h.
18709 * Makefile.in (FLAGS_H): Remove $(REAL_H).
18710 (tree-ssa-reassoc.o): Depend on $(REAL_H).
18711
18712 2010-01-05 Nick Clifton <nickc@redhat.com>
18713
18714 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
18715 register to push into the stack frame when the accumulator has to
18716 be saved during interrupts.
18717
18718 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
18719
18720 * doc/invoke.texi: Remove the documentation about option
18721 -Wunreachable-code.
18722 * common.opt (Wunreachable-code): Preserved for backward
18723 compatibility.
18724 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
18725 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
18726 the backward compatibility flag section.
18727
18728 2010-01-05 Richard Guenther <rguenther@suse.de>
18729
18730 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
18731
18732 2010-01-05 Jakub Jelinek <jakub@redhat.com>
18733
18734 PR other/42611
18735 * cfgexpand.c (expand_one_var): Diagnose too large variables.
18736
18737 PR tree-optimization/42508
18738 * tree-sra.c (convert_callers): Check for recursive call
18739 by comparing cgraph nodes instead of decls.
18740 (modify_function): Call ipa_modify_formal_parameters also
18741 on all same_body aliases.
18742
18743 * cgraphunit.c (cgraph_materialize_all_clones): Compare
18744 cgraph nodes when checking for same_body aliases.
18745
18746 2010-01-05 Richard Guenther <rguenther@suse.de>
18747
18748 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
18749 allocation and lookup.
18750 (get_or_alloc_expr_for_constant): Likewise.
18751 (phi_translate): Sink allocation.
18752
18753 2010-01-04 Richard Guenther <rguenther@suse.de>
18754
18755 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
18756 a new entry only if needed.
18757 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
18758 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
18759 hashtable lookup.
18760 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
18761 the result array.
18762 (phi_translate): Handle CONSTANTs early.
18763
18764 2010-01-04 Martin Jambor <mjambor@suse.cz>
18765
18766 PR tree-optimization/42398
18767 * tree-sra.c (struct access): Removed flag grp_different_types.
18768 (dump_access): Do not dump the removed flag.
18769 (sort_and_splice_var_accesses): Do not set the removed flag.
18770 (sra_modify_expr): Check for type compatibility directly.
18771
18772 2010-01-04 Martin Jambor <mjambor@suse.cz>
18773
18774 PR tree-optimization/42366
18775 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
18776 edges with variable number of parameters.
18777 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
18778 flag instead of asserting it.
18779 (ipa_read_node_info): Read uses_analysis_done flag.
18780
18781 2010-01-04 Richard Guenther <rguenther@suse.de>
18782
18783 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
18784 iterative_hash_* as intended.
18785 (vn_reference_compute_hash): Likewise. Simplify hashing
18786 SSA names.
18787 (vn_reference_lookup_2): Likewise.
18788 (vn_nary_op_compute_hash): Likewise.
18789 (vn_phi_compute_hash): Likewise.
18790 (expressions_equal_p): Remove strange code.
18791 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
18792 (pre_expr_hash): Likewise. Simplify hashing SSA names.
18793 (bitmap_insert_into_set_1): Take value-id as parameter.
18794 (add_to_value): Pass it.
18795 (bitmap_insert_into_set): Likewise.
18796 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
18797
18798 2010-01-04 Jakub Jelinek <jakub@redhat.com>
18799
18800 PR driver/42442
18801 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
18802 (do_self_spec): For switches with SWITCH_IGNORE set set also
18803 SWITCH_IGNORE_PERMANENTLY.
18804 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
18805 of SWITCH_IGNORE.
18806
18807 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
18808
18809 * lto-streamer-out.c (output_unreferenced_globals): Output the full
18810 tree of an unreferenced global var.
18811
18812 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18813
18814 PR target/42542
18815 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18816 GTU to GT for V4SI and V2DI.
18817
18818 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18819 (umin<mode>3): Removed.
18820 (uminv8hi3): New.
18821 (uminv4si3): Likewise.
18822
18823 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18824
18825 PR lto/42581
18826 * collect2.c (main): Turn on trace in collect2 if -v is passed
18827 to gcc with LTO.
18828
18829 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
18830
18831 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
18832 description of expression operand.
18833
18834 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
18835
18836 * configure.ac: Add install-html to target_list for Make-hooks.
18837 * configure: Regenerate.
18838 * fortran/Make-lang.in (F95_HTMLFILES): New.
18839 (fortran.html): Use it.
18840 (fortran.install-html): New.
18841 * Makefile.in (install-html): Add lang.install-html.
18842 * java/Make-lang.in (JAVA_HTMLFILES): New.
18843 (java.html): Use it.
18844 (java.install-html): New.
18845 * objc/Make-lang.in (objc.install-html): New.
18846 * objcp/Make-lang.in (obj-c++.install-html): New.
18847 * cp/Make-lang.in (c++.install-html): New.
18848 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18849 * lto/Make-lang.in (lto.install-html): New.
18850
18851 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18852
18853 PR lto/42520
18854 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18855
18856 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
18857
18858 PR rtl-optimization/41862
18859 * store-motion.c (store_killed_in_insn, compute_store_table,
18860 remove_reachable_equiv_notes, replace_store_insn,
18861 build_store_vectors): Ignore all DEBUG_INSNs.
18862
18863 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18864
18865 PR lto/41564
18866 * common.opt: Add dumpdir.
18867
18868 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18869 isn't specified.
18870 (option_map): Add --dumpdir.
18871
18872 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18873
18874 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18875
18876 * opts.c (decode_options): Try dump_dir_name first if
18877 dump_base_name isn't an absolute path.
18878 (common_handle_option): Handle OPT_dumpdir.
18879
18880 * toplev.c (dump_dir_name): New.
18881 (print_switch_values): Also ignore -dumpdir.
18882
18883 * toplev.h (dump_dir_name): New.
18884
18885 2010-01-03 Richard Guenther <rguenther@suse.de>
18886
18887 PR tree-optimization/42589
18888 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18889 double-word expansion of bswap32.
18890
18891 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
18892
18893 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18894 with BLOCK_FOR_INSN.
18895 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18896 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18897 noce_process_if_block): Likewise.
18898 * gcse.c (compute_local_properties, insert_expr_in_table,
18899 insert_set_in_table, canon_list_insert, find_avail_set,
18900 pre_insert_copy_insn): Likewise.
18901
18902 * basic-block.h (BLOCK_NUM): Move from here...
18903 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18904
18905 2010-01-03 Richard Guenther <rguenther@suse.de>
18906
18907 PR tree-optimization/42438
18908 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18909 contains_may_not_return_call flag.
18910 (BB_MAY_NOTRETURN): New.
18911 (valid_in_sets): Trapping nary operations are not valid
18912 in blocks that may not return.
18913 (insert_into_preds_of_block): Remove check for trapping expressions.
18914 (compute_avail): Compute also BB_MAY_NOTRETURN.
18915
18916 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
18917
18918 * doc/invoke.texi: Add 2010 to copyright years.
18919
18920 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
18921
18922 * config/sparc/sparc.c: Fix formatting nits.
18923
18924 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
18925 Alexander Monakov <amonakov@ispras.ru>
18926
18927 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18928
18929 2010-01-02 Richard Guenther <rguenther@suse.de>
18930
18931 PR middle-end/42577
18932 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18933 (simplify_switch_using_ranges): Mark to be removed edges
18934 as non-executable.
18935
18936 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18937
18938 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18939
18940 * collect2.c (scan_libraries): Add missing argument in call to
18941 scan_prog_file.
18942
18943 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
18944
18945 PR target/42448
18946 * config/alpha/predicates.md (aligned_memory_operand): Return false
18947 for CQImode.
18948 (unaligned_memory_operand): Return true for CQImode.
18949 * config/alpha/alpha.c (get_aligned_mem): Assert that location
18950 doesn not cross aligned SImode word boundary.
18951
18952 2010-01-02 Anatoly Sokolov <aesok@post.ru>
18953
18954 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18955 Remove.
18956 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18957 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18958
18959 2010-01-02 Richard Guenther <rguenther@suse.de>
18960
18961 PR lto/41597
18962 * toplev.c (compile_file): Emit LTO marker properly. Change
18963 it to __gnu_lto_v1.
18964 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18965
18966 2010-01-01 Richard Guenther <rguenther@suse.de>
18967
18968 PR debug/42455
18969 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18970
18971 2010-01-01 Richard Guenther <rguenther@suse.de>
18972
18973 PR c/42570
18974 * c-decl.c (grokdeclarator): For zero-size arrays force
18975 structural equality checks as layout_type does.
18976
18977 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18978
18979 * builtins.c: Update copyright to 2010.
18980
18981 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18982
18983 PR lto/42531
18984 * lto-streamer-out.c (produce_asm): Revert the last change.
18985 (copy_function): Likewise.
18986
18987 * lto-streamer.c (lto_get_section_name): Skip any leading
18988 asterisk in name.
18989
18990 2010-01-01 Richard Guenther <rguenther@suse.de>
18991
18992 PR middle-end/42559
18993 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18994 for LABEL_DECLs.
18995
18996 \f
18997 Copyright (C) 2010 Free Software Foundation, Inc.
18998
18999 Copying and distribution of this file, with or without modification,
19000 are permitted in any medium without royalty provided the copyright
19001 notice and this notice are preserved.
This page took 0.730684 seconds and 6 git commands to generate.