1 2009-11-27 Jakub Jelinek <jakub@redhat.com>
3 * config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove
5 * genemit.c (output_peephole2_scratches): Only declare and initialize
6 _regs_allocated if it will be ever used.
7 * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused
9 (create_empty_loop_on_edge): Remove unused freq and cnt variables.
10 * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record
13 * opts.c (decode_options): If optimize is bigger than 255,
16 2009-11-26 Richard Henderson <rth@redhat.com>
18 * config/i386/sse.md (mulv16qi3): Change back from an expander
20 (mulv4si): Mention AVX not XOP for AVX exception.
21 (*sse2_mulv4si3): Likewise.
22 (mulv2di3): Use vmulld not vpmacsdd for XOP expansion. Tidy.
24 2009-11-26 Bernd Schmidt <bernd.schmidt@analog.com>
26 * cfgexpand (n_stack_vars_conflict): New static variable.
27 (triangular_index): Reduce likelyhood of overflow by performing
28 the division before the multiplication.
29 (resize_stack_vars_conflict): Call fatal_error if overflow
30 occurred in triangular_index. Update n_stack_vars_conflict.
33 * regrename.c (struct du_chain): Remove member earlyclobber.
34 (scan_rtx_reg): Don't set it. Remove argument earlyclobber,
36 (scan_rtx): Remove argument earlyclobber, all callers changed.
37 (hide_operands, restore_operands, record_out_operands): New functions,
38 broken out of build_def_use.
39 (build_def_use): Call them as necessary.
41 * regrename.c (struct du_head): New members id, conflicts,
42 hard_conflicts and cannot_rename.
43 (enum scan_actions): Remove terminate_all_read and
44 terminate_overlapping_read; add mark_all_read.
45 (scan_actions_name): Likewise.
46 (du_head_p): New typedef. Define a vector type for it.
47 (id_to_chain): New static variable.
48 (note_sets, clear_dead_regs): Delete functions.
49 (free_chain_data): New function.
50 (merge_overlapping_regs): Simply walk the conflicts bitmap.
51 Remove argument B, all callers changed.
52 (regrename_optimize): Allocate id_to_chain. Ignore chains that have
53 the cannot_rename bit set. Update regno and nregs of a renamed chain.
54 Call free_chain_data when done.
55 (do_replace): Remove death notes when the renamed reg is set in the
56 last insn; add them if not.
57 (mark_conflict, note_sets_clobbers): New static function.
58 (fail_current_block, current_id, open_chains_set, live_hard_regs): New
60 (scan_rtx_reg): Keep track of conflicts between chains, and between
61 chains and hard regs. Don't terminate chains when we find a read we
62 can't handle, mark it unrenameable instead. For terminate_write,
63 terminate chains that are written with an exact match or a superset
64 of registers. Set fail_current_block if multi-word lifetimes are too
66 (scan_rtx_address): Use mark_all_read instead of terminate_all_read.
67 (build_def_use): Initialize current_id, live_chains and live_hard_regs;
68 free memory for them when done.
69 Rearrange the steps so that earlyclobbers are noted before reads
70 are processed. Add new steps to keep track of hard register lifetimes
71 outside insn operands.
73 2009-11-26 Richard Guenther <rguenther@suse.de>
75 * tree-ssa-dce.c (nr_walks): New variable.
76 (mark_aliased_reaching_defs_necessary): Adjust oracle cut-off.
77 (perform_tree_ssa_dce): Init nr_walks.
79 2009-11-26 Michael Matz <matz@suse.de>
81 PR tree-optimization/41905
82 * tree-eh.c (lower_eh_constructs_2): Don't add assignments
83 below statements that can't fall thru.
85 2009-11-26 Michael Matz <matz@suse.de>
87 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
88 expand_builtin_sprintf): Remove.
89 (expand_builtin): Don't call them.
91 2009-11-26 Richard Guenther <rguenther@suse.de>
93 * tree-ssa-dce.c (perform_tree_ssa_dce): Allocate visited bitmap.
95 2009-11-26 Nick Clifton <nickc@redhat.com>
97 * config/rx/rx.c (rx_expand_epilogue): Add checks for sibcalls
98 being used incorrectly.
99 (rx_function_ok_for_sibcall): New function. Do not allow indirect
100 sibcalls, or sibcalls from interrupt functions.
101 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
102 * config/rx/rx.md (sibcall): Convert to a define_expand. Check
103 for a MEM inside a MEM.
104 (sibcall_value): Likewise.
105 (sibcall_internal): New pattern containing old sibcall pattern.
106 (sibcall_value_internal): Likewise.
108 2009-11-25 Richard Henderson <rth@redhat.com>
110 * config/i386/i386-builtin-types.awk (DEF_VECTOR_TYPE): Allow an
111 optional 3rd argument to define the mode.
112 * config/i386/i386-builtin-types.def (UQI, UHI, USI, UDI): New.
113 (V2UDI, V4USI, V8UHI, V16UQI): New.
114 (V4SF_FTYPE_V4SF_V4SF_V4SI, V2UDI_FTYPE_V2UDI_V2UDI_V2UDI,
115 V4USI_FTYPE_V4USI_V4USI_V4USI, V8UHI_FTYPE_V8UHI_V8UHI_V8UHI,
116 V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): New.
117 * config/i386/i386-modes.def: Rearrange for double-wide AVX.
118 * config/i386/i386-protos.h (ix86_expand_vec_extract_even_odd): New.
119 * config/i386/i386.c (IX86_BUILTIN_VEC_PERM_*): New.
120 (bdesc_args): Add the builtin definitions to match.
121 (ix86_expand_builtin): Expand them.
122 (ix86_builtin_vectorization_cost): Rename from
123 x86_builtin_vectorization_cost.
124 (ix86_vectorize_builtin_vec_perm, struct expand_vec_perm_d,
125 doublesize_vector_mode, expand_vselect, expand_vselect_vconcat,
126 expand_vec_perm_blend, expand_vec_perm_vpermil,
127 expand_vec_perm_pshufb, expand_vec_perm_1,
128 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
129 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
130 expand_vec_perm_even_odd_1, expand_vec_perm_even_odd,
131 ix86_expand_vec_perm_builtin_1, extract_vec_perm_cst,
132 ix86_expand_vec_perm_builtin, ix86_vectorize_builtin_vec_perm_ok,
133 ix86_expand_vec_extract_even_odd, TARGET_VECTORIZE_BUILTIN_VEC_PERM,
134 TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
135 * sse.md (SSEMODE_EO): New.
136 (vec_extract_even<mode>): Use SSEMODE_EO and
137 ix86_expand_vec_extract_even_odd.
138 (vec_extract_odd<mode>): Likewise.
139 (mulv16qi3, vec_pack_trunc_v8hi, vec_pack_trunc_v4si,
140 vec_pack_trunc_v2di): Use ix86_expand_vec_extract_even_odd.
142 2009-11-25 Richard Henderson <rth@redhat.com>
144 * target.h (targetm.vectorize.builtin_vec_perm_ok): New.
145 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
146 * hooks.h, hooks.c (hook_bool_tree_tree_true): New.
147 * tree-vect-slp.c (vect_create_mask_and_perm): Don't create
148 the vector constant here...
149 (vect_transform_slp_perm_load): ... do it here instead. Validate
150 that the permutation vector is implementable by the target.
152 2009-11-25 Jakub Jelinek <jakub@redhat.com>
154 * config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
155 * config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
157 * print-rtl.c (print_rtx): When printing newline, append
158 print_rtx_head and indentation after the newline.
161 * config/i386/i386.c (print_operand): For 32-byte memory use
162 YMMWORD in -masm=intel mode. Use TBYTE instead of XWORD.
163 * config/i386/i386.md (crc32modesuffix): Expand to nothing
165 (sse4_2_crc32di): Print just crc32 instead of crc32q in
167 * config/i386/mmx.md (*mmx_pinsrw): Print correct size of
168 memory operand in -masm=intel mode.
169 * config/i386/sse.md (*avx_pinsr<ssevecsize>, *sse4_1_pinsrb,
170 *sse2_pinsrw): Likewise.
171 (sse_cvtss2siq, sse_cvtss2siq_2, sse_cvttss2siq): Don't print
172 q suffix in -masm=intel mode.
174 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
179 * dwarf2out.c (dwarf2out_args_size_adjust): Rename to...
180 (dwarf2out_stack_adjust): ...this. Do not adjust the arg size for
181 ACCUMULATE_OUTGOING_ARGS targets. Rename former version to...
182 (dwarf2out_notice_stack_adjust): ...this. Adjust for above renaming.
183 (dwarf2out_frame_debug_expr): Revert previous change and adjust for
185 (dwarf2out_frame_debug): Add ??? comment. Adjust for above renaming.
187 2009-11-25 Uros Bizjak <ubizjak@gmail.com>
189 * config/i386/predicates.md (emms_operation): New predicate.
190 (vzeroupper_operation): Ditto.
191 (vzeroall_operation): Improve pattern recognition.
192 * config/i386/sse.md (avx_vzeroupper_rex64): Remove insn pattern.
193 (avx_vzeroupper): Change insn pattern to expander.
194 (*avx_vzeroupper): New insn pattern. Use vzeroupper_operation
196 (*avx_vzeroall): Remove operands 1 and 2.
197 * config/i386/mmx.md (mmx_emms): Change insn pattern to expander.
199 (*mmx_emms): New insn pattern. Use emms_operation predicate.
201 * config/i386/i386.c (enum ix86_builtins)
202 <IX86_BUILTIN_VZEROUPPER_REX64>: Remove.
203 (struct builtin_description) <CODE_FOR_avx_vzeroupper_rex64>:
204 Remove initailization.
205 <CODE_FOR_avx_vzeroupper>: Unconditionally initialize here.
207 2009-11-25 Paul Brook <paul@codesourcery.com>
209 * config/arm/arm.md (consttable_4): Handle (high ...).
211 2009-11-25 Robert Nelson <robert.nelson@digikey.com>
212 Richard Earnshaw <rearnsha@arm.com>
214 * arm.h (enum vfp_reg_type): Add VFP_NONE.
215 * arm.c (all_fpus): Use it for floating point units that aren't based
216 on the VFP architecture.
217 (aapcs_vfp_is_call_or_return_candidate): Make base_mode a pointer to
220 2009-11-25 H.J. Lu <hongjiu.lu@intel.com>
222 * alias.c: Remove trailing white spaces.
223 * alloc-pool.c: Likewise.
224 * alloc-pool.h: Likewise.
225 * attribs.c: Likewise.
226 * auto-inc-dec.c: Likewise.
227 * basic-block.h: Likewise.
228 * bb-reorder.c: Likewise.
229 * bt-load.c: Likewise.
230 * builtins.c: Likewise.
231 * builtins.def: Likewise.
232 * c-common.c: Likewise.
233 * c-common.h: Likewise.
234 * c-cppbuiltin.c: Likewise.
235 * c-decl.c: Likewise.
236 * c-format.c: Likewise.
239 * c-opts.c: Likewise.
240 * c-parser.c: Likewise.
241 * c-pretty-print.c: Likewise.
242 * c-tree.h: Likewise.
243 * c-typeck.c: Likewise.
244 * caller-save.c: Likewise.
247 * cfganal.c: Likewise.
248 * cfgexpand.c: Likewise.
249 * cfghooks.c: Likewise.
250 * cfghooks.h: Likewise.
251 * cfglayout.c: Likewise.
252 * cfgloop.c: Likewise.
253 * cfgloop.h: Likewise.
254 * cfgloopmanip.c: Likewise.
255 * cfgrtl.c: Likewise.
256 * cgraph.c: Likewise.
257 * cgraph.h: Likewise.
258 * cgraphbuild.c: Likewise.
259 * cgraphunit.c: Likewise.
260 * cif-code.def: Likewise.
261 * collect2.c: Likewise.
262 * combine.c: Likewise.
263 * convert.c: Likewise.
264 * coverage.c: Likewise.
265 * crtstuff.c: Likewise.
267 * cselib.c: Likewise.
268 * dbgcnt.c: Likewise.
269 * dbgcnt.def: Likewise.
270 * dbgcnt.h: Likewise.
271 * dbxout.c: Likewise.
275 * defaults.h: Likewise.
276 * df-byte-scan.c: Likewise.
277 * df-core.c: Likewise.
278 * df-problems.c: Likewise.
279 * df-scan.c: Likewise.
282 * diagnostic.c: Likewise.
283 * diagnostic.h: Likewise.
284 * dominance.c: Likewise.
285 * domwalk.c: Likewise.
286 * double-int.c: Likewise.
287 * double-int.h: Likewise.
289 * dwarf2asm.c: Likewise.
290 * dwarf2asm.h: Likewise.
291 * dwarf2out.c: Likewise.
292 * ebitmap.c: Likewise.
293 * ebitmap.h: Likewise.
294 * emit-rtl.c: Likewise.
295 * et-forest.c: Likewise.
296 * except.c: Likewise.
297 * except.h: Likewise.
298 * expmed.c: Likewise.
303 * fold-const.c: Likewise.
304 * function.c: Likewise.
305 * function.h: Likewise.
306 * fwprop.c: Likewise.
308 * gcov-dump.c: Likewise.
309 * gcov-io.c: Likewise.
310 * gcov-io.h: Likewise.
313 * genattr.c: Likewise.
314 * genattrtab.c: Likewise.
315 * genautomata.c: Likewise.
316 * genchecksum.c: Likewise.
317 * genconfig.c: Likewise.
318 * genflags.c: Likewise.
319 * gengtype-parse.c: Likewise.
320 * gengtype.c: Likewise.
321 * gengtype.h: Likewise.
322 * genmddeps.c: Likewise.
323 * genmodes.c: Likewise.
324 * genopinit.c: Likewise.
325 * genpreds.c: Likewise.
326 * gensupport.c: Likewise.
327 * ggc-common.c: Likewise.
328 * ggc-page.c: Likewise.
329 * ggc-zone.c: Likewise.
331 * gimple-iterator.c: Likewise.
332 * gimple-low.c: Likewise.
333 * gimple-pretty-print.c: Likewise.
334 * gimple.c: Likewise.
335 * gimple.def: Likewise.
336 * gimple.h: Likewise.
337 * gimplify.c: Likewise.
338 * graphds.c: Likewise.
339 * graphite-clast-to-gimple.c: Likewise.
340 * gthr-nks.h: Likewise.
341 * gthr-posix.c: Likewise.
342 * gthr-posix.h: Likewise.
343 * gthr-posix95.h: Likewise.
344 * gthr-single.h: Likewise.
345 * gthr-tpf.h: Likewise.
346 * gthr-vxworks.h: Likewise.
348 * haifa-sched.c: Likewise.
349 * hard-reg-set.h: Likewise.
352 * hosthooks.h: Likewise.
355 * incpath.c: Likewise.
356 * init-regs.c: Likewise.
357 * integrate.c: Likewise.
358 * ipa-cp.c: Likewise.
359 * ipa-inline.c: Likewise.
360 * ipa-prop.c: Likewise.
361 * ipa-pure-const.c: Likewise.
362 * ipa-reference.c: Likewise.
363 * ipa-struct-reorg.c: Likewise.
364 * ipa-struct-reorg.h: Likewise.
365 * ipa-type-escape.c: Likewise.
366 * ipa-type-escape.h: Likewise.
367 * ipa-utils.c: Likewise.
368 * ipa-utils.h: Likewise.
370 * ira-build.c: Likewise.
371 * ira-color.c: Likewise.
372 * ira-conflicts.c: Likewise.
373 * ira-costs.c: Likewise.
374 * ira-emit.c: Likewise.
375 * ira-int.h: Likewise.
376 * ira-lives.c: Likewise.
379 * lambda-code.c: Likewise.
380 * lambda-mat.c: Likewise.
381 * lambda-trans.c: Likewise.
382 * lambda.h: Likewise.
383 * langhooks.c: Likewise.
385 * libgcov.c: Likewise.
387 * loop-doloop.c: Likewise.
388 * loop-init.c: Likewise.
389 * loop-invariant.c: Likewise.
390 * loop-iv.c: Likewise.
391 * loop-unroll.c: Likewise.
392 * lower-subreg.c: Likewise.
393 * lto-cgraph.c: Likewise.
394 * lto-compress.c: Likewise.
395 * lto-opts.c: Likewise.
396 * lto-section-in.c: Likewise.
397 * lto-section-out.c: Likewise.
398 * lto-streamer-in.c: Likewise.
399 * lto-streamer-out.c: Likewise.
400 * lto-streamer.c: Likewise.
401 * lto-streamer.h: Likewise.
402 * lto-symtab.c: Likewise.
403 * lto-wpa-fixup.c: Likewise.
404 * matrix-reorg.c: Likewise.
406 * mode-switching.c: Likewise.
407 * modulo-sched.c: Likewise.
410 * omp-low.c: Likewise.
411 * optabs.c: Likewise.
412 * optabs.h: Likewise.
413 * opts-common.c: Likewise.
415 * params.def: Likewise.
416 * params.h: Likewise.
417 * passes.c: Likewise.
418 * plugin.c: Likewise.
419 * postreload-gcse.c: Likewise.
420 * postreload.c: Likewise.
421 * predict.c: Likewise.
422 * predict.def: Likewise.
423 * pretty-print.c: Likewise.
424 * pretty-print.h: Likewise.
425 * print-rtl.c: Likewise.
426 * print-tree.c: Likewise.
427 * profile.c: Likewise.
428 * read-rtl.c: Likewise.
431 * reg-stack.c: Likewise.
432 * regcprop.c: Likewise.
433 * reginfo.c: Likewise.
434 * regmove.c: Likewise.
435 * regrename.c: Likewise.
437 * regstat.c: Likewise.
438 * reload.c: Likewise.
439 * reload1.c: Likewise.
440 * resource.c: Likewise.
444 * rtlanal.c: Likewise.
445 * sbitmap.c: Likewise.
446 * sched-deps.c: Likewise.
447 * sched-ebb.c: Likewise.
448 * sched-int.h: Likewise.
449 * sched-rgn.c: Likewise.
450 * sched-vis.c: Likewise.
451 * sdbout.c: Likewise.
452 * sel-sched-dump.c: Likewise.
453 * sel-sched-dump.h: Likewise.
454 * sel-sched-ir.c: Likewise.
455 * sel-sched-ir.h: Likewise.
456 * sel-sched.c: Likewise.
457 * sel-sched.h: Likewise.
460 * simplify-rtx.c: Likewise.
461 * stack-ptr-mod.c: Likewise.
463 * stor-layout.c: Likewise.
464 * store-motion.c: Likewise.
465 * stringpool.c: Likewise.
466 * stub-objc.c: Likewise.
467 * sync-builtins.def: Likewise.
468 * target-def.h: Likewise.
469 * target.h: Likewise.
470 * targhooks.c: Likewise.
471 * targhooks.h: Likewise.
472 * timevar.c: Likewise.
474 * toplev.c: Likewise.
475 * toplev.h: Likewise.
476 * tracer.c: Likewise.
477 * tree-affine.c: Likewise.
478 * tree-affine.h: Likewise.
479 * tree-browser.def: Likewise.
480 * tree-call-cdce.c: Likewise.
481 * tree-cfg.c: Likewise.
482 * tree-cfgcleanup.c: Likewise.
483 * tree-chrec.c: Likewise.
484 * tree-chrec.h: Likewise.
485 * tree-complex.c: Likewise.
486 * tree-data-ref.c: Likewise.
487 * tree-data-ref.h: Likewise.
488 * tree-dfa.c: Likewise.
489 * tree-dump.c: Likewise.
490 * tree-dump.h: Likewise.
491 * tree-eh.c: Likewise.
492 * tree-flow-inline.h: Likewise.
493 * tree-flow.h: Likewise.
494 * tree-if-conv.c: Likewise.
495 * tree-inline.c: Likewise.
496 * tree-into-ssa.c: Likewise.
497 * tree-loop-distribution.c: Likewise.
498 * tree-loop-linear.c: Likewise.
499 * tree-mudflap.c: Likewise.
500 * tree-nested.c: Likewise.
501 * tree-nomudflap.c: Likewise.
502 * tree-nrv.c: Likewise.
503 * tree-object-size.c: Likewise.
504 * tree-optimize.c: Likewise.
505 * tree-outof-ssa.c: Likewise.
506 * tree-parloops.c: Likewise.
507 * tree-pass.h: Likewise.
508 * tree-phinodes.c: Likewise.
509 * tree-predcom.c: Likewise.
510 * tree-pretty-print.c: Likewise.
511 * tree-profile.c: Likewise.
512 * tree-scalar-evolution.c: Likewise.
513 * tree-ssa-address.c: Likewise.
514 * tree-ssa-alias.c: Likewise.
515 * tree-ssa-ccp.c: Likewise.
516 * tree-ssa-coalesce.c: Likewise.
517 * tree-ssa-copy.c: Likewise.
518 * tree-ssa-copyrename.c: Likewise.
519 * tree-ssa-dce.c: Likewise.
520 * tree-ssa-dom.c: Likewise.
521 * tree-ssa-dse.c: Likewise.
522 * tree-ssa-forwprop.c: Likewise.
523 * tree-ssa-ifcombine.c: Likewise.
524 * tree-ssa-live.c: Likewise.
525 * tree-ssa-live.h: Likewise.
526 * tree-ssa-loop-ch.c: Likewise.
527 * tree-ssa-loop-im.c: Likewise.
528 * tree-ssa-loop-ivcanon.c: Likewise.
529 * tree-ssa-loop-ivopts.c: Likewise.
530 * tree-ssa-loop-manip.c: Likewise.
531 * tree-ssa-loop-niter.c: Likewise.
532 * tree-ssa-loop-prefetch.c: Likewise.
533 * tree-ssa-loop-unswitch.c: Likewise.
534 * tree-ssa-loop.c: Likewise.
535 * tree-ssa-math-opts.c: Likewise.
536 * tree-ssa-operands.c: Likewise.
537 * tree-ssa-operands.h: Likewise.
538 * tree-ssa-phiopt.c: Likewise.
539 * tree-ssa-phiprop.c: Likewise.
540 * tree-ssa-pre.c: Likewise.
541 * tree-ssa-propagate.c: Likewise.
542 * tree-ssa-reassoc.c: Likewise.
543 * tree-ssa-sccvn.c: Likewise.
544 * tree-ssa-sink.c: Likewise.
545 * tree-ssa-structalias.c: Likewise.
546 * tree-ssa-ter.c: Likewise.
547 * tree-ssa-threadedge.c: Likewise.
548 * tree-ssa-threadupdate.c: Likewise.
549 * tree-ssa-uncprop.c: Likewise.
550 * tree-ssa.c: Likewise.
551 * tree-ssanames.c: Likewise.
552 * tree-switch-conversion.c: Likewise.
553 * tree-tailcall.c: Likewise.
554 * tree-vect-data-refs.c: Likewise.
555 * tree-vect-generic.c: Likewise.
556 * tree-vect-loop-manip.c: Likewise.
557 * tree-vect-loop.c: Likewise.
558 * tree-vect-patterns.c: Likewise.
559 * tree-vect-slp.c: Likewise.
560 * tree-vect-stmts.c: Likewise.
561 * tree-vectorizer.c: Likewise.
562 * tree-vectorizer.h: Likewise.
563 * tree-vrp.c: Likewise.
565 * tree.def: Likewise.
567 * treestruct.def: Likewise.
568 * unwind-compat.c: Likewise.
569 * unwind-dw2-fde-glibc.c: Likewise.
570 * unwind-dw2.c: Likewise.
571 * value-prof.c: Likewise.
572 * value-prof.h: Likewise.
573 * var-tracking.c: Likewise.
574 * varasm.c: Likewise.
575 * varpool.c: Likewise.
578 * vmsdbgout.c: Likewise.
580 * xcoffout.c: Likewise.
582 2009-11-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
584 * pa.c (output_call): Only use sr4 for long interspace calls if
585 call binds local and generating non PIC code.
586 (attr_length_call): Adjust length calculation for above.
588 2009-11-25 Uros Bizjak <ubizjak@gmail.com>
590 * config/i386/i386.md (plusminus_carry_mnemonic): New code attribute.
591 (add<mode>3_carry): Change operand order of plus RTX.
592 (*add<mode>3_carry): Ditto.
593 (*addsi3_carry_zext): Ditto.
594 (*add<dwi>3_doubleword): Update for changed operand order.
595 (*negti2_1 splitter): Ditto.
596 (*negdi2_1 splitter): Ditto.
597 (<plusminus_insn><mode>3_carry): Macroize expander from
598 {add,sub}<mode>3_carry patterns using plusminus code iterator.
599 (*<plusminus_insn><mode>3_carry): Macroize insn from
600 *{add,sub}<mode>3_carry patetrns using plusminus code iterator.
601 (neg<mode>2): Macroize expander from neg{qi,hi,si,di,ti}2
602 patterns using SDWIM mode iterator.
603 (*neg<dwi>2_doubleword): New insn_and_split pattern. Macroize
604 pattern from *neg{di,ti}2_1 patterns and corresponding splitters
605 using DWIH mode iterator.
606 (*neg<mode>2_1): Macroize insn from neg{qi,hi,si,di}2_1 patterns
607 using SWI mode iterator.
608 (*neg<mode>2_cmpz): Ditto from neg{qi,hi,si,di}2_cmpz patterns.
609 (one_cmpl<mode>2): Macroize expander from one_cmpl{qi,hi,si,di}2
610 patterns using SWIM mode iterator.
611 (*one_cmpl<mode>2_1): Macroize insn from one_cmpl{hi,si,di}2_1
612 patterns using SWI248 mode iterator.
613 (*one_cmpl<mode>2_2): Macroize insn from one_cmpl{qi,hi,si,di}2_2
614 patterns using SWI mode iterator.
615 (*one_cmpl<mode>2_2 splitter): Macroize splitter from
616 one_cmpl{qi,hi,si,di}2_2 splitter patterns using SWI mode iterator.
618 2009-11-24 Michael Matz <matz@suse.de>
620 * expr.c (set_storage_via_libcall): Fix build_call_expr call.
622 2009-11-24 David Binderman <dcb314@hotmail.com>
624 * expr.c (store_field): Remove set but not used local variable
626 (expand_expr_real_2): Remove treeop2.
627 * gcse.c (update_ld_motion_stores): Remove new_rtx.
628 * haifa-sched.c (max_issue): Remove points.
629 (sched_create_recovery_edges): Remove e.
630 * ira-costs.c (setup_allocno_cover_class_and_costs): Remove mode.
632 2009-11-24 Nick Clifton <nickc@redhat.com>
634 * config/v850/v850.c (function_arg): Fix handling of zero-length
637 2009-11-24 Michael Matz <matz@suse.de>
639 * tree.h (union tree_ann_d): Don't declare.
640 (tree_base): Remove ann field.
641 (struct var_ann_d): Declare forward.
642 (tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
643 (DECL_VAR_ANN_PTR): New macro.
644 * tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
645 accept only VAR, PARM or RESULT decls.
646 (create_tree_common_ann): Remove.
647 (remove_referenced_var): Use DECL_VAR_ANN_PTR.
648 * tree-eh.c (lookup_expr_eh_lp): Remove.
649 * tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
651 (ann_type, tree_common_ann, get_tree_common_ann): Remove.
652 * tree-flow.h (enum tree_ann_type): Remove.
653 (struct tree_ann_common_d): Remove.
654 (struct var_ann_d): Remove common field.
655 (union tree_ann_d): Remove.
656 (tree_ann_t, tree_ann_common_t): Remove typedefs.
657 (tree_common_ann, get_tree_common_ann, ann_type,
658 create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
659 * tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
660 * tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
661 * builtins.c (expand_builtin_memcpy): Use
662 currently_expanding_gimple_stmt instead of tree annotation.
663 (expand_builtin_memset_args): Ditto.
664 * cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
665 (expand_call_stmt): Don't set tree annotation.
666 (expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
667 * expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
668 * gimple.h (currently_expanding_gimple_stmt): Declare.
670 2009-11-24 Paolo Carlini <paolo.carlini@oracle.com>
672 * dwarf2out.c (add_location_or_const_value_attribute): Remove
673 useless NOTE_VAR_LOCATION_STATUS call.
674 * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
676 2009-11-24 Rafael Avila de Espindola <espindola@google.com>
678 * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
679 being called recursively.
681 2009-11-24 Basile Starynkevitch <basile@starynkevitch.net>
683 * Makefile.in (PLUGIN_HEADERS): Added files: cppdefault.h flags.h
684 $(MD5_H) params.def params.h prefix.h tree-inline.h.
686 2009-11-24 Paul Brook <paul@codesourcery.com>
688 * gcc/config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Fix comment
691 2009-11-24 Julian Brown <julian@codesourcery.com>
692 Paul Brook <paul@codesourcery.com>
694 * config/arm/arm.c (TARGET_DWARF_REGISTER_SPAN): Define.
695 (arm_dwarf_register_span): New function.
696 (arm_dbx_register_number): Add VFPv3 dwarf numbering.
698 2009-11-24 David Binderman <dcb314@hotmail.com>
700 * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
701 local variable bb_note.
702 * dominance.c (get_dominated_by): Likewise local var n.
703 (output_file_names): Likewise local var idx.
704 (add_location_or_const_value_attribute): Likewise local var status.
705 * dwarf2out.c (gen_variable_die): Likewise local var field.
706 * emit-rtl.c (no_line_numbers): Remove.
707 (init_emit_once): Remove line_numbers parameter.
708 * rtl.h (init_emit_once): Adjust prototype.
709 * toplev.c (backend_init): Adjust init_emit_once call.
711 2009-11-24 Richard Guenther <rguenther@suse.de>
713 PR tree-optimization/42142
714 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
715 Handle iv-dependent (non-)kills properly.
716 (mark_aliased_reaching_defs_necessary): Pass the basic-block
717 of the reference statement to mark_aliased_reaching_defs_necessary_1.
719 2009-11-24 Martin Jambor <mjambor@suse.cz>
721 PR tree-optimization/42154
722 * tree-sra.c (struct access): Added comments.
723 (sra_modify_expr): Build references to the old aggregate with
724 build_ref_for_offset instead of reusing access->expr.
725 (load_assign_lhs_subreplacements): Likewise.
727 2009-11-24 Uros Bizjak <ubizjak@gmail.com>
729 * config/i386/i386.md (add<mode>3_carry): Change insn pattern
731 (sub<mode>3_carry): Ditto.
732 (x86_mov<mode>cc_0_m1): Ditto.
733 (*add<mode>3_carry): New insn pattern. Use VOIDmode match_operator
734 for ix86_carry_flag_operator operator predicate.
735 (*sub<mode>3_carry): Ditto.
736 (*x86_mov<mode>cc_0_m1): Ditto.
737 (*addsi3_carry_zext): Use VOIDmode match_operator for
738 ix86_carry_flag_operator operator predicate.
739 (*subsi3_carry_zext): Ditto.
740 (*x86_mov<mode>cc_0_m1_s): Ditto.
741 (*x86_mov<mode>cc_0_m1_neg): Ditto.
742 * config/i386/predocates.md (ix86_carry_flag_operator): Do not
743 check operator sub-expressions for FLAGS_REG and const0_rtx.
744 * config/i386/i386.c (*ix86_gen_sub3_carry): Update prototype.
745 (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
746 (ix86_expand_int_addcc): Update calls to
747 gen_{add,sub}{qi,hi,si,di}3_carry. Do not set mode of compare_op.
748 (ix86_expand_strlensi_unroll_1): Update calls to ix86_gen_sub3_carry.
749 Do not set mode of compare operation.
751 2009-11-23 Jan Hubicka <jh@suse.cz>
754 * ipa-inline.c (inline_transform): Avoid ICE when transform is called
757 2009-11-23 Jan Hubicka <jh@suse.cz>
759 * ipa-cp.c (ipcp_compute_node_scale): Work around completely
760 wrong profile updates.
761 * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
762 having largest frequency.
763 * ira-live.c (ira_implicitly_set_insn_hard_regs): Silecne
764 used uninitalized warning.
765 * tree-optimize.c (execute_fixup_cfg): Rescale entry and exit block
768 2009-11-23 Uros Bizjak <ubizjak@gmail.com>
770 * config/alpha/alpha.md (*cmp_sadd_sidi): Use gen_lowpart instead
771 of gen_rtx_REG to generate operand 5.
772 (*cmp_ssub_sidi): Ditto.
774 2009-11-23 Richard Henderson <rth@redhat.com>
776 * config/i386/i386.c (avx_vpermilp_parallel): Fix sign compare
779 2009-11-23 Paul Brook <paul@codesourcery.com>
781 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
782 case for noreturn functions.
783 (arm_compute_save_reg_mask): Remove special noreturn handling.
785 2009-11-23 Richard Guenther <rguenther@suse.de>
787 * tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
790 2009-11-22 Richard Henderson <rth@redhat.com>
792 * i386.c (avx_vpermilp_parallel): New function.
793 * i386-protos.h: Declare it.
794 * predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
795 avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
796 * sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
797 (ssescalarnum, ssedoublesizemode): Add AVX modes.
798 (vpermilbits): Remove.
799 (avx_vpermil<mode>): Change insns to expanders.
800 (*avx_vpermil<mode>): New. Use vec_select.
802 2009-11-22 Richard Earnshaw <rearnsha@arm.com>
804 * opts.c (decode_options): Don't enable flag_schedule_insns
805 when optimizing for size.
806 * doc/invoke.texi: Document change.
808 2009-11-22 Uros Bizjak <ubizjak@gmail.com>
811 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
812 of scratch register to SImode.
813 (*cmp_sadd_sidi): Ditto.
814 (*cmp_ssub_si): Ditto.
815 (*cmp_ssub_sidi): Ditto.
817 2009-11-21 Ian Lance Taylor <iant@google.com>
819 * Makefile.in (HOST_LIBS): Move higher in file.
820 (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
821 is not empty, set to $(CC) and $(CFLAGS).
823 2009-11-22 Martin Jambor <mjambor@suse.cz>
825 * tree-cfg.c (verify_types_in_gimple_reference): Error out on
826 V_C_E of an SSA_NAME or an invariant if lvalue is required.
827 (verify_gimple_call): Verify LHS also with with
828 verify_types_in_gimple_reference.
830 2009-11-21 Martin Jambor <mjambor@suse.cz>
833 * tree-sra.c (access_precludes_ipa_sra_p): New function.
834 (splice_param_accesses): Check all accesses by calling
835 access_precludes_ipa_sra_p.
836 (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
837 not convert types if it is true.
838 (sra_ipa_modify_assign): Convert types in case of mismatch.
840 2009-11-21 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
842 * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
845 2009-11-21 Adam Nemet <adambnemet@gmail.com>
847 * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
848 (mips_mulsidi3_gen_fn): Declare new function.
849 * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
850 * config/mips/mips.md (<u>mulsidi3): Change condition to use
851 mips_mulsidi3_gen_fn. Use mips_mulsidi3_gen_fn to generate the insn.
852 (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
853 (mulsidi3_64bit_dmul): New define_insn.
855 2009-11-21 Ben Elliston <bje@au.ibm.com>
857 * gengtype-lex.l: Enable noinput flex option.
858 (YY_NO_INPUT): Remove define.
860 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
862 * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
863 (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
864 (insert_debug_temps_for_defs): Handle PHI nodes.
865 * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
868 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
870 * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
871 after remove_phi_node.
873 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
875 PR tree-optimization/42078
876 * gimple.h (gimple_replace_lhs): New declaration.
877 * gimple.c (gimple_replace_lhs): New function.
878 * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
881 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
883 * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
884 (xop_mulv2div2di3_low): Same.
885 (*xop_pmacsdqh_mem): Same.
887 2009-11-20 Richard Henderson <rth@redhat.com>
889 * config/i386/i386-builtin-types.awk: New file.
890 * config/i386/i386-builtin-types.def: New file.
891 * config/i386/t-i386: Use them to build i386-builtin-types.inc.
892 * config/i386/i386.c: Include it.
893 (ix86_builtin_type_tab, ix86_get_builtin_type): New.
894 (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
895 (struct builtin_isa): Remove GTY marker. Replace tree type with
896 ix86_builtin_func_type; add set_and_not_built_p.
897 (def_builtin): Change type parameter to tcode; use
898 ix86_get_builtin_func_type; update all callers. Accept zero mask
899 to mean the builtin is unconditionally available.
900 (ix86_add_new_builtins): Use set_and_not_built_p instead of type
902 (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
903 Update some users to rationalized enumeration codes from new include.
904 (enum multi_arg_type): Remove. Replace all enumeration values
905 with defines to new ix86_builtin_func_type.
906 (ix86_init_mmx_sse_builtins): Don't build any types here. Defer
907 all type resolution to def_builtin.
908 (ix86_init_builtin_types): Split out from ...
909 (ix86_init_builtins): ... here. Use ix86_get_builtin_func_type.
911 2009-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
914 * config/rs6000/rs6000.c (struct machine_function): Revert
915 2009-10-23 change to set VRSAVE to non-0 if we use VSX.
916 (rs6000_expand_to_rtl_hook): Ditto.
917 (rs6000_check_vector_mode): Ditto.
918 (compute_vrsave_mask): Ditto.
920 2009-11-20 Paul Brook <paul@codesourcery.com>
922 * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
923 * config/arm/arm-cores.def: Add cortex-a5.
924 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
925 * config/arm/arm-tune.md: Regenerate.
927 2009-11-20 Olga Golovanevsky <olga@il.ibm.com>
930 * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
931 (ref_pos): New field in structure.
932 (insert_new_var_in_stmt): New function.
935 2009-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
937 * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
938 * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
939 (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
940 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
941 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
942 INT_LEAST64_TYPE): Define.
943 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
944 UINT_LEAST64_TYPE): Define.
945 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
946 INT_FAST64_TYPE): Define.
947 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
948 UINT_FAST64_TYPE): Define.
949 (INTPTR_TYPE, UINTPTR_TYPE): Define.
951 2009-11-20 Julian Brown <julian@codesourcery.com>
953 * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
954 specially for Thumb-1.
955 (ASM_OUTPUT_REG_POP): Likewise.
957 2009-11-19 Jason Merrill <jason@redhat.com>
959 * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
961 2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
962 Rafael Avila de Espindola <espindola@google.com>
964 * doc/plugins.texi (Plugin initialization): Added advices for
965 retrieving the version of GCC at plugin compilation and loading times.
967 2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
969 * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
970 (dump_active_plugins): output to file everything. Use
971 internationalized dump & FMT_FOR_PLUGIN_EVENT.
973 2009-11-19 Richard Guenther <rguenther@suse.de>
975 * gimple.c (canonicalize_cond_expr_cond): Strip conversions
976 around truth-valued expressions.
977 * tree.c (free_lang_data): Untangle check for LTO frontend.
979 2009-11-19 Jakub Jelinek <jakub@redhat.com>
981 * tree.c (need_assembler_name_p): Use cgraph_get_node instead
982 of cgraph_node_for_decl.
983 * cgraph.h (cgraph_node_for_decl): Remove prototype.
984 * cgraph.c (cgraph_node_for_decl): Remove.
985 (cgraph_get_node): Just return NULL if !cgraph_hash.
987 2009-11-19 Paul Brook <paul@codesourcery.com>
989 * config.gcc: Add new ARM --with-fpu options.
990 * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
991 * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
993 2009-11-18 Richard Guenther <rguenther@suse.de>
995 * gimple.h (union gimple_statement_d): Add gsmembase member.
996 (gimple_vuse_op): Use gsmembase for access.
997 (gimple_vdef_op): Likewise.
998 (gimple_vuse): Likewise.
999 (gimple_vdef): Likewise.
1000 (gimple_vuse_ptr): Likewise.
1001 (gimple_vdef_ptr): Likewise.
1002 (gimple_set_vuse): Likewise.
1003 (gimple_set_vdef): Likewise.
1004 * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
1006 2009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
1008 * doc/arm-neon-intrinsics.texi: Regenerated.
1010 2009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
1012 * config/arm/neon-docgen.ml (analyze_shape_elt): Handle alternatives.
1014 2009-11-18 Paul Brook <paul@codesourcery.com>
1015 Daniel Jacobowitz <dan@codesourcery.com>
1017 * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
1018 (arm_arch7em): New variable.
1019 (all_architectures): Add armv7e-m.
1020 (arm_override_options): Set arm_arch7em.
1021 * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
1022 Include arm_arch7em.
1023 (arm_arch7em): Declare.
1025 2009-11-18 Richard Guenther <rguenther@suse.de>
1027 * lto-streamer-in.c (input_gimple_stmt): Assert that we find
1028 a valid field decl if checking is enabled.
1030 2009-11-18 Martin Jambor <mjambor@suse.cz>
1032 * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
1033 (lto_ipa_fixup_call_notes): Declare.
1034 * ipa-prop.c (ipa_note_param_call): Store gimple uid.
1035 (update_call_notes_after_inlining): Copy call stmt uid to the new
1037 (ipa_write_param_call_note): New function.
1038 (ipa_read_param_call_note): New function
1039 (ipa_write_node_info): Write also param call notes. Removed a bogus
1040 comment, reformatted to fit 80 columns.
1041 (ipa_read_node_info): Read also param call notes. Removed a bogus
1042 comment. Remove ipa_edge_args_vector growth.
1043 (lto_ipa_fixup_call_notes): New function.
1044 * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
1045 * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
1046 inlining regardless of flag_wpa.
1047 (cgraph_decide_inlining_of_small_functions): Likewise.
1048 (cgraph_decide_inlining): Likewise.
1049 (inline_read_summary): Likewise.
1051 2009-11-18 Jan Hubicka <jh@suse.cz>
1053 * predict.c (compute_function_frequency): Export.
1054 * predict.h (compute_function_frequency): Declare.
1055 * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
1057 2009-11-18 Martin Jambor <mjambor@suse.cz>
1059 * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
1060 on all nodes we write summaries for.
1062 2009-11-18 Shujing Zhao <pearly.zhao@oracle.com>
1065 * params.def (PARAM_INLINE_UNIT_GROWTH, PARAM_IPCP_UNIT_GROWTH)
1066 (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
1067 (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
1068 (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
1069 (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
1070 (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
1071 (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
1074 2009-11-18 Jakub Jelinek <jakub@redhat.com>
1076 * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
1078 (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
1081 * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
1083 (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
1085 * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
1086 cgraph_materialize_all_clones): Handle same_body aliases.
1087 * cgraph.c (cgraph_allocate_node): New function.
1088 (cgraph_create_node): Use it.
1089 (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
1090 cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
1091 (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
1093 * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
1094 (input_node): Stream in same_body aliases.
1095 * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
1096 for same_body aliases.
1097 (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
1099 2009-11-18 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1102 * config/darwin.h: Use the extension stub libraries to access
1103 current libgcc_s features.
1105 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
1108 * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
1109 (vect_transform_loop): Call it.
1111 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
1113 * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
1116 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
1120 * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
1122 * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
1123 (try_generate_gimple_bb): Skip debug stmts when finding data refs.
1124 * sese.c (sese_build_liveouts_bb): Skip debug stmts.
1125 (sese_bad_liveouts_use): New.
1126 (sese_reset_debug_liveouts_bb): New.
1127 (sese_build_liveouts): Use it.
1128 (rename_variables_in_stmt): Reset debug stmts rather than creating
1130 (expand_scalar_variable_stmt): Likewise.
1132 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
1134 * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
1135 (df_ref_remove): Likewise.
1137 2009-11-17 Jan Hubicka <jh@suse.cz>
1139 * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
1142 2009-11-17 Eric Botcazou <ebotcazou@adacore.com>
1144 * toplev.c (process_options): Remove dead code.
1145 * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
1147 2009-11-17 Rafael Avila de Espindola <espindola@google.com>
1149 * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
1152 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1154 PR tree-optimization/41857
1155 * tree-ssa-address.c (move_hint_to_base): Use void pointer to
1156 TYPE's address space instead of pointer to TYPE.
1158 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1160 * reload.c (find_reloads_address): Fix typo.
1162 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1164 * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
1165 registers in leaf functions if possible.
1167 2009-11-17 Maxim Kuvyrkov <maxim@codesourcery.com>
1169 * config/m68k/m68k-devices.def: Add MCF5441x family.
1171 2009-11-17 Jan Hubicka <jh@suse.cz>
1173 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
1175 * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
1177 2009-11-17 Uros Bizjak <ubizjak@gmail.com>
1179 * config/i386/predicates.md (x86_64_szext_general_operand): Do not
1180 nest ior expressions.
1181 (x86_64_szext_nonmemory_operand): Ditto.
1182 (call_insn_operand): Ditto.
1184 2009-11-16 Alexandre Oliva <aoliva@redhat.com>
1186 * stmt.c (expand_asm_stmt): Get locus from stmt.
1188 2009-11-16 Alexandre Oliva <aoliva@redhat.com>
1190 * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
1191 Create the decl label for the new dest block on demand. Require
1192 a fallthrough edge if no asm labels were redirected.
1194 2009-11-16 Uros Bizjak <ubizjak@gmail.com>
1196 * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
1197 operand 1 predicate.
1198 (cstoresi4): Ditto for operand 2.
1199 (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
1200 patterns using SDWIM mode iterator.
1201 (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
1202 using SWIM mode iterator.
1203 (cmpdi_1): Rename from cmpdi_1_rex64.
1204 (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
1205 SWI48 mode iterator.
1206 (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn patterns
1207 using SWI mode iterator.
1208 (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
1209 (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
1210 (*cmpqi_ext_3_insn): Make private.
1211 (*cmpqi_ext_3_insn_rex64): Make private.
1212 (cmpstrnsi): Update for renamed cmpdi_1_rex64.
1213 * config/i386/predicates.md (cmpsi_operand): Remove.
1215 2009-11-16 Paul Brook <paul@codesourcery.com>
1217 * doc/invoke.texi: Document ARM VFPv4 based FPUs.
1218 * config/arm/arm.c (all_fpus): Add VFPv4 entries.
1220 2009-11-14 Jan Hubicka <jh@suse.cz>
1222 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
1224 * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
1225 zero out all callees.
1226 * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
1227 frequency and count match.
1228 * ipa-inline.c (update_noncloned_frequencies): New function.
1229 (cgraph_clone_inlined_nodes): Use it.
1230 * tree-inline.c (copy_bb): Fix frequency scaling; output
1231 diagnostic on frequency mismatches to dump file.
1232 (initialize_cfun): Do not scale frequency; fix count scaling;
1233 initialize entry and exit block frequencies; copy profile info.
1234 (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
1235 (copy_body): Use frequency_scale as argument.
1236 (expand_call_inline): Compute frequency scale and output diagnostic
1238 (delete_unreachable_blocks_update_callgrah): Remove checking that
1239 has to be done after edge redirection.
1240 (tree_function_versioning): Update initialize_cfun and copy_body call.
1242 2009-11-14 Jan Hubicka <jh@suse.cz>
1244 * cgraph.c (cgraph_release_function_body): Update use of
1245 ipa_transforms_to_apply.
1246 (cgraph_remove_node): Remove ipa_transforms_to_apply.
1247 * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
1248 * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
1250 (cgraph_materialize_clone): Remove original if dead.
1251 * lto-streamer-in.c (lto_read_body): Remove FIXME and
1252 ipa_transforms_to_apply hack.
1253 * function.h (struct function): Add ipa_transforms_to_apply.
1254 * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
1255 * tree-inline.c (copy_bb): Update sanity check.
1256 (initialize_cfun): Do not copy ipa_transforms_to_apply.
1257 (expand_call_inline): remove dead clone originals.
1258 (tree_function_versioning): Merge transformation queues.
1259 * passes.c (add_ipa_transform_pass): Remove.
1260 (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
1262 (execute_all_ipa_transforms): Update.
1263 (execute_one_pass): Update.
1265 2009-11-14 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
1267 PR target/21078, 21080
1268 * config/avr/avr.c (avr_return_addr_rtx): New function for
1269 builtin_return_address.
1270 (expand_prologue): Calculate stack usage.
1271 (avr_asm_function_end_prologue): Output stack size and offset label.
1272 * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
1273 (machine_function): Add stack_usage.
1274 * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
1276 2009-11-14 Anatoly Sokolov <aesok@post.ru>
1278 * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
1279 new 'outgoing' argument.
1280 (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
1281 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1282 * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
1283 iq2000_function_value_regno_p.
1284 (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1285 * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
1288 2009-11-14 Richard Earnshaw <rearnsha@arm.com>
1291 * arm.md (adddi_sesidi_di): Place tied contraint first.
1292 (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
1293 (subdi_zesidi_di, subdi_sesidi_di): Likewise.
1294 (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
1295 (mulsi3addsi, mulsi3addsi_compare0): Likewise.
1296 (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
1297 (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
1298 (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
1299 (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
1300 (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
1302 2009-11-14 Uros Bizjak <ubizjak@gmail.com>
1304 * config/i386/predicates.md (call_register_no_elim_operand):
1305 New predicate. Reject stack register as valid call operand
1307 (call_insn_operand): Use call_register_no_elim_operand.
1309 2009-11-13 Richard Henderson <rth@redhat.com>
1311 * function.c (stack_protect_prologue): Don't bypass expand_expr
1312 for stack_protect_guard and guard_decl.
1313 (stack_protect_epilogue): Likewise.
1315 2009-11-13 Jan Hubicka <jh@suse.cz>
1317 * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
1318 when to PUBLIC is set.
1320 2009-11-13 Jakub Jelinek <jakub@redhat.com>
1323 * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
1326 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
1329 * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
1330 *call_value_1): Use "lsm" as operand 1 constraint.
1331 * config/i386/predicates.md (call_insn_operand): Depend on
1332 index_register_operand to avoid %esp register.
1334 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
1337 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
1340 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
1341 (TARGET_CALL_ESP): New define.
1342 * config/i386/i386.c (initial_ix86_tune_features): Initialize
1344 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
1345 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
1346 *call_1, *call_value_pop_1 and *call_value_1. Depend on
1348 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
1349 New patterns, use "lsm" as operand 1 constraint.
1350 * config/i386/predicates.md (call_insn_operand): Depend on
1351 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
1353 2009-11-13 Jason Merrill <jason@redhat.com>
1356 * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
1357 Don't emit a second declaration at any scope.
1359 2009-11-13 Andrey Belevantsev <abel@ispras.ru>
1361 PR rtl-optimization/41697
1362 * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
1363 a conditional jump has a single successor.
1365 2009-11-13 Andrey Belevantsev <abel@ispras.ru>
1367 * sched-deps.c (init_deps): New parameter lazy_reg_last. Don't
1368 allocate reg_last when in case lazy_reg_last is true.
1369 (init_deps_reg_last): New.
1370 (free_deps): When max_reg is 0, this context is already freed.
1371 * sched-int.h (init_deps_reg_last): Export.
1372 (init_deps): Update prototype.
1373 * sched-ebb.c (schedule_ebb): Update the call to init_deps.
1374 * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
1375 * ddg.c (build_intra_loop_deps): Likewise.
1376 * sel-sched-ir.c (copy_deps_context, create_deps_context,
1377 reset_deps_context, deps_init_id): Likewise.
1378 (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
1379 (free_data_for_scheduled_insn): New, break down from ...
1380 (free_first_time_insn_data): ... here.
1381 (has_dependence_p): Allocate reg_last now, when it is needed.
1382 (extend_insn_data): When maximal LUID is big enough, allocate
1383 per-insn data in smaller chunks.
1384 * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
1385 * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
1388 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
1390 * config/i386/i386.md (call_value): Fix comment.
1391 (sibcall_value): Ditto.
1393 2009-11-13 Eric Botcazou <ebotcazou@adacore.com>
1395 * config/i386/linux-unwind.h (x86_frob_update_context): New function.
1396 (MD_FROB_UPDATE_CONTEXT): Define.
1398 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
1399 Laurent GUERBY <laurent@guerby.net>
1401 * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
1402 Do not schedule an %sp restore. Compensate for RETURN_ADDR_OFFSET.
1403 (sparc_fallback_frame_state): Tidy. Compensate for RETURN_ADDR_OFFSET.
1405 2009-11-12 Jan Hubicka <jh@suse.cz>
1407 * ipa.c (function_and_variable_visibility): Fix my accidentail commit
1408 and clear DECL_COMMON on localized declarations.
1410 2009-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
1413 * regrename.c (struct du_head): New structure; some elements moved
1415 (struct du_chain): ... this one.
1416 (open_chains, closed_chains): Now of type struct du_head *.
1417 (do_replace): Accept du_head argument, not du_chain. All callers
1418 changed. Modified code to match new data structures.
1419 (build_def_use): Return a list of du_head structures. Modified code
1420 to match new data structures.
1421 (dump_def_use_chain): Accept du_head argument, not du_chain. All
1422 callers changed. Modified code to match new data structures.
1423 (merge_overlapping_regs): Accept du_head argument, not du_chain. All
1424 callers changed. Modified code to match new data structures.
1425 (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
1426 Allocate a du_head structure as well as a du_chain when creating a
1427 new chain. Modified other code to match new data structures.
1429 2009-11-12 Jan Hubicka <jh@suse.cz>
1431 * cgraph.h (varpool_node_name): Declare.
1432 * cgraphunit.c (process_function_and_variable_attributes): Set
1433 force_output flag on used variables.
1434 * ipa.c (function_and_variable_visibility): Dump externally visible
1435 and needed variables.
1436 * varpool.c (varpool_node_name): Export.
1437 (decide_is_variable_needed): Check COMDAT for externally visible vars;
1440 2009-11-12 Uros Bizjak <ubizjak@gmail.com>
1443 * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
1444 processing if XEXP (x, i) is NULL.
1446 2009-11-12 Jan Hubicka <jh@suse.cz>
1448 * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
1449 imply PUBLIC || EXTERNAL.
1451 2009-11-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
1454 * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
1455 single successor block, ending with jump created by RTL expander.
1457 2009-11-11 Jan Hubicka <jh@suse.cz>
1460 * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
1461 and WEAK variables at -fwhole-program.
1464 * ipa.c (whole_program_function_and_variable_visility): COMDAT
1465 functions/variables are not needed even if they are externally visible.
1467 2009-11-11 Jan Hubicka <jh@suse.cz>
1469 (patch by Richard Guenther)
1470 * lto-streamer-out.c (output_function): Output head of argument list
1472 * lto-streamer-in.c (input_function): Re-map arguments into merged
1475 2009-11-11 Jan Hubicka <jh@suse.cz>
1477 * lto-cgraph.c: Include gcov-io.h
1478 (output_profile_summary): New function.
1479 (output_cgraph): Use it.
1480 (input_profile_summary): New function.
1481 (input_cgraph): Use it.
1482 * coverage.c (build_ctr_info_value): Use varpool; initalize
1483 DECL_ASSEMBLER_NAME.
1484 (create_coverage): Likewise.
1485 * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
1486 (tree_init_edge_profiler): Likewise.
1487 * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
1489 2009-11-11 Kai Tietz <kai.tietz@onevision.com>
1491 * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
1492 * c-pragma.c (def_pragma_macro_value): Likewise.
1493 (def_pragma_macro): Likewise.
1494 (pushed_macro_table): Likewise.
1495 (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
1496 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
1498 2009-11-11 Basile Starynkevitch <basile@starynkevitch.net>
1500 * doc/plugins.texi (Registering custom attributes): section
1501 renamed as (Registering custom attributes or pragmas).
1502 Mentions custom attributes & pragmas, and c_register_pragma, with
1504 * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
1506 * doc/extend.texi (Function Attributes): Mentions that plugin can
1507 provide their attributes.
1509 2009-11-11 Jon Beniston <jon@beniston.com>
1511 * config.gcc: Add lm32 elf and uclinux targets.
1512 * config/lm32: New directory.
1513 * config/lm32/lm32.c: New file.
1514 * config/lm32/lm32.h: New file.
1515 * config/lm32/lm32.md: New file.
1516 * config/lm32/lm32.opt: New file.
1517 * config/lm32/lm32-protos.h: New file.
1518 * config/lm32/constraints.md: New file.
1519 * config/lm32/predicates.md: New file.
1520 * config/lm32/sfp-machine.h: New file.
1521 * config/lm32/t-fprules-softfp: New file.
1522 * config/lm32/uclinux-elf.h: New file.
1523 * doc/invoke.texi: Document lm32 options.
1524 * doc/contrib.texi: Document lm32 porter.
1525 * doc/install.texi: Document lm32 targets.
1527 2009-11-11 Martin Jambor <mjambor@suse.cz>
1530 * ipa-prop.c (ipa_update_after_lto_read): Call
1531 ipa_check_create_node_params and ipa_check_create_edge_args. Also
1532 call ipa_initialize_node_params instead of ipa_populate_param_decls.
1534 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
1536 * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
1537 (neon_expand_vector_init): Use them. Also handle non-constant
1538 vectors with identical elements and vectors with only one
1539 non-constant element.
1540 (arm_print_operand): Handle 'y' modifier.
1541 * config/arm/arm-protos.h (neon_make_constant): Declare.
1542 * config/arm/neon.md (neon_vdup_n<mode>): Split into two
1543 patterns. Use VX instead of VDQW for the first one. Allow
1544 a VFP alternative and V32 modes for the second one.
1545 * config/arm/neon.ml (shape_elt): Add Alternatives.
1546 (ops): Use Alternatives for vdup lane instructions.
1547 * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
1548 * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
1550 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
1552 * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
1554 (movti, mov<mode>): Call force_reg on one operand if required.
1555 * config/arm/vec-common.md (mov<mode>): Likewise.
1557 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
1559 * config/arm/arm.c (arm_override_options): Enable scheduling for
1562 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
1566 * expr.h (anti_adjust_stack_and_probe): Declare.
1567 * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
1568 parameter and rewrite head comment.
1569 (allocate_dynamic_stack_space): Adjust call to above function.
1570 * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
1572 * tree.h (dwarf2out_args_size): Delete.
1573 * dwarf2out.c (dwarf2out_args_size): Make static and move around.
1574 (dwarf2out_args_size_adjust): Delete prototype and move around.
1575 (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
1576 ACCUMULATE_OUTGOING_ARGS targets.
1578 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
1580 * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
1581 DECL_SIZE of DECL_RESULT before evaluating it.
1583 2009-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1585 PR tree-optimization/41987
1586 * fold-const.c (const_binop): Avoid using fold_buildN().
1588 2009-11-10 Martin Jambor <mjambor@suse.cz>
1590 * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
1591 (execute_all_ipa_stmt_fixups): Declare.
1592 * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
1593 * ipa-inline.c (pass_ipa_inline): Likewise.
1594 * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
1595 * ipa-reference.c (pass_ipa_reference): Likewise.
1596 * ipa.c (pass_ipa_whole_program_visibility): Likewise.
1597 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
1598 (pass_ipa_lto_finish_out): Likewise.
1599 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
1600 * passes.c (execute_ipa_stmt_fixups): New function.
1601 (execute_all_ipa_stmt_fixups): New function.
1602 * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
1604 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
1607 * explow.c (probe_stack_range): Fix typo.
1608 * config/sparc/sparc.md (probe_stack): New expander.
1610 2009-11-09 Dave Korn <dave.korn.cygwin@gmail.com>
1612 * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
1614 2009-11-09 Jason Merrill <jason@redhat.com>
1616 * gdbinit.in (pgq): New function for printing gimple sequence.
1618 2009-11-09 Paul Brook <paul@codesourcery.com>
1619 Daniel Jacobowitz <dan@codesourcery.com>
1620 Sandra Loosemore <sandra@codesourcery.com>
1622 * doc/extend.texi (Half-Precision): Update wording to reflect
1623 that there are now multiple -mfpu options that enable fp16
1625 * doc/invoke.texi: Update list of ARM -mfpu= options.
1626 * config.gcc: Update ARM --with-fpu option list.
1627 * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
1628 vfpv3xd and vfpv3xd-fp16.
1629 (use_vfp_abi): New function.
1630 (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
1632 (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
1633 aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
1634 (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
1635 arm_9e_rtx_costs): Only expect double-precision operations if the FPU
1637 (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
1639 (arm_print_operand): Handle 'p' modifier.
1640 (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
1642 * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
1643 (TARGET_FP16): Define.
1644 * config/arm/vfp.md: Disable double-precision patterns if the FPU
1645 does not provide them.
1646 (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
1647 double-precision values on a single-precision FPU.
1648 (movdf_vfp, thumb2_movdf_vfp): Likewise. Use "Dy" for
1649 double-precision constants.
1650 (movhf_vfp_neon): New pattern (was movhf_vfp).
1651 (movhf_vfp): Remove NEON instructions.
1652 * config/arm/constraints.md: Add new "Dy" constraint for
1653 double-precision constants. Update description of "Dv".
1654 * config/arm/arm.md: Disable double-precision patterns if the FPU
1655 does not provide them
1657 2009-11-09 Jakub Jelinek <jakub@redhat.com>
1659 * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
1660 (print_operand) <case 'Y'>: Likewise. Fix a pasto in operand lossage
1663 2009-11-08 H.J. Lu <hongjiu.lu@intel.com>
1665 * collect2.c (main): Search PLUGIN_LD for plugin linker.
1667 * configure.ac (--with-plugin-ld): New. Default to ld.
1668 * configure: Regenerated.
1669 * config.in: Likewise.
1671 * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
1672 (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
1674 2009-11-08 Jonathan Gray <jsg@openbsd.org>
1676 * config/openbsd-stdint.h: Change to reflect what
1677 c_common_nodes_and_builtins expects.
1679 2009-11-08 Paolo Carlini <paolo.carlini@oracle.com>
1681 * builtins.c (apply_args_reg_offset): Remove commented out delaration.
1683 2009-11-08 Jakub Jelinek <jakub@redhat.com>
1686 * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
1687 function contains at least one local dynamic name.
1688 (print_operand) <case '&'>: Instead output operand lossage diagnostics
1689 here if that happens.
1691 2009-11-08 Zbigniew Chamski <zbigniew.chamski@gmail.com>
1692 Joern Rennecke <amylaar@spamcop.net>
1694 * cfgrtl.c (pass_free_cfg): Add pass name.
1695 * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
1696 (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
1697 * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
1698 * df-core.c (pass_df_initialize_no_opt): Likewise.
1699 * except.c (pass_rtl_eh): Likewise.
1700 * function.c (pass_init_function, pass_leaf_regs): Likewise.
1701 * gcse.c (pass_rtl_pre): Change pass name.
1702 * passes.c (pass_postreload): Add pass name.
1703 (make_pass_instance): Don't use duplicate-tracking logic for
1704 names starting with '*'.
1705 (next_pass_1): Assert that pass has a name.
1706 (register_one_dump_file): If there is an space in the name,
1708 * predict.c (pass_strip_predict_hints): Add pass name.
1709 * reg-stack.c (pass_stack_regs): Likewise.
1710 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
1711 * tree-cfg.c (pass_warn_function_return,
1712 pass_warn_function_noreturn): Add pass name.
1713 * tree-dfa.c (pass_referenced_vars): Likewise.
1714 * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
1715 Fix whitespace before comment.
1716 (pass_fixup_cfg): Add pass name, fix whitespace before comment.
1717 (pass_init_datastructures): Add pass name.
1718 * tree-ssa-loop.c (pass_record_bounds): Likewise.
1719 * tree-ssa.c (pass_early_warn_uninitialized,
1720 pass_late_warn_uninitialized): Likewise.
1721 * tree.c (pass_ipa_free_lang_data): Likewise.
1722 * doc/passes.texi (pass manager): Document how to disambiguate
1725 2009-11-08 Paolo Bonzini <bonzini@gnu.org>
1727 * df-problems.c: Fix documentation for forward simulation of LR.
1728 (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
1729 (df_simulate_finalize_forwards): Remove.
1730 * df.h (df_simulate_finalize_forwards): Remove.
1732 2009-11-08 Richard Guenther <rguenther@suse.de>
1734 * tree-ssa-structalias.c (build_succ_graph): Properly make
1735 variables escape if they are stored to anything.
1737 2009-11-08 Richard Guenther <rguenther@suse.de>
1739 PR rtl-optimization/41928
1740 * loop-invariant.c (free_loop_data): If we didn't allocate
1741 loop data do not try to free it.
1743 2009-11-07 Jason Merrill <jason@redhat.com>
1745 * tree.c (reconstruct_complex_type): Preserve attributes.
1747 2009-11-07 Richard Guenther <rguenther@suse.de>
1749 * tree-ssa-structalias.c (build_succ_graph): Feed stores
1750 to anything only to variables that can take pointers.
1751 (get_constraint_for_ssa_var): Properly exclude full
1752 variables from expanding.
1753 (first_vi_for_offset): Avoid overflow in arithmetic.
1754 (first_or_preceding_vi_for_offset): Likewise.
1755 (count_num_arguments): Fix implementation.
1756 (gate_ipa_pta): Do not run when not optimizing.
1758 2009-11-07 David Binderman <dcb314@hotmail.com>
1760 * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
1761 expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
1762 set but not used variables.
1763 (apply_args_reg_offset): Comment out as unused.
1764 * calls.c (flags_from_decl_or_type): Likewise.
1765 * genautomata.c (check_regexp_units_distribution): Likewise.
1767 2009-11-07 Uros Bizjak <ubizjak@gmail.com>
1769 * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
1770 xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
1771 *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
1772 xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
1773 xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
1774 xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
1775 operand alternatives.
1777 2009-11-06 Michael Matz <matz@suse.de>
1780 * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
1781 of a potential reciprocal to really be reciprocals.
1783 2009-11-06 Jakub Jelinek <jakub@redhat.com>
1785 * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
1786 lwpintrin.h after immintrin.h.
1787 * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
1791 * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
1792 or non-constant index, allow index one past the last element and
1793 allow exceeding array bound in arrays that might be used as flexible
1796 2009-11-05 Richard Henderson <rth@redhat.com>
1798 * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
1800 2009-11-05 Paul Brook <paul@codesourcery.com>
1802 * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
1803 (arm_fpu_desc): New.
1804 (all_fpus): Add FPU details.
1805 (fp_model_for_fpu): Remove.
1806 (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
1807 (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
1808 (arm_file_start): Use arm_fpu_desc.
1809 * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
1810 TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
1812 (TARGET_FPA_EMU2): Define.
1813 (arm_fp_model, fputype, arm_fpu_tune): Remove.
1814 (vfp_reg_type, arm_fpu_desc): New.
1815 * config/arm/arm.md (attr fpu): Simplify.
1816 * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
1817 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
1818 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
1819 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
1820 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
1822 2009-11-05 Michael Matz <matz@suse.de>
1824 * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
1826 * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
1829 2009-11-04 Jason Merrill <jason@redhat.com>
1832 * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
1833 or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
1834 (output_constant): Avoid crash after error.
1836 2009-11-05 Martin Jambor <mjambor@suse.cz>
1838 * tree-sra.c (struct access): Changed comment of next_sibling field.
1839 (analyze_modified_params): Loop over accesses of a group rather than
1840 over all with the ame base, pass a common bitmap to
1842 (unmodified_by_ref_scalar_representative): Build link lists of
1843 accesses of a group.
1844 (splice_param_accesses): Likewise.
1846 2009-11-04 Kenneth Zadeck <zadeck@naturalbridge.com>
1848 * df-scan.c (df-uses-record): Add case zero_extract of mem.
1850 2009-11-04 Eric Botcazou <ebotcazou@adacore.com>
1854 * config/i386/i386.md (probe_stack): New expander.
1855 (logical operation peepholes): Do not split stack checking probes.
1857 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
1858 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
1860 * doc/invoke.texi (-mlwp): Add documentation.
1861 * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
1862 * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
1863 (x86_64-*-*): Ditto.
1864 * config/i386/lwpintrin.h: New file, provide x86 compiler
1865 intrinisics for LWP.
1866 * config/i386/cpuid.h (bit_LWP): Define LWP bit.
1867 * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
1868 * config/i386/i386-c.c (ix86_target_macros_internal): Check
1870 * config/i386/i386.h (TARGET_LWP): New macro for LWP.
1871 * config/i386/i386.opt (-mlwp): New switch for LWP support.
1872 * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
1873 (OPTION_MASK_ISA_LWP_UNSET): New.
1874 (ix86_handle_option): Handle -mlwp.
1875 (isa_opts): Handle -mlwp.
1876 (enum pta_flags): Add PTA_LWP.
1877 (override_options): Add LWP support.
1878 (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
1879 (IX86_BUILTIN_LLWPCB32): Ditto.
1880 (IX86_BUILTIN_LLWPCB64): Ditto.
1881 (IX86_BUILTIN_SLWPCB16): Ditto.
1882 (IX86_BUILTIN_SLWPCB32): Ditto.
1883 (IX86_BUILTIN_SLWPCB64): Ditto.
1884 (IX86_BUILTIN_LWPVAL16): Ditto.
1885 (IX86_BUILTIN_LWPVAL32): Ditto.
1886 (IX86_BUILTIN_LWPVAL64): Ditto.
1887 (IX86_BUILTIN_LWPINS16): Ditto.
1888 (IX86_BUILTIN_LWPINS32): Ditto.
1889 (IX86_BUILTIN_LWPINS64): Ditto.
1890 (enum ix86_special_builtin_type): Add LWP intrinsic support.
1891 (builtin_description): Ditto.
1892 (ix86_init_mmx_sse_builtins): Ditto.
1893 (ix86_expand_special_args_builtin): Ditto.
1894 * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
1896 (UNSPEC_SLWP_INTRINSIC): Ditto.
1897 (UNSPECV_LWPVAL_INTRINSIC): Ditto.
1898 (UNSPECV_LWPINS_INTRINSIC): Ditto.
1899 (lwp_llwpcbhi1): New lwp pattern.
1900 (lwp_llwpcbsi1): Ditto.
1901 (lwp_llwpcbdi1): Ditto.
1902 (lwp_slwpcbhi1): Ditto.
1903 (lwp_slwpcbsi1): Ditto.
1904 (lwp_slwpcbdi1): Ditto.
1905 (lwp_lwpvalhi3): Ditto.
1906 (lwp_lwpvalsi3): Ditto.
1907 (lwp_lwpvaldi3): Ditto.
1908 (lwp_lwpinshi3): Ditto.
1909 (lwp_lwpinssi3): Ditto.
1910 (lwp_lwpinsdi3): Ditto.
1912 2009-11-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
1913 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
1916 * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
1919 2009-11-04 Richard Guenther <rguenther@suse.de>
1920 Rafael Avila de Espindola <espindola@google.com>
1922 * gcc.c (process_command): Handle arguments name@offset.
1924 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
1925 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
1927 * config.gcc (i[34567]86-*-*): Include xopintrin.h.
1928 (x86_64-*-*): Ditto.
1929 * config/i386/xopintrin.h: New file, provide common x86 compiler
1930 intrinisics for XOP.
1931 * config/i386/cpuid.h (bit_XOP): Define XOP bit.
1932 * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
1933 * config/i386/i386-c.c(ix86_target_macros_internal): Check
1935 * config/i386/i386.h(TARGET_XOP): New macro for XOP.
1936 * config/i386/i386.opt (-mxop): New switch for XOP support.
1937 * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
1938 (UNSPEC_XOP_TRUEFALSE)
1939 (UNSPEC_XOP_PERMUTE)
1940 (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
1941 (PPERM_*): New constants for vpperm instruction.
1942 (xop_pcmov_<mode>): Add XOP conditional mov instructions.
1943 * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
1944 (OPTION_MASK_ISA_XOP_UNSET): New.
1945 (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
1946 (ix86_handle_option): Handle -mxop.
1947 (isa_opts): Handle -mxop.
1948 (enum pta_flags): Add PTA_XOP.
1949 (override_options): Add XOP support.
1950 (print_operand): Add code for XOP compare instructions.
1951 (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
1952 (ix86_expand_int_vcond): Extend for XOP compare instruction.
1954 (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
1955 (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
1956 (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
1957 (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
1958 (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
1959 (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
1960 (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
1962 (IX86_BUILTIN_VPCMOV256): Ditto.
1963 (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
1964 (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
1965 (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
1966 (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
1967 (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
1968 (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
1970 (IX86_BUILTIN_VPPERM): Ditto.
1972 (IX86_BUILTIN_VPMACSSWW): Ditto.
1973 (IX86_BUILTIN_VPMACSWW): Ditto.
1974 (IX86_BUILTIN_VPMACSSWD): Ditto.
1975 (IX86_BUILTIN_VPMACSWD): Ditto.
1976 (IX86_BUILTIN_VPMACSSDD): Ditto.
1977 (IX86_BUILTIN_VPMACSDD): Ditto.
1978 (IX86_BUILTIN_VPMACSSDQL): Ditto.
1979 (IX86_BUILTIN_VPMACSSDQH): Ditto.
1980 (IX86_BUILTIN_VPMACSDQL): Ditto.
1981 (IX86_BUILTIN_VPMACSDQH): Ditto.
1982 (IX86_BUILTIN_VPMADCSSWD): Ditto.
1983 (IX86_BUILTIN_VPMADCSWD): Ditto.
1985 (IX86_BUILTIN_VPHADDBW): Ditto.
1986 (IX86_BUILTIN_VPHADDBD): Ditto.
1987 (IX86_BUILTIN_VPHADDBQ): Ditto.
1988 (IX86_BUILTIN_VPHADDWD): Ditto.
1989 (IX86_BUILTIN_VPHADDWQ): Ditto.
1990 (IX86_BUILTIN_VPHADDDQ): Ditto.
1991 (IX86_BUILTIN_VPHADDUBW): Ditto.
1992 (IX86_BUILTIN_VPHADDUBD): Ditto.
1993 (IX86_BUILTIN_VPHADDUBQ): Ditto.
1994 (IX86_BUILTIN_VPHADDUWD): Ditto.
1995 (IX86_BUILTIN_VPHADDUWQ): Ditto.
1996 (IX86_BUILTIN_VPHADDUDQ): Ditto.
1997 (IX86_BUILTIN_VPHSUBBW): Ditto.
1998 (IX86_BUILTIN_VPHSUBWD): Ditto.
1999 (IX86_BUILTIN_VPHSUBDQ): Ditto.
2001 (IX86_BUILTIN_VPROTB): Ditto.
2002 (IX86_BUILTIN_VPROTW): Ditto.
2003 (IX86_BUILTIN_VPROTD): Ditto.
2004 (IX86_BUILTIN_VPROTQ): Ditto.
2005 (IX86_BUILTIN_VPROTB_IMM): Ditto.
2006 (IX86_BUILTIN_VPROTW_IMM): Ditto.
2007 (IX86_BUILTIN_VPROTD_IMM): Ditto.
2008 (IX86_BUILTIN_VPROTQ_IMM): Ditto.
2010 (IX86_BUILTIN_VPSHLB): Ditto.
2011 (IX86_BUILTIN_VPSHLW): Ditto.
2012 (IX86_BUILTIN_VPSHLD): Ditto.
2013 (IX86_BUILTIN_VPSHLQ): Ditto.
2014 (IX86_BUILTIN_VPSHAB): Ditto.
2015 (IX86_BUILTIN_VPSHAW): Ditto.
2016 (IX86_BUILTIN_VPSHAD): Ditto.
2017 (IX86_BUILTIN_VPSHAQ): Ditto.
2019 (IX86_BUILTIN_VFRCZSS): Ditto.
2020 (IX86_BUILTIN_VFRCZSD): Ditto.
2021 (IX86_BUILTIN_VFRCZPS): Ditto.
2022 (IX86_BUILTIN_VFRCZPD): Ditto.
2023 (IX86_BUILTIN_VFRCZPS256): Ditto.
2024 (IX86_BUILTIN_VFRCZPD256): Ditto.
2026 (IX86_BUILTIN_VPCOMEQUB): Ditto.
2027 (IX86_BUILTIN_VPCOMNEUB): Ditto.
2028 (IX86_BUILTIN_VPCOMLTUB): Ditto.
2029 (IX86_BUILTIN_VPCOMLEUB): Ditto.
2030 (IX86_BUILTIN_VPCOMGTUB): Ditto.
2031 (IX86_BUILTIN_VPCOMGEUB): Ditto.
2032 (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
2033 (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
2035 (IX86_BUILTIN_VPCOMEQUW): Ditto.
2036 (IX86_BUILTIN_VPCOMNEUW): Ditto.
2037 (IX86_BUILTIN_VPCOMLTUW): Ditto.
2038 (IX86_BUILTIN_VPCOMLEUW): Ditto.
2039 (IX86_BUILTIN_VPCOMGTUW): Ditto.
2040 (IX86_BUILTIN_VPCOMGEUW): Ditto.
2041 (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
2042 (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
2044 (IX86_BUILTIN_VPCOMEQUD): Ditto.
2045 (IX86_BUILTIN_VPCOMNEUD): Ditto.
2046 (IX86_BUILTIN_VPCOMLTUD): Ditto.
2047 (IX86_BUILTIN_VPCOMLEUD): Ditto.
2048 (IX86_BUILTIN_VPCOMGTUD): Ditto.
2049 (IX86_BUILTIN_VPCOMGEUD): Ditto.
2050 (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
2051 (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
2053 (IX86_BUILTIN_VPCOMEQUQ): Ditto.
2054 (IX86_BUILTIN_VPCOMNEUQ): Ditto.
2055 (IX86_BUILTIN_VPCOMLTUQ): Ditto.
2056 (IX86_BUILTIN_VPCOMLEUQ): Ditto.
2057 (IX86_BUILTIN_VPCOMGTUQ): Ditto.
2058 (IX86_BUILTIN_VPCOMGEUQ): Ditto.
2059 (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
2060 (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
2062 (IX86_BUILTIN_VPCOMEQB): Ditto.
2063 (IX86_BUILTIN_VPCOMNEB): Ditto.
2064 (IX86_BUILTIN_VPCOMLTB): Ditto.
2065 (IX86_BUILTIN_VPCOMLEB): Ditto.
2066 (IX86_BUILTIN_VPCOMGTB): Ditto.
2067 (IX86_BUILTIN_VPCOMGEB): Ditto.
2068 (IX86_BUILTIN_VPCOMFALSEB): Ditto.
2069 (IX86_BUILTIN_VPCOMTRUEB): Ditto.
2071 (IX86_BUILTIN_VPCOMEQW): Ditto.
2072 (IX86_BUILTIN_VPCOMNEW): Ditto.
2073 (IX86_BUILTIN_VPCOMLTW): Ditto.
2074 (IX86_BUILTIN_VPCOMLEW): Ditto.
2075 (IX86_BUILTIN_VPCOMGTW): Ditto.
2076 (IX86_BUILTIN_VPCOMGEW): Ditto.
2077 (IX86_BUILTIN_VPCOMFALSEW): Ditto.
2078 (IX86_BUILTIN_VPCOMTRUEW): Ditto.
2080 (IX86_BUILTIN_VPCOMEQD): Ditto.
2081 (IX86_BUILTIN_VPCOMNED): Ditto.
2082 (IX86_BUILTIN_VPCOMLTD): Ditto.
2083 (IX86_BUILTIN_VPCOMLED): Ditto.
2084 (IX86_BUILTIN_VPCOMGTD): Ditto.
2085 (IX86_BUILTIN_VPCOMGED): Ditto.
2086 (IX86_BUILTIN_VPCOMFALSED): Ditto.
2087 (IX86_BUILTIN_VPCOMTRUED): Ditto.
2089 (IX86_BUILTIN_VPCOMEQQ): Ditto.
2090 (IX86_BUILTIN_VPCOMNEQ): Ditto.
2091 (IX86_BUILTIN_VPCOMLTQ): Ditto.
2092 (IX86_BUILTIN_VPCOMLEQ): Ditto.
2093 (IX86_BUILTIN_VPCOMGTQ): Ditto.
2094 (IX86_BUILTIN_VPCOMGEQ): Ditto.
2095 (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
2096 (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
2098 (enum multi_arg_type): New enum for describing the various XOP
2099 intrinsic argument types.
2100 (bdesc_multi_arg): New table for XOP intrinsics.
2101 (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
2102 (ix86_expand_multi_arg_builtin): New function for creating XOP
2105 * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
2106 (xop_pmacsww): Ditto.
2107 (xop_pmacssww): Ditto.
2108 (xop_pmacsdd): Ditto.
2109 (xop_pmacssdd): Ditto.
2110 (xop_pmacssdql): Ditto.
2111 (xop_pmacssdqh): Ditto.
2112 (xop_pmacsdql): Ditto.
2113 (xop_pmacsdql_mem): Ditto.
2114 (xop_mulv2div2di3_low): Ditto.
2115 (xop_pmacsdqh): Ditto.
2116 (xop_pmacsdqh_mem): Ditto.
2117 (xop_mulv2div2di3_high): Ditto.
2118 (xop_pmacsswd): Ditto.
2119 (xop_pmacswd): Ditto.
2120 (xop_pmadcsswd): Ditto.
2121 (xop_pmadcswd): Ditto.
2122 (xop_pcmov_<mode>): Ditto.
2123 (xop_pcmov_<mode>256): Ditto.
2124 (xop_phaddbw): Ditto.
2125 (xop_phaddbd): Ditto.
2126 (xop_phaddbq): Ditto.
2127 (xop_phaddwd): Ditto.
2128 (xop_phaddwq): Ditto.
2129 (xop_phadddq): Ditto.
2130 (xop_phaddubw): Ditto.
2131 (xop_phaddubd): Ditto.
2132 (xop_phaddubq): Ditto.
2133 (xop_phadduwd): Ditto.
2134 (xop_phadduwq): Ditto.
2135 (xop_phaddudq): Ditto.
2136 (xop_phsubbw): Ditto.
2137 (xop_phsubwd): Ditto.
2138 (xop_phsubdq): Ditto.
2140 (rotl<mode>3): Ditto.
2141 (rotr<mode>3): Ditto.
2142 (xop_rotl<mode>3): Ditto.
2143 (xop_rotr<mode>3): Ditto.
2144 (vrotr<mode>3): Ditto.
2145 (vrotl<mode>3): Ditto.
2146 (xop_vrotl<mode>3): Ditto.
2147 (vlshr<mode>3): Ditto.
2148 (vashr<mode>3): Ditto.
2150 (xop_ashl<mode>3): Ditto.
2151 (xop_lshl<mode>3): Ditto.
2152 (ashlv16qi3): Ditto.
2153 (lshlv16qi3): Ditto.
2154 (ashrv16qi3): Ditto.
2156 (xop_frcz<mode>2): Ditto.
2157 (xop_vmfrcz<mode>2): Ditto.
2158 (xop_frcz<mode>2256): Ditto.
2159 (xop_maskcmp<mode>3): Ditto.
2160 (xop_maskcmp_uns<mode>3): Ditto.
2161 (xop_maskcmp_uns2<mode>3): Ditto.
2162 (xop_pcom_tf<mode>3): Ditto.
2164 * doc/invoke.texi (-mxop): Add documentation.
2165 * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
2167 2009-11-03 Mark Mitchell <mark@codesourcery.com>
2170 * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
2171 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
2172 * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
2174 2009-11-04 Richard Earnshaw <rearnsha@arm.com>
2177 * arm.md (peephole2 patterns for move and compare): New.
2179 2009-11-04 Nick Clifton <nickc@redhat.com>
2181 * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
2182 Make sure that it does not allow CONST_DOUBLEs.
2183 * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
2184 * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
2185 * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
2186 * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
2187 * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
2188 * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
2189 * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
2190 * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
2191 * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
2192 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
2193 * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
2194 * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
2195 * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
2196 * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
2197 * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
2199 2009-11-04 Richard Guenther <rguenther@suse.de>
2201 PR tree-optimization/41919
2202 * tree-vrp.c (test_for_singularity): Properly compare values.
2204 2009-11-04 Revital Eres <eres@il.ibm.com>
2206 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2207 Consider peeling for alignment only for stores and remove
2208 redundant assignment.
2210 2009-11-04 Maxim Kuvyrkov <maxim@codesourcery.com>
2213 * config/m68k/m68k.c (m68k_reg_present_p): New static function.
2214 (m68k_ok_for_sibcall_p): Handle different result return locations.
2216 2009-11-04 Richard Guenther <rguenther@suse.de>
2218 * c-opts.c (c_common_post_options): Move LTO option processing
2220 * opts.c (decode_options): ... here.
2222 2009-11-04 Jakub Jelinek <jakub@redhat.com>
2224 * c-common.c (fold_offsetof_1): Use %wd instead of
2225 HOST_WIDE_INT_PRINT_DEC.
2227 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
2229 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
2232 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
2234 * config.gcc (vax-*-linux*): Keep the original contents of
2235 tmake_file while adding vax/t-linux.
2237 2009-11-03 Eric Botcazou <ebotcazou@adacore.com>
2241 * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
2242 (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
2243 (STACK_CHECK_MOVING_SP): Likewise.
2244 * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
2245 * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
2246 Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
2247 * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
2248 Document PROBE_STACK.
2249 * explow.c (anti_adjust_stack_and_probe): New function.
2250 (allocate_dynamic_stack_space): Do not directly allocate space if
2251 STACK_CHECK_MOVING_SP, instead invoke above function.
2252 (emit_stack_probe): Handle probe_stack insn.
2253 (PROBE_INTERVAL): New macro.
2254 (STACK_GROW_OPTAB): Likewise.
2255 (STACK_GROW_OFF): Likewise.
2256 (probe_stack_range): Use Pmode and memory_address consistently. Fix
2257 loop condition in the small constant case. Rewrite in the general
2258 case to be immune to wraparounds. Make sure the address of probes
2259 is valid. Try to use [base + disp] addressing mode if possible.
2260 * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
2261 checking is enabled and STACK_CHECK_MOVING_SP.
2262 * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
2263 return 1 for volatile references to the stack pointer.
2264 * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
2265 __builtin_alloca if stack checking is enabled.
2266 * unwind-dw2.c (uw_identify_context): Take into account whether the
2267 context is that of a signal frame or not.
2268 * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
2269 * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
2271 2009-11-03 Jakub Jelinek <jakub@redhat.com>
2273 PR rtl-optimization/41917
2274 * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
2275 operand isn't known to be 0, return 1.
2277 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
2279 * config/mips/mips.md: Fix typos.
2281 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
2283 * doc/invoke.texi: Fix typo.
2285 2009-11-03 Paul Brook <paul@codesourcery.com>
2287 * config/arm/neon.ml (vectype): Add T_floatSF.
2288 (string_of_vectype): Ditto.
2289 * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
2290 (deftypes): Use float for float32_t.
2291 * config/arm/arm_neon.h: Regenerate.
2293 2009-11-03 Nick Clifton <nickc@redhat.com>
2294 Kevin Buettner <kevinb@redhat.com>
2296 * config/rx/predicates.md (rx_store_multiple_vector): Reverse
2297 order of expected registers.
2298 (rx_load_multiple_vector): Likewise.
2299 (rx_rtsd_vector): Likewise.
2300 * config/rx/rx.c (rx_cpu_type): New variable.
2301 (rx_print_operand): Fix bug printing 64-bit constant values.
2302 (rx_emit_stack_pushm): Reverse order of pushed registers.
2303 (gen_rx_store_vector): Likewise.
2304 (is_fast_interrupt_func): Only accept "fast_interrupt" as the
2306 (is_exception_func): Rename to is_interrupt_func and only accept
2307 "interrupt" as the attribute name.
2308 (rx_get_stack_layout): Use new function name.
2309 (rx_func_attr_inlinable): Likewise.
2310 (rx_attribute_table): Remove "exception".
2311 (rx_expand_prologue): If necessary push the accumulator register
2312 in the prologue of interrupt functions.
2313 (rx_expand_epilogue): If necessary pop the accumulator.
2314 (rx_builtins): Add RX_BUILTIN_MVTIPL.
2315 (rx_expand_builtin_stz): Remove.
2316 (rx_expand_builtin_mvtipl): New function.
2317 (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
2318 (rx_expand_builtin): Likewise.
2319 (rx_enable_fpu): New variable.
2320 (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
2321 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
2322 on rx_cpu_type. Define __RX_FPU_INSNS__ if FPU insns are allowed.
2323 (enum rx_cpu_types): Define.
2324 (ASM_SPEC): Pass -m32bit-doubles on to assembler.
2325 (INCOMING_FRAME_SP_OFFSET): Define.
2326 (ARG_POINTER_CFA_OFFSET): Define.
2327 (FRAME_POINTER_CFA_OFFSET): Define.
2328 (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
2329 (ALLOW_RX_FPU_INSNS): Define.
2330 * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
2331 fast_math_flags_set_p.
2332 (UNSPEC_BUILTIN_MVTIPL): Define.
2333 (revl): Rename to bswapsi2.
2334 (bswaphi2): New pattern.
2335 (mvtachi): Mark as volatile because it uses a register unknown to GCC.
2336 (mvtaclo): Likewise.
2338 (mvtc): Remove clobber of cc0.
2341 * config/rx/rx.opt (mieee): Remove.
2346 (msave-acc-in-interrupts): Add.
2347 * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
2348 (MULTILIB_DIRS): Likewise.
2349 (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
2350 * doc/extend.texi: Remove description of "exception" function
2352 * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
2353 -msave-acc-in-interrupts options.
2355 2009-11-03 Richard Guenther <rguenther@suse.de>
2357 * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
2359 2009-11-03 Dodji Seketeli <dodji@redhat.com>
2362 * c-common.c (fold_offsetof_1): Issue errors when the member
2363 designator of the offsetof expression is not legitimate.
2365 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
2367 * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
2368 names instead of numerical constants.
2369 (sse_prologue_save): Ditto.
2370 (*sse_prologue_save_insn): Ditto.
2372 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
2375 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
2376 (TARGET_CALL_ESP): New define.
2377 * config/i386/i386.c (initial_ix86_tune_features): Initialize
2379 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
2380 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
2381 *call_1, *call_value_pop_1 and *call_value_1. Depend on
2383 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
2384 New patterns, use "lsm" as operand 1 constraint.
2385 * config/i386/predicates.md (call_insn_operand): Depend on
2386 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
2388 2009-11-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2390 PR tree-optimization/41857
2391 * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
2392 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
2394 * tree-ssa-address.c (move_hint_to_base): New function.
2395 (most_expensive_mult_to_index): Add TYPE argument. Use mode and
2396 address space associated with TYPE.
2397 (addr_to_parts): Add TYPE and BASE_HINT arguments. Pass TYPE to
2398 most_expensive_mult_to_index. Call move_hint_to_base.
2399 (create_mem_ref): Add BASE_HINT argument. Pass BASE_HINT and
2400 TYPE to addr_to_parts.
2402 2009-11-02 Martin Jambor <mjambor@suse.cz>
2404 PR tree-optimization/41750
2405 * tree-sra.c (analyze_modified_params): Loop over all
2406 representatives of components of a parameter.
2408 2009-11-02 Jakub Jelinek <jakub@redhat.com>
2410 PR tree-optimization/41841
2411 * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
2412 local variables of not yet materialized clones.
2415 * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
2416 for a VOIDmode variable.
2419 * c-pragma.c (visstack): Change into vector of ints rather than
2420 enum symbol_visibility.
2421 (push_visibility): Add kind argument, push default_visibility together
2423 (pop_visibility): Add kind argument, return true if successful, fail
2424 if visibility stack is empty or if stack top is of different kind.
2425 (handle_pragma_visibility): Don't check length of visstack, instead
2426 call pop_visibility and issue diagnostics if it failed. Pass 0
2427 as last argument to push_visibility and pop_visibility.
2428 * c-pragma.h (push_visibility): Add kind argument.
2429 (pop_visibility): Likewise. Return bool instead of void.
2431 2009-11-01 Eric Botcazou <ebotcazou@adacore.com>
2433 * tree.def (TARGET_MEM_REF): Update comment.
2434 * alias.c (get_alias_set): Retrieve the original memory reference for
2435 a TARGET_MEM_REF before proceeding.
2437 2009-10-31 Anatoly Sokolov <aesok@post.ru>
2439 * config/frv/frv.c (frv_function_value, frv_libcall_value,
2440 frv_function_value_regno_p): New functions.
2441 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
2442 * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
2443 (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
2444 * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
2446 2009-10-31 Anatoly Sokolov <aesok@post.ru>
2448 * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
2449 new 'outgoing' argument.
2450 (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
2451 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
2452 * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2453 LIBCALL_VALUE): Remove.
2454 (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
2455 * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
2456 (mh10300_function_value_regno_p): Declare.
2458 2009-10-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2460 * config/arm/cortex-a9.md: New - integer pipeline description.
2462 2009-10-31 Eric Botcazou <ebotcazou@adacore.com>
2464 * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
2465 aborting if the sizes of the two references don't match.
2467 2009-10-31 Toon Moene <toon@moene.org>
2469 * ipa-inline.c (cgraph_decide_inlining):
2470 Include reason for not inlining called-once functions in dump file.
2472 2009-10-30 Daniel Gutson <dgutson@codesourcery.com>
2474 * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
2475 * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
2476 (LINK_SPEC): BE_LINK_SPEC added.
2478 2009-10-30 Richard Guenther <rguenther@suse.de>
2481 * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
2483 2009-10-30 Nathan Sidwell <nathan@codesourcery.com>
2485 * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
2486 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
2489 2009-10-30 Martin Jambor <mjambor@suse.cz>
2491 * tree-sra.c (build_ref_for_offset_1): Remove a comment.
2493 2009-10-30 H.J. Lu <hongjiu.lu@intel.com>
2496 * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
2497 first. Move assert on stack_alignment_estimated just before
2498 setting stack_realign_needed.
2499 (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
2500 Don't call update_stack_boundary.
2502 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
2503 (verride_options): Don't check ix86_force_align_arg_pointer here.
2504 (ix86_function_ok_for_sibcall): Use it.
2505 (ix86_update_stack_boundary): Likewise.
2507 * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
2509 2009-10-30 Richard Earnshaw <rearnsha@arm.com>
2511 * arm.md (QHSI): New mode iterator.
2512 (movqi): If generating for thumb, then truncate any immediate to
2514 * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
2516 (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
2519 2009-10-29 Cary Coutant <ccoutant@google.com>
2522 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
2523 locations in the source).
2524 (store_vcall_insn): New function.
2525 (lookup_vcall_insn): New function.
2526 (dwarf2out_virtual_call_token): Use store_vcall_insn.
2527 (dwarf2out_copy_call_info): New function.
2528 (dwarf2out_virtual_call): Use lookup_vcall_insn.
2529 * emit-rtl.c (try_split): Call copy_call_info debug hook.
2530 * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
2531 * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
2532 (debug_nothing_rtx_rtx): New dummy hook.
2533 * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
2534 (xcoff_debug_hooks): Likewise.
2535 * sdbout.c (sdb_debug_hooks): Likewise.
2536 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2538 2009-10-29 David Daney <ddaney@caviumnetworks.com>
2540 * doc/invoke.texi (mmcount-ra-address): Document new command line
2542 * config/mips/mips.opt (mmcount-ra-address): New option.
2543 * config/mips/mips-protos.h (mips_function_profiler): Declare new
2545 * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
2547 (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
2548 (mips_function_profiler): Moved from FUNCTION_PROFILER, and
2550 * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
2551 mips_function_profiler.
2553 2009-10-29 Steve Ellcey <sje@cup.hp.com>
2557 * doc/tm.texi (OVERRIDE_OPTIONS): Update.
2558 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
2559 * optc-gen.awk (cl_target_option_restore): Include call to
2560 targetm.override_options_after_change.
2561 * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
2562 * target.h (override_options_after_change): New.
2563 * c-common.c (parse_optimize_options): Call
2564 targetm.override_options_after_change.
2565 * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
2566 (ia64_override_options_after_change): New.
2567 (ia64_override_options) Add call to above.
2569 2009-10-29 Michael Matz <matz@suse.de>
2571 * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
2572 (gate_convert_to_rsqrt): Ditto.
2573 (pass_convert_to_rsqrt): Ditto.
2574 * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
2575 * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
2578 * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
2580 2009-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2582 * config/arm/arm.c (find_best_start): Fix type of remainder to be
2585 2009-10-29 Martin Jambor <mjambor@suse.cz>
2587 PR tree-optimization/41775
2588 * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
2589 (generate_subtree_copies): Do not unshare agg.
2590 (load_assign_lhs_subreplacements): Do not unshare rhs.
2591 (sra_modify_assign): Do not unshare exprs.
2592 (propagate_subacesses_accross_link): Renamed to
2593 propagate_subaccesses_across_link.
2595 2009-10-29 Richard Earnshaw <rearnsha@arm.com>
2597 * arm.c (count_insns_for_constant): Rework to support counting for
2598 thumb2 immediates as well.
2599 (find_best_start): Split out from arm_gen_constant.
2600 (arm_gen_constant): Rework to support XOR with immediate.
2602 2009-10-29 Chao-ying Fu <fu@mips.com>
2604 * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
2606 (mips_expand_synci_loop): Use the length rtx to control the
2607 synci loop from the begin rtx that points to the first byte of
2610 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
2612 * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
2614 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
2616 * dbxout.c (dbxout_common_check): Accept non public trees.
2617 * dwarf2out.c (fortran_common): Accept non public trees.
2619 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
2621 * common.opt (fuse-linker-plugin): New option.
2622 * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
2624 * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
2626 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
2628 PR rtl-optimization/39715
2629 * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
2630 (gen_cstoresi_ltu_thumb1): New splitter.
2632 2009-10-28 Richard Guenther <rguenther@suse.de>
2636 * tree-ssa.c (useless_type_conversion_p): Do not treat
2637 conversions to pointers to incomplete types as useless.
2638 * gimple.c (gimple_types_compatible_p): Compare struct tags,
2641 2009-10-28 Jakub Jelinek <jakub@redhat.com>
2643 * var-tracking.c (emit_note_insn_var_location): Don't call the second
2644 vt_expand_loc unnecessarily when location is not a register nor
2648 * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
2649 fields don't have DECL_NAME.
2652 * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
2653 call convert_memory_address on addr.
2656 * config/i386/i386.c (ix86_pic_register_p): Don't call
2657 rtx_equal_for_cselib_p for VALUEs discarded as useless.
2659 2009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
2661 * var-tracking.c (emit_note_insn_var_location): Get the mode of
2662 a variable part from its REG, MEM or VALUE.
2664 2009-10-28 Richard Guenther <rguenther@suse.de>
2666 * gimple.c (gimple_get_alias_set): Fix comment typo.
2668 2009-10-28 Richard Guenther <rguenther@suse.de>
2670 * tree.c (free_lang_data_in_type): Do not call get_alias_set.
2671 (free_lang_data): Unconditionally compute alias sets for all
2672 standard integer types. Bail out if gate bailed out previously.
2673 Do not reset the types_compatible_p langhook.
2674 (gate_free_lang_data): Remove.
2675 (struct pass_ipa_free_lang_data): Enable unconditionally.
2676 * gimple.c (gimple_get_alias_set): Use the same alias-set for
2679 2009-10-28 Richard Guenther <rguenther@suse.de>
2682 * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
2683 (ref_maybe_used_by_call_p_1): Fix bcopy handling.
2684 (call_may_clobber_ref_p_1): Likewise.
2685 * tree-ssa-structalias.c (find_func_aliases): Likewise.
2686 * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
2688 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
2690 PR rtl-optimization/41812
2693 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
2695 * df-problems.c (df_md_scratch): New.
2696 (df_md_alloc, df_md_free): Allocate/free it.
2697 (df_md_local_compute): Only include live registers in init.
2698 (df_md_transfer_function): Prune the in-set computed by
2699 the confluence function, and the gen-set too.
2701 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
2703 PR rtl-optimization/39715
2704 * combine.c (simplify_comparison): Use extensions to
2705 widen comparisons. Try an ANDing first.
2707 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
2709 PR rtl-optimization/40741
2710 * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
2711 a small constant is cheap.
2712 * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
2713 force_reg on the LHS.
2714 (xorsi3): Likewise, and split the XOR if the constant is complex
2715 and not in Thumb mode.
2717 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
2719 * expmed.c (emit_store_flag): Check costs before
2720 transforming to the opposite representation.
2722 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
2724 * config/sh/sh.md (cbranchfp4_media): Remove hack extending
2725 cstore result to DImode.
2727 2009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
2729 * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
2730 inside the unspec vector.
2732 2009-10-27 Richard Henderson <rth@redhat.com>
2734 * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
2736 2009-10-27 Richard Henderson <rth@redhat.com>
2739 * tree-eh.c (eh_region_may_contain_throw_map): Rename from
2740 eh_region_may_contain_throw; update users.
2741 (eh_region_may_contain_throw): New function.
2742 (lower_catch): Check flag_exceptions before creating exception region.
2743 (lower_eh_filter, lower_eh_must_not_throw): Likewise.
2744 (lower_cleanup): Tidy existing flag_exceptions check to match.
2746 2009-10-27 Kai Tietz <kai.tietz@onevision.com>
2749 * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
2750 * config/i386/mingw.opt: Add fset-stack-executable.
2751 * config/i386/i386.c (ix86_trampoline_init): Make call to
2752 emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
2753 defined and its value is not zero.
2756 2009-10-27 Richard Guenther <rguenther@suse.de>
2758 * tree-ssa-structalias.c (find_func_aliases): In IPA mode
2759 handle calls to externally visible functions like in regular mode.
2760 (create_variable_info_for): Do not create function infos here.
2761 (have_alias_info): Remove write-only variable.
2762 (solve_constraints): New function split out from common code
2763 in compute_points_to_sets and ipa_pta_execute.
2764 (compute_points_to_sets): Adjust.
2765 (ipa_pta_execute): Likewise. Handle clones and externally visible
2766 functions like in non-IPA mode.
2768 2009-10-27 Jakub Jelinek <jakub@redhat.com>
2771 * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
2774 2009-10-27 Richard Guenther <rguenther@suse.de>
2776 * tree-complex.c (expand_complex_div_wide): Check for
2777 INTEGER_CST, not TREE_CONSTANT on comparison folding result.
2779 2009-10-27 Revital Eres <eres@il.ibm.com>
2781 PR tree-optimization/40648
2782 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2783 Change decision of when to peel for alignment.
2785 2009-10-27 Richard Guenther <rguenther@suse.de>
2788 * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
2790 2009-10-27 Aldy Hernandez <aldyh@redhat.com>
2793 * fold-const.c (fold_binary_loc): Do not call
2794 protected_set_expr_location.
2796 2009-10-27 Wei Guozhi <carrot@google.com>
2799 * target.h (have_conditional_execution): Add a new target hook
2801 * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
2802 * targhooks.h (default_have_conditional_execution): Likewise.
2803 * targhooks.c (default_have_conditional_execution): Likewise.
2804 * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
2805 * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
2806 (arm_have_conditional_execution): New function.
2807 * ifcvt.c (noce_process_if_block, find_if_header,
2808 cond_exec_find_if_block, dead_or_predicable): Change the usage of
2809 macro HAVE_conditional_execution to a target hook call.
2810 * recog.c (peephole2_optimize): Likewise.
2811 * sched-rgn.c (add_branch_dependences): Likewise.
2812 * final.c (asm_insn_count, final_scan_insn): Likewise.
2813 * bb-reorder.c (HAVE_conditional_execution): Remove it.
2815 2009-10-26 Ben Elliston <bje@au.ibm.com>
2816 Michael Meissner <meissner@linux.vnet.ibm.com>
2817 Ulrich Weigand <uweigand@de.ibm.com>
2819 * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
2820 * config/spu/spu_cache.h: New file.
2822 * config/spu/cachemgr.c: New file.
2823 * config/spu/cache.S: New file.
2825 * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
2826 (ADDR_SPACE_EA): Define.
2827 (TARGET_ADDR_SPACE_KEYWORDS): Define.
2828 * config/spu/spu.c (EAmode): New macro.
2829 (TARGET_ADDR_SPACE_POINTER_MODE): Define.
2830 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
2831 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
2832 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
2833 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
2834 (TARGET_ADDR_SPACE_CONVERT): Likewise.
2835 (TARGET_ASM_SELECT_SECTION): Likewise.
2836 (TARGET_ASM_UNIQUE_SECTION): Likewise.
2837 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
2838 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
2839 (ea_symbol_ref): New function.
2840 (spu_legitimate_constant_p): Handle __ea qualified addresses.
2841 (spu_addr_space_legitimate_address_p): New function.
2842 (spu_addr_space_legitimize_address): Likewise.
2843 (cache_fetch): New global.
2844 (cache_fetch_dirty): Likewise.
2845 (ea_alias_set): Likewise.
2846 (ea_load_store): New function.
2847 (ea_load_store_inline): Likewise.
2848 (expand_ea_mem): Likewise.
2849 (spu_expand_mov): Handle __ea qualified memory references.
2850 (spu_addr_space_pointer_mode): New function.
2851 (spu_addr_space_address_mode): Likewise.
2852 (spu_addr_space_subset_p): Likewise.
2853 (spu_addr_space_convert): Likewise.
2854 (spu_section_type_flags): Handle "._ea" section.
2855 (spu_select_section): New function.
2856 (spu_unique_section): Likewise.
2857 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
2858 and __EA64__ predefined macros.
2859 * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
2860 -matomic-updates switches.
2862 * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
2863 (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
2864 libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
2865 libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
2866 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
2867 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
2868 $(T)cache128k.o): Likewise.
2869 ($(T)libgcc_%.a): Likewise.
2871 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
2872 * config/spu/spu.opt (-mea32/-mea64): Add switches.
2873 (-maddress-space-conversion): Likewise.
2874 (-mcache-size=): Likewise.
2875 (-matomic-updates): Likewise.
2876 * doc/invoke.texi (-mea32/-mea64): Document.
2877 (-maddress-space-conversion): Likewise.
2878 (-mcache-size=): Likewise.
2879 (-matomic-updates): Likewise.
2881 2009-10-26 Ben Elliston <bje@au.ibm.com>
2882 Michael Meissner <meissner@linux.vnet.ibm.com>
2883 Ulrich Weigand <uweigand@de.ibm.com>
2885 * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
2887 * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
2888 defined, add the named address space keywords.
2889 (c_addr_space_name): New function.
2890 (complete_array_type): Preserve named address space.
2891 (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
2892 instead of targetm.valid_pointer_mode.
2894 * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
2895 RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
2896 (ADDR_SPACE_KEYWORD): New macro.
2897 (c_addr_space_name): Add prototype.
2899 * c-tree.h (struct c_declspecs): Add address_space member.
2900 (declspecs_add_addrspace): Add prototype.
2902 * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
2904 * c-parser.c (c_parse_init): Add assertion.
2905 (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
2906 (c_lex_one_token): Handle address space keywords.
2907 (c_token_starts_typename): Likewise.
2908 (c_token_starts_declspecs): Likewise.
2909 (c_parser_declspecs): Likewise.
2910 (c_parser_postfix_expression_after_paren_type): Diagnose compound
2911 literal within function qualified with named address space.
2913 * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
2914 address space qualifiers.
2915 (shadow_tag_warned): Warn about useless address space qualifiers.
2916 (quals_from_declspecs): Handle address space qualifiers.
2917 (grokdeclarator): Likewise.
2918 (build_null_declspecs): Likewise.
2919 (declspecs_add_addrspace): New function.
2921 * c-typeck.c (addr_space_superset): New function.
2922 (qualify_type): Handle named address spaces.
2923 (composite_type): Likewise.
2924 (common_pointer_type): Likewise.
2925 (comp_target_types): Likewise.
2926 (build_conditional_expr): Likewise.
2927 (handle_warn_cast_qual): Likewise.
2928 (build_c_cast): Likewise.
2929 (convert_for_assignment): Likewise.
2930 (build_binary_op): Likewise.
2931 (pointer_diff): Handle named address spaces. Use intermediate
2932 integer type of sufficient size if required.
2934 2009-10-26 Ben Elliston <bje@au.ibm.com>
2935 Michael Meissner <meissner@linux.vnet.ibm.com>
2936 Ulrich Weigand <uweigand@de.ibm.com>
2938 * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
2939 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
2940 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
2942 * target.h (struct target_def): Add pointer_mode, address_mode,
2943 and valid_pointer_mode to addr_space substructure.
2944 * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
2945 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
2946 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
2947 (TARGET_ADDR_SPACE_HOOKS): Add them.
2948 * targhooks.c (target_default_pointer_address_modes_p): New function.
2949 * target.h (target_default_pointer_address_modes_p): Add prototype.
2950 * targhooks.c (default_addr_space_pointer_mode): New function.
2951 (default_addr_space_address_mode): Likewise.
2952 (default_addr_space_valid_pointer_mode): Likewise.
2953 * targhooks.h (default_addr_space_pointer_mode): Add prototype.
2954 (default_addr_space_address_mode): Likewise.
2955 (default_addr_space_valid_pointer_mode): Likewise.
2956 * output.h (default_valid_pointer_mode): Move to ...
2957 * targhooks.h (default_valid_pointer_mode): ... here.
2958 * varasm.c (default_valid_pointer_mode): Move to ...
2959 * targhooks.c (default_valid_pointer_mode): ... here.
2961 * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
2962 instead of targetm.valid_pointer_mode.
2964 * fold-const.c (fit_double_type): Use int_or_pointer_precision.
2965 * tree.c (integer_pow2p): Likewise.
2966 (tree_log2): Likewise.
2967 (tree_floor_log2): Likewise.
2968 (signed_or_unsigned_type_for): Support pointer type of different size.
2969 (int_or_pointer_precision): New function.
2970 * tree.h (int_or_pointer_precision): Add prototype.
2971 * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
2972 * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
2973 incoming pointer type instead of POINTER_SIZE.
2975 * tree.c (build_pointer_type): Use appropriate pointer mode
2976 instead of ptr_mode.
2977 (build_reference_type): Likewise.
2978 * expr.c (store_expr): Likewise.
2979 (expand_expr_addr_expr): Likewise.
2980 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
2981 * cfgexpand.c (expand_debug_expr): Likewise.
2983 * auto-inc-dec.c: Include "target.h".
2984 (try_merge): Use appropriate address mode instead of Pmode.
2985 (find_inc): Likewise.
2986 * combine.c (find_split_point): Likewise.
2987 * cselib.c (cselib_record_sets): Likewise.
2988 * dse.c (replace_inc_dec): Likewise.
2989 (canon_address): Likewise.
2990 * var-tracking.c (replace_expr_with_values): Likewise.
2991 (count_uses): Likewise.
2992 (add_uses): Likewise.
2993 (add_stores): Likewise.
2994 * emit-rtl.c: Include "target.h".
2995 (adjust_address_1): Use appropriate address mode instead of Pmode.
2996 (offset_address): Likewise.
2997 * explow.c (break_out_memory_refs): Likewise.
2998 (memory_address_addr_space): Likewise.
2999 (promote_mode): Likewise.
3000 * expr.c (move_by_pieces): Likewise.
3001 (emit_block_move_via_loop): Likewise.
3002 (store_by_pieces): Likewise.
3003 (store_by_pieces_1): Likewise.
3004 (expand_assignment): Likewise.
3005 (store_constructor): Likewise.
3006 (expand_expr_addr_expr): Likewise.
3007 (expand_expr_real_1): Likewise.
3008 * cfgexpand.c (expand_debug_expr): Likewise.
3009 * ifcvt.c (noce_try_cmove_arith): Likewise.
3010 * regcprop.c (kill_autoinc_value): Likewise.
3011 * regmove.c (try_auto_increment): Likewise.
3012 * reload.c (find_reloads): Likewise.
3013 (find_reloads_address): Likewise.
3014 (find_reloads_address_1): Likewise.
3015 * sched-deps.c: Include "target.h".
3016 (sched_analyze_1): Use appropriate address mode instead of Pmode.
3017 (sched_analyze_2): Likewise.
3018 * sel-sched-dump.c: Include "target.h".
3019 (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
3020 * stor-layout.c (layout_type): Likewise.
3021 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
3022 (multiplier_allowed_in_address_p): Likewise.
3023 (get_address_cost): Likewise.
3024 * varasm.c (make_decl_rtl): Likewise.
3026 * expr.c (expand_assignment): Always convert offsets to appropriate
3028 (store_expr): Likewise.
3029 (store_constructor): Likewise.
3030 (expand_expr_real_1): Likewise.
3032 * reload.h (form_sum): Add MODE argument.
3033 * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
3034 Update recursive calls.
3035 (subst_indexed_address): Update calls to form_sum.
3037 * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
3038 * tree-ssa-address.c: Include "target.h".
3039 (templates): Replace by ...
3040 (mem_addr_template_list): ... this new vector.
3041 (TEMPL_IDX): Handle address space numbers.
3042 (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
3043 (addr_for_mem_ref): Add ADDRSPACE argument. Use per-address-space
3044 instead of global cache. Update call to gen_addr_rtx.
3045 (valid_mem_ref_p): Update call to addr_for_mem_ref.
3046 * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
3048 * rtl.h (convert_memory_address_addr_space): Add prototype.
3049 (convert_memory_address): Define as macro.
3050 * explow.c (convert_memory_address): Rename to ...
3051 (convert_memory_address_addr_space): ... this. Add ADDRSPACE argument.
3052 Use appropriate pointer and address modes instead of ptr_mode / Pmode.
3053 Update recursive calls.
3054 (memory_address_addr_space): Call convert_memory_address_addr_space.
3055 * expmed.c (make_tree): Likewise.
3056 * expr.c (expand_assignment): Likewise.
3057 (expand_expr_addr_expr_1): Likewise. Also, add ADDRSPACE argument.
3058 (expand_expr_addr_expr): Likewise. Also, update call.
3060 * alias.c (find_base_value): Guard pointer size optimizations.
3061 (find_base_term): Likewise.
3062 * rtlanal.c (nonzero_bits1): Likewise.
3063 (num_sign_bit_copies1): Likewise.
3064 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3066 * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
3067 (emit-rtl.o): Likewise.
3068 (auto-inc-dec.o): Likewise.
3069 (sched-deps.o): Likewise.
3071 2009-10-26 Ben Elliston <bje@au.ibm.com>
3072 Michael Meissner <meissner@linux.vnet.ibm.com>
3073 Ulrich Weigand <uweigand@de.ibm.com>
3075 * doc/extend.texi (Named Address Spaces): New section.
3076 * coretypes.h (addr_space_t): New type.
3077 (ADDR_SPACE_GENERIC): New define.
3078 (ADDR_SPACE_GENERIC_P): New macro.
3080 * doc/tm.texi (Named Address Spaces): New section.
3081 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
3082 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
3083 (TARGET_ADDR_SPACE_SUBSET_P): Document.
3084 (TARGET_ADDR_SPACE_CONVERT): Document.
3085 * target.h (struct gcc_target): Add addr_space substructure.
3086 * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3087 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
3088 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
3089 (TARGET_ADDR_SPACE_CONVERT): Likewise.
3090 (TARGET_ADDR_SPACE_HOOKS): Likewise.
3091 (TARGET_INITIALIZER): Initialize addr_space hooks.
3092 * targhooks.c (default_addr_space_legitimate_address_p): New function.
3093 (default_addr_space_legitimize_address): Likewise.
3094 (default_addr_space_subset_p): Likewise.
3095 (default_addr_space_convert): Likewise.
3096 * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
3097 (default_addr_space_legitimize_address): Likewise.
3098 (default_addr_space_subset_p): Likewise.
3099 (default_addr_space_convert): Likewise.
3101 * doc/rtl.texi (MEM_ADDR_SPACE): Document.
3102 * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
3103 (MEM_ADDR_SPACE): New macro.
3104 * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
3105 address space memory attribute.
3106 (mem_attrs_htab_hash): Handle address space memory attribute.
3107 (mem_attrs_htab_eq): Likewise.
3108 (set_mem_attributes_minus_bitpos): Likewise.
3109 (set_mem_alias_set): Likewise.
3110 (set_mem_align): Likewise.
3111 (set_mem_expr): Likewise.
3112 (set_mem_offset): Likewise.
3113 (set_mem_size): Likewise.
3114 (adjust_address_1): Likewise.
3115 (offset_address): Likewise.
3116 (widen_memoy_address): Likewise.
3117 (get_spill_slot_decl): Likewise.
3118 (set_mem_attrs_for_spill): Likewise.
3119 (set_mem_addr_space): New function.
3120 * emit-rtl.h (set_mem_addr_space): Add prototype.
3121 * print-rtl.c (print_rtx): Print address space memory attribute.
3122 * expr.c (expand_assignment): Set address space memory attribute
3123 of generated MEM RTXes as appropriate.
3124 (expand_expr_real_1): Likewise.
3125 * cfgexpand.c (expand_debug_expr): Likewise.
3126 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
3128 * tree.h (struct tree_base): Add address_space bitfield. Reduce
3129 size of "spare" bitfield.
3130 (TYPE_ADDR_SPACE): New macro.
3131 (ENCODE_QUAL_ADDR_SPACE): Likewise.
3132 (DECODE_QUAL_ADDR_SPACE): Likewise.
3133 (CLEAR_QUAL_ADDR_SPACE): Likewise.
3134 (KEEP_QUAL_ADDR_SPACE): Likewise.
3135 (TYPE_QUALS): Encode type address space.
3136 (TYPE_QUALS_NO_ADDR_SPACE): New macro.
3137 * tree.c (set_type_quals): Set type address space.
3138 (build_array_type): Inherit array address space from element type.
3139 * print-tree.c (print_node_brief): Print type address space.
3140 (print_node): Likewise.
3141 * tree-pretty-print.c (dump_generic_node): Likewise.
3143 * explow.c (memory_address): Rename to ...
3144 (memory_address_addr_space): ... this. Add ADDRSPACE argument.
3145 Use address-space aware variants of memory address routines.
3146 * recog.c (memory_address_p): Rename to ...
3147 (memory_address_addr_space_p): ... this. Add ADDSPACE argument.
3148 Use address-space aware variants of memory address routines.
3149 (offsettable_address_p): Rename to ...
3150 (offsettable_address_addr_space_p): ... this. Add ADDRSPACE argument.
3151 Use address-space aware variants of memory address routines.
3152 * reload.c (strict_memory_address_p): Rename to ...
3153 (strict_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
3154 Use address-space aware variants of memory address routines.
3155 (maybe_memory_address_p): Rename to ...
3156 (maybe_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
3157 Use address-space aware variants of memory address routines.
3158 * expr.h (memory_address_addr_space): Add prototype.
3159 (memory_address): Define as macro.
3160 * recog.h (memory_address_addr_space_p): Add prototype.
3161 (memory_address_p): Define as macro.
3162 (offsettable_address_addr_space_p): Add prototype.
3163 (offsettable_address_p): Define as macro.
3164 (strict_memory_address_addr_space_p): Add prototype.
3165 (strict_memory_address_p): Define as macro.
3167 * combine.c (find_split_point): Use address-space aware variants
3168 of memory address routines.
3169 * emit-rtl.c (operand_subword): Likewise.
3170 (change_address_1): Likewise.
3171 (adjust_address_1): Likewise.
3172 (offset_address): Likewise.
3173 * expr.c (emit_move_insn): Likewise.
3174 (expand_assignment): Likewise.
3175 (expand_expr_real_1): Likewise.
3176 * recog.c (verify_changes): Likewise.
3177 (general_operand): Likewise.
3178 (offsettable_memref_p): Likewise.
3179 (offsettable_nonstrict_memref_p): Likewise.
3180 (constrain_operands): Likewise.
3181 * reload.c (get_secondary_mem): Likewise.
3182 (find_reloads_toplev): Likewise.
3183 (find_reloads_address): Likewise.
3184 (find_reloads_subreg_address): Likewise.
3185 * reload1.c (reload): Likewise.
3186 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
3187 * rtl.h (address_cost): Add ADDRSPACE argument.
3188 * rtlanal.c (address_cost): Add ADDRSPACE argument. Use address-space
3189 aware variant of memory address routines.
3190 * loop-invariant.c (create_new_invariant): Update address_cost call.
3191 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3192 * fwprop.c (should_replace_address): Add ADDRSPACE argument.
3193 Use address-space aware variant of memory address routines.
3194 (propagate_rtx_1): Update call to should_replace_address.
3195 * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
3197 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
3198 ADDRSPACE argument. Use per-address-space instead of global cache.
3199 Use address-space aware variant of memory address routines.
3200 (get_address_cost): Likewise.
3201 (get_computation_cost_at): Update calls.
3202 * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
3203 Use address-space aware variant of memory address routines.
3204 (create_mem_ref_raw): Update call to valid_mem_ref_p.
3205 (most_expensive_mult_to_index): Update call to
3206 multiplier_allowed_in_address_p.
3208 * dwarf2out.c (modified_type_die): Output DW_AT_address_class
3209 attribute to indicate named address spaces.
3211 * varasm.c (get_variable_section): DECLs in named address spaces
3214 * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
3215 for addresses in a non-generic address space.
3217 * expr.c (emit_block_move_hints): Do not use libcalls for
3218 memory in non-generic address spaces.
3219 (clear_storage_hints): Likewise.
3220 (expand_assignment): Likewise.
3222 * fold-const.c (operand_equal_p): Expressions refering to different
3223 address spaces are not equivalent.
3225 * rtl.c (rtx_equal_p_cb): MEMs refering to different address
3226 spaces are not equivalent.
3227 (rtx_equal_p): Likewise.
3228 * cse.c (exp_equiv_p): Likewise.
3229 * jump.c (rtx_renumbered_equal_p): Likewise.
3230 * reload.c (operands_match_p): Likewise.
3232 * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
3233 address spaces may alias.
3234 (true_dependence): Likewise.
3235 (canon_true_dependence): Likewise.
3236 (write_dependence_p): Likewise.
3238 * dse.c (canon_address): Handle named address spaces.
3239 * ifcvt.c (noce_try_cmove_arith): Likewise.
3241 * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
3242 * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
3243 * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
3244 to handle conversions between different address spaces.
3245 * fold-const.c (fold_convert_loc): Likewise.
3246 (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
3247 * tree-pretty-print.c (dump_generic_node): Likewise.
3248 * gimple-pretty-print.c (dump_unary_rhs): Likewise.
3249 * tree-cfg.c (verify_gimple_assign_unary): Likewise.
3250 * tree-inline.c (estimate_operator_cost): Likewise.
3251 * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
3252 to different address spaces are not useless.
3254 2009-10-26 Jakub Jelinek <jakub@redhat.com>
3257 * cfgcleanup.c (trivially_empty_bb_p): New function.
3258 (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
3261 * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
3262 add_name_and_src_coords_attributes, gen_namespace_die,
3263 dwarf2out_set_name): Handle dwarf2_name returning NULL.
3265 2009-10-26 Nick Clifton <nickc@redhat.com>
3267 * config.gcc: Add support for RX target.
3268 * config/rx: New directory.
3269 * config/rx/constraints.md: New file.
3270 * config/rx/predicates.md: New file.
3271 * config/rx/rx.c: New file.
3272 * config/rx/rx.h: New file.
3273 * config/rx/rx.md: New file.
3274 * config/rx/rx.opt: New file.
3275 * config/rx/rx-protos.h: New file.
3276 * config/rx/t-rx: New file.
3277 * doc/extend.texi: Document RX function attributes.
3278 * doc/invoke.texi: Document RX specific command line options.
3279 * doc/contrib.texi: Document RX contribution.
3280 * doc/md.texi: Document RX constraints.
3281 * doc/install.texi: Document RX support.
3283 2009-10-26 Michael Matz <matz@suse.de>
3285 PR tree-optimization/41783
3286 * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
3287 case for simple diamonds.
3288 * tree-ssa-alias.h (get_continuation_for_phi): Declare.
3289 * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
3290 argument, use alias oracle to skip some vdefs.
3291 (phi_translate_1): Change call to above, don't allocate new
3292 value ids if they can stay the same.
3293 (compute_avail): Allow vuse walking when looking up references.
3295 2009-10-26 Richard Guenther <rguenther@suse.de>
3297 PR tree-optimization/41826
3298 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
3299 access to re-allocated vector fields.
3301 2009-10-26 Richard Guenther <rguenther@suse.de>
3303 * graphite-sese-to-poly.c (check_poly_representation): Fix
3304 compile without checking.
3306 2009-10-26 Janus Weil <janus@gcc.gnu.org>
3309 * gimple.h (tree_annotate_all_with_location): Remove prototype.
3310 * gimplify.c (tree_should_carry_location_p,
3311 tree_annotate_one_with_location,tree_annotate_all_with_location):
3312 Remove obsolete functions.
3314 2009-10-25 Kaz Kojima <kkojima@gcc.gnu.org>
3317 * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
3319 2009-10-25 Richard Guenther <rguenther@suse.de>
3321 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3322 Stream DECL_RESTRICTED_P.
3323 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3325 2009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
3327 * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
3328 a note when expanding to nothing.
3330 2009-10-25 Richard Guenther <rguenther@suse.de>
3333 * tree.c (find_decls_types_r): Deal with Java overloading
3334 BINFO_VIRTUALS for its own purpose.
3336 2009-10-24 Adam Nemet <anemet@caviumnetworks.com>
3338 * config/mips/predicates.md (hilo_operand): New predicate.
3339 * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
3340 define_insn. Correct !ISA_HAS_EXT_INS length from 24 to 28. Move
3341 splitter part from here ...:
3342 (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here. Swap
3343 op0 and op4 to match the DINS case.
3344 (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
3346 2009-10-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
3349 * avr.md (QIDI): Add new mode iterator.
3350 (sbrx_branch<mode>): Create new zero extract bit, test and jump
3351 patterns for all QI thru DI modes combinations.
3352 (sbrx_and_branch<mode>): Create new and based bit test and jump
3353 patterns for QI thru SI modes.
3354 avr.c (avr_out_sbxx_branch): Use only bit number.
3356 2009-10-24 Jan Hubicka <jh@suse.cz>
3358 * ipa-reference.c (check_call): Noreturn notrhow calls do not write
3360 (analyze_function): When analyzing noreturn nothrow call, do not
3361 compute written stats; free bitmaps of vars early if possible.
3362 (generate_summary): Only update bitmaps if computed.
3363 (propagate): Only dump bitmaps if computed.
3364 (ipa_reference_read_summary): Fix pasto.
3366 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
3368 * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
3369 (aliasing_component_refs_p): ...this. Return true if there is no
3370 common base and the base access types have the same alias set.
3371 (indirect_ref_may_alias_decl_p): Adjust for above renaming.
3372 (indirect_refs_may_alias_p): Likewise.
3374 2009-10-23 Joseph Myers <joseph@codesourcery.com>
3377 * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
3378 a C_MAYBE_CONST_EXPR.
3380 2009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3383 * config/rs6000/rs6000.c (struct machine_function): Add
3384 vsx_or_altivec_used_p to record if vector types are used.
3385 (rs6000_expand_to_rtl_hook): Rename from
3386 rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
3387 any vector operations, so if there are, we can set VRSAVE to
3388 non-zero when only floating point vector registers are used.
3389 (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
3390 (rs6000_check_vector_mode): Inner function to check if vector
3391 types are used in the code.
3392 (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
3393 vector instructions are used.
3395 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
3396 Indicate that VSX registers which overlap floating point
3397 registers, can't be used across a call, since the ABI only states
3398 the scalar part of the register will be saved and restored.
3400 2009-10-23 Joseph Myers <joseph@codesourcery.com>
3403 * alias.c (get_alias_set): Call langhook before returning 0 for
3404 types with structural equality.
3405 * c-common.c (c_common_get_alias_set): Use alias set of element
3406 type for arrays with structural comparison.
3408 2009-10-23 Richard Guenther <rguenther@suse.de>
3411 * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
3412 gimple_call_nothrow_p.
3414 2009-10-23 Richard Guenther <rguenther@suse.de>
3416 PR tree-optimization/41778
3417 * tree-ssa-pre.c (do_regular_insertion): Only insert if a
3418 redundancy along a path in the CFG we want to optimize for speed
3419 is going to be removed.
3420 (execute_pre): Do partial-PRE only if the function is to be
3421 optimized for speed.
3422 (gate_pre): Do not turn off all of PRE when not optimizing a
3425 2009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3427 * builtins.c (fold_builtin_cabs): Use validate_arg().
3428 (fold_builtin_cexp): Fix if-logic.
3429 (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
3431 2009-10-22 Jeff Law <law@redhat.com>
3433 * ira-lives.c (process_single_reg_class_operands): Update the
3434 hard reg costs for all the hard registers desired by the
3435 single reg class operand.
3437 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
3439 * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
3440 for rtxes that aren't handled specially.
3442 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
3444 * rtl.h (shallow_copy_rtvec): Declare.
3445 * rtl.c (shallow_copy_rtvec): New function.
3446 * cselib.c (cselib_subst_to_values): Use it. Only modify an
3447 rtx field if the subrtx has changed.
3449 2009-10-22 Anatoly Sokolov <aesok@post.ru>
3451 * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
3452 (m32c_function_value): Make static, add new 'outgoing' argument.
3453 (m32c_libcall_value): Make static, add new 'fun' argument.
3454 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3455 * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
3456 (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
3457 * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
3458 (m32c_function_value, m32c_libcall_value): Delete declaration.
3460 2009-10-22 Diego Novillo <dnovillo@google.com>
3462 * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
3464 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
3466 * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
3469 2009-10-22 Richard Guenther <rguenther@suse.de>
3471 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
3472 * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
3473 (lto_symtab_merge): Do not merge cgraph nodes here.
3474 (lto_symtab_resolve_can_prevail_p): Simplify.
3475 (lto_symtab_resolve_symbols): Store cgraph node.
3476 (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
3477 functions from the symtab.
3478 (lto_symtab_merge_cgraph_nodes_1): New function.
3479 (lto_symtab_merge_cgraph_nodes): Likewise.
3481 2009-10-22 Richard Guenther <rguenther@suse.de>
3484 * lto-streamer-out.c (lto_output_location): Stream the
3486 * lto-streamer-in.c (lto_input_location): Likewise.
3488 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
3490 * cfgloopmanip.c (duplicate_subloops): Export.
3491 * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
3492 (transform_to_exit_first_loop): Duplicate bbs starting from
3493 header up to loop->latch instead of exit->src.
3494 Initialize control variable to the correct number of iterations.
3495 (gather_scalar_reductions): Do not register double reductions.
3496 (parallelize_loops): Dump which loop is tested.
3497 Indicate whether the parallelized loop is inner or not.
3498 Remove the innermost-loop requirement.
3499 * cfgloop.h (duplicate_subloops): Export.
3500 * tree-cfg.c (add_phi_args_after_redirect): New function.
3501 (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
3502 Call duplicate_subloops.
3503 Update number of iterations at the exit condition.
3504 Don't redirect nexits always to the loop exit.
3505 Redirect copied edges from latch to the loop exit.
3507 2009-10-22 Jan Hubicka <jh@suse.cz>
3509 * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
3511 * ipa-inline.c (cgraph_mark_inline_edge,
3512 cgraph_decide_inlining_of_small_function,
3513 cgraph_decide_inlining, inline_read_summary): Disable indirect
3514 inlining for WPA for time being.
3516 PR tree-optimize/40556
3517 * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
3519 2009-10-22 Richard Guenther <rguenther@suse.de>
3521 * lto-streamer.h (lto_symtab_clear_resolution): Remove.
3522 * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
3524 2009-10-22 Jan Hubicka <jh@suse.cz>
3527 * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
3529 (check_call): Handle only indirect calls.
3530 (propagate_bits): Update comment.
3531 (write_node_summary_p): Turn bogus check to assert.
3532 (ipa_reference_write_summary): Stream calls_read_all properly.
3533 (ipa_reference_read_summary): Stream in calls_read_all properly.
3534 (read_write_all_from_decl): New function.
3535 (propagate): Handle OVERWRITABLE nodes and external calls here.
3536 * ipa-pre-const.c (check_call): In IPA mode handle indirect
3538 (analyze_function): Do not check visibility here.
3539 (add_new_function): We summary OVERWRITABLE too.
3540 (generate_summary): Stream OVERWRITABLE nodes too.
3541 (propagate): Handle external calls and OVERWRITABLE nodes here.
3542 (local_pure_const): Check visibility here.
3544 2009-10-22 Jan Hubicka <jh@suse.cz>
3546 * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
3547 (pass_ipa_cp): Register them.
3548 (ipcp_init_stage): Analyze all functions for whopr/lto.
3549 (ipcp_propagate_stage): Skip external calls.
3550 (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
3551 * ipa-reference.c (write_node_summary_p): Fix thinko about
3553 * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
3554 when in ltrans, skip executing of ipa passes since everything
3555 should've been done.
3556 * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
3557 (inline_generate_summary): Likewise.
3558 (inline_read_summary): New function.
3559 (inline_write_summary): New function.
3560 (pass_ipa_inline): Register new hooks.
3561 * ipa-prop.c: Inlcude lto-streamer.h
3562 (ipa_edge_args_vector): Update declaration.
3563 (ipa_count_arguments, ipa_compute_jump_functions,
3564 ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
3565 (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
3566 ipa_read_node_info): New static functions.
3567 (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
3568 (duplicate_array): Use xmalloc.
3569 (duplicate_ggc_array): New.
3570 (ipa_edge_duplication_hook): Use it.
3571 (ipa_update_after_lto_read): New function.
3572 * ipa-prop.h (ipa_prop_write_jump_functions,
3573 ipa_prop_read_jump_functions): Declare.
3574 (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
3575 jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
3576 (ipa_edge_args_vector): Move into GGC.
3577 (ipa_check_create_edge_args): Update.
3578 (ipa_update_after_lto_read): New.
3579 * passes.c (ipa_write_summaries_1): When in wpa, do not write
3581 (ipa_read_summaries): When in ltrans, so not read summaries.
3582 * lto-streamer.c (lto_get_section_name): Add
3583 LTO_section_jump_functions.
3584 * lto-streamer.h (LTO_section_jump_functions): New section.
3585 (produce_asm): Declare.
3586 * lto-cgraph.c (output_cgraph): Output edges in reverse order.
3587 * lto-streamer-out.c (produce_asm): Export.
3588 * lto-streamer-in.c: Include tree-pass.h
3589 (input_function): Free dominance info when done.
3590 (lto_read_body): Push ipa_inline in ltrans stage.
3591 * gengtype.c (open_base_files): Add ipa-prop.h into includes.
3592 * Makefile.in (GTFILES): Add ipa-prop.h
3594 2009-10-22 Matthias Klose <doko@ubuntu.com>
3596 * doc/install.texi: Document --enable-browser-plugin.
3598 2009-10-21 Vladimir Makarov <vmakarov@redhat.com>
3600 * doc/invoke.texi (fira-loop-pressure): Update default value.
3601 * opts.c (decode_options): Remove default value setting for
3602 flag_ira_loop_pressure.
3603 * config/ia64/ia64.c (ia64_override_options): Set
3604 flag_ira_loop_pressure up for -O3.
3605 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
3607 2009-10-21 Sebastian Pop <sebastian.pop@amd.com>
3609 PR tree-optimization/41497
3610 * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
3611 chrec_dont_know if the evolution function returned by follow_ssa_edge
3612 is constant in the analyzed loop and is not compatible with the
3613 initial value before the loop.
3614 * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
3616 2009-10-21 Joseph Myers <joseph@codesourcery.com>
3618 * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
3620 2009-10-21 Jakub Jelinek <jakub@redhat.com>
3623 * doc/invoke.texi: Document -print-multi-os-directory.
3625 2009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
3628 * gcc/config/darwin10.h: Use default_emit_unwind_label.
3629 * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
3630 when darwin_emit_unwind_label is used.
3632 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
3634 * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
3637 2009-10-20 Richard Henderson <rth@redhat.com>
3639 * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
3640 before emit_post_landing_pad.
3642 2009-10-20 Adam Nemet <anemet@caviumnetworks.com>
3644 * config/mips/mips.c (mips_binary_cost): Add new argument speed.
3645 Use when calling rtx_costs.
3646 (mips_rtx_costs): Fix formatting. Use argument speed rather than the
3647 global optimize_size. Pass speed to mips_binary_cost.
3649 2009-10-20 Jakub Jelinek <jakub@redhat.com>
3651 * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
3654 2009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
3656 * rtl.h (simplify_replace_fn_rtx): Declare.
3657 (wrap_constant, unwrap_constant): Delete.
3658 * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
3659 (expand_debug_expr): Don't call wrap_constant.
3660 * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
3661 (auto_adjust_pair): Fold into...
3662 (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
3663 Just return a new value.
3664 (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
3665 otherwise use simplify_replace_rtx.
3666 * cselib.c (wrap_constant): Reinstate old definition.
3667 (cselib_expand_value_rtx_1): Don't wrap constants.
3668 * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
3669 simplify_replace_rtx.
3670 (bypass_block): Fix formatting in calls to simplify_replace_rtx.
3671 * reload1.c (reload): Skip all uses for an insn before adjusting it.
3672 Use simplify_replace_rtx.
3673 * simplify-rtx.c (simplify_replace_fn_rtx): New function,
3675 (simplify_replace_rtx): ...here. Turn into a wrapper for
3676 simplify_replace_fn_rtx.
3677 (simplify_unary_operation): Don't unwrap CONSTs.
3678 * var-tracking.c (check_wrap_constant): Delete.
3679 (vt_expand_loc_callback): Don't call it.
3680 (vt_expand_loc): Likewise.
3682 2009-10-20 Pascal Obry <obry@adacore.com>
3683 Eric Botcazou <ebotcazou@adacore.com>
3685 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
3687 2009-10-20 Michael Matz <matz@suse.de>
3689 * loop-invariant.c (create_new_invariant): Use different magic number.
3691 2009-10-20 Richard Earnshaw <rearnsha@arm.com>
3694 * arm.c (arm_override_options): Forcibly disable hot/cold block
3697 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
3700 * haifa-sched.c (try_ready): Skip debug deps updating speculation
3703 2009-10-20 Richard Guenther <rguenther@suse.de>
3705 * ggc-page.c: Include cfgloop.h.
3706 (struct max_alignment): Drop long double, add void *.
3707 (extra_order_size_table): Add low non-power-of-two multiples
3708 of MAX_ALIGNMENT. Drop small type-based entries, add
3709 tree_type, cgraph_node and loop.
3710 * alloc-pool.c (struct allocation_object_def): Drop long double
3713 2009-10-20 Jakub Jelinek <jakub@redhat.com>
3716 * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
3717 referenced just in DEBUG_INSNs.
3719 2009-10-20 Richard Guenther <rguenther@suse.de>
3722 * gimple.c (gimple_register_type): Make sure we register
3723 the types main variant first.
3725 2009-10-20 Richard Guenther <rguenther@suse.de>
3727 * gimple.c (gimple_types_compatible_p): Simplify. Move
3728 cheap checks before hashtable queries. Add checks for
3729 TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
3731 2009-10-20 Eric Botcazou <ebotcazou@adacore.com>
3733 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
3734 without size or with size that can't be represented as a host integer.
3736 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
3738 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
3739 the removal of a debug stmt as a significant change.
3741 2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
3743 * config/s390/s390.md: Added agen condition to operand
3744 forwarding bypasses. Added bypass for early address generation
3745 use of int results. Updated comments.
3747 2009-10-20 Stefan Dösinger <stefan@codeweavers.com>
3749 * config/i386/i386.c: Remove signal.h #include.
3751 2009-10-20 Jie Zhang <jie.zhang@analog.com>
3753 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
3754 * doc/rtl.texi: Document ss_abs.
3756 2009-10-19 Jakub Jelinek <jakub@redhat.com>
3758 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
3759 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
3760 instead of C_LEX_RAW_STRINGS.
3761 (lex_string): Handle CPP_UTF8STRING.
3762 * c-parser.c (c_parser_postfix_expression): Likewise.
3763 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
3764 (C_LEX_STRING_NO_JOIN): ... this.
3766 2009-10-19 Anatoly Sokolov <aesok@post.ru>
3768 * config/cris/cris.c (cris_function_value, cris_libcall_value,
3769 cris_function_value_regno_p): New functions.
3770 (cris_promote_function_mode): Update comment.
3771 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3772 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
3773 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
3774 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
3776 2009-10-19 Jakub Jelinek <jakub@redhat.com>
3778 * unwind-dw2.c (execute_stack_op): Fix operand order for
3779 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
3781 2009-10-19 Eric Botcazou <ebotcazou@adacore.com>
3783 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
3784 (lower_stmt) <GIMPLE_BIND>: Add comment.
3785 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
3787 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
3788 Otherwise lower it and set cannot_fallthru to true.
3789 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
3790 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
3791 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
3792 to true for a noreturn call. Do not remove statements.
3793 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
3794 Set cannot_fallthru to false on function exit.
3795 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
3796 <GIMPLE_ASSIGN>: Remove.
3798 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3800 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
3802 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3804 * config/s390/s390.c (s390_z10_optimize_cmp): Use
3805 next/prev_active_insn to skip DEBUG_INSNs as well.
3807 2009-10-19 Joseph Myers <joseph@codesourcery.com>
3809 * config/arm/arm.c (output_move_neon): Use DImode in call to
3812 2009-10-19 Matthias Klose <doko@ubuntu.com>
3815 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
3817 2009-10-19 Jakub Jelinek <jakub@redhat.com>
3819 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
3821 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
3824 * optabs.c (expand_binop): Make mode of shift count expression mode
3825 of shift count not target.
3828 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
3830 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
3831 case. Force using values to replace references within the statement.
3832 (convert_local_reference_stmt): Likewise.
3834 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
3836 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
3837 remove a subsequent GOTO or RETURN statement.
3839 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
3841 * config/avr.md (*movqi): Add zero as equally preferable constraint
3842 as general register.
3845 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
3847 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
3849 2009-10-17 Richard Guenther <rguenther@suse.de>
3851 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
3853 2009-10-17 Richard Guenther <rguenther@suse.de>
3855 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
3856 operands in COMPONENT_REFs.
3858 2009-10-17 Anatoly Sokolov <aesok@post.ru>
3860 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
3861 if not defined. Change type of second argument to const_rtx.
3862 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
3864 * targhooks.h (default_libcall_value): Update prototype.
3865 * target.h (struct gcc_target): Change type of second argument of
3866 libcall_value to const_rtx.
3867 * config/arm/arm.c (arm_libcall_value): Change type of second argument
3869 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
3870 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
3872 2009-10-17 Jakub Jelinek <jakub@redhat.com>
3875 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
3876 * cgraphunit.c (cgraph_optimize): Call it.
3877 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
3878 (dwarf2out_assembly_start): ... here. New hook.
3879 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
3880 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
3882 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
3883 * sdbout.c (sdb_debug_hooks): Likewise.
3884 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
3885 (vmsdbgout_assembly_start): New hook.
3887 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
3889 * rtl.h (RTL_LOCATION): Fix typo.
3891 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
3893 * print-rtl.c (print_rtx): Print locators in asm_operands
3896 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
3899 * sched-deps.c (depl_on_debug_p): New.
3900 (attach_dep_link): Reject debug deps before nondebug deps.
3901 (add_to_deps_list): Insert debug deps after nondebug deps.
3902 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
3904 (sd_add_dep): Do not reject debug deps.
3905 (add_insn_mem_dependence): Don't count debug deps.
3906 (remove_from_deps): Likewise.
3907 (sched_analyze_2): Set up mem deps on debug insns.
3908 (sched_analyze_insn): Record reg uses for deps on debug insns.
3909 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
3910 try_ready nondebug insn after debug insn.
3911 * ddg.c (create_ddg_dep_from_intra_loop_link,
3912 create_ddg_dep_no_link): Don't reject debug deps.
3914 2009-10-16 Richard Guenther <rguenther@suse.de>
3916 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
3917 (maybe_merge_incomplete_and_complete_type): Likewise.
3918 (lto_symtab_merge): Do not call them. Do not warn for
3919 complete vs. incomplete compatible types.
3920 (lto_symtab_merge_decls_2): Simplify.
3921 * gimple.c (gimple_force_type_merge): Remove.
3922 (gimple_types_compatible_p): Make it static.
3923 * gimple.h (gimple_force_type_merge): Remove.
3924 (gimple_types_compatible_p): Likewise.
3926 2009-10-16 Jakub Jelinek <jakub@redhat.com>
3928 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
3929 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
3931 2009-10-16 Richard Guenther <rguenther@suse.de>
3933 PR tree-optimization/41728
3934 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
3935 if fold_stmt did anything.
3937 2009-10-16 Richard Guenther <rguenther@suse.de>
3940 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
3941 (maybe_fixup_handled_component): New function.
3942 (input_gimple_stmt): Fixup mismatched decl replacements.
3944 2009-10-16 Richard Guenther <rguenther@suse.de>
3947 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
3948 the same as VAR_DECL.
3950 2009-10-16 Richard Guenther <rguenther@suse.de>
3952 * gimple.c (iterative_hash_gimple_type): For integer types
3953 also hash their minimum and maximum values and the string flag.
3954 For array types hash their domain and the string flag.
3956 2009-10-16 Richard Guenther <rguenther@suse.de>
3958 * gimple.c (gimple_types_compatible_p): Restrict completing
3959 types to record or unions. Simplify completion.
3960 Do not merge records or unions with different
3961 TYPE_STRUCTURAL_EQUALITY_P tag.
3962 (iterative_hash_gimple_type): Restrict non-recursing into
3963 pointer targets for records and unions.
3965 2009-10-15 Jakub Jelinek <jakub@redhat.com>
3968 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
3969 * dwarf2out.c (mem_loc_descriptor): Don't handle
3970 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
3971 punt if it is not lowpart subreg or if inner mode isn't
3974 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3976 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
3977 investigating previous or next insns.
3979 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
3981 * tree-sra.c (build_ref_for_offset_1): Update comment.
3983 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
3985 * config/s390/s390.md (atype): Added missing values.
3987 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3990 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
3991 (casesi64p): Update pattern to reflect above.
3993 2009-10-15 Steve Ellcey <sje@cup.hp.com>
3995 PR rtl-optimization/41697
3996 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
3998 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
4001 * config/rs6000/predicates.md: Update copyright year.
4002 * config/rs6000/altivec.md: Ditto.
4004 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
4005 (MD_INCLUDES): Add a2.md.
4007 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
4008 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
4009 (builtin_classify): New static vector to classify various builtins
4010 to get the tree attributes correct.
4011 (def_builtin): Set the attributes of builtins based on what the
4012 builtin does (i.e. memory operation, floating point, saturation
4013 need special attributes, others are pure functions).
4015 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
4017 (enum rs6000_builtins): Include rs6000-builtin.def to define the
4018 builtins. Change the end marker to MAX_RS6000_BUILTINS from
4019 RS6000_BUILTIN_COUNT.
4020 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
4021 MAX_RS6000_BUILTINS.
4023 * config/rs6000/rs6000-builtin.def: New file that combines the
4024 builtin enumeration name and attributes.
4026 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
4028 * config/i386/linux.h (ASM_SPEC): Add --32.
4030 2009-10-15 Jakub Jelinek <jakub@redhat.com>
4032 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
4033 and DW_TAG_template_alias.
4034 (dwarf_attr_name): Handle DW_AT_main_subprogram,
4035 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
4036 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
4037 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
4038 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
4039 and DW_AT_GNU_odr_signature.
4040 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
4041 DW_FORM_flag_present and DW_FORM_ref_sig8.
4042 (output_signature): Only print name on the first byte.
4043 (output_die): Likewise for dw_val_class_data8.
4045 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
4047 * doc/invoke.texi: Clarify that most optimizations are not enabled
4050 2009-10-15 Richard Guenther <rguenther@suse.de>
4053 * gimple.c (compare_type_names_p): Handle anonymous names
4054 differently based on new mode argument.
4055 (gimple_types_compatible_p): For structs also compare the tags.
4056 (iterative_hash_type_name): Rename to ...
4057 (iterative_hash_name): ... this. Hash all names.
4058 (iterative_hash_gimple_type): Fix hashing the struct tag of
4059 pointer targets. Hash field decl names.
4061 2009-10-15 Richard Guenther <rguenther@suse.de>
4064 * gimple.c (gimple_get_alias_set): Avoid recursing on
4065 invalid type topology.
4067 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4069 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
4071 2009-10-15 Richard Guenther <rguenther@suse.de>
4073 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
4075 2009-10-15 Jakub Jelinek <jakub@redhat.com>
4077 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
4078 add --with-tune{,-32,-64} configured default for -mtune if explicit
4081 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
4083 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
4085 2009-10-14 DJ Delorie <dj@redhat.com>
4087 * config/h8300/h8300.c (F): New.
4089 (h8300_emit_stack_adjustment): Call them.
4091 (h8300_push_pop): Likewise.
4092 (h8300_expand_prologue): Likewise.
4093 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
4094 (MUST_USE_SJLJ_EXCEPTIONS): Define.
4095 (INCOMING_RETURN_ADDR_RTX): Define.
4096 (INCOMING_FRAME_SP_OFFSET): Define.
4097 (DWARF_CIE_DATA_ALIGNMENT): Define.
4099 2009-10-14 Jakub Jelinek <jakub@redhat.com>
4101 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
4102 fields in builtin structs.
4103 (finalize_record_size): Likewise.
4105 2009-10-14 Richard Guenther <rguenther@suse.de>
4107 * gimple.c (gtc_ob): New global.
4108 (struct type_pair_d): Replace pointers with type UIDs.
4109 (type_pair_hash): Adjust.
4110 (type_pair_eq): Likewise.
4111 (lookup_type_pair): Likewise. Allocate from an obstack.
4112 (gimple_force_type_merge): Adjust.
4113 (gimple_types_compatible_p): Likewise.
4114 (free_gimple_type_tables): Free the obstack.
4116 2009-10-14 Jakub Jelinek <jakub@redhat.com>
4118 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
4119 stmts setting DEBUG_EXPR_DECLs.
4121 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
4122 Don't crash if mode1 is VOIDmode.
4124 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
4126 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
4127 * params.h (IRA_LOOP_RESERVED_REGS): New.
4128 * tree-pass.h (pass_subregs_of_mode_init,
4129 pass_subregs_of_mode_finish): Remove.
4130 * passes.c (pass_subregs_of_mode_init,
4131 pass_subregs_of_mode_finish): Remove.
4132 (pass_reginfo_init): Move before loop optimizations.
4133 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
4134 * common.opt (fira-loop-pressure): New.
4135 * toplev.h (flag_ira_loop_pressure): New.
4136 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
4137 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
4138 Make external and void type functions.
4139 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
4140 pass_subregs_of_mode_finish): Remove.
4141 * ira-costs.c (init_costs): Call init_subregs_of_mode.
4142 * regmove.c: Include ira.h.
4143 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
4144 register pressure calculation in loops.
4145 * loop-invariant.c: Include REGS_H and ira.h.
4146 (struct loop_data): New members max_reg_pressure, regs_ref, and
4148 (struct invariant): New member orig_regno.
4149 (curr_loop): New variable.
4150 (find_exits): Initialize regs_ref and regs_live.
4151 (create_new_invariant): Initialize orig_regno.
4152 (get_cover_class_and_nregs): New.
4153 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
4154 array. Add code for flag_ira_loop_pressure.
4155 (gain_for_invariant): Make new_regs an array. Add code for
4156 flag_ira_loop_pressure.
4157 (best_gain_for_invariant): Ditto.
4158 (set_move_mark): New parameter gain. Use it for debugging output.
4159 (find_invariants_to_move): Make regs_needed and new_regs an array.
4160 Add code for flag_ira_loop_pressure.
4161 (move_invariant_reg): Set up orig_regno.
4162 (move_invariants): Set up reg classes for pseudos for
4163 flag_ira_loop_pressure.
4164 (free_loop_data): Clear regs_ref and regs_live.
4165 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
4166 get_regno_cover_class, change_pressure, mark_regno_live,
4167 mark_regno_death, mark_reg_store, mark_reg_clobber,
4168 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
4169 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
4170 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
4171 register pressure calculation in loops if new regs were added.
4172 Call finish_subregs_of_mode.
4173 * opts.c (decode_options): Set up flag_ira_loop_pressure.
4174 * Makefile.in (loop-invariant.o): Add ira.h.
4176 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
4178 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
4180 2009-10-14 Richard Guenther <rguenther@suse.de>
4182 * lto-symtab.c (lto_symtab_compatible): Fold in ...
4183 (lto_symtab_merge): ... here. Rewrite both to take the
4184 prevailing and a to-be-merged entry and to queue diagnostics properly.
4185 (lto_symtab_resolve_replaceable_p): New predicate for
4187 (lto_symtab_resolve_can_prevail_p): Likewise.
4188 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
4189 handles merging commons by choosing the largest decl. Fold
4190 in code that gives ODR errors.
4191 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
4193 (lto_symtab_merge_decls_1): Re-structure. Deal with the
4194 case of no prevailing decl here. Diagnose mismatches
4195 in object types here. Drop all but the prevailing decls.
4196 (lto_symtab_prevailing_decl): Return the single prevailing decl.
4197 * lto-streamer-in.c (lto_input_tree_ref): Deal with
4198 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
4200 2009-10-14 Richard Guenther <rguenther@suse.de>
4203 * lto-streamer-in.c (input_bb): Replace debug stmts with
4204 nops instead of dropping them.
4206 2009-10-14 Nick Clifton <nickc@redhat.com>
4208 * gcc/doc/extended.texi: Replace the dash character with @minus{}
4209 in situations where it is being used as a minus symbol.
4210 * gcc/doc/tm.texi: Likewise.
4211 * gcc/doc/md.texi: Likewise.
4213 2009-10-14 Jakub Jelinek <jakub@redhat.com>
4215 PR preprocessor/41543
4216 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
4217 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
4218 * tree.c: Include intl.h.
4219 (expand_location): Handle BUILTINS_LOCATION.
4220 * Makefile.in (tree.o): Depend on intl.h.
4223 * dwarf2out.c (dwarf2out_var_location): Always clear
4224 last_postcall_label when changing last_label.
4226 2009-10-14 Pascal Obry <obry@adacore.com>
4228 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
4229 (process_command): Handle -E as done with -c and -S. Do not add
4230 the target executable suffix to the output file when -E is used.
4231 (main): Adjust error message accordingly.
4233 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
4239 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
4241 (tree_code_size): Likewise.
4243 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4245 * builtins.c (fold_builtin_1): Support complex "arc" functions.
4246 * real.h (HAVE_mpc_arc): Define.
4248 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
4250 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
4251 (struct builtin_description): Add fndecl field.
4252 (bdesc): Remove const qualifier. Update initializer.
4253 (sh_media_init_builtins): Remove const qualifier for d. Record
4254 the result of add_builtin_function to the fndecl field.
4255 (sh_builtin_decl): New.
4256 (sh_media_builtin_decl): New.
4258 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
4261 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
4262 requests between special registers.
4264 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
4266 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
4268 2009-10-13 Richard Henderson <rth@redhat.com>
4270 PR tree-optimization/41377
4271 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
4272 (cleanup_empty_eh_merge_phis): New change_region parameter;
4273 pass it on to redirect_eh_edge_1. Update callers.
4274 (cleanup_empty_eh_unsplit): Don't require an existing EH label
4275 at the destination block.
4277 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
4279 * passes.c (register_pass): Replaced gcc_unreachable by
4280 fatal_error on failure. Mentions plugins in comments & messages.
4282 2009-10-13 Jakub Jelinek <jakub@redhat.com>
4285 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
4286 * sched-vis.c (print_value): Use it.
4287 * cselib.c (cselib_hash_rtx): Likewise.
4288 * print-rtl.c (print_rtx): Likewise.
4289 * cfgexpand.c (expand_debug_rtx): Likewise.
4290 * var-tracking.c (vt_expand_loc_callback): Likewise.
4292 2009-10-13 Richard Guenther <rguenther@suse.de>
4295 * opts.c (handle_option): Split out code to handle setting
4296 the options flag var ...
4297 (set_option): ... here.
4298 * opts.h (set_option): Declare.
4299 * lto-opts.c (register_user_option_p): Include -fexceptions
4300 and all position independent code variants.
4301 (handle_common_option): Remove.
4302 (lto_reissue_options): Use set_option.
4304 2009-10-13 Martin Jambor <mjambor@suse.cz>
4306 PR tree-optimization/41661
4307 * ipa-prop.c (compute_complex_pass_through): Allow only operations
4308 that are tcc_comparisons or do not change the type in any
4310 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
4311 folding tcc_comparison operations.
4313 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4315 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
4318 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
4324 * tree.def (DEBUG_EXPR_DECL): New.
4325 * rtl.def (DEBUG_EXPR): New.
4326 * gengtype.c (adjust_field_rtx_def): Handle it.
4327 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
4328 (insert_debug_temp_for_var_def): ... this. Drop support for
4329 moving. Take iterator for def stmt; insert debug stmt before it.
4330 Scan early for use count and kind in debug stmts.
4331 (propagate_defs_into_debug_stmts): Rename to...
4332 (insert_debug_temps_for_defs): ... this. Likewise.
4333 * tree.h (DEBUG_TEMP_UID): New.
4334 * tree.c (next_debug_decl_uid): New.
4335 (make_node_stat): Count debug decls separately.
4336 (copy_node_stat): Likewise.
4337 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
4338 * var-tracking.c (dv_is_decl_p): Recognize it.
4339 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
4340 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
4341 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
4342 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
4343 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
4344 (cselib_hash_rtx): Likewise.
4345 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
4346 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
4348 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
4349 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
4350 * rtl.c (copy_rtx): Likewise.
4351 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
4352 * print-rtl.c (print_rtx): Likewise.
4353 * sched-vis.c (print_value): Likewise.
4354 (print_insn): Handle DEBUG_EXPR_DECL.
4355 * tree-dump.c (dequeue_and_dump): Likewise.
4356 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
4357 * gimple-iterator (gsi_replace): Check for same lhs.
4358 (gsi_remove): Insert debug temps.
4359 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
4360 (move_computations_stmt): Drop explicit propagation into debug stmts.
4361 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
4362 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
4363 * tree-ssa-sink.c (statement_sink_location): Likewise.
4364 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
4365 * tree-ssanames.c (release_ssa_name): Adjust for rename.
4366 * tree-flow.h: Likewise.
4367 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
4368 debug temps without values.
4369 (eliminate_unnecessary_stmts): Don't discard just-inserted
4372 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
4375 * config/cris/cris.md (andu): Check that operand 1 is one of the
4376 general registers. Fix typo in head comment.
4378 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
4380 * config/i386/i386.md (vswapmov): New.
4381 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
4382 (ix86_function_ms_hook_prologue): New.
4383 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
4384 * configure.ac: Test for swap suffix support in as.
4385 * configure: Rebuild.
4387 2009-10-12 Jakub Jelinek <jakub@redhat.com>
4390 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
4391 paradoxical subregs to prevent partial register stalls if the inner
4392 mode is integer mode.
4394 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
4396 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
4398 2009-10-12 Dodji Seketeli <dodji@redhat.com>
4401 * gcc/dwarf2out.c (template_parameter_pack_die,
4402 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
4404 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
4407 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
4409 (maybe_register_def): Likewise. Take stmt iterator.
4410 (rewrite_update_stmt): Take stmt iterator and pass it on.
4411 (rewrite_update_enter_block): Pass stmt iterator.
4413 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
4415 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
4416 (spu_builtin_decl): New function.
4418 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
4420 * config/i386/i386.md (SWIM): New mode iterator.
4421 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
4422 using SWIM mode iterator.
4423 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
4424 patterns using SWI48 mode iterator.
4425 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
4426 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
4427 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
4428 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
4429 patterns using SWI248 mode iterator.
4430 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
4431 gen_x86_movdicc_0_m1_rex64 for renamed function
4433 2009-10-11 Jose Ruiz <ruiz@adacore.com>
4434 Eric Botcazou <ebotcazou@adacore.com>
4437 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
4438 * config/sparc/sol2-unwind.h: New file.
4440 2009-10-11 Olivier Hainque <hainque@adacore.com>
4441 Eric Botcazou <ebotcazou@adacore.com>
4444 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
4445 * config/i386/sol2-unwind.h: New file.
4447 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
4450 * config/i386/i386.md (addsi_1_zext): Get the proper second
4453 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
4455 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
4456 all OLD_RTXes, not just REGs. Use copy_rtx to create the
4459 2009-10-11 Richard Guenther <rguenther@suse.de>
4461 * gimple.c (iterative_hash_type_name): Do not handle special
4464 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
4466 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
4467 (*setcc_si_1_and): Ditto.
4468 (*setcc_si_1_movzbl): Ditto.
4469 (*setcc_<mode>_2): Ditto.
4470 (*setcc_qi): Rename from *setcc_1.
4471 (*setcc_qi_slp): Rename from *setcc_2.
4473 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
4474 (*zero_extendqisi2_movzbw_and splitter): Ditto.
4476 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
4477 "if" condition, there is already assert with reload_completed present.
4479 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
4481 * plugin.c (try_init_one_plugin): Improve constness of variable err.
4483 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
4485 * doc/install.texi (Final install): Refer to
4486 http://gcc.gnu.org/bugs/ for bug reporting.
4488 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
4490 * configure.ac: Add test for dci instruction.
4491 * configure: Regenerate.
4492 * config.in: Likewise.
4493 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
4494 * doc/invoke.texi: Add cpu_type 476 and 476fp.
4495 (-mmulhw): Add 476 to description.
4496 (-mdlmzb): Likewise.
4497 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
4498 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
4499 (processor_target_table): Add 476 and 476fp entries.
4500 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
4501 (rs6000_issue_rate): Add CPU_PPC476.
4502 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
4503 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
4504 (processor_type): Add PROCESSOR_PPC476.
4505 (EXTRA_SPECS): Add asm_cpu_476 string.
4506 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
4507 (define_attr "cpu"): Add ppc476.
4509 Update comments for 476.
4510 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
4511 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
4512 Update copyright year.
4513 * config/rs6000/476.md: New file.
4514 * config/rs6000/40x.md: Add description for "isel" attribute.
4515 Update copyright year.
4516 * config/rs6000/440.md: Likewise.
4517 * config/rs6000/603.md: Likewise.
4518 * config/rs6000/6xx.md: Likewise.
4519 * config/rs6000/7450.md: Likewise.
4520 * config/rs6000/7xx.md: Likewise.
4521 * config/rs6000/8540.md: Likewise.
4522 * config/rs6000/cell.md: Likewise.
4523 * config/rs6000/e300c2c3.md: Likewise.
4524 * config/rs6000/e500mc.md: Likewise.
4525 * config/rs6000/mpc.md: Likewise.
4526 * config/rs6000/power4.md: Likewise.
4527 * config/rs6000/power5.md: Likewise.
4528 * config/rs6000/power6.md: Likewise.
4529 * config/rs6000/power7.md: Likewise.
4530 * config/rs6000/rios1.md: Likewise.
4531 * config/rs6000/rios2.md: Likewise.
4532 * config/rs6000/rs64.md: Likewise.
4534 2009-10-10 Richard Guenther <rguenther@suse.de>
4536 PR tree-optimization/41654
4537 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
4538 a cond expr before calling gimple_cond_set_condition_from_tree.
4539 (ifcombine_iforif): Likewise.
4541 2009-10-09 Ian Lance Taylor <iant@google.com>
4543 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
4544 * configure: Rebuild.
4546 2009-10-09 Neil Vachharajani <nvachhar@google.com>
4548 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
4551 2009-10-09 Richard Guenther <rguenther@suse.de>
4554 * target-def.h (TARGET_BUILTIN_DECL): Define.
4555 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
4556 * target.h (struct gcc_target): Add builtin_decl target hook.
4557 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
4558 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
4560 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
4561 not gcc_unreachable.
4562 (lto_output_builtin_tree): Sorry if the target does not support
4563 streaming target builtins.
4564 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
4565 (rs6000_builtin_decl): New function.
4566 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
4567 (ix86_builtin_decl): New function.
4569 2009-10-09 Jakub Jelinek <jakub@redhat.com>
4571 PR preprocessor/41445
4572 * c-ppoutput.c (do_line_change): New function.
4573 (cb_line_change): Use it.
4574 (scan_translation_unit): Call do_line_change if
4575 avoid_paste or PREV_WHITE and token location is on a different line
4576 than print.src_line.
4579 * dwarf2out.c (dwarf2out_init): Test whether
4580 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
4583 PR rtl-optimization/41646
4584 * calls.c (expand_call): For BLKmode types returned in registers
4585 avoid likely spilled hard regs in copy_blkmode_from_reg generated
4588 2009-10-09 Richard Guenther <rguenther@suse.de>
4590 PR tree-optimization/41634
4591 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
4592 we remove the correct elements.
4593 (optimize_stmt): Make sure to update stmt operands before
4594 optimizing redundancies.
4596 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4598 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
4600 2009-10-09 Richard Guenther <rguenther@suse.de>
4603 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
4605 (lto_wrapper_exit): New function.
4607 (fatal_perror): Likewise.
4608 (fork_execute): Use global args_name, do not free it.
4609 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
4610 * lto-streamer.h: Remove duplicate prototypes.
4612 2009-10-09 Richard Guenther <rguenther@suse.de>
4614 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
4615 before calling stmt_can_throw_external.
4617 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
4619 PR tree-optimization/40071
4620 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
4621 pointer if the original data reference doesn't conflict with the
4622 created vector data reference. Fix long line.
4624 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
4626 * config/i386/i386.md (any_div): New code iterator.
4627 (u): Handle div and udiv.
4629 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
4631 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
4632 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
4633 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
4634 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
4636 2009-10-08 Joseph Myers <joseph@codesourcery.com>
4638 * gcc.c (main): Remove trailing "." from diagnostics.
4640 2009-10-08 Cary Coutant <ccoutant@google.com>
4642 Add support for debugging with ICF (Identical Code Folding).
4643 * calls.c (debug.h): New #include.
4644 (emit_call_1): Call virtual_call_token debug hook.
4645 * common.opt (-fenable-icf-debug): New option.
4646 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
4647 locations in the source).
4648 (poc_label_num): New variable.
4649 (dcall_entry, vcall_entry): New typedefs.
4650 (dcall_table, vcall_table): New variables.
4651 (struct vcall_insn): New type.
4652 (vcall_insn_table): New variable.
4653 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
4654 (size_of_dcall_table): New function.
4655 (output_dcall_table): New function.
4656 (size_of_vcall_table): New function.
4657 (output_vcall_table): New function.
4658 (dwarf2out_direct_call): New function.
4659 (vcall_insn_table_hash): New function.
4660 (vcall_insn_table_eq): New function.
4661 (dwarf2out_virtual_call_token): New function.
4662 (dwarf2out_virtual_call): New function.
4663 (dwarf2out_init): Allocate new tables and sections.
4664 (prune_unused_types): Mark DIEs referenced from direct call table.
4665 (dwarf2out_finish): Output direct and virtual call tables.
4666 * final.c (final_scan_insn): Call direct_call and virtual_call
4668 * debug.h (struct gcc_debug_hooks): Add direct_call,
4669 virtual_call_token, virtual_call hooks.
4670 (debug_nothing_uid): New function.
4671 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
4672 (debug_nothing_uid): New function.
4673 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
4674 (xcoff_debug_hooks): Likewise.
4675 * sdbout.c (sdb_debug_hooks): Likewise.
4676 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4677 * doc/invoke.texi (-fenable-icf-debug): New option.
4679 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
4682 * regmove.c (regmove_backward_pass): Replace src with dst in the
4683 debug insn, and check for dst before rather than after.
4685 2009-10-08 Janis Johnson <janis187@us.ibm.com>
4687 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
4688 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
4690 2009-10-08 Jan Hubicka <jh@suse.cz>
4693 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
4694 do not mark cgraph nodes as needed.
4695 (record_references_in_initializer): Add new only_vars parameter.
4696 * cgraph.h (record_references_in_initializer): New parameter.
4697 * varasm.c (assemble_variable): Update call.
4698 * varpool.c (varpool_analyze_pending_decls): Always look for
4701 2009-10-08 Anatoly Sokolov <aesok@post.ru>
4703 * config/avr/avr.c (last_insn_address) Remove variable.
4704 (expand_prologue): Don't initialise last_insn_address variable.
4705 (final_prescan_insn): Don't output insn size.
4706 * config/avr/avr.opt (msize): Remove switch.
4707 * doc/invoke.texi (AVR Options): Remove documentation of -msize
4710 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
4712 * combine.c (label_tick_ebb_start): Fix comment.
4713 (combine_instructions): Set label_tick and label_tick_ebb_start before
4714 calling setup_incoming_promotions. Start them from 1. Increment
4715 label_tick instead of deriving it from the BB index. Rather than
4716 comparing ticks use the block from the previous iteration to decide
4717 whether to start a new EBB. Remove empty lines before function.
4719 2009-10-08 Michael Matz <matz@suse.de>
4722 * builtins.c (fold_builtin_isascii): Use fold_build2.
4723 (fold_builtin_isdigit): Ditto.
4724 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
4725 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
4726 remove_useless_stmts_cond, remove_useless_stmts_tf,
4727 remove_useless_stmts_tc, remove_useless_stmts_bind,
4728 remove_useless_stmts_goto, remove_useless_stmts_label,
4729 remove_useless_stmts_1, remove_useless_stmts,
4730 pass_remove_useless_stmts): Remove.
4731 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
4732 * passes.c (init_optimization_passes): Don't add
4733 pass_remove_useless_stmts.
4734 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
4735 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
4737 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
4738 for static constants.
4739 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
4740 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
4742 2009-10-08 Richard Guenther <rguenther@suse.de>
4744 * gimple.c (free_gimple_type_tables): New function.
4745 * gimple.h (free_gimple_type_tables): Declare.
4747 2009-10-07 Mark Heffernan <meheff@google.com>
4749 * ipa-prop.c (ipa_print_node_params) Only print
4750 names of named arguments.
4752 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
4754 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
4755 being statically linked.
4757 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4759 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
4761 2009-10-08 Jan Hubicka <jh@suse.cz>
4764 * ipa.c (cgraph_externally_visible_p,
4765 function_and_variable_visibility,
4766 whole_program_function_and_variable_visibility): Skip non-finalized
4769 2009-10-08 Nick Clifton <nickc@redhat.com>
4771 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
4774 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
4777 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
4779 2009-10-07 Joseph Myers <joseph@codesourcery.com>
4782 * c-common.c (c_fully_fold_internal): Strip nops from the result
4783 of recursive calls to c_fully_fold_internal.
4784 (c_wrap_maybe_const): New.
4785 (c_save_expr): Use c_wrap_maybe_const.
4786 * c-common.h (c_wrap_maybe_const): Declare.
4787 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
4788 build_binary_op): Use c_wrap_maybe_const.
4790 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4792 * real.c: Fix comment to reflect actual exponent size.
4794 2009-10-08 Ben Elliston <bje@au.ibm.com>
4796 * config/rs6000/a2.md: Add FSF comment header.
4798 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
4800 * config/i386/i386.md (any_extend): New code iterator.
4801 (u, s): New code attributes.
4803 (DWIH): Rewrite as code iterator for SI and DI modes.
4804 (DWI): Rewrite as mode attribute.
4805 (dwi): New mode attribute.
4806 (di): Depend on SI mode and DI mode.
4807 (doubleint_general_operand): Remove mode attribute.
4809 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
4812 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
4813 (*sub<mode>3_doubleword): Ditto.
4815 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
4816 using SWIM248 mode iterator.
4817 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
4818 using SWI48 mode iterator.
4819 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
4820 patterns using DWIH mode iterator and any_extend code iterator.
4821 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
4822 using any_extend code iterator.
4823 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
4824 patterns using DWIH mode iterator and any_extend code iterator.
4825 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
4826 using any_extend code iterator.
4827 (<s>mul<mode>3_highpart): Macroize expander from
4828 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
4829 and any_extend code iterator.
4830 (*<s>muldi3_highpart_1): Macroize insn from
4831 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
4832 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
4833 patterns using any_extend code iterator.
4834 (*<s>mulsi3_highpart_zext): Macroize insn from
4835 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
4837 2009-10-07 Jakub Jelinek <jakub@redhat.com>
4839 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
4840 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
4841 refering to a DIE with DW_AT_const_value.
4843 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
4846 * ira-lives.c (check_and_make_def_conflict): Process all operands.
4848 2009-10-06 Jan Hubicka <jh@suse.cz>
4850 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
4853 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
4855 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
4856 *lea_2_rex64): Move before *add<mode>_1 pattern.
4858 2009-10-07 Jan Hubicka <jh@suse.cz>
4860 * collect2.c (main): Add -fno-whole-program.
4861 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
4863 2009-10-07 Jan Hubicka <jh@suse.cz>
4865 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
4866 has no address taken.
4867 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
4869 (cgraph_clone_node): Clear externally_visible flag for clones.
4870 * cgraph.h (cgraph_only_called_directly_p,
4871 cgraph_can_remove_if_no_direct_calls_p): New predicates.
4872 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
4873 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
4874 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
4875 ipcp_insert_stage): Likwise.
4876 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
4877 externally_visible flag.
4878 (verify_cgraph_node): Verify that inline clones look right.
4879 (process_function_and_variable_attributes): Do not set
4880 externally_visible flags.
4881 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
4883 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
4885 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
4886 clear externally_visible when turning into inline clones
4887 (cgraph_mark_inline_edge): Use new predicates.
4888 (cgraph_estimate_growth): Likewise.
4889 (cgraph_decide_inlining): Likewise.
4890 * ipa.c (cgraph_postorder): Likewise.
4891 (cgraph_remove_unreachable_nodes): Likewise; sanity check
4892 that inline clones are not needed.
4893 (cgraph_externally_visible_p): New predicate.
4894 (function_and_variable_visibility): Add whole_program parameter;
4895 always set externally_visible flag; handle COMDAT function
4897 (local_function_and_variable_visibility): New function.
4898 (gate_whole_program_function_and_variable_visibility): New function.
4899 (whole_program_function_and_variable_visibility): New function.
4900 (pass_ipa_whole_program_visibility): New function.
4901 * passes.c (init_optimization_passes): Add whole program visibility
4903 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
4904 not care about needed/reachable flags.
4905 * varpool.c: Include flags.h
4906 (decide_is_variable_needed): When doing LTO assume whole-program mode.
4907 (varpool_finalize_decl): When we are in LTO read-back, all variables
4909 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
4911 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4913 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
4916 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4918 * config.gcc: Don't include the makefile fragments intended for
4920 * config/s390/fixdfdi.h: File removed.
4921 * config/s390/libgcc-glibc.ver: File removed.
4922 * config/s390/s390.h: Remove the fixdfdi.h hack.
4923 * config/s390/t-crtstuff: File moved to libgcc dir.
4924 * config/s390/t-linux: Likewise.
4925 * config/s390/t-tpf: libgcc specific parts removed.
4926 * config/s390/t-linux64: Likewise.
4928 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
4930 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
4931 (lto-compress.o): Likewise.
4933 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4936 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
4937 dllexport to class members here.
4938 (i386_pe_determine_dllimport_p): Only check static class data for
4940 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
4941 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
4942 functions for vague linkage.
4943 (i386_pe_type_dllexport_p): Fix formatting.
4944 (maybe_add_dllexport) New function.
4945 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
4948 2009-10-07 Ben Elliston <bje@au.ibm.com>
4950 * config/rs6000/a2.md: Remove duplicated lines.
4952 2009-10-07 Ben Elliston <bje@au.ibm.com>
4954 * config.gcc (powerpc*-*-*): Handle a2.
4955 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
4956 * config/rs6000/a2.md: New file.
4957 * config/rs6000/rs6000.opt (mno-update): New.
4958 (mupdate): Return to using a mask, not a var.
4959 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
4960 (enum processor_type): Add PROCESSOR_PPCA2.
4961 * config/rs6000/rs6000.c (ppca2_cost): New costs.
4962 (rs6000_override_options): Add "a2" to processor_target_table.
4963 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
4964 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
4966 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
4968 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4969 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
4970 reference to nonexistent gen_truncxfxf2 function.
4972 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
4974 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
4975 (DWIH, g, di, doubleint_general_operand): New mode attributes.
4976 (general_operand): Handle TI mode.
4977 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
4978 using SDWIM mode iterator.
4979 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
4980 pattern from *add{di,ti}3_1 patterns and corresponding splitters
4981 using DWI mode iterator.
4982 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
4983 patterns using SWI mode iterator.
4984 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
4985 using SWI48 mode iterator.
4986 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
4987 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
4988 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
4989 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
4990 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
4991 using SDWIM mode iterator.
4992 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
4993 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
4994 using DWI mode iterator.
4995 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
4996 patterns using SWI mode iterator.
4997 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
4998 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
4999 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
5000 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
5001 patterns using plusminus code iterator.
5002 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
5003 sub<mode>3 patterns using plusminus code iterator.
5004 * config/i386/i386.c (override_options): Update the call to
5005 gen_subdi_carry_rex64 for renamed function.
5006 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
5007 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
5008 calls to instruction expanders.
5010 2009-10-06 Martin Jambor <mjambor@suse.cz>
5013 * opts.c (decode_options): Run IPA-SRA at -O2.
5015 2009-10-06 Richard Guenther <rguenther@suse.de>
5017 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
5019 2009-10-06 Tobias Burnus <burnus@net-b.de>
5022 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
5023 -flto and -fwhole-program flags can be combined.
5025 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
5028 * gcc.c (process_command): Check that -o argument was specified.
5030 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
5032 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
5034 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5036 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
5037 * doc/invoke.texi (Warning Options): Annotate allowed languages
5038 for -Wunsuffixed-float-constants.
5040 2009-10-05 Jakub Jelinek <jakub@redhat.com>
5042 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
5043 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
5044 same name and isn't the main variant.
5047 * dwarf2out.c (loc_by_reference): Removed.
5048 (dw_loc_list_1): New function.
5049 (dw_loc_list): Remove toplev argument, add want_address argument.
5050 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
5051 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
5052 want_address == 2 to dw_loc_list. For successful dw_loc_list
5053 set have_address to 1 only if want_address is not 0.
5055 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
5057 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
5058 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
5059 a code block followed by two pointers.
5060 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
5061 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
5062 (MIPS_MOVE): Likewise.
5063 (MIPS_LUI): Likewise.
5064 (MIPS_JR): Likewise.
5065 (MIPS_BAL): Likewise.
5066 (MIPS_NOP): Likewise.
5067 (mips_asm_trampoline_template): Delete.
5068 (mips_trampoline_code_size): New function.
5069 (mips_trampoline_init): Add shorter sequences for all cases
5070 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
5071 Calculate the opcodes directly, rather than copying from a template.
5072 Only flush the code part of the trampoline.
5073 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
5075 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
5077 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
5078 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
5079 (INCOMING_RETURN_ADDR_RTX): Likewise.
5080 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
5082 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
5083 with RETURN_ADDR_REGNUM.
5084 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
5085 * config/mips/mips.c (mips16_build_call_stub): Replace
5086 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
5087 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
5088 (mips_print_operand_punctuation): Likewise.
5089 (mips_frame_set): Likewise.
5090 (mips16e_output_save_restore): Likewise.
5091 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
5092 (mips_save_reg_p): Likewise.
5093 (mips_return_addr): Likewise.
5094 (mips_set_return_address): Likewise.
5095 (mips_direct_save_slot_move_p): Likewise.
5096 (mips_output_function_prologue): Likewise.
5097 (mips_restore_reg): Likewise.
5098 (mips_expand_epilogue): Likewise.
5099 (mips_epilogue_uses): Likewise.
5100 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
5101 (*mov<mode>_ra): Use it instead of a hard-coded 31.
5102 (clear_hazard_<mode>): Likewise.
5103 (call_internal): Likewise.
5104 (call_internal_direct): Likewise.
5105 (call_direct_split): Likewise.
5106 (call_value_internal): Likewise.
5107 (call_value_split): Likewise.
5108 (call_value_internal_direct): Likewise.
5109 (call_value_direct_split): Likewise.
5110 (call_value_multiple_internal): Likewise.
5111 (call_value_multiple_split): Likewise.
5113 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
5114 Jakub Jelinek <jakub@redhat.com>
5116 PR rtl-optimization/41511
5117 * combine.c (record_value_for_reg): Pass explicit values as argument
5118 to get_last_value_validate.
5119 (get_last_value_validate): Document INSN parameter.
5120 For non-readonly MEMs, assume they might have been modified if INSN
5121 was in another basic block.
5122 (get_last_value): Minor reformatting.
5124 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
5127 * final.c (asm_str_count): Split out from asm_insn_count.
5128 * rtl.h (asm_str_count): New prototype.
5129 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
5132 2009-10-05 Sriraman Tallam <tmsriram@google.com>
5134 * doc/plugins.texi: Change plugin_pass to register_pass_info.
5136 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
5137 Rafael Espindola <espindola@google.com>
5139 * gengtype.c (write_types): Moved call to write_func_for_structure
5140 into seperate loops.
5142 2009-10-05 Richard Guenther <rguenther@suse.de>
5145 * lto-cgraph.c (output_cgraph): Output toplevel asms.
5146 (input_cgraph_1): Input toplevel asms.
5148 2009-10-05 Richard Guenther <rguenther@suse.de>
5151 * lto-symtab.c (lto_compatible_attributes_p): Remove.
5152 (external_aggregate_decl_p): Likewise.
5153 (lto_symtab_compatible): Re-structure. Remove dead code.
5154 For variables ignore toplevel qualifiers when comparing types.
5155 Issue warnings, not errors for mismatched user-alignment.
5157 2009-10-05 Richard Guenther <rguenther@suse.de>
5161 * lto-symtab.c (struct lto_symtab_base_def): Remove.
5162 (struct lto_symtab_identifier_def): Likewise.
5163 (struct lto_symtab_decl_def): Likewise.
5164 (struct lto_symtab_entry_def): New.
5165 (lto_symtab_identifier_t): Rename to ...
5166 (lto_symtab_entry_t): ... this.
5167 (lto_symtab_decls): Remove.
5168 (lto_symtab_base_hash): Rename to ...
5169 (lto_symtab_entry_hash): ... this.
5170 (lto_symtab_base_eq): Rename to ...
5171 (lto_symtab_entry_eq): ... this.
5172 (lto_symtab_base_marked_p): Rename to ...
5173 (lto_symtab_entry_marked_p): ... this.
5174 (lto_symtab_identifier_marked_p): Remove.
5175 (lto_symtab_decl_marked_p): Likewise.
5176 (lto_symtab_maybe_init_hash_tables): Rename to ...
5177 (lto_symtab_maybe_init_hash_table): ... this.
5178 (lto_symtab_set_resolution_and_file_data): Remove.
5179 (lto_symtab_register_decl): New function.
5180 (lto_symtab_get_identifier): Remove.
5181 (lto_symtab_get): New function.
5182 (lto_symtab_get_resolution): Adjust.
5183 (lto_symtab_get_identifier_decl): Remove.
5184 (lto_symtab_set_identifier_decl): Likewise.
5185 (lto_symtab_merge_decl): Rename to ...
5186 (lto_symtab_merge): ... this. Rewrite.
5187 (lto_symtab_merge_var): Remove.
5188 (lto_symtab_merge_fn): Likewise.
5189 (lto_symtab_prevailing_decl): Adjust.
5190 (lto_cgraph_replace_node): New function.
5191 (lto_symtab_merge_decls_2): Likewise.
5192 (lto_symtab_merge_decls_1): Likewise.
5193 (lto_symtab_fixup_var_decls): Likewise.
5194 (lto_symtab_resolve_symbols): Likewise.
5195 (lto_symtab_merge_decls): Likewise.
5196 (lto_symtab_prevailing_decl): Adjust.
5197 (lto_symtab_get_symtab_def): Remove.
5198 (lto_symtab_get_file_data): Likewise.
5199 (lto_symtab_clear_resolution): Adjust.
5200 (lto_symtab_clear_resolution): Likewise.
5201 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
5202 (input_cgraph_1): Likewise.
5203 * lto-streamer-in.c (get_resolution): Do not provide fake
5204 symbol resolutions here.
5205 (deferred_global_decls): Remove.
5206 (lto_register_deferred_decls_in_symtab): Likewise.
5207 (lto_register_var_decl_in_symtab): Change signature, register
5208 variable via lto_symtab_register_decl.
5209 (lto_register_function_decl_in_symtab): Likewise.
5210 (lto_read_tree): Adjust.
5211 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
5212 (lto_symtab_merge_var): Likewise.
5213 (lto_symtab_merge_fn): Likewise.
5214 (lto_symtab_register_decl): Declare.
5215 (lto_symtab_merge_decls): Likewise.
5217 2009-10-05 Richard Guenther <rguenther@suse.de>
5219 PR tree-optimization/23821
5220 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
5221 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
5222 simple IV increments.
5224 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5226 * config/arm/arm.c (arm_override_options): Really initialize
5227 flag_dwarf2_cfi_asm to 0.
5229 2009-10-05 Doug Kwan <dougkwan@google.com>
5231 PR rtl-optimization/41574
5232 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
5233 floating point and we are not doing unsafe math optimizations.
5235 2009-10-03 Simon Baldwin <simonb@google.com>
5236 Cary Coutant <ccoutant@google.com>
5237 Rafael Espindola <espindola@google.com>
5238 Richard Guenther <rguenther@suse.de>
5239 Jan Hubicka <jh@suse.cz>
5240 Doug Kwan <dougkwan@google.com>
5241 H.J. Lu <hongjiu.lu@intel.com>
5242 Bill Maddox <maddox@google.com>
5243 Ryan Mansfield <rmansfield@qnx.com>
5244 Diego Novillo <dnovillo@google.com>
5245 Ollie Wild <aaw@google.com>
5246 Kenneth Zadeck <zadeck@naturalbridge.com>
5248 * lto-cgraph.c: New file.
5249 * lto-compress.c: New file.
5250 * lto-compress.h: New file.
5251 * lto-opts.c: New file.
5252 * lto-section-in.c: New file.
5253 * lto-section-out.c: New file.
5254 * lto-streamer-in.c: New file.
5255 * lto-streamer-out.c: New file.
5256 * lto-streamer.c: New file.
5257 * lto-streamer.h: New file.
5258 * lto-symtab.c: New file.
5259 * lto-wpa-fixup.c: New file.
5260 * lto-wrapper.c: New file.
5262 2009-10-03 Simon Baldwin <baldwin@google.com>
5263 Ben Elliston <bje@au.ibm.com>
5264 Rafael Espindola <espindola@google.com>
5265 Nathan Froyd <froydnj@codesourcery.com>
5266 Jan Hubicka <jh@suse.cz>
5267 Doug Kwan <dougkwan@google.com>
5268 Diego Novillo <dnovillo@google.com>
5269 Kenneth Zadeck <zadeck@naturalbridge.com>
5271 * Makefile.in (enable_lto): New.
5272 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
5273 (LINKER_PLUGIN_API_H): Define.
5274 (LTO_SYMTAB_H): Define.
5275 (LTO_STREAMER_H): Define.
5276 (TREE_VECTORIZER_H): Define.
5277 (INCLUDES): Add LIBELFINC.
5278 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
5279 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
5280 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
5281 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
5282 (native): Add lto-wrapper$(exeext)
5283 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
5284 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
5285 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
5286 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
5287 (varasm.o): Add dependency on tree-iterator.h.
5288 (cgraph.o): Add dependency on cif-code.def.
5289 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
5290 (ipa-pure-const.o): Likewise.
5291 (GTFILES): Add lto-symtab.c.
5292 (install-lto-wrapper): New.
5293 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
5294 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
5295 * config.in: Regenerate.
5297 2009-10-03 Rafael Espindola <espindola@google.com>
5298 Diego Novillo <dnovillo@google.com>
5300 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
5301 ipa_write_summaries.
5302 Call execute_ipa_summary_passes for all_regular_ipa_passes and
5304 (cgraph_optimize): Make extern.
5306 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
5307 Kenneth Zadeck <zadeck@naturalbridge.com>
5309 * toplev.c (in_lto_p): Declare.
5310 * collect2.c (scan_prog_file): Read all the output when reading
5311 information for LTO.
5312 (enum lto_mode_d): Declare.
5314 2009-10-03 Richard Guenther <rguenther@suse.de>
5315 Diego Novillo <dnovillo@google.com>
5317 * gimple.c: Include target.h and alias.h.
5318 (gimple_types): Declare.
5319 (type_hash_cache): Declare.
5320 (gimple_alloc_stat): Make extern.
5321 (gimple_build_eh_must_not_throw): Call
5322 gimple_eh_must_not_throw_set_fndecl.
5323 (struct type_pair_d): Declare.
5324 (type_pair_t): Declare.
5325 (type_pair_hash): New.
5326 (type_pair_eq): New.
5327 (lookup_type_pair): New.
5328 (gimple_force_type_merge): New.
5329 (compare_type_names_p): New.
5330 (compare_field_offset): New.
5331 (gimple_types_compatible_p): New.
5332 (struct sccs): Declare.
5333 (next_dfs_num): Declare.
5334 (iterative_hash_gimple_type): New.
5336 (iterative_hash_type_name): New.
5337 (iterative_hash_gimple_type): New.
5338 (gimple_type_hash): New.
5339 (gimple_type_eq): New.
5340 (gimple_register_type): New.
5341 (print_gimple_types_stats): New.
5342 (gimple_signed_or_unsigned_type): New.
5343 (gimple_unsigned_type): New.
5344 (gimple_signed_type): New.
5345 (gimple_get_alias_set): New.
5346 (gimple_decl_printable_name): Do not use DMGL_TYPES.
5347 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
5348 (gimple_force_type_merge): Declare.
5349 (gimple_types_compatible_p): Declare.
5350 (gimple_register_type): Declare.
5351 (print_gimple_types_stats): Declare.
5352 (gimple_unsigned_type): Declare.
5353 (gimple_signed_type): Declare.
5354 (gimple_get_alias_set): Declare.
5355 (gimple_eh_must_not_throw_set_fndecl): New.
5357 2009-10-03 Jan Hubicka <jh@suse.cz>
5358 Kenneth Zadeck <zadeck@naturalbridge.com>
5360 * ipa-pure-const.c: Include lto-streamer.h.
5361 (register_hooks): Factor out of ...
5362 (generate_summary): ... here.
5363 (pure_const_write_summary): New.
5364 (pure_const_read_summary): New.
5365 (pass_ipa_pure_const): Add pure_const_write_summary and
5366 pure_const_read_summary.
5367 * ipa-reference.c: Include lto-streamer.h.
5368 (add_new_function): New.
5369 (remove_node_data): New.
5370 (duplicate_node_data): New.
5371 (ipa_init): Guard against multiple calls.
5372 Move hook setup from analyze_function.
5373 (write_node_summary_p): New.
5374 (ipa_reference_write_summary): New.
5375 (ipa_reference_read_summary): New.
5376 (pass_ipa_reference): Add ipa_reference_write_summary and
5377 ipa_reference_read_summary.
5378 * cgraph.h (cgraph_local_info): Add field lto_file_data.
5379 (struct cgraph_edge): Add fields lto_stmt_uid and
5380 call_stmt_cannot_inline_p.
5381 (cgraph_optimize): Declare.
5382 (cgraph_decide_is_function_needed): Declare.
5383 (reset_inline_failed): Declare.
5384 (enum LTO_cgraph_tags): Declare.
5385 (LTO_cgraph_tag_names): Declare.
5386 (LCC_NOT_FOUND): Define.
5388 2009-10-03 Doug Kwan <dougkwan@google.com>
5389 Rafael Espindola <espindola@google.com>
5390 Jan Hubicka <jh@suse.cz>
5391 Diego Novillo <dnovillo@google.com>
5392 Kenneth Zadeck <zadeck@naturalbridge.com>
5394 * passes.c (all_regular_ipa_passes): New.
5395 (all_ipa_passes): Rename to all_small_ipa_passes.
5396 (init_optimization_passes): Init all_regular_ipa_passes.
5397 * tree-pass.h (all_regular_ipa_passes): New.
5398 (all_ipa_passes): Rename to all_small_ipa_passes.
5399 * passes.c (all_lto_gen_passes): New.
5400 (init_optimization_passes): Initialize all_lto_gen_passes.
5401 (execute_ipa_summary_passes): Make non-static.
5402 (ipa_write_summaries_1): New.
5403 (ipa_write_summaries_2): New.
5404 (ipa_write_summaries): New.
5405 (ipa_write_summaries_of_cgraph_node_set): New.
5406 (ipa_read_summaries_1): New.
5407 (ipa_read_summaries): New.
5408 (execute_ipa_pass_list): Call cgraph_process_new_functions.
5409 (execute_regular_ipa_pass_list): Remove.
5410 (init_optimization_passes): Schedule
5411 pass_rebuild_cgraph_edges and pass_early_inline outside
5412 of pass_all_early_optimizations. Document reason.
5413 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
5414 pass_ipa_lto_finish_out): New pass.
5415 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
5416 (execute_all_ipa_transforms): New.
5417 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
5418 (dump_properties, debug_properties): New.
5419 * tree-optimize.c (gate_all_early_local_passes): Return
5420 false if we are in lto1.
5421 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
5422 * tree-pass.h (execute_all_ipa_transforms): Declare.
5423 (pass_ipa_function_and_variable_visibility): Declare.
5424 (pass_ipa_early_inline): Declare.
5425 (pass_ipa_lto_gimple_out): Declare.
5426 (pass_ipa_lto_wpa_fixup): Declare.
5427 (pass_ipa_lto_finish_out): Declare.
5428 (all_small_ipa_passes, all_regular_ipa_passes,
5429 all_lto_gen_passes): Declare.
5430 (execute_ipa_summary_passes): Declare.
5431 (execute_all_ipa_transforms): Declare.
5432 (ipa_write_summaries): Declare
5433 (ipa_write_summaries_of_cgraph_node_set): Declare.
5434 (ipa_read_summaries): Declare.
5436 2009-10-03 Doug Kwan <dougkwan@google.com>
5437 Ollie Wild <aaw@google.com>
5439 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
5441 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
5442 (lto_mode): New variable.
5443 (maybe_run_lto_and_relink): Handle the -fwpa option.
5444 (main): Handle the -fwpa option.
5445 (maybe_unlink_list): New function.
5446 * gcc.c (link_lto_options): Replace -flto with -fwpa.
5447 * common.opt (flto): New flag.
5448 * toplev.c (flag_generate_lto): Declare.
5450 2009-10-03 Simon Baldwin <simonb@google.com>
5452 * common.opt (flto-compression-level): New flag.
5454 * opts.c: Include lto-opts.h.
5455 (handle_option): Call lto_register_user_option for each
5456 valid option handled.
5457 (decode_options): Clear registered options before the options
5460 2009-10-03 Cary Coutant <ccoutant@google.com>
5462 * collect2.c (is_elf): New function.
5463 (scan_prog_file): Require LTO object to be in ELF format.
5465 2009-10-03 Rafael Espindola <espindola@google.com>
5467 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
5468 libgcc to the linker.
5470 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
5472 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
5473 (collect_execute): Add flags argument. Pass flags to pex_run. Update
5475 * collect2.h (collect_execute): Add flags argument.
5476 * tlink.c (tlink_execute): Update call to collect_execute.
5477 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
5478 (use_linker_plugin): New.
5479 (use_linker_plugin_spec_function): New.
5480 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
5481 (linker_plugin_file_spec): New.
5482 (lto_wrapper_spec): New.
5483 (lto_gcc_spec): New.
5484 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
5485 (static_spec_functions): Add use-linker-plugin.
5486 (process_command): Handle -use-linker-plugin.
5487 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
5488 linker_plugin_file_spec and lto_gcc_spec.
5489 (use_linker_plugin_spec_function): New.
5491 2009-10-03 Richard Guenther <rguenther@suse.de>
5495 * tree.h (is_lang_specific): Include LANG_TYPE.
5496 * tree.c (find_decls_types_r): Manually add interesting parts
5497 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
5499 * gimple.c (type_pair_hash): Make symmetric.
5500 (type_pair_eq): Likewise.
5501 (lookup_type_pair): Increase initial hashtable size.
5502 (gimple_force_type_merge): Rely on type-pair symmetry.
5503 (visit): Remove excessive checking code.
5504 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
5505 (gimple_register_type): Remove getenv calls, shrink initial
5509 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
5510 inline functions if not generating lto output.
5513 * toplev.c (finalize): In WPA mode remove the asm file.
5515 2009-10-03 Doug Kwan <dougkwan@google.com>
5517 * ipa-inline.c (cgraph_mark_inline): Check
5518 edge->call_stmt_cannot_inline_p instead of calling
5519 gimple_call_cannot_inline_p.
5520 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
5521 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
5522 (inline_generate_summary): Do nothing in LTRANS.
5523 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
5524 exists before calling gimple_call_cannot_inline_p.
5525 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
5526 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
5527 Update new_edge->lto_stmt_uid.
5528 * cgraphbuild.c (reset_inline_failed): New.
5530 * common.opt (fwpa): New flag.
5531 (fltrans): New option.
5532 * gcc.c (gcc_lto_option_t): New type.
5533 (current_lto_option): New variable.
5534 (lto_single_spec_function): Remove and is replaced by ..
5535 (lto_option_spec_function): New function.
5536 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
5537 passing the -flto flag.
5538 (cc1_options): Separate non-LTO related parts into ..
5539 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
5540 (lto1_options): New spec for lto FE.
5541 (link_lto_options): New spec for handling LTO flags in linker.
5542 (invoke_lto_single): Re-format to fit in 80 column. Replace
5543 lto-single with lto-option.
5544 (static_specs): Add cc1_non_lto_options, lto1_options and
5546 (static_spec_function): Replace lto-single with lto-option.
5547 (process_command): Handle -flto, -fwpa and -fltran by setting
5548 current_lto_option and not passing it to subprocess unconditionally.
5550 2009-10-03 Bill Maddox <maddox@google.com>
5552 Add `gcc' driver support for link-time code generation (LTO).
5554 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
5555 (lto_flag, lto_objects, lto_o_file): New variables.
5556 (struct lto_object, struct lto_object_list): New structures.
5557 (collect_exit, handler): Remove LTO temporary output file on exit.
5558 (add_lto_object): New function.
5559 (maybe_run_lto_and_relink): New function. Perform link time code
5560 generation and relinking for object files containing LTO information.
5561 (main): Invoke maybe_run_lto_and_relink().
5562 (dump_argv): New function. For debugging, currently disabled.
5563 (scan_prog_file): Add LTO information pass.
5564 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
5566 * toplev.c (compile_file): Emit assembler directive to create
5567 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
5569 2009-10-03 Diego Novillo <dnovillo@google.com>
5571 * c.opt: Add LTO to warn_abi and warn_psabi.
5573 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
5574 inline function. Ignore language-specific nodes. Update all users.
5575 (find_decls_types_r): Do not traverse the subtrees of
5576 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
5577 * tree.h (is_lang_specific): New.
5578 * langhooks.h (struct lang_hooks_for_decls): Remove
5579 may_need_assembler_name_p. Update all users.
5581 * c-common.c (set_builtin_user_assembler_name): Move ...
5582 * builtins.c (set_builtin_user_assembler_name): ... here.
5583 (is_builtin_name): Add comment
5584 (is_builtin_fn): New.
5585 * except.c (output_ttype): Only call
5586 lookup_type_for_runtime if TYPE is not a runtime type.
5588 * passes.c (register_pass): Call position_pass on
5589 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
5590 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
5591 (TV_IPA_LTO_DECL_IO): Define.
5592 (TV_IPA_LTO_CGRAPH_IO): Define.
5594 (TV_WHOPR_WPA): Define.
5595 (TV_WHOPR_WPA_IO): Define.
5596 (TV_WHOPR_LTRANS): Define.
5597 (TV_WHOPR_WPA_FIXUP): Define.
5598 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
5599 * tree-cfg.c (tree_node_can_be_shared): Make extern.
5600 * tree-flow.h (tree_node_can_be_shared): Declare.
5601 * tree-inline.c (tree_can_inline_p): Check that E has a
5602 statement associated with it.
5603 * tree.c (free_lang_data_in_binf): Factor out of ...
5604 (free_lang_data_in_type): ... here.
5605 Call RECORD_OR_UNION_TYPE_P.
5606 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
5607 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
5608 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
5609 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
5610 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
5611 (gate_free_lang_data): Return true if flag_generate_lto is set.
5612 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
5613 * c-common.h (set_builtin_user_assembler_name): Move ...
5614 * tree.h (set_builtin_user_assembler_name): ... here.
5616 * common.opt (flto-report): New flag.
5617 * opts.c (complain_wrong_lang): Do not complain if running lto1.
5618 * collect2.c (scan_prog_file): Send the error output of
5619 'nm' to HOST_BIT_BUCKET.
5621 2009-10-03 Ollie Wild <aaw@google.com>
5623 * langhooks-def.h (lhd_begin_section): New function declaration.
5624 (lhd_write_section): New function declaration.
5625 (lhd_end_section): New function declaration.
5626 (LANG_HOOKS_BEGIN_SECTION): New macro.
5627 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
5628 (LANG_HOOKS_END_SECTION): New macro.
5629 (LANG_HOOKS_LTO): New macro.
5630 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
5631 * langhooks.c (output.h): Add include.
5632 (saved_section): New static variable.
5633 (lhd_begin_section): New function.
5634 (lhd_write_section_data): New function.
5635 (lhd_end_section): New function.
5636 * langhooks.h (struct lang_hooks_for_lto): New structure.
5637 (struct lang_hooks): Add member lto.
5638 * Makefile.in (langhooks.o): Add dependency on output.h.
5640 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
5642 2009-10-03 Richard Guenther <rguenther@suse.de>
5644 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
5647 2009-10-03 Simon Baldwin <simonb@google.com>
5648 Richard Guenther <rguenther@suse.de>
5649 Janis Johnson <janis187@us.ibm.com>
5650 Doug Kwan <dougkwan@google.com>
5651 Diego Novillo <dnovillo@google.com>
5652 Ramana Radhakrishnan <ramana.r@gmail.com>
5653 Ollie Wild <aaw@google.com>
5655 * doc/install.texi: Add documentation for libelf and --enable-lto.
5656 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
5657 -flto-report, -flto-compression-level and -use-linker-plugin.
5658 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
5659 Add section for LTO Testing.
5661 2009-10-02 Cary Coutant <ccoutant@google.com>
5663 Add support for comdat type sections for DWARF v4.
5664 Merge from dwarf4 branch.
5666 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
5667 (dw_die_ref): Define vector type.
5668 (enum dw_val_class): Add dw_val_class_data8.
5669 (struct dw_val_struct): Add v.val_data8.
5670 (comdat_type_node_ref): New type.
5671 (struct die_struct): Move die_symbol into a union; add new field
5672 die_type_node. Change all uses.
5673 (comdat_type_node): New type.
5674 (skeleton_chain_node): New type.
5675 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
5676 (comdat_type_list): New variable.
5677 (dwarf_tag_name): Add DW_TAG_type_unit.
5678 (dwarf_attr_name): Add DW_AT_signature.
5679 (add_AT_data8): New function.
5680 (replace_child): New function.
5681 (move_all_children): New function.
5682 (print_signature): New function.
5683 (print_die): Print signature information; add dw_val_class_data8.
5684 (attr_checksum): Support dw_val_class_data8.
5685 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
5686 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
5687 (checksum_sleb128, checksum_uleb128): New functions.
5688 (checksum_die_context): New function.
5689 (loc_checksum_ordered): New function.
5690 (attr_checksum_ordered): New function.
5691 (struct checksum_attributes): New structure.
5692 (collect_checksum_attributes): New function.
5693 (die_checksum_ordered): New function.
5694 (generate_type_signature): New function.
5695 (same_dw_val_p): Add dw_val_class_data8.
5696 (is_symbol_die): Use new is_declaration_die function.
5697 (is_declaration_die): New function.
5698 (should_move_die_to_comdat): New function.
5699 (clone_die): New function.
5700 (clone_tree): New function.
5701 (clone_as_declaration): New function.
5702 (copy_declaration_context): New function.
5703 (generate_skeleton_ancestor_tree): New function.
5704 (generate_skeleton_bottom_up): New function.
5705 (generate_skeleton): New function.
5706 (remove_child_or_replace_with_skeleton): New function.
5707 (break_out_comdat_types): New function.
5708 (struct decl_table_entry): New type.
5709 (htab_decl_hash): New function.
5710 (htab_decl_eq): New function.
5711 (htab_decl_del): New function.
5712 (copy_ancestor_tree): New function.
5713 (copy_decls_walk): New function.
5714 (copy_decls_for_unworthy_types): New function.
5715 (build_abbrev_table): Don't assert on missing die_symbol when doing
5716 comdat type sections.
5717 (size_of_die): Use DW_FORM_sig8 for external references. Add
5719 (unmark_dies): Don't assert for unmarked dies when doing comdat
5721 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
5722 (output_signature): New function.
5723 (output_die): Likewise.
5724 (output_compilation_unit_header): Mark output as DWARF version 3
5725 even if generating DWARF 4.
5726 (output_comdat_type_unit): New function.
5727 (output_line_info): Mark output as DWARF version 3 even if generating
5729 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
5731 (dwarf2out_end_source_file): Likewise.
5732 (prune_unused_types_walk_attribs): Don't follow references into
5733 comdat type sections.
5734 (prune_unused_types_mark): When generating type units, do not mark
5735 children of non-defining declarations of types; do mark children of
5737 (prune_unused_types): Process comdat type sections.
5738 (htab_ct_hash): New function.
5739 (htab_ct_eq): New function.
5740 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
5741 Add a pointer to the line table from type unit entries so
5742 DW_AT_decl_file has meaning.
5743 * varasm.c (default_elf_asm_named_section): Use identifier name as
5744 comdat key instead of lang hook.
5746 2009-10-02 Neil Vachharajani <nvachhar@google.com>
5748 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
5750 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
5752 * config/i386/i386.md (SWIM248): New mode iterator.
5753 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
5754 divmodhi4 patterns using SWIM248 macro.
5755 (*divmod<mode>4): Macroize insn_and_split pattern from
5756 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
5757 and their corresponding splitters usign SWIM248 macro. Split SImode
5758 insn to generate cltd and DImode insn to generate cqto instead of
5759 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
5760 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
5761 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
5762 *divmodsi_noext patterns using SWIM248 macro.
5763 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
5764 udivmodhi4 patterns using SWIM248 macro.
5765 (*udivmod<mode>4): Macroize insn_and_split pattern from
5766 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
5767 corresponding splitters using SWIM248 macro.
5768 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
5769 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
5771 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
5773 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
5774 of zero-sized element is zero-sized regardless of its extent.
5776 2009-10-02 Jakub Jelinek <jakub@redhat.com>
5779 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
5780 * configure: Regenerated.
5781 * config.in: Regenerated.
5782 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
5783 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
5784 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
5785 not emitting .eh_frame, emit .cfi_sections .debug_frame
5790 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
5791 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
5793 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
5794 vars use DECL_RTL with resetting it back to NULL afterwards.
5795 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
5796 rtx_equal_p instead of asserting it is a SYMBOL_REF.
5797 (value_format): For dw_val_class_addr only use DW_FORM_addr if
5798 the attribute type allows it, otherwise use DW_FORM_dataN.
5799 (mem_loc_descriptor): Handle CONST_STRING.
5800 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
5801 Handle MEM with CONST_STRING address using add_AT_string.
5802 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
5803 CONST_STRING for const arrays initialized with a string literal.
5804 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
5805 (dwarf2out_finish): Call resolve_addr.
5807 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
5808 Maxim Kuvyrkov <maxim@codesourcery.com>
5810 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
5812 2009-10-02 Nick Clifton <nickc@redhat.com>
5814 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
5815 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
5817 2009-10-01 Jan Hubicka <jh@suse.cz>
5819 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
5820 (cgraph_create_virtual_clone): Just pass redirect_callers
5822 * cgraph.h (cgraph_clone_node): Update prototype.
5823 * ipa-pure-const.c (self_recursive_p): New function.
5824 (propagate): Use it.
5825 * ipa-inline.c (cgraph_clone_inlined_nodes,
5826 cgraph_decide_recursive_inlining): Update.
5828 2009-10-01 David Daney <ddaney@caviumnetworks.com>
5830 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
5831 instructions for TARGET_OCTEON.
5833 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5835 * config/arm/arm.c (arm_override_options): Turn off
5836 flag_dwarf2_cfi_asm for AAPCS variants.
5838 2009-10-01 Martin Jambor <mjambor@suse.cz>
5841 * tree-sra.c (convert_callers): Do not call
5842 compute_inline_parameters on one caller more than once.
5844 2009-10-01 Nick Clifton <nickc@redhat.com>
5846 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
5847 an empty string if not already defined.
5849 2009-10-01 Martin Jambor <mjambor@suse.cz>
5852 * tree-sra.c (is_va_list_type): New function.
5853 (find_var_candidates): Call is_va_list_type.
5854 (find_param_candidates): Check that the type or the type pointed
5855 to are not va_list types.
5857 2009-10-01 Martin Jambor <mjambor@suse.cz>
5860 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
5861 DECL_ARTIFICIAL (param_decl) is true.
5863 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
5865 * tree.h (tree_decl_common::lang_flag_8): New.
5866 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
5868 * c-common.h (RID_CONSTEXPR): New.
5870 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
5872 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
5873 Use ref-all pointers.
5874 (alpha_gimplify_va_arg): Ditto.
5876 2009-09-30 Jakub Jelinek <jakub@redhat.com>
5879 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
5880 before insn counting loop now that BB_END (bb) is counted. Ensure
5881 the return value isn't zero.
5883 2009-09-30 Nick Clifton <nickc@redhat.com>
5885 * config.gcc (sh-symbianelf): Replace definition of extra_objs
5886 with separate definitions of c_target_objs and cxx_target_objs.
5887 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
5889 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
5890 sh_symbian_import_export_class.
5891 * config/sh/sh-protos.h: Fix names of exported symbian functions.
5892 * config/sh/symbian.c: Delete, moving code into...
5893 * config/sh/symbian-base.c: ... here
5894 * config/sh/symbian-c.c: ... and here
5895 * config/sh/symbian-cxx.c: ... and here.
5897 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
5900 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
5901 of plus RTX into register.
5903 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5905 * doc/install.texi: Linguistic and markup fixes.
5906 (Configuration) <--disable-cpp>: Remove description.
5907 <--enable-maintainer-mode>: Autotools files are affected, too.
5908 <--with-sysroot>: Improve description.
5909 (Building): Bump required GNU make version.
5911 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
5913 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
5914 (x86_64-*-*): Ditto.
5916 * config/i386/fma4intrin.h: New file, provide common x86 compiler
5917 intrinisics for FMA4.
5918 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
5919 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
5920 Add FMA4 check and fma4intrin.h.
5921 * config/i386/i386-c.c(ix86_target_macros_internal): Check
5923 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
5924 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
5925 constant for FMA4 support.
5926 (UNSPEC_FMA4_FMADDSUB): Ditto.
5927 (UNSPEC_FMA4_FMSUBADD): Ditto.
5928 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
5929 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
5930 (ix86_expand_fma4_multiple_memory): Ditto.
5931 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
5932 (OPTION_MASK_ISA_FMA4_UNSET): New.
5933 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
5934 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
5935 (ix86_handle_option): Handle -mfma4.
5936 (isa_opts): Handle -mfma4.
5937 (enum pta_flags): Add PTA_FMA4.
5938 (override_options): Add FMA4 support.
5939 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
5940 (IX86_BUILTIN_VFMADDSD): Ditto.
5941 (IX86_BUILTIN_VFMADDPS): Ditto.
5942 (IX86_BUILTIN_VFMADDPD): Ditto.
5943 (IX86_BUILTIN_VFMSUBSS): Ditto.
5944 (IX86_BUILTIN_VFMSUBSD): Ditto.
5945 (IX86_BUILTIN_VFMSUBPS): Ditto.
5946 (IX86_BUILTIN_VFMSUBPD): Ditto.
5947 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
5948 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
5949 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
5950 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
5951 (IX86_BUILTIN_VFNMADDSS): Ditto.
5952 (IX86_BUILTIN_VFNMADDSD): Ditto.
5953 (IX86_BUILTIN_VFNMADDPS): Ditto.
5954 (IX86_BUILTIN_VFNMADDPD): Ditto.
5955 (IX86_BUILTIN_VFNMSUBSS): Ditto.
5956 (IX86_BUILTIN_VFNMSUBSD): Ditto.
5957 (IX86_BUILTIN_VFNMSUBPS): Ditto.
5958 (IX86_BUILTIN_VFNMSUBPD): Ditto.
5959 (IX86_BUILTIN_VFMADDPS256): Ditto.
5960 (IX86_BUILTIN_VFMADDPD256): Ditto.
5961 (IX86_BUILTIN_VFMSUBPS256): Ditto.
5962 (IX86_BUILTIN_VFMSUBPD256): Ditto.
5963 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
5964 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
5965 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
5966 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
5967 (IX86_BUILTIN_VFNMADDPS256): Ditto.
5968 (IX86_BUILTIN_VFNMADDPD256): Ditto.
5969 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
5970 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
5971 (enum multi_arg_type): New enum for describing the various FMA4
5972 intrinsic argument types.
5973 (bdesc_multi_arg): New table for FMA4 intrinsics.
5974 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
5975 (ix86_expand_multi_arg_builtin): New function for creating FMA4
5977 (ix86_expand_builtin): Add FMA4 intrinsic support.
5978 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
5979 operand instructions.
5980 (ix86_expand_fma4_multiple_memory): New function to split the
5981 second memory reference from FMA4 instructions.
5982 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
5983 (ssemodesuffixf2s): Ditto.
5984 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
5986 (fma4_fmsub<mode>4): Ditto.
5987 (fma4_fnmadd<mode>4): Ditto.
5988 (fma4_fnmsub<mode>4): Ditto.
5989 (fma4_vmfmadd<mode>4): Ditto.
5990 (fma4_vmfmsub<mode>4): Ditto.
5991 (fma4_vmfnmadd<mode>4): Ditto.
5992 (fma4_vmfnmsub<mode>4): Ditto.
5993 (fma4_fmadd<mode>4256): Ditto.
5994 (fma4_fmsub<mode>4256): Ditto.
5995 (fma4_fnmadd<mode>4256): Ditto.
5996 (fma4_fnmsub<mode>4256): Ditto.
5997 (fma4_fmaddsubv8sf4): Ditto.
5998 (fma4_fmaddsubv4sf4): Ditto.
5999 (fma4_fmaddsubv4df4): Ditto.
6000 (fma4_fmaddsubv2df4): Ditto.
6001 (fma4_fmsubaddv8sf4): Ditto.
6002 (fma4_fmsubaddv4sf4): Ditto.
6003 (fma4_fmsubaddv4df4): Ditto.
6004 (fma4_fmsubaddv2df4): Ditto.
6005 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
6006 instructions for intrinsics.
6007 (fma4i_fmsub<mode>4): Ditto.
6008 (fma4i_fnmadd<mode>4): Ditto.
6009 (fma4i_fnmsub<mode>4): Ditto.
6010 (fma4i_vmfmadd<mode>4): Ditto.
6011 (fma4i_vmfmsub<mode>4): Ditto.
6012 (fma4i_vmfnmadd<mode>4): Ditto.
6013 (fma4i_vmfnmsub<mode>4): Ditto.
6014 (fma4i_fmadd<mode>4256): Ditto.
6015 (fma4i_fmsub<mode>4256): Ditto.
6016 (fma4i_fnmadd<mode>4256): Ditto.
6017 (fma4i_fnmsub<mode>4256): Ditto.
6018 (fma4i_fmaddsubv8sf4): Ditto.
6019 (fma4i_fmaddsubv4sf4): Ditto.
6020 (fma4i_fmaddsubv4df4): Ditto.
6021 (fma4i_fmaddsubv2df4): Ditto.
6022 (fma4i_fmsubaddv8sf4): Ditto.
6023 (fma4i_fmsubaddv4sf4): Ditto.
6024 (fma4i_fmsubaddv4df4): Ditto.
6025 (fma4i_fmsubaddv2df4): Ditto.
6027 * doc/invoke.texi (-mfma4): Add documentation.
6028 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
6030 2009-09-29 Richard Henderson <rth@redhat.com>
6032 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
6033 an edge to the new destination block.
6035 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6038 * pa.c (hppa_profile_hook): Use
6039 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
6041 2009-09-29 Steve Ellcey <sje@cup.hp.com>
6042 Alexander Monakov <amonakov@ispras.ru>
6045 * config/ia64/predicates.md (not_postinc_destination_operand): New.
6046 (not_postinc_memory_operand): New.
6047 (not_postinc_move_operand): New.
6048 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
6049 (*cmovsi_internal): Ditto.
6051 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
6053 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
6054 restrict issue_rate in first pass when scheduling for register
6057 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
6058 Rafael Avila de Espindola <espindola@google.com>
6060 * gengtype.c (plugin_output): New.
6061 (get_output_file_with_visibility): Return plugin_output for plugins.
6062 (main): Parse and use the -P option.
6063 * gty.texi: Update the command line format.
6065 2009-09-29 Jakub Jelinek <jakub@redhat.com>
6068 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
6070 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
6071 out if !const_ok_for_output.
6074 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
6075 case VAR_LOCATION>: Remove gcc_unreachable ().
6077 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
6079 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
6080 (x86_64-*-*): Ditto.
6081 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
6082 back to smmintrin.h.
6083 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
6084 * config/i386/x86intrin.h: Remove SSE5.
6085 * config/i386/mmintrin-common.h: Delete file.
6086 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
6088 2009-09-29 Richard Guenther <rguenther@suse.de>
6090 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
6091 resulting from stack temporaries on STRICT_ALIGNMENT targets.
6093 2009-09-29 Nick Clifton <nickc@redhat.com>
6095 * function.c (current_function_name): If there is no current
6096 function just return "<none>".
6098 2009-09-28 Sriraman Tallam <tmsriram@google.com>
6100 * tree-pass.h (register_pass_info): New structure.
6101 (pass_positioning_ops): Move enum from gcc-plugin.h.
6102 (register_pass): New function.
6103 * gcc-plugin.h (plugin_pass): Delete structure.
6104 (pass_positioning_ops): Delete enum.
6105 * plugin.c (regsiter_pass): Delete function.
6106 (position_pass): Delete function.
6107 (added_pass_nodes): Delete variable.
6108 (prev_added_pass_nodes): Delete variable.
6109 (pass_list_node): Delete structure.
6110 * passes.c (make_pass_instance): New function.
6111 (next_pass_1): Change to call make_pass_instance.
6112 (pass_list_node): Move structure from gcc-plugin.h.
6113 (added_pass_nodes): Move variable from plugin.c.
6114 (prev_added_pass_nodes): Move variable from plugin.c.
6115 (position_pass): New function.
6116 (register_pass): New function.
6118 2009-09-28 Easwaran Raman <eraman@google.com>
6120 * ifcvt.c (noce_try_abs): Recognize pattern and call
6121 expand_one_cmpl_abs_nojump.
6122 * optabs.c (expand_one_cmpl_abs_nojump): New function.
6123 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
6125 2009-09-28 Ian Lance Taylor <iant@google.com>
6128 * c-opts.c (c_common_handle_option): Don't set
6129 warn_jump_misses_init for -Wall.
6130 * doc/invoke.texi (Warning Options): Update documentation.
6132 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6134 * Makefile.in ($(out_object_file)): Depend on
6135 gt-$(basename $(notdir $(out_file))).h.
6137 2009-09-28 Richard Henderson <rth@redhat.com>
6139 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
6140 * except.c (gen_eh_region): Set it.
6141 (duplicate_eh_regions_1): Copy it.
6142 * tree-eh.c (lower_resx): Use it to determine which function
6145 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
6146 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
6147 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
6148 * tree.c (build_common_builtin_nodes): Remove parameter. Build
6149 BUILT_IN_CXA_END_CLEANUP if necessary.
6151 * c-common.c (c_define_builtins): Update call to
6152 build_common_builtin_nodes.
6154 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
6156 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
6158 2009-09-28 Michael Matz <matz@suse.de>
6160 * builtins.c (interclass_mathfn_icode): New helper.
6161 (expand_builtin_interclass_mathfn): Use it here, and split folding
6163 (fold_builtin_interclass_mathfn): ... this new folder.
6164 (build_call_nofold_loc): New static helper.
6165 (build_call_nofold): New wrapper macro for above.
6166 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
6167 (expand_builtin_pow): Ditto.
6168 (expand_builtin_memset_args): Ditto.
6169 (expand_builtin_printf): Ditto.
6170 (expand_builtin_fprintf): Ditto.
6171 (expand_builtin_sprintf): Ditto.
6172 (expand_builtin_memory_chk): Ditto.
6173 (expand_builtin_mempcpy_args): Ditto and don't call folders.
6174 (expand_builtin_stpcpy): Ditto.
6175 (expand_builtin_strcmp): Ditto.
6176 (expand_builtin_strncmp): Ditto.
6177 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
6178 (expand_builtin_strcpy_args): Don't call folders.
6179 (expand_builtin_memcmp): Ditto.
6180 (expand_builtin_strncpy): Ditto, and use target.
6181 (expand_builtin_memcpy): Ditto.
6182 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
6183 expand_builtin_strpbrk, expand_builtin_memmove,
6184 expand_builtin_memmove_args, expand_builtin_bcopy,
6185 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
6186 expand_builtin_strspn, expand_builtin_strcspn,
6187 expand_builtin_fputs): Remove these.
6188 (expand_builtin): Don't call the above, change calls to other
6189 expanders that changed prototype.
6190 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
6191 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
6192 fold_builtin_interclass_mathfn.
6193 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
6194 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
6196 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
6197 * passes.c (init_optimization_passes): Move pass_fold_builtins
6198 after last phiopt pass.
6199 * tree-inline.c (fold_marked_statements): When folding builtins
6200 iterate over all instruction potentially generated.
6201 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
6203 (fold_gimple_call): Use it to always fold calls (into potentially
6204 multiple instructions).
6205 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
6206 calls into zero at this time.
6207 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
6208 statements generated by builtin folding.
6210 2009-09-28 Nick Clifton <nickc@redhat.com>
6212 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
6214 2009-09-28 Duncan Sands <baldrick@free.fr>
6216 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
6217 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
6218 (register_callback): Dispatch it.
6219 (invoke_plugin_callbacks): Incorporate in sanity check.
6220 * ggc.h (ggc_register_cache_tab): Add declaration.
6221 * ggc-common.c (ggc_register_root_tab): Simplify.
6222 (const_ggc_cache_tab_t): New typedef.
6223 (extra_cache_vec): New vector of dynamically added cache tables.
6224 (ggc_register_cache_tab): New function.
6225 (ggc_scan_cache_tab): New function.
6226 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
6227 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
6229 2009-09-27 Richard Henderson <rth@redhat.com>
6231 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
6232 which we remove __builtin_stack_restore.
6234 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
6236 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
6237 to test for GRD_INVARIANT.
6238 (simple_rhs_p): Anything that's function_invariant_p is fine.
6240 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
6242 * gengtype.c (main): Use plunge_files instead of plugin_output.
6244 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
6245 Rafael Avila de Espindola <espindola@google.com>
6247 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
6248 Don't print pch related info if it is false.
6249 (main): Don't print pch info in plugin mode.
6251 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
6253 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
6254 with dw_val_class_const_double.
6255 (struct dw_val_struct): Replace val_long_long with val_double and
6256 adjust for above change.
6257 (output_loc_operands): Likewise.
6258 (add_AT_long_long): Rename into...
6259 (add_AT_double): ...this.
6260 (print_die): Replace dw_val_class_long_long with
6261 dw_val_class_const_double and adjust.
6262 (attr_checksum): Likewise.
6263 (same_dw_val_p): Likewise.
6264 (size_of_die): Likewise.
6265 (value_format): Likewise.
6266 (output_die): Likewise.
6267 (loc_descriptor) <CONST_DOUBLE>: Likewise.
6268 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
6269 instead of add_AT_long_long.
6270 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
6271 value with the precision of its type.
6273 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
6276 * c-typeck.c (build_conditional_expr): Use the readonly and
6277 volatile flags of the operand types, not of the operands itself.
6279 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
6281 * collect2.c (main): Look for -brtl before adding libraries.
6283 2009-09-27 Jonathan Gray <jsg@openbsd.org>
6285 * config.gcc: Update OpenBSD targets.
6286 * config/openbsd-stdint.h: New file.
6287 * config/openbsd-libpthread.h: New file.
6288 * config/openbsd.h: Update and break out LIB_SPEC definition.
6289 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
6290 * config/i386/openbsdelf.h: Correct types.
6291 * config/m68k/openbsd.h: Likewise.
6292 * config/mips/openbsd.h: Likewise.
6293 * config/vax/openbsd.h: Likewise.
6295 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
6297 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
6298 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
6299 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
6300 of the length and zero.
6302 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6304 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
6305 (FLAGS_H): Add options.h $(REAL_H).
6306 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
6307 (TREE_VECTORIZER_H): New.
6308 (EBITMAP_H): Renamed from EBIMAP_H.
6309 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
6310 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
6311 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
6312 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
6313 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
6314 (graphite-clast-to-gimple.o, graphite-dependences.o)
6315 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
6316 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
6317 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
6318 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
6319 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
6320 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
6321 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
6322 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
6323 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
6324 updated and fixed as per above changes and per
6325 check_makefile_deps.sh output.
6328 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
6329 * configure: Regenerate.
6331 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6333 * doc/install.texi: Update minimum MPC version to 0.7.
6335 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
6337 * doc/install.texi (Binaries): Remove reference to the binary
6338 distribution CD-ROM from the FSF.
6340 2009-09-26 Michael Matz <matz@suse.de>
6344 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
6345 that are mentioned in the body.
6347 2009-09-26 Michael Matz <matz@suse.de>
6349 PR tree-optimization/41454
6350 * tree-ssa-dom (stmts_to_rescan): Remove variable.
6351 (tree_ssa_dominator_optimize): Don't allocate and free it.
6352 (dom_opt_leave_block): Don't iterate over it.
6353 (eliminate_redundant_computations): Don't return a value.
6354 (cprop_operand, cprop_into_stmt): Ditto.
6355 (optimize_stmt): Don't defer updating stmts.
6357 2009-09-25 Dodji Seketeli <dodji@redhat.com>
6359 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
6360 generic_parameter_die, template_parameter_pack_die,
6361 gen_formal_parameter_die, gen_subprogram_die): Adjust after
6362 renaming DW_TAG_formal_parameter_pack and
6363 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
6364 and DW_TAG_GNU_template_parameter_pack.
6366 2009-09-25 Anatoly Sokolov <aesok@post.ru>
6368 * config/v850/v850.h (FUNCTION_VALUE): Remove.
6369 * config/v850/v850.c (v850_function_value): New function.
6370 (TARGET_FUNCTION_VALUE): Define.
6372 2009-09-25 Jakub Jelinek <jakub@redhat.com>
6374 * tree-vect-stmts.c (vectorizable_call): Call
6375 mark_symbols_for_renaming after vect_finish_stmt_generation.
6377 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
6378 to loc_descriptor_from_tree.
6379 (add_location_or_const_value_attribute): Pass 0 instead of 2
6380 for decl_by_reference_p decls.
6382 2009-09-25 Richard Guenther <rguenther@suse.de>
6385 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
6388 2009-09-25 Ben Elliston <bje@au.ibm.com>
6390 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
6393 2009-09-25 Alan Modra <amodra@bigpond.net.au>
6395 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
6396 form of instruction.
6398 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6401 * fold-const.c (const_binop): Handle complex int division.
6402 * tree-complex.c (expand_complex_div_straight,
6403 expand_complex_div_wide): Update comments.
6405 2009-09-24 DJ Delorie <dj@redhat.com>
6408 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
6409 (reg_class): Likewise.
6410 (REG_CLASS_NAMES): Likewise.
6411 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
6412 (m32c_override_options): Disable -fivopts for M32C.
6414 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6416 * config/rs6000/predicates.md (indexed_or_indirect_operand):
6417 Delete VSX load/store with update support.
6418 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
6419 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
6423 (VStype_load_update): Ditto.
6424 (VStype_store_update): Ditto.
6425 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
6426 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
6428 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
6429 load/store with update builtins.
6431 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
6433 * libgcc2.c (L_trampoline): Prototype for getpagesize
6434 and mprotect in WINNT case.
6436 2009-09-24 Anatoly Sokolov <aesok@post.ru>
6438 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
6439 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
6440 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
6441 'outgoing' argument.
6442 (TARGET_FUNCTION_VALUE): Define.
6444 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
6446 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
6448 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
6451 * common.opt: Initialize dwarf_strict to -1.
6452 * toplev.c (process_options): Catch unset dwarf_strict
6453 and set to 0 for all targets not overriding.
6454 * config/darwin.c (darwin_override_options): Catch unset
6455 dwarf_strict and override to 1.
6457 2009-09-24 Jeff Law <law@redhat.com>
6459 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
6461 2009-09-24 Richard Guenther <rguenther@suse.de>
6463 PR tree-optimization/36143
6464 PR tree-optimization/38747
6465 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
6466 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
6468 2009-09-24 Jakub Jelinek <jakub@redhat.com>
6471 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
6472 return false instead of gcc_unreachable (). For CONST return the
6473 value returned by recursive call instead of always returning true.
6474 (tree_add_const_value_attribute): Return the value returned by
6475 add_const_value_attribute instead of always returning true if rtl
6478 2009-09-23 Justin Seyster <jrseys@gmail.com>
6480 * Makefile.in (PLUGIN_HEADERS): Include real.h.
6482 2009-09-24 Jakub Jelinek <jakub@redhat.com>
6484 * cgraphunit.c (cgraph_lower_function): Revert last change.
6485 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
6486 instead of DECL_NO_STATIC_CHAIN.
6487 * tree-cfg.c (verify_gimple_call): Likewise.
6488 * tree-nested.c (get_chain_decl, get_chain_field,
6489 convert_tramp_reference_op, convert_gimple_call): Likewise.
6490 (convert_all_function_calls): Likewise. Always set or clear
6491 DECL_STATIC_CHAIN initially, for !n->outer clear it.
6492 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
6493 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
6495 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
6496 DECL_NO_STATIC_CHAIN.
6497 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
6498 instead of DECL_NO_STATIC_CHAIN.
6499 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
6500 decl_function_context.
6501 * varasm.c (initializer_constant_valid_p): Likewise.
6502 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
6503 (DECL_STATIC_CHAIN): ... this.
6504 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
6505 instead of DECL_NO_STATIC_CHAIN.
6507 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
6508 Rafael Avila de Espindola <espindola@google.com>
6510 * gengtype.c (nb_plugin_files): Make it unsigned to match
6511 num_gt_files. Adjust other variables to avoid warnings.
6512 (main): Allocate an all zero lang_bitmap before each plugin file name
6513 to match regular file names.
6515 2009-09-23 Richard Henderson <rth@redhat.com>
6517 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
6518 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
6519 static chain passed in memory.
6520 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
6521 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
6522 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
6523 STATIC_CHAIN_REGNUM defined.
6525 * config/picochip/picochip-protos.h: s/class/klass/.
6526 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
6527 (picochip_static_chain): New.
6528 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
6529 (STATIC_CHAIN_INCOMING): Remove.
6531 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
6532 (xtensa_static_chain): New.
6533 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
6534 (STATIC_CHAIN_INCOMING): Remove.
6536 2009-09-23 Anatoly Sokolov <aesok@post.ru>
6538 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
6539 * config/pa/pa-protos.h (function_value): Remove.
6540 * config/pa/pa.c (pa_function_value): Rename from function_value.
6541 Make static, add 'outgoing' argument.
6542 (TARGET_FUNCTION_VALUE): Define.
6544 2009-09-23 Anatoly Sokolov <aesok@post.ru>
6546 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
6547 instead of cfun->machine->is_leaf.
6548 * config/avr/avr.h (machine_function): Remove is_leaf field.
6550 2009-09-23 Jakub Jelinek <jakub@redhat.com>
6553 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
6554 DW_OP_piece after DW_OP_stack_value, adjust size calculations
6555 for it, when DW_OP_stack_value and DW_OP_implicit_value has
6556 the same size, prefer DW_OP_stack_value.
6557 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
6558 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
6560 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
6563 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
6565 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
6568 * cfgexpand.c (convert_debug_memory_address): New.
6569 (expand_debug_expr): Convert base address and offset to the same
6570 mode. Use it to convert addresses to other modes. Accept
6573 2009-09-23 Dodji Seketeli <dodji@redhat.com>
6576 * function.h (types_used_by_vars_hash): Declare new hash table.
6577 (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
6578 equality and hash function for the hash table.
6579 (types_used_by_cur_var_decl): Declare a new global chained list.
6580 (types_used_by_var_decl_insert): Declare new function.
6581 * function.c (types_used_by_vars_hash): Define the hashtable ...
6582 (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
6583 its equality and hash functions.
6584 (hash_types_used_by_vars_entry): New hash helper.
6585 (types_used_by_cur_var_decl): Define the global chained list.
6586 (used_types_insert): Update the list of types used by the global
6587 variable being parsed.
6588 (types_used_by_var_decl_insert): Define new function.
6589 * c-common.h (record_types_used_by_current_var_decl): Declare ...
6590 * c-common.c (record_types_used_by_current_var_decl): ... new
6592 * c-decl.c (finish_decl): Record the types used by the global
6593 variable declaration we've just parsed.
6594 * dwarf2out.c (premark_used_types): Insert a new line between
6595 comment and function.
6596 (premark_used_types_helper): Fix comment.
6597 (premark_types_used_by_global_vars_helper,
6598 premark_types_used_by_global_vars): New functions.
6599 (prune_unused_types): Do not prune types used by global variables.
6601 2009-09-23 Richard Guenther <rguenther@suse.de>
6603 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
6604 produced for bigendian targets with promoted subregs.
6606 2009-09-23 Richard Guenther <rguenther@suse.de>
6608 * value-prof.c (gimple_ic): Purge old EH edges only after building
6611 2009-09-23 Nick Clifton <nickc@redhat.com>
6613 * config/arc/arc.c (arc_trampoline_init): Fix typo.
6615 2009-09-23 Jakub Jelinek <jakub@redhat.com>
6618 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
6621 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
6622 on non-nested functions.
6624 2009-09-23 Jakub Jelinek <jakub@redhat.com>
6625 Jan Hubicka <jh@suse.cz>
6627 * dwarf2out.c (loc_list_plus_const): Only define if
6628 DWARF2_DEBUGGING_INFO.
6629 (address_of_int_loc_descriptor): Likewise.
6632 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
6634 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
6637 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
6638 constant is more than zero.
6640 2009-09-23 Alan Modra <amodra@bigpond.net.au>
6643 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
6644 call final to emit non-scheduled prologue, instead insert at entry.
6646 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
6647 Joseph S. Myers <joseph@codesourcery.com>
6649 * doc/install.texi (*-*-freebsd*): Add proper format codes.
6651 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
6652 Rafael Avila de Espindola <espindola@google.com>
6654 * gengtype.c (is_file_equal): New function.
6655 (close_output_files): Use is_file_equal. Free of->buf.
6657 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
6658 Rafael Avila de Espindola <espindola@google.com>
6660 * gengtype.c (write_types, write_local): Add the output_header
6661 argument. Update all callers.
6663 2009-09-22 Dodji Seketeli <dodji@redhat.com>
6665 * dwarf2out.c (template_parameter_pack_die,
6666 gen_formal_parameter_pack_die ): New functions.
6667 (make_ith_pack_parameter_name): Remove this function.
6668 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
6669 DW_TAG_formal_parameter_pack.
6670 (gen_generic_params_dies): Represent each template parameter pack
6671 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
6672 represented by usual DW_TAG_template_*_parameter DIEs that are
6673 children of the DW_TAG_template_parameter_pack element DIE.
6674 (generic_parameter_die): This doesn't deal with parameter pack
6675 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
6676 of parameter pack DIEs.
6677 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
6678 in certain cases, e.g. for pack elements.
6679 (gen_formal_types_die, gen_decl_die): Adjust usage of
6680 gen_formal_parameter_die.
6681 (gen_subprogram_die): Represent each function parameter pack by a
6682 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
6683 represented by usual DW_TAG_formal_parameter DIEs that are children
6684 of the DW_TAG_formal_parameter_pack DIE. Remove references to
6685 ____builtin_va_alist decls as no part of the compiler uses those
6687 * langhooks.h (struct lang_hooks_for_decls): Add
6688 function_parm_expanded_from_pack_p, get_generic_function_decl
6689 and function_parameter_pack_p hooks. Fix comment for
6690 get_innermost_generic_parms hook.
6691 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
6692 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
6693 macros and use them to initialize lang_hook.
6695 2009-09-22 Richard Henderson <rth@redhat.com>
6697 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
6698 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
6699 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
6700 on TRAMPOLINE_TEMPLATE.
6701 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
6702 TRAMPOLINE_ADJUST_ADDRESS.
6703 * targhooks.c (default_asm_trampoline_template): Remove.
6704 (default_trampoline_adjust_address): Remove.
6705 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
6706 * targhooks.h: Update decls.
6708 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
6710 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
6711 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
6712 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
6714 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
6717 * reload1.c (reload): Reset debug insns with pseudos without
6720 2009-09-22 Janis Johnson <janis187@us.ibm.com>
6722 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
6723 unconditional true for decimal float modes.
6724 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
6725 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
6727 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
6729 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
6730 Enable a new case for __FreeBSD__ >= 7.
6731 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
6732 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
6733 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
6734 and USE_LD_AS_NEEDED.
6736 * doc/install.texi (*-*-freebsd*): Update target information.
6738 2009-09-22 Richard Guenther <rguenther@suse.de>
6741 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
6742 arrays really properly.
6744 2009-09-22 Richard Henderson <rth@redhat.com>
6747 * target.h (struct gcc_target): Add asm_out.trampoline_template,
6748 calls.static_chain, calls.trampoline_init,
6749 calls.trampoline_adjust_address.
6750 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6751 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
6752 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
6753 * builtins.c (expand_builtin_setjmp_receiver): Use
6754 targetm.calls.static_chain; only clobber registers.
6755 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
6756 set up memory attributes properly for the trampoline block.
6757 (expand_builtin_adjust_trampoline): Use
6758 targetm.calls.trampoline_adjust_address.
6759 * calls.c (prepare_call_address): Add fndecl argument. Use
6760 targetm.calls.static_chain.
6761 * df-scan.c (df_need_static_chain_reg): Remove.
6762 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
6763 consolodate static chain handling.
6764 * doc/tm.texi: Document new hooks.
6765 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
6766 (init_emit_regs): Don't initialize them.
6767 * expr.h (prepare_call_address): Update decl.
6768 * final.c (profile_function): Use targetm.calls.static_chain.
6769 * function.c (expand_function_start): Likewise.
6770 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
6771 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
6772 only clobber registers.
6773 * targhooks.c (default_static_chain): New.
6774 (default_asm_trampoline_template, default_trampoline_init): New.
6775 (default_trampoline_adjust_address): New.
6776 * targhooks.h: Declare them.
6777 * varasm.c (assemble_trampoline_template): Use
6778 targetm.asm_out.trampoline_template. Make the memory block const
6781 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
6782 alpha_initialize_trampoline. Make static. Merge VMS parameter
6783 differences into the TARGET_ABI_OPEN_VMS code block.
6784 (TARGET_TRAMPOLINE_INIT): New.
6785 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
6786 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
6787 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
6788 (INITIALIZE_TRAMPOLINE): Remove.
6790 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
6791 (TRAMPOLINE_TEMPLATE): Merge with ...
6792 (INITIALIZE_TRAMPOLINE): ... this and move ...
6793 * config/arc/arc.c (arc_trampoline_init): ... here.
6794 (TARGET_TRAMPOLINE_INIT): New.
6796 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6797 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
6798 (arm_asm_trampoline_template): New.
6799 (arm_trampoline_init, arm_trampoline_adjust_address): New.
6800 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
6801 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
6802 code to arm_asm_trampoline_template.
6803 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
6804 arm_trampoline_adjust_address.
6805 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
6806 adjust for target hook parameters.
6808 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
6811 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
6812 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
6813 (bfin_trampoline_init): Rename from initialize_trampoline;
6814 make static; update for target hook parameters.
6815 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
6816 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
6817 bfin_asm_trampoline_template.
6818 (INITIALIZE_TRAMPOLINE): Remove.
6820 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
6821 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
6822 cris_trampoline_init): New.
6823 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
6824 cris_asm_trampoline_template.
6825 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
6826 adjust for target hook parameters.
6828 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
6830 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
6831 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
6832 fr30_trampoline_init): New.
6833 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
6834 fr30_asm_trampoline_template.
6835 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
6836 adjust for target hook parameters.
6838 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
6839 (frv_trampoline_init): Rename from frv_initialize_trampoline;
6840 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
6841 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
6842 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
6844 * config/h8300/h8300.c (h8300_trampoline_init): New.
6845 (TARGET_TRAMPOLINE_INIT): New.
6846 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
6847 to h8300_trampoline_init and adjust for hook parameters.
6849 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
6850 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
6851 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
6852 make static; adjust for hook parameters.
6853 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
6855 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6856 (TARGET_TRAMPOLINE_INIT): New.
6857 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
6858 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
6859 iq2000_asm_trampoline_template.
6860 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
6861 (TRAMPOLINE_CODE_SIZE): New.
6862 (TRAMPOLINE_SIZE): Use it.
6863 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
6865 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
6866 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
6867 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
6868 adjust for hook parameters.
6869 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
6871 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
6872 (m32r_trampoline_init): New.
6873 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
6874 m32r_trampoline_init.
6876 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
6877 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
6878 make static; update for hook parameters.
6879 * config/m68hc11/m68hc11-protos.h: Update.
6880 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
6882 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6883 (TARGET_TRAMPOLINE_INIT): New.
6884 (mcore_function_value): Fix typo.
6885 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
6886 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
6887 to mcore_asm_trampoline_template.
6888 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
6890 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
6891 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
6892 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
6893 update for hook parameters.
6894 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
6896 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
6897 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
6898 mips_trampoline_init): New.
6899 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
6900 mips_asm_trampoline_template.
6901 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
6902 update for hook parameters.
6904 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6905 (TARGET_TRAMPOLINE_INIT): New.
6906 (mmix_trampoline_size): Remove.
6907 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
6908 make static. Remove out-of-date tetra vs octa comment.
6909 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
6910 make static; update for hook parameters.
6911 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
6912 (INITIALIZE_TRAMPOLINE): Remove.
6913 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
6914 (TRAMPOLINE_ALIGNMENT): New.
6915 * gcc/config/mmix/mmix-protos.h: Update.
6917 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
6918 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
6919 mn10300_trampoline_init): New.
6920 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
6921 mn10300_asm_trampoline_template.
6922 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
6924 * config/moxie/moxie.c (moxie_static_chain,
6925 moxie_asm_trampoline_template, moxie_trampoline_init,
6926 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
6927 TARGET_TRAMPOLINE_INIT): New.
6928 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
6929 moxie_trampoline_init.
6930 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
6931 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
6933 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
6934 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
6935 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
6936 pa_trampoline_adjust_address): New.
6937 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
6938 pa_asm_trampoline_template.
6939 (TRAMPOLINE_ALIGNMENT): New.
6940 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
6941 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
6942 adjust for hook parameters.
6943 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
6945 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
6946 (TARGET_TRAMPOLINE_INIT): New.
6947 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
6948 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
6950 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
6952 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
6953 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
6954 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
6955 make static; adjust parameters for the hook.
6956 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
6958 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
6959 s390_trampoline_template; make static.
6960 (s390_trampoline_init): Rename from s390_initialize_trampoline;
6961 make static; adjust for target hook.
6962 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
6963 * config/s390/s390-protos.h: Remove trampoline decls.
6964 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
6965 (TRAMPOLINE_TEMPLATE): Remove.
6966 (TRAMPOLINE_ALIGNMENT): New.
6968 * config/score/score-protos.h (score_initialize_trampoline): Remove.
6969 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6970 (TARGET_TRAMPOLINE_INIT): New.
6971 (score_asm_trampoline_template): New.
6972 (score_trampoline_init): Rename from score_initialize_trampoline;
6973 make static; adjust for hook parameters.
6974 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
6975 score[37]_asm_trampoline_template.
6976 (INITIALIZE_TRAMPOLINE): Remove.
6977 * config/score/score3.c (score3_asm_trampoline_template): New.
6978 (score3_trampoline_init): Rename from score3_initialize_trampoline;
6979 adjust for target hook.
6980 * config/score/score7.c (score7_asm_trampoline_template): New.
6981 (score7_trampoline_init): Rename from score7_initialize_trampoline;
6982 adjust for target hook.
6983 * config/score/score3.h, config/score/score7.h: Update.
6985 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
6986 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
6987 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
6988 (sh_trampoline_init): Rename from sh_initialize_trampoline;
6989 make static; adjust for target hook parameters.
6990 (sh_trampoline_adjust_address): New.
6991 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
6992 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
6994 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
6995 (sparc32_initialize_trampoline): Rename from
6996 sparc_initialize_trampoline; make static; replace tramp parameter
6997 with m_tramp and update memory accesses.
6998 (sparc64_initialize_trampoline): Similarly.
6999 (sparc_trampoline_init): New.
7000 * config/sparc/sparc-protos.h: Remove trampoline decls.
7001 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
7002 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
7004 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
7005 (array_to_constant): Make ARR parameter const.
7006 (spu_trampoline_init): Rename from spu_initialize_trampoline;
7007 make static; update for hook parameters.
7008 * config/spu/spu-protos.h: Update decls.
7009 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
7011 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
7012 from xstormy16_initialize_trampoline; make static; update for
7014 (TARGET_TRAMPOLINE_INIT): New.
7015 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
7017 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7018 (TARGET_TRAMPOLINE_INIT): New.
7019 (v850_can_eliminate): Make static.
7020 (v850_asm_trampoline_template, v850_trampoline_init): New.
7021 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
7022 v850_asm_trampoline_template.
7023 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
7024 and adjust for target hook parameters.
7026 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7027 (TARGET_TRAMPOLINE_INIT): New.
7028 (vax_asm_trampoline_template, vax_trampoline_init): New.
7029 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
7030 vax_asm_trampoline_template.
7031 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
7033 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7034 (TARGET_TRAMPOLINE_INIT): New.
7035 (xtensa_asm_trampoline_template): Rename from
7036 xtensa_trampoline_template; make static.
7037 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
7038 make static; update for hook parameters.
7039 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
7040 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
7041 (INITIALIZE_TRAMPOLINE): Remove.
7043 * config/i386/i386.c (ix86_function_regparm): Do not issue an
7044 error for nested functions with regparm=3.
7045 (ix86_compute_frame_layout): Adjust frame pointer offset for
7046 ix86_static_chain_on_stack.
7047 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
7048 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
7049 don't reset to UNITS_PER_WORD.
7050 (ix86_emit_leave): Adjust ix86_cfa_state.
7051 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
7052 (ix86_static_chain): New.
7053 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
7054 make static; update for target hook parameters; use ix86_static_chain.
7055 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
7056 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
7057 (INITIALIZE_TRAMPOLINE): Remove.
7058 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
7059 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
7060 to the end. Add static_chain_on_stack.
7061 (ix86_static_chain_on_stack): New.
7063 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
7064 (m68k_output_mi_thunk): Don't use static_chain_rtx.
7065 (m68k_trampoline_init): New.
7066 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
7067 m68k_trampoline_init and adjust for hook parameters.
7068 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
7069 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
7071 2009-09-22 Jakub Jelinek <jakub@redhat.com>
7073 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
7074 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
7076 * reload1.c (reload): Call wrap_constant when substituting
7077 reg for equiv inside of DEBUG_INSNs.
7080 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
7081 add_call_src_coords_attributes, add_high_low_attributes,
7082 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
7083 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
7084 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
7085 when -gdwarf-2 -gstrict-dwarf.
7086 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
7087 -gdwarf-[23] -gstrict-dwarf.
7088 (address_of_int_loc_descriptor, loc_descriptor,
7089 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
7090 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
7091 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
7093 2009-09-22 Richard Guenther <rguenther@suse.de>
7095 PR tree-optimization/41428
7096 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
7097 (ccp_finalize): Pass it to substitute_and_fold.
7099 2009-09-22 Richard Guenther <rguenther@suse.de>
7101 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
7102 (substitute_and_fold): Adjust prototype.
7103 * tree-vrp.c (vrp_evaluate_conditional): Make static.
7104 (simplify_stmt_using_ranges): Likewise.
7105 (fold_predicate_in): Move here from tree-ssa-propagate.c.
7106 (vrp_fold_stmt): New function.
7107 (vrp_finalize): Pass it to substitute_and_fold.
7108 * tree-flow.h (vrp_evaluate_conditional): Remove.
7109 (simplify_stmt_using_ranges): Likewise.
7110 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
7111 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7112 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
7114 (fold_predicate_in): Move to tree-vrp.c.
7115 (substitute_and_fold): Use the callback instead of calling into
7116 tree-vrp.c functions directly.
7118 2009-09-22 Jakub Jelinek <jakub@redhat.com>
7120 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
7121 comparison warning on rs6000.
7124 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
7125 GIMPLE_EH_MUST_NOT_THROW cleanup.
7126 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
7128 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
7131 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
7132 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
7133 LIB_SPEC for darwin10 and later since it always uses the unwinder in
7134 libSystem which is derived from the gcc 4.2.1 unwinder.
7136 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
7139 * varasm.c (default_encode_section_info): Copy TLS model into
7140 sym_ref flags regardless of backend support for TLS, for all
7141 model types except TLS_MODEL_EMULATED.
7143 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
7146 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
7147 we can handle it correctly.
7149 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
7151 * doc/install.texi (os2): Remove section.
7153 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
7155 * doc/standards.texi (Objective-C): Adjust two URLs.
7157 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
7159 * tree-tailcall.c (process_assignment): Don't check if a
7160 multiplication or an addition are already present.
7161 (find_tail_calls): Combine multiple additions and multiplications.
7162 (adjust_accumulator_values): Emit accumulators.
7164 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
7166 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
7167 xmm register restore.
7169 2009-09-21 Jan Hubicka <jh@suse.cz>
7171 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
7172 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
7175 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
7177 * stor-layout.c (layout_type): Remove obsolete code.
7179 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
7182 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
7184 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7187 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
7188 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
7189 (fold_builtin_2, do_mpc_arg1): Update accordingly.
7190 * fold-const.c (const_binop): Likewise.
7191 * real.h (do_mpc_arg2): Update prototype.
7193 2009-09-20 Jan Hubicka <jh@suse.cz>
7195 * dwarf2out.c (add_const_value_attribute): Return true if successful.
7196 (add_location_or_const_value_attribute): Rewrite using
7198 (tree_add_const_value_attribute): Return true if successful.
7199 (tree_add_const_value_attribute_for_decl): Likewise.
7201 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
7202 (loc_descriptor): ... here;
7203 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7204 (cst_pool_loc_descr): Break out from ...; do not reffer constant
7205 pool items that was not marked for output.
7206 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
7207 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7208 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7209 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
7210 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
7211 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
7212 DW_OP_stack_value to get address of items that are not available
7214 (dw_loc_list): Handle single element lists correctly.
7216 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
7217 Pascal Obry <obry@adacore.com>
7219 * unwind-dw2-fde.c (classify_object_over_fdes):
7220 Cast the constant 1 to _Unwind_Ptr.
7221 (add_fdes): Likewise.
7222 (linear_search_fdes): Likewise.
7224 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
7226 * stor-layout.c (set_sizetype): Avoid useless type copy.
7228 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
7230 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
7232 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
7233 * configure, config.in: Regenerate.
7234 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
7236 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
7237 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
7238 for global data if the output could be used in a shared library.
7239 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
7240 to 0 if TARGET_WRITABLE_EH_FRAME.
7242 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
7244 PR rtl-optimization/39886
7245 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
7246 just when insn is equal to BB_END (bb).
7248 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
7250 * config/mips/mips.opt (mrelax-pic-calls): New option.
7251 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
7253 (mips_unspec_call): Change "unspec_call" expander into this.
7254 (mips_strip_unspec_call): New function.
7255 (mips_got_load): Call mips_unspec_call instead of
7256 gen_unspec_call<mode>.
7257 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
7259 (mips_cfg_in_reorg): New function.
7260 (mips16_lay_out_constants): Use it to decide whether to call
7261 CFG-aware insn splitting.
7262 (r10k_insert_cache_barriers): Move CFG set-up code from here to
7263 mips_reorg. Move DF set-up code from here ...
7264 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
7266 (mips_reorg): Call mips_df_reorg instead of
7267 r10k_insert_cache_barriers. Move CFG set-up code here from
7268 r10k_insert_cache_barriers.
7269 (mips_call_expr_from_insn): New function.
7270 (mips_pic_call_symbol_from_set): Likewise.
7271 (mips_find_pic_call_symbol): Likewise.
7272 (mips_annotate_pic_call_expr): Likewise.
7273 (mips_get_pic_call_symbol): Likewise.
7274 (mips_annotate_pic_calls): Likewise.
7275 (mips_override_options): Disable -mrelax-pic-calls unless PIC
7277 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
7278 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
7279 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
7281 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
7282 (unspec_call<mode>): Remove it.
7283 (sibcall_internal, sibcall_value_internal,
7284 sibcall_value_multiple_internal, call_internal, call_split,
7285 call_value_internal, call_value_split,
7286 call_value_multiple_internal, call_value_multiple_split): Pass
7287 SIZE_OPNO to MIPS_CALL.
7288 (call_internal_direct, call_direct_split,
7289 call_value_internal_direct, call_value_direct_split): Pass -1 as
7290 SIZE_OPNO to MIPS_CALL.
7291 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
7292 * configure: Regenerate.
7293 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
7294 and -mno-relax-pic-calls.
7295 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
7297 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7300 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
7301 in the directory this rule is called from, rather than the
7302 toplevel 'gcc' directory, to fix in-tree build.
7304 2009-09-19 Chris Demetriou <cgd@google.com>
7306 PR preprocessor/28435:
7307 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
7308 to cpplib that the preprocessor output is needed.
7310 2009-09-19 Jakub Jelinek <jakub@redhat.com>
7312 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
7313 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
7314 *return_and_restore_fpregs_<mode>,
7315 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
7318 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
7319 instead of assuming it has always a REG inside of it.
7321 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
7323 * config/freebsd.h: Update comment on types.
7324 (WINT_TYPE): Define.
7326 2009-09-18 Jason Merrill <jason@redhat.com>
7328 * c.opt: Add -fno-deduce-init-list.
7330 2009-09-18 Neil Vachharajani <nvachhar@google.com>
7332 * value-prof.c (interesting_stringop_to_profile_p): Added output
7333 argument to indicate which parameter is the size parameter.
7334 * value-prof.c (gimple_stringop_fixed_value): Use
7335 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
7336 * value-prof.c (gimple_stringops_transform): Update call sites to
7337 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
7339 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
7342 From David Binderman <dcb314@hotmail.com>:
7343 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
7344 local variable f. Remove stale comments.
7345 (ix86_compute_frame_layout): Remove useless local variable total_size.
7346 Remove #if 0'd code.
7347 (legitimate_address_p): Remove useless local variables
7348 reason_rtx and reason.
7349 (ix86_split_copysign_const): Remove useless local variable op1.
7350 (scale_counter): Remove useless local variable piece_size_mask.
7352 2009-09-18 Jakub Jelinek <jakub@redhat.com>
7354 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
7357 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7360 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
7362 2009-09-17 Jakub Jelinek <jakub@redhat.com>
7364 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
7367 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
7369 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
7370 DW_OP_implicit_value even without dwarf_version 4.
7372 2009-09-17 Jan Hubicka <jh@suse.cz>
7374 * dwarf2out.c: Include tree-pass.h and gimple.h.
7375 (loc_list_plus_const): New function.
7376 (loc_descriptor_from_tree_1): Rename to ...
7377 (loc_descriptor_from_tree): ... remove original.
7378 (loc_list_from_tree): New function.
7379 (add_AT_location_description): Accept location list.
7380 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
7381 (concatn_mem_loc_descriptor): Remove.
7382 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
7384 (secname_for_decl): Move up.
7385 (hidden_reference_p): New function; break out from ...
7386 (loc_by_refernece): ... here; move up.
7387 (dw_loc_list): New function.
7388 (single_element_loc_list): New function.
7389 (single_element_loc_list_p): New function.
7390 (add_loc_descr_to_each): New function.
7391 (add_loc_list): New function.
7392 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
7393 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
7394 add diagnostics why expansion failed.
7395 (add_location_or_const_value_attribute): Support location lists.
7396 (add_bound_info): Likewise.
7397 (descr_info_loc): Update call of loc_descriptor_from_tree.
7398 (gen_variable_die): Work on location lists.
7399 * final.c (pass_final): Add dump file.
7400 * Makefile.in (dwarf2out.o): Add new dependencies.
7402 2009-09-17 Janis Johnson <janis187@us.ibm.com>
7405 * real.c decimal_from_integer, decimal_integer_string): New.
7406 (real_from_integer): Use them as special case for decimal float.
7407 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
7408 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
7409 Do not append zero after the decimal point in string to convert.
7411 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
7413 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
7414 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
7416 2009-09-17 Martin Jambor <mjambor@suse.cz>
7418 * common.opt (fipa-sra): New switch.
7419 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
7420 * timevar.def (TV_IPA_SRA): New timevar.
7421 * params.def (ipa-sra-ptr-growth-factor): New parameter.
7422 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
7423 * tree-sra.c: Include cgraph.c.
7424 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
7425 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
7426 and grp_not_necessarilly_dereferenced.
7427 (func_param_count): New variable.
7428 (encountered_apply_args): New variable.
7429 (bb_dereferences): New variable.
7430 (final_bbs): New variable.
7431 (no_accesses_representant): New variable.
7432 (no_accesses_p): New function.
7433 (dump_access): Dump the new fields.
7434 (sra_initialize): Set encountered_apply_args to false.
7435 (get_ssa_base_param): New function.
7436 (mark_parm_dereference): New function.
7437 (create_access): Caring for INIDRECT_REFs and different handling of
7438 varialble length accesses in early IPA SRA. Store the stmt - a new
7439 parameter - to the new access.
7440 (build_access_from_expr_1): New parameter stmt, passed to
7441 create_access. Handle INDIRECT_REFs.
7442 (build_access_from_expr): Pass the current statement to
7443 build_access_from_expr_1.
7444 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
7446 (build_accesses_from_assign): Pass the current statement to
7447 build_access_from_expr_1. Do not create assign links in IPA-SRA.
7448 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
7449 final_bbs when necessary. Check for calls to __builtin_apply_args.
7450 Fixup EH info if anythng was changed.
7451 (is_unused_scalar_param): New function.
7452 (ptr_parm_has_direct_uses): New function.
7453 (find_param_candidates): New function.
7454 (mark_maybe_modified): New function.
7455 (analyze_modified_params): New function.
7456 (propagate_dereference_distances): New function.
7457 (dump_dereferences_table): New function.
7458 (analyze_caller_dereference_legality): New function.
7459 (unmodified_by_ref_scalar_representative): New function.
7460 (splice_param_accesses): New function.
7461 (decide_one_param_reduction): New function.
7462 (enum ipa_splicing_result): New type.
7463 (splice_all_param_accesses): New function.
7464 (get_param_index): New function.
7465 (turn_representatives_into_adjustments): New function.
7466 (analyze_all_param_acesses): New function.
7467 (get_replaced_param_substitute): New function.
7468 (get_adjustment_for_base): New function.
7469 (replace_removed_params_ssa_names): New function.
7470 (sra_ipa_reset_debug_stmts): New function.
7471 (sra_ipa_modify_expr): New function.
7472 (sra_ipa_modify_assign): New function.
7473 (convert_callers): New function.
7474 (modify_function): New function.
7475 (ipa_sra_preliminary_function_checks): New function.
7476 (ipa_early_sra): New function.
7477 (ipa_early_sra_gate): New function.
7478 (pass_early_ipa_sra): New variable.
7479 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
7481 2009-09-17 Michael Matz <matz@suse.de>
7484 * tree.c (build_type_attribute_qual_variant): Export.
7485 * tree.h (build_type_attribute_qual_variant): Declare.
7486 * tree-inline.c (remap_type_1): Use it to build variants with
7487 the original qualifiers and attributes.
7489 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7491 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
7492 without a fallthrough edge.
7494 2009-09-16 DJ Delorie <dj@redhat.com>
7496 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
7497 chip and ignore the "fast_interrupt" attribute if so.
7499 2009-09-16 Richard Henderson <rth@redhat.com>
7502 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
7505 2009-09-16 Richard Henderson <rth@redhat.com>
7508 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
7509 is set only if DECL_NO_STATIC_CHAIN is unset.
7510 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
7511 (FOR_EACH_NEST_INFO): New.
7512 (walk_all_functions): Use it.
7513 (finalize_nesting_tree): Likewise.
7514 (unnest_nesting_tree): Likewise.
7515 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
7516 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
7517 (convert_gimple_call): Early out if gimple_call_chain already set.
7518 (convert_all_function_calls): Iterate until no new functions
7519 require a static chain.
7520 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
7521 when building a trampoline. Use dump_function_to_file instead
7523 (lower_nested_functions): Open dump_file. Validate that decls
7524 that have DECL_NO_STATIC_CHAIN from the front end don't have that
7525 bit reset by this pass.
7527 2009-09-16 Michael Matz <matz@suse.de>
7530 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
7531 shorten decl_common_unused.
7532 (DECL_RESTRICTED_P): New accessor.
7533 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
7534 to disambiguate marked decls and restrict pointers.
7536 2009-09-16 Richard Henderson <rth@redhat.com>
7539 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
7541 2009-09-16 Jakub Jelinek <jakub@redhat.com>
7543 * integrate.c (set_block_abstract_flags): Call
7544 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
7546 2009-09-16 Richard Guenther <rguenther@suse.de>
7549 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
7552 2009-09-16 DJ Delorie <dj@redhat.com>
7553 Kaz Kojima <kkojima@gcc.gnu.org>
7555 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
7556 (sh_expand_prologue): Update calls to output_stack_adjust.
7557 (sh_expand_epilogue): Likewise.
7559 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
7562 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
7563 trying to limit the extent of searches in the insn stream.
7565 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
7566 Jakub Jelinek <jakub@redhat.com>
7570 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
7572 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
7573 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
7574 (rs6000_savres_strategy): Always save FP registers inline if the
7575 target doesn't support hardware double-precision. Set the above
7576 bits in return value when needed.
7577 (rs6000_savres_routine_sym): Fix computation for cache selector.
7578 Mark the generated symbol as a function. Rename exitp argument to
7579 lr. Move code for determining the name of the symbol...
7580 (rs6000_savres_routine_name): ...here. New function. Add cases for
7581 getting the names right on AIX and 64-bit Linux.
7582 (savres_routine_name): New variable.
7583 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
7584 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
7585 on what the target routine uses as a base register. If savep && lr
7586 describe saving of r0 into memory slot.
7587 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
7588 line calls for AIX ABI.
7589 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
7590 determine FP save/restore functions.
7591 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
7592 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
7594 (rs6000_emit_epilogue): Adjust computation of restore_lr.
7595 Duplicate restoration of LR and execute the appropriate one
7596 depending on whether GPRs are being restored inline. Set r11 from
7597 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
7598 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
7599 Fix out of line calls for AIX ABI.
7600 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
7602 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
7604 (*restore_gpregs_spe): Likewise.
7605 (*return_and_restore_gpregs_spe): Likewise.
7606 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
7607 Define to empty string unconditionally.
7608 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
7609 Define to empty string unconditionally.
7610 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
7613 2009-09-15 Jan Hubicka <jh@suse.cz>
7615 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
7616 * params.def (inline-insns-auto): Likewise.
7618 2009-09-15 Martin Jambor <mjambor@suse.cz>
7620 * ipa-inline.c (estimate_function_body_sizes): Dump info about
7621 individual statements only at TDF_DETAILS dump level. Format
7622 source for 80 characters per line.
7624 2009-09-15 Christian Bruel <christian.bruel@st.com>
7626 * regrename.c (do_replace): Update REG_DEAD notes.
7628 2009-09-15 Revital Eres <eres@il.ibm.com>
7630 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
7631 * targhooks.c (default_builtin_support_vector_misalignment):
7632 New builtin function.
7633 * targhooks.h (default_builtin_support_vector_misalignment):
7635 * target.h (builtin_support_vector_misalignment):
7636 New field in struct gcc_target.
7637 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
7638 new builtin function.
7639 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
7641 * config/rs6000/rs6000.c
7642 (rs6000_builtin_support_vector_misalignment): New function.
7643 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
7645 2009-09-15 Jie Zhang <jie.zhang@analog.com>
7647 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
7649 (bfin_optimize_loop): Likewise.
7650 (bfin_gen_bundles): Likewise.
7651 (workaround_speculation): Likewise.
7652 (find_load): Return NULL_RTX for debug_insn.
7654 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
7656 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
7659 2009-09-14 DJ Delorie <dj@redhat.com>
7661 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
7662 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
7665 2009-09-14 Richard Henderson <rth@redhat.com>
7666 Jakub Jelinek <jakub@redhat.com>
7668 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
7669 * cfgbuild.c (make_edges): Handle asm goto.
7670 * cfglayout.c (fixup_reorder_chain): Likewise.
7671 * cfgrtl.c (patch_jump_insn): Likewise.
7672 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
7673 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
7674 (gimple_build_asm_vec): Add and use labels parameter.
7675 (gimple_build_asm): Remove.
7676 (walk_gimple_asm): Walk labels too.
7677 * gimple.def (GIMPLE_ASM): Update docs.
7678 * gimple.h: Update decls.
7679 (struct gimple_statement_asm): Change nc to use unsigned char;
7681 (gimple_asm_nlabels): New.
7682 (gimple_asm_label_op, gimple_asm_set_label_op): New.
7683 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
7684 into gimple_build_asm_vec.
7685 * jump.c (mark_jump_label_asm): New.
7686 (mark_jump_label): Use it.
7687 (redirect_jump_1): Handle asm goto.
7688 (invert_jump_1): Soft fail if X is null.
7689 * recog.c (extract_asm_operands): New.
7690 (asm_noperands): Use it; handle asm labels.
7691 (decode_asm_operands): Use extract_asm_operands.
7692 (asm_operand_ok): Properly handle empty string.
7693 * reg-stack.c (get_asm_operands_in_out): Rename from
7694 get_asm_operand_n_inputs; use extract_asm_operands; return both
7695 inputs and outputs by reference; update all callers.
7696 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
7697 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
7698 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
7699 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
7700 (extract_asm_operands): Declare.
7701 * stmt.c (expand_asm_operands): Add and use labels parameter.
7702 (check_unique_operand_names): Likewise.
7703 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
7704 (expand_asm_stmt): Handle asm labels.
7705 * tree-cfg.c (make_gimple_asm_edges): New.
7706 (make_edges): Use it.
7707 (cleanup_dead_labels): Handle asm labels.
7708 (is_ctrl_altering_stmt): Likewise.
7709 (gimple_redirect_edge_and_branch): Likewise.
7710 * tree.def (ASM_EXPR): Add 5th operand.
7711 * tree.h (ASM_LABELS): New.
7712 (resolve_asm_operand_names): Update decl.
7714 * c-parser.c (c_parser_asm_statement): Parse asm goto.
7715 (c_parser_asm_goto_operands): New.
7716 * c-tree.h (build_asm_expr): Update decl.
7717 * c-typeck.c (build_asm_expr): Add and use labels parameter.
7718 * doc/extend.texi: Document asm goto.
7720 2009-09-14 Richard Henderson <rth@redhat.com>
7722 * except.h: Update declarations.
7723 (struct pointer_map_t): Forward declare.
7724 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
7725 (struct eh_landing_pad_d, eh_landing_pad): New.
7726 (struct eh_catch_d, eh_catch): New.
7727 (struct eh_region_d): Remove next_region_sharing_label, aka,
7728 label, tree_label, landing_pad, post_landing_pad, resume,
7729 may_contain_throw. Rename region_number to index. Remove
7730 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
7731 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
7732 (VEC(eh_landing_pad,gc)): New.
7733 (struct eh_status): Remove last_region_number. Add lp_array,
7734 throw_stmt_table, ttype_data, ehspec_data.
7735 (ehr_next, FOR_ALL_EH_REGION_AT): New.
7736 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
7737 * except.c (lang_protect_cleanup_actions): Return tree.
7738 (struct ehl_map_entry): Remove.
7739 (init_eh_for_function): Push zero entries for region and lp_array.
7740 (gen_eh_region): Add to region_array immediately.
7741 (gen_eh_region_catch): Operate on eh_catch objects.
7742 (gen_eh_landing_pad): New.
7743 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
7744 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
7745 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
7746 (get_eh_landing_pad_from_number_fn): New.
7747 (get_eh_landing_pad_from_number): New.
7748 (get_eh_region_from_lp_number_fn): New.
7749 (get_eh_region_from_lp_number): New.
7750 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
7751 (get_exception_pointer, get_exception_filter): Remove.
7752 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
7753 (current_function_has_exception_handlers): Simplify.
7754 (bring_to_root, eh_region_replaceable_by_p): Remove.
7755 (replace_region, hash_type_list, hash_eh_region): Remove.
7756 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
7757 (label_to_region_map, num_eh_regions): Remove.
7758 (get_next_region_sharing_label, must_not_throw_labels): Remove.
7759 (find_exception_handler_labels): Remove.
7760 (duplicate_eh_regions_0, find_prev_try): Remove.
7761 (struct duplicate_eh_regions_data): New.
7762 (duplicate_eh_regions_1): Rewrite.
7763 (duplicate_eh_regions): Return a pointer map instead of an
7765 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
7766 (redirect_eh_edge_to_label): Remove.
7767 (eh_region_outermost): Rewrite using eh_region pointers
7768 instead of integers.
7769 (add_ttypes_entry): Update for ttype_data move to eh_status.
7770 (add_ehspec_entry): Rewrite with VEC instead of varray.
7771 (assign_filter_values): Likewise. Export.
7772 (build_post_landing_pads, connect_post_landing_pads): Remove.
7773 (dw2_build_landing_pads): Rewrite to use lp_array.
7774 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
7775 (sjlj_assign_call_site_values): Rewrite to use lp_array.
7776 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
7777 (sjlj_mark_call_sites): Update for landing pad numbers.
7778 (finish_eh_generation): Rewrite.
7779 (gate_handle_eh): Do nothing for no eh tree.
7780 (pass_rtl_eh): Move up near finish_eh_generation.
7781 (remove_eh_landing_pad): New.
7782 (remove_eh_handler): Export.
7783 (remove_eh_region, remove_eh_handler_and_replace): Remove.
7784 (for_each_eh_label): Rewrite to use lp_array.
7785 (make_reg_eh_region_note): New.
7786 (make_reg_eh_region_note_nothrow_nononlocal): New.
7787 (insn_could_throw_p): New.
7788 (copy_reg_eh_region_note_forward): New.
7789 (copy_reg_eh_region_note_backward): New.
7790 (check_handled, add_reachable_handler): Remove.
7791 (reachable_next_level, foreach_reachable_handler): Remove.
7792 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
7793 (get_eh_region_and_lp_from_rtx): New.
7794 (get_eh_region_from_rtx): New.
7795 (can_throw_internal_1, can_throw_external_1): Remove.
7796 (can_throw_internal): Use get_eh_region_from_rtx.
7797 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
7798 (insn_nothrow_p, can_nonlocal_goto): New.
7799 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
7800 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
7801 (add_action_record): Use VEC not varray.
7802 (collect_one_action_chain): Update for eh_region changes.
7803 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
7804 Use get_eh_region_and_lp_from_rtx.
7805 (gate_convert_to_eh_region_ranges): New.
7806 (pass_convert_to_eh_region_ranges): Use it.
7807 (push_uleb128, push_sleb128): Use VEC not varray.
7808 (output_one_function_exception_table): Likewise.
7809 (dump_eh_tree): Update for eh_region changes.
7810 (verify_eh_tree): Likewise.
7811 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
7812 * tree-eh.c: Include target.h.
7813 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
7814 Don't disallow GIMPLE_RESX; adjust argument check.
7815 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
7816 (record_stmt_eh_region): Update for landing pad numbers;
7817 generate a landing pad if necessary.
7818 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
7819 (remove_stmt_from_eh_lp_fn): Similarly.
7820 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
7821 Update for lp numbers; don't special case missing throw_stmt_table.
7822 (lookup_expr_eh_lp): Similarly.
7823 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
7824 (eh_seq, eh_region_may_contain_throw): New.
7825 (struct leh_state): Add ehp_region.
7826 (struct leh_tf_state): Remove eh_label.
7827 (emit_post_landing_pad): New.
7828 (emit_resx, emit_eh_dispatch): New.
7829 (note_eh_region_may_contain_throw): New.
7830 (frob_into_branch_around): Take eh_region not eh label;
7831 emit eh code into eh_seq.
7832 (honor_protect_cleanup_actions): Early exit for no actions. Don't
7833 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
7834 lower_eh_must_not_throw. Emit code to eh_seq.
7835 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
7836 (lower_try_finally_onedest): Likewise.
7837 (lower_try_finally_copy): Likewise.
7838 (lower_try_finally_switch): Likewise.
7839 (lower_try_finally): Initialize ehp_region.
7840 (lower_catch): Update for eh_catch objects.
7841 (lower_eh_filter): Don't handle must_not_throw.
7842 (lower_eh_must_not_throw): New.
7843 (lower_cleanup): Don't set eh_label.
7844 (lower_eh_constructs_2): Resolve eh builtins.
7845 Handle GIMPLE_EH_MUST_NOT_THROW.
7846 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
7847 Add eh_seq to the end of the function body.
7848 (make_eh_dispatch_edges): New.
7849 (make_eh_edge): Remove.
7850 (make_eh_edges): Simplify for landing pads.
7851 (redirect_eh_edge_1): New.
7852 (redirect_eh_edge): Use it.
7853 (redirect_eh_dispatch_edge): New.
7854 (stmt_could_throw_p): Use a switch. Allow RESX.
7855 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
7856 (stmt_can_throw_internal): Likewise.
7857 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
7858 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
7859 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
7860 (gate_refactor_eh): New.
7861 (pass_refactor_eh): Use it.
7862 (lower_resx, execute_lower_resx, pass_lower_resx): New.
7863 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
7864 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
7865 (remove_unreachable_handlers): Rename from
7866 tree_remove_unreachable_handlers; rewrite for landing pads;
7867 call remove_eh_handler directly.
7868 (remove_unreachable_handlers_no_lp): New.
7869 (unsplit_eh, unsplit_all_eh): New.
7870 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
7871 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
7872 (cleanup_empty_eh_unsplit): New.
7873 (cleanup_empty_eh): Rewrite.
7874 (cleanup_all_empty_eh): New.
7875 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
7876 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
7877 (gate_cleanup_eh): New.
7878 (pass_cleanup_eh): Use it.
7879 (verify_eh_edges): Move later in file. Expect one EH edge.
7880 (verify_eh_dispatch_edge): New.
7882 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
7883 (gtype-desc.o): Add TARGET_H.
7884 (tree.o): Use EXCEPT_H, not except.h.
7885 (cfgbuild.o): Add EXPR_H.
7886 (GTFILES): Add vecprim.h.
7887 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
7888 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
7889 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
7890 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
7891 * calls.c (emit_call_1): Use make_reg_eh_region_note.
7892 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
7893 calls to can_throw_internal.
7894 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
7895 (make_edges): Don't handle RESX; use can_nonlocal_goto.
7896 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
7897 (expand_gimple_stmt): Use make_reg_eh_region_note.
7898 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
7899 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
7900 or find_exception_handler_labels.
7901 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
7902 there is exacly one EH edge. Use can_nonlocal_goto and
7904 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
7905 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
7906 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
7907 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
7908 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
7909 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
7910 * dse.c (scan_insn): Use insn_could_throw_p.
7911 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
7912 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
7913 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
7914 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
7915 EXC_PTR_EXPR or FILTER_EXPR.
7916 (tree_expr_nonzero_warnv_p): Likewise.
7917 * function.h: Include vecprim.h, not varray.h
7918 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
7919 move ttype_data and ehspec_data members to struct eh_status; change
7920 action_record_data member to a VEC.
7921 * gcse.c (hash_scan_set): Use can_throw_internal.
7922 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
7923 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
7924 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
7925 (block_may_fallthru): Don't handle RESX_EXPR.
7926 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
7927 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
7928 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
7929 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
7930 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
7931 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
7932 (gimple_size): Likewise.
7933 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
7934 (gimple_build_resx): Use gimple_build_with_ops.
7935 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
7936 (is_gimple_val): Likewise.
7937 (is_gimple_stmt): Remove RESX_EXPR.
7938 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
7939 (GIMPLE_RESX): Reorder with other EH constructs.
7940 * gimple.h (struct gimple_statement_eh_mnt): New.
7941 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
7942 (gimple_eh_filter_must_not_throw): Remove.
7943 (gimple_eh_filter_set_must_not_throw): Remove.
7944 (gimple_eh_must_not_throw_fndecl): New.
7945 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
7946 (is_gimple_resx): New.
7947 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
7948 Don't copy EH_FILTER_MUST_NOT_THROW.
7949 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
7950 * ipa-inline.c (estimate_function_body_sizes): Don't try to
7951 handle must_not_throw_labels specially.
7952 * ipa-pure-const.c (check_call): Update debug statement for LP.
7953 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
7954 * ipa-utils.c (get_base_var): Likewise.
7955 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
7956 * lower-subreg.c (move_eh_region_note): Remove.
7957 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
7958 * omp-low.c (new_omp_context): Update for eh_lp_nr.
7959 (create_task_copyfn): Likewise.
7960 (maybe_catch_exception): Use gimple_build_eh_filter.
7961 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
7962 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
7963 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
7964 and pass_lower_resx.
7965 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
7966 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
7967 can_throw_internal, can_nonlocal_goto.
7968 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
7969 copy_reg_eh_region_note_forward.
7970 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
7971 (emit_output_reload_insns): Likewise.
7972 (copy_eh_notes): Remove.
7973 * rtl.def (RESX): Remove.
7974 * rtl.h: Update declarations.
7975 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
7976 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
7977 (update_eh_label): Remove.
7978 (cleanup_dead_labels_eh): New.
7979 (cleanup_deal_labels): Use it instead of update_eh_label.
7980 (gimple_merge_blocks): Update landing pad data structure when
7981 removing a landing pad label.
7982 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
7983 test; handle GIMPLE_EH_MUST_NOT_THROW.
7984 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
7985 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
7986 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
7987 (verify_stmt): Likewise. Verify landing pads.
7988 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
7989 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
7990 (struct move_stmt_d): Add eh_map.
7991 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
7992 (move_stmt_r): Remap eh region numbers in builtin calls,
7993 resx and eh_dispatch.
7994 (move_block_to_fn): Remove eh_offset parameter. Use
7995 maybe_duplicate_eh_stmt_fn.
7996 (find_outermost_region_in_block): Operate on eh_region pointers
7997 instead of region numbers.
7998 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
7999 duplicate_eh_regions.
8000 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
8001 test earlier. Disallow EH landing pads.
8002 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
8003 * tree-flow.h: Update declarations.
8004 (struct tree_ann_common_d): Replace rn with lp_nr.
8005 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
8006 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
8007 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
8008 resx and eh_dispatch.
8009 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
8010 (copy_edges_for_bb): Use make_eh_dispatch_edges.
8011 (copy_cfg_body): Expect eh_map instead of eh_region_offset
8012 from duplicate_eh_regions.
8013 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
8014 update RESX; handle EH_DISPATCH.
8015 (expand_call_inline): Set eh_lp_nr, not eh_region.
8016 (maybe_inline_call_in_expr): Likewise.
8017 * tree-inline.h (struct copy_body_data): Replace eh_region with
8018 eh_lp_nr, eh_region_offset with eh_map.
8019 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
8020 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
8021 * tree-pretty-print.c (dump_generic_node): Don't handle
8022 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
8023 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
8024 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
8025 EXC_PTR_EXPR, FILTER_EXPR.
8026 * tree-ssa-operands.c (get_expr_operands): Likewise.
8027 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
8028 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8029 (ao_ref_init_from_vn_reference): Likewise.
8030 * tree-ssa-sink.c (statement_sink_location): Likewise.
8031 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8032 (mark_virtual_phi_result_for_renaming): Export. Tidy.
8033 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
8034 EXC_PTR_EXPR, FILTER_EXPR.
8035 (is_exception_related): Remove.
8036 (compute_avail): Don't call it.
8037 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
8038 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
8039 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
8040 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
8042 (build_resx): Remove.
8043 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
8044 * tree.h: Update declarations.
8045 (EH_FILTER_MUST_NOT_THROW): Remove.
8046 (struct tree_label_decl): Add eh_landing_pad_nr.
8047 (EH_LANDING_PAD_NR): New.
8048 * value-prof.c (gimple_ic): Tidy variable names. Update for
8049 landing pad numbers.
8050 (gimple_stringop_fixed_value): Tidy variable names. Assert
8051 that neither call stmt can throw.
8052 * vecprim.h (uchar): New.
8053 (VEC(uchar,heap), VEC(uchar,gc)): New.
8055 * c-common.c (c_define_builtins): Update call to
8056 build_common_builtin_nodes.
8057 * c-parser.c (c_parse_file): Don't call
8058 default_init_unwind_resume_libfunc.
8060 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
8062 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
8063 (mips_cprestore_address_p): Likewise.
8064 (mips_save_gp_to_cprestore_slot): Likewise.
8065 (mips_restore_gp): Rename to...
8066 (mips_restore_gp_from_cprestore_slot): ...this.
8067 (mips_must_initialize_gp_p): Declare.
8068 (mips_emit_save_slot_move): Likewise.
8069 (mips_output_load_label): Return nothing.
8070 (mips_eh_uses): Declare.
8071 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
8072 (TARGET_CPRESTORE_DIRECTIVE): New macro.
8073 (TARGET_ABSOLUTE_JUMPS): Likewise.
8074 (EH_USES): Likewise.
8075 (FIRST_PSEUDO_REGISTER): Update comment.
8076 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
8077 (MIPS_CALL): ...here.
8078 (REGISTER_NAMES): Add $cprestore.
8079 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
8080 Add load_label_length, has_inflexible_gp_insn_p,
8081 has_flexible_gp_insn_p, must_initialize_gp_p and
8082 must_restore_gp_when_clobbered_p.
8083 (mips_expand_call): Don't generate split instructions here.
8084 (mips_split_call): Update the call to mips_restore_gp after
8085 the above name change.
8086 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
8087 (mips_find_gp_ref): New function.
8088 (mips_insn_has_inflexible_gp_ref_p): Likewise.
8089 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
8090 (mips_insn_has_flexible_gp_ref_p): Likewise.
8091 (mips_cfun_has_flexible_gp_ref_p): Likewise.
8092 (mips_function_has_gp_insn): Delete.
8093 (mips_global_pointer): Drop the df_regs_ever_live_p check.
8094 Use the new functions above. Only return INVALID_REGNUM
8095 for TARGET_ABSOLUTE_JUMPS.
8096 (mips_must_initialize_gp_p): New function.
8097 (mips_get_cprestore_base_and_offset): New function, extracted from...
8098 (mips_cprestore_slot): ...here. Take a bool parameter.
8099 (mips_cfun_has_cprestore_slot_p): New function.
8100 (mips_cprestore_address_p): Likewise.
8101 (mips_save_gp_to_cprestore_slot): Likewise.
8102 (mips_restore_gp): Rename to...
8103 (mips_restore_gp_from_cprestore_slot): ...this. Assert
8104 epilogue_completed. Update the call to mips_cprestore_slot.
8105 Test cfun->machine->must_restore_gp_when_clobbered_p.
8106 (mips_direct_save_slot_move_p): New function.
8107 (mips_emit_save_slot_move): Likewise.
8108 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
8109 of cfun->machine->global_pointer.
8110 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
8111 (mips_save_reg): Use mips_emit_save_slot_move.
8112 (mips_expand_prologue): Set must_initialize_gp_p.
8113 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
8114 for all cprestore saves. Emit a use_cprestore instruction after
8115 setting up the cprestore slot.
8116 (mips_restore_reg): Use mips_emit_save_slot_move.
8117 (mips_process_load_label): New function.
8118 (mips_load_label_length): Likewise.
8119 (mips_output_load_label): Don't return asm: output it here instead.
8120 Use mips_process_load_label.
8121 (mips_adjust_insn_length): Adjust the length of branch instructions
8122 that have length MAX_PIC_BRANCH_LENGTH.
8123 (mips_output_conditional_branch): Update the call to
8124 mips_output_load_label. Assume the branch target is OPERANDS[0]
8125 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
8126 (mips_output_order_conditional_branch): Swap the meaning of
8127 OPERANDS[0] and OPERANDS[1].
8128 (mips_variable_issue): Don't count ghost instructions.
8129 (mips_expand_ghost_gp_insns): New function.
8130 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
8131 (mips_output_mi_thunk): Set must_initialize_gp_p.
8132 (mips_eh_uses): New function.
8133 * config/mips/predicates.md (cprestore_save_slot_operand)
8134 (cprestore_load_slot_operand): New predicates.
8135 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
8136 (UNSPEC_MOVE_GP): Likewise.
8137 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
8138 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
8139 (CPRESTORE_SLOT_REGNUM): New register.
8140 (MAX_PIC_BRANCH_LENGTH): New constant.
8141 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
8142 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
8143 branches. Fix commentary.
8144 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
8145 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
8146 Change type to "ghost".
8147 (loadgp_absolute_<mode>): Likewise.
8148 (loadgp_rtp_<mode>): Likewise.
8149 (copygp_mips16): Likewise.
8150 (loadgp_blockage): Remove redundant mode attribute.
8151 (potential_cprestore): New instruction.
8152 (cprestore): Turn into an unspec set.
8153 (use_cprestore): New instruction.
8154 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
8155 (*branch_fp_inverted): Likewise.
8156 (*branch_order<mode>): Likewise.
8157 (*branch_order<mode>_inverted): Likewise.
8158 (*branch_equality<mode>): Likewise.
8159 (*branch_equality<mode>_inverted): Likewise.
8160 (*branch_bit<bbv><mode>): Likewise.
8161 (*branch_bit<bbv><mode>_inverted): Likewise.
8162 (*branch_equality<mode>_mips16): Remove redundant mode.
8163 (jump): Turn into a define_expand.
8164 (*jump_absolute): New instruction.
8165 (*jump_pic): Likewise.
8166 (*jump_mips16): Rename previously-unnamed pattern. Remove
8167 redundant mode attribute.
8168 (restore_gp): Split on epilogue_completed rather than
8169 reload_completed. Change type to "ghost".
8170 (move_gp<mode>): New instruction.
8171 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
8172 Remove redundant mode attribute.
8173 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
8174 (bc1any4f, bc1any2t, bc1any2f): Likewise.
8175 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
8177 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8180 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
8181 are returned in the same register (vs34 or v2) that Altivec vector
8182 types are returned in.
8183 (rs6000_libcall_value): Ditto.
8186 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
8187 instead of explicit addsi3/adddi3 calls.
8188 (rs6000_split_multireg_move): Ditto.
8189 (rs6000_emit_allocate_stack): Ditto.
8190 (rs6000_emit_prologue): Ditto.
8191 (rs6000_output_mi_thunk): Ditto.
8193 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
8194 size is 64 bits if we can use 64-bit registers.
8196 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
8198 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
8201 From Jie Zhang <jie.zhang@analog.com>:
8202 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
8203 save FP and RETS with saveall attribute.
8204 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
8205 with saveall attribute.
8207 * config/bfin/bfin.c (bfin_expand_builtin,
8208 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
8211 From Jie Zhang <jie.zhang@analog.com>:
8212 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
8213 before use in two places.
8214 * config/bfin/bfin.md (AREG): Define mode iterator.
8215 (reload_in, reload_out): Use mode iterator AREG.
8217 2009-09-14 Richard Guenther <rguenther@suse.de>
8220 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
8221 EH personality path.
8223 2009-09-13 Richard Guenther <rguenther@suse.de>
8224 Rafael Avila de Espindola <espindola@google.com>
8226 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
8227 (LANG_HOOKS_EH_PERSONALITY): Likewise.
8228 (LANG_HOOKS_INITIALIZER): Adjust.
8229 (lhd_pass_through_t): Declare.
8230 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
8232 * langhooks.c (lhd_pass_through_t): New function.
8233 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
8234 dwarf2out_begin_prologue): Use personality from current_function_decl.
8235 * expr.h (get_personality_function): Declare.
8236 * expr.c (get_personality_function): New function.
8237 (build_personality_function): Likewise.
8238 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
8239 (eh_personality_libfunc): Remove.
8240 * optabs.c (build_libfunc_function): New function split out from ...
8241 (init_one_libfunc): ... here.
8242 * tree.h (DECL_FUNCTION_PERSONALITY): New.
8243 (tree_function_decl): Add personality.
8244 (lhd_gcc_personality): Declare.
8245 (build_personality_function): Likewise.
8246 * tree.c (gcc_eh_personality_decl): New.
8247 (lhd_gcc_personality): New function.
8248 * except.h (lang_eh_runtime_type): Remove.
8249 (enum eh_personality_kind): New.
8250 (build_personality_function): Declare.
8251 (function_needs_eh_personality): Declare.
8252 * except.c (lang_eh_runtime_type): Remove.
8253 (function_needs_eh_personality): New function.
8254 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
8255 (sjlj_emit_function_enter, output_function_exception_table):
8256 Use personality from current_function_decl.
8257 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
8258 * tree-inline.c (tree_can_inline_p): Do not inline across different
8260 (expand_call_inline): Likewise. Adjust the callers EH personality.
8261 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
8262 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
8263 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
8264 (c-parser.o): Likewise
8265 * c-tree.h (c_eh_initialized_p): Remove.
8266 (c_maybe_initialize_eh): Likewise.
8267 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
8268 (finish_decl): Don't call c_maybe_initialize_eh.
8269 (c_eh_initialized_p): Remove.
8270 (c_maybe_initialize_eh): Likewise.
8271 * c-parser.c (c_parser_omp_construct): Likewise.
8272 (c_parse_file): Initialize exception handling.
8274 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
8276 * config.gcc (tm_file): Remove i386/biarch32.h
8277 for i?86-w64-mingw* case.
8278 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
8280 * config.host: Set for x64 mingw the option
8281 use_long_long_for_widest_fast_int to yes.
8283 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
8285 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
8286 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
8287 (dbxout_begin_function): Likewise.
8288 * final.c (dwarf2_debug_info_emitted_p): New predicate.
8289 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
8290 set on the function.
8291 (final_end_function): Likewise.
8292 (final_scan_insn): Likewise.
8293 (rest_of_handle_final): Likewise.
8294 * varasm.c (assemble_start_function): Likewise.
8295 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8297 2009-09-12 Jason Merrill <jason@redhat.com>
8299 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
8300 * opts.c (common_handle_option): constify.
8302 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
8304 * doc/install.texi (avr): Remove obsolete reference site.
8306 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
8308 * doc/install.texi (Binaries): Adjust AIX link.
8310 2009-09-12 Akim Demaille <demaille@gostai.com>
8312 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
8313 Use an imperative sentence.
8315 2009-09-11 Richard Henderson <rth@redhat.com>
8317 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
8318 structure-name and has-tree-operands arguments; update all entries.
8319 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
8321 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
8322 (gsstruct_code_size): New.
8323 (gss_for_code_): New.
8324 (gss_for_code): Remove.
8325 (gimple_size): Rewrite using gsstruct_code_size.
8326 (gimple_statement_structure): Move to gimple.h.
8327 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
8328 (gss_for_code, gimple_statement_structure): New.
8329 (gimple_ops): Use new arrays; tidy.
8331 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8333 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
8334 operand to be a PLUS expression.
8335 * config/pa/pa.c (pa_secondary_reload): Likewise.
8337 2009-09-11 Jakub Jelinek <jakub@redhat.com>
8339 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
8341 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
8344 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
8346 From Jie Zhang <jie.zhang@analog.com>:
8347 * doc/extend.texi (node Function Attributes): Document l2
8349 (node Blackfin Variable Attributes): Document l2 variable attributes.
8351 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
8353 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
8354 to match the system compiler's configuration at inflection point.
8355 Add comment to remark a remaining difference with system compiler.
8357 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
8358 * configure: Regenerate.
8360 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
8362 From Jie Zhang <jie.zhang@analog.com>:
8363 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
8364 (bfin_handle_l2_attribute): New.
8365 (bfin_attribute_table): Add l2 attribute.
8367 2009-09-11 Michael Matz <matz@suse.de>
8370 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
8371 on the local_decls list.
8373 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
8377 * cselib.c (cselib_expand_value_rtx_cb): Document callback
8379 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
8380 for VALUEs, to implement the documented interface.
8381 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
8382 Adjust for VALUEs and anything else, to implement the
8383 documented interface.
8385 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
8387 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
8388 with actual SPE/paired vector modes before using 64-bit alignment.
8389 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
8391 2009-09-10 DJ Delorie <dj@redhat.com>
8393 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
8396 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
8397 * config/mep/mep.c (mep_legitimate_constant_p): New.
8398 * config/mep/mep-protos.h: Prototype it.
8400 2009-09-10 Richard Henderson <rth@redhat.com>
8402 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
8404 2009-09-10 Jason Merrill <jason@redhat.com>
8406 * tree.c (chain_index): New fn.
8407 * tree.h: Declare it.
8409 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8411 * config/sol2-c.c (cmn_err_length_specs): Initialize
8412 scalar_identity_flag.
8414 2009-09-10 Richard Henderson <rth@redhat.com>
8416 * tree.h (struct tree_decl_common): Move align member earlier;
8417 move label_decl_uid member ...
8418 (struct tree_label_decl): ... here.
8419 (LABEL_DECL_UID): Update to match.
8421 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
8424 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
8425 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
8427 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
8428 dest_prev if the edge is complex.
8430 * tree-cfg.c (is_ctrl_stmt): Use a switch.
8432 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
8433 loop latch tests earlier.
8435 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
8436 before GIMPLE_RETURN, not after its predecessor; insert
8439 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
8440 gimple_seq_empty_p to test for no PHI nodes.
8441 * tree-cfg.c (split_critical_edges): Likewise.
8443 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
8445 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
8447 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
8448 introduced by the VTA branch merge.
8450 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
8452 * ira-conflicts.c: Use fputs or putc instead of fprintf
8456 * tree-switch-conversion.c: Ditto.
8458 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
8460 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
8461 introduced by the VTA branch merge.
8463 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
8466 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
8468 PR rtl-optimization/39779
8469 * expr.c (convert_modes): Return when mode == oldmode after
8470 CONST_INTs are processed.
8472 2009-09-10 Nick Clifton <nickc@redhat.com>
8474 * config/mep/mep.c (mep_encode_section_info): Copy weakness
8475 attribute and referring decl when creating renamed symbol.
8477 2009-09-10 Richard Guenther <rguenther@suse.de>
8480 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
8482 (cgraph_finalize_compilation_unit): Compute reachability
8483 before emitting thunks. Properly process aliases before
8484 possibly removing unreachable nodes.
8486 2009-09-10 Richard Guenther <rguenther@suse.de>
8489 * tree.c (struct free_lang_data_d): Add worklist member.
8490 (find_decls_types_r): Push onto the worklist instead of recursing.
8491 Handle TREE_BINFOs properly.
8492 (find_decls_types): New function wrapped around find_decls_types_r
8493 to process the worklist.
8494 (find_decls_types_in_eh_region): Use it.
8495 (find_decls_types_in_node): Likewise.
8496 (find_decls_types_in_var): Likewise.
8497 (free_lang_data_in_cgraph): Likewise. Free the worklist.
8498 * tree.h (RECORD_OR_UNION_TYPE_P): New.
8499 (AGGREGATE_TYPE_P): Adjust.
8501 2009-09-09 Jason Merrill <jason@redhat.com>
8503 * configure.ac: Check glibc version even if we have an in-tree
8506 2009-09-09 Anthony Green <green@moxielogic.com>
8508 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
8509 the constant 0 when appropriate.
8510 * config/moxie/constraints.md: Add constraint O.
8512 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
8513 to pass up to 6 32-bit argument values in registers.
8514 (moxie_function_arg): Ditto.
8515 (moxie_arg_partial_bytes): Ditto.
8516 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
8517 (REG_PARM_STACK_SPACE): Ditto.
8518 (FUNCTION_ARG_REGNO_P): Ditto.
8520 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
8521 instruction to allocate stack space.
8523 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
8525 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
8526 unnecessarily stringent constraints. Fix address
8527 calculation in the splitters.
8529 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
8531 PR rtl-optimization/39779
8532 * expr.c (convert_modes): Return when mode == oldmode after
8533 CONST_INTs are processed.
8535 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
8538 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
8539 (ix86_expand_prologue): Take frame.padding0 into logic of
8541 (ix86_expand_epilogue): Likewise.
8543 2009-09-09 Jakub Jelinek <jakub@redhat.com>
8545 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
8547 (SHLIB_LINK, SHLIB_INSTALL): Use them.
8548 * config/t-slibgcc-libgcc: New file.
8549 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
8551 2009-09-09 Martin Jambor <mjambor@suse.cz>
8553 PR tree-optimization/41089
8554 * tree-sra.c (find_var_candidates): Do not consider va_lists in
8557 2009-09-09 Richard Henderson <rth@redhat.com>
8559 * gimple.h (CASE_GIMPLE_OMP): New.
8560 (is_gimple_omp): Use it.
8561 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
8562 (verify_gimple_debug): Likewise.
8564 2009-09-09 Richard Guenther <rguenther@suse.de>
8566 PR tree-optimization/41101
8567 * tree-ssa-pre.c (maximal_set): Remove.
8568 (compute_antic_aux): Treat the maximal set as implicitly all ones.
8569 Defer all blocks we didn't visit at least one successor.
8570 (add_to_exp_gen): Do not add to the maximal set.
8571 (make_values_for_phi): Likewise.
8572 (compute_avail): Likewise.
8573 (init_pre): Do not allocate the maximal set.
8574 (execute_pre): Do not dump it.
8576 2009-09-09 Martin Jambor <mjambor@suse.cz>
8578 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
8579 an SSA_NAME rather than a is_gimple_variable.
8581 2009-09-09 Richard Guenther <rguenther@suse.de>
8584 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
8585 code dealing with plain pointer bases.
8586 (maybe_fold_offset_to_reference): Likewise.
8587 (maybe_fold_stmt_addition): Adjust.
8589 2009-09-09 Richard Guenther <rguenther@suse.de>
8591 * tree.c (free_lang_data_in_type): Do not free the type variant
8593 (free_lang_data): Merge char_type_node with its properly signed
8595 (pass_ipa_free): Collect after freeing language specific data.
8597 2009-09-09 Michael Matz <matz@suse.de>
8600 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
8601 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
8602 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
8605 2009-09-08 DJ Delorie <dj@redhat.com>
8607 * config/mep/mep.c (conversions[]): Add "ml" pattern.
8609 2009-09-04 Jason Merrill <jason@redhat.com>
8611 * tree.c (tree_find_value): Remove.
8612 * tree.h: Remove prototype.
8613 * varasm.c (assemble_external): Use value_member instead.
8615 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
8617 * toplev.c (process_options): Choose default debugging type when
8618 gtoggle enables debug info and type is unset.
8620 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
8624 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
8627 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
8629 * configure: Rebuilt with modified libtool.m4.
8631 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
8636 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
8638 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
8640 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
8641 (remove_statement): Likewise.
8642 (rewrite_use_nonlinear_expr): Adjust.
8643 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
8644 * tree-ssa.c (release_defs_bitset): ... this. New.
8645 * tree-flow.h (release_defs_bitset): Declare.
8647 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
8650 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
8651 in the middle block.
8653 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
8655 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
8656 via intptr_t to long type.
8657 (insert_operand_rank): Cast long type via intptr_t to
8659 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
8661 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
8662 from pointer to unsigned via uintptr_t.
8664 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
8665 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
8667 * configure: Regenerated.
8668 * config.in: Regenerated
8669 * system.h (stdint.h): Add include.
8670 (inttypes.h): Likewise.
8671 * Makefile.in (aclocal): Add config/stdint.m4.
8672 * aclocal.m4: Regenerated.
8674 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
8676 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
8678 (note_np_check_stores): New function.
8679 (harmless_null_pointer_p): New function.
8680 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
8681 changed. Take into account whether we're in the shadow of a condjump
8682 that tested NP_REG for NULL.
8683 Lose all code that tested for SEQUENCEs.
8684 (workaround_speculation): Avoid inserting NOPs for loads that are
8685 either always executed or a NULL pointer.
8687 2009-09-08 Jan Hubicka <jh@suse.cz>
8689 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
8690 * params.def (early-inlining-insns): Likewise.
8692 2009-09-08 Jakub Jelinek <jakub@redhat.com>
8694 PR rtl-optimization/41239
8695 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
8696 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
8698 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
8699 across calls, as the calls might not always return normally.
8700 (call_may_noreturn_p): New function.
8701 (deps_analyze_insn): Update last_function_call_may_noreturn list.
8702 (init_deps): Initialize it.
8703 (remove_from_deps): Also remove calls from
8704 last_function_call_may_noreturn list.
8706 2009-09-07 Richard Henderson <rth@redhat.com>
8708 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
8709 more VR->OPERANDS than LHS operands. Free LHS before returning.
8711 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
8713 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
8714 (attr "addrtype"): New member "spreg".
8715 Use it if mem_spfp_address_operand is true for the address.
8716 (attr "type"): New entry "stall".
8717 (cpu_unit "load"): New.
8718 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
8720 (insn_reservation "loadsp"): New.
8721 (insn_reservation "load_stall1"): New.
8722 (insn_reservation "load_stall3"): New.
8724 * config/bfin/predicates.md (const1_operand, const3_operand): New.
8725 (mem_p_address_operand): Exclude stack and frame pointer based
8727 (mem_spfp_address_operand): New; match them here.
8728 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
8729 (bfin_reorg): Call it if scheduling insns.
8730 (bfin_gen_bundles): Remove dummy insns created by
8731 add_sched_insns_for_speculation.
8733 From Jie Zhang <jie.zhang@analog.com>:
8734 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
8735 bfin_si_revision, bfin_workarounds): Move these ...
8736 * config/bfin/bfin.h: ... here.
8738 From Mike Frysinger <michael.frysinger@analog.com>
8739 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
8740 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
8741 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
8742 bf547m, bf548m, and bf549m.
8743 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
8744 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
8745 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
8746 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
8747 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
8748 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
8749 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
8750 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
8751 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
8752 bf542m, bf544m, bf547m, bf548m, and bf549m.
8754 From Jie Zhang <jie.zhang@analog.com>:
8755 * config/bfin/predicates.md (p_register_operand): New predicate.
8756 (dp_register_operand): New predicate.
8757 * config/bfin/bfin-protos.h (WA_05000074): Define.
8758 (ENABLE_WA_05000074): Define.
8759 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
8760 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
8761 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
8762 (define_attr addrtype): Allow load/store register to be P register.
8763 (define_attr storereg): New.
8764 (define_cpu_unit anomaly_05000074): New.
8765 (define_insn_reservation dsp32shiftimm): New.
8766 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
8767 (define_insn_reservation loadp): Cannot use slot2.
8768 (define_insn_reservation loadsp): Cannot use slot2.
8769 (define_insn_reservation storep): Cannot use slot2. Does not
8770 apply when working around 05000074.
8771 (define_insn_reservation storep_anomaly_05000074): New.
8772 (define_insn_reservation storei): Does not apply when working
8774 (define_insn_reservation storei_anomaly_05000074): New.
8775 (define_attr length): Add dsp32shiftimm case.
8776 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
8777 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
8778 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
8779 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
8780 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
8782 2009-09-07 Martin Jambor <mjambor@suse.cz>
8785 * tree-sra.c (create_artificial_child_access): Return NULL if
8786 build_ref_for_offset fails.
8787 (propagate_subacesses_accross_link): Allow build_ref_for_offset
8788 and create_artificial_child_access to fail.
8790 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
8793 * unwind-dw2.c (uw_init_context_1): Mark noinline.
8794 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
8795 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
8797 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
8799 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
8800 block, ensure it has an exit edge. Emit a barrier after a jump.
8802 2009-09-07 Nick Clifton <nickc@redhat.com>
8804 * gcc.c (this_is_linker_script): New variable. Like
8805 this_is_library_file but for the %T constructor.
8806 (end_going_arg): If this_is_linker_script is set then locate the
8807 script and insert a --script switch before it
8808 (do_spec_2): Initialise this_is_linker_script.
8809 (do_spec_1): Likewise. Handle %T construct.
8810 (eval_spec_function): Preserve this_is_linker_script.
8811 * doc/invoke.texi: Document %T construct in spec files.
8812 * config/m32c/m32c.h (LIB_SPEC): Use it.
8814 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8816 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
8817 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
8818 when volatile flag is set.
8819 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
8821 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
8824 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
8825 (combine_stack_adjustments_for_block): Allow insns between stack
8826 adjustments and stores with corresponding pre-(dec|inc)rement or
8827 pre-modify operation.
8829 2009-09-06 Jakub Jelinek <jakub@redhat.com>
8832 * combine-stack-adj.c (struct csa_memlist): Rename to...
8833 (struct csa_reflist): ... this. Rename mem field to ref.
8834 (free_csa_memlist): Rename to...
8835 (free_csa_reflist): ... this.
8836 (record_one_stack_memref): Rename to...
8837 (record_one_stack_ref): ... this. Handle also REG_P.
8838 (try_apply_stack_adjustment): Handle also REG_P.
8839 (struct record_stack_memrefs_data): Rename to...
8840 (struct record_stack_refs_data): ... this. Rename memlist field to
8842 (record_stack_memrefs): Rename to...
8843 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
8844 subexpressions instead of failing when a MEM contains SP references.
8845 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
8846 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
8848 2009-09-06 Richard Guenther <rguenther@suse.de>
8851 * tree.c (build_array_type): Do not record types marked
8852 with structural equality in the canonical type hashtable.
8854 2009-09-06 Richard Guenther <rguenther@suse.de>
8857 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
8859 2009-09-05 Richard Guenther <rguenther@suse.de>
8862 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
8864 2009-09-05 Richard Guenther <rguenther@suse.de>
8867 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
8869 2009-09-05 Richard Guenther <rguenther@suse.de>
8872 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
8873 before comparing function argument types.
8875 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8878 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
8881 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
8884 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
8886 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
8887 locators before emit_insn is called.
8889 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
8892 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
8893 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
8894 (reginfo_init): Don't call allocate_reg_info.
8896 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
8899 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
8900 NONDEBUG_INSN_P instead of INSN_P.
8902 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
8905 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
8907 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
8910 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
8911 pattern of the split.
8913 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
8915 * toplev.c (process_options): Move setter of flag_var_tracking
8916 before other tests that depend on it. Move down setter of
8917 flag_rename_registers. Don't enable var-tracking-assignments
8918 by default if selective scheduling is enabled. Warn if both
8921 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
8923 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
8924 comment. Use switch statement to catch overlaps between rtx
8925 and tree codes. Accept FUNCTION_DECLs in addition to those in...
8926 (IS_DECL_CODE): ... here. Remove.
8927 (check_value_is_not_decl): Remove.
8928 (dv_from_decl, dv_from_value): Check after conversion.
8930 2009-09-04 Richard Guenther <rguenther@suse.de>
8933 * (cgraph_finalize_compilation_unit): Move finalizing aliases
8934 after emitting tunks. Move emitting thunks and ctors from ...
8935 (cgraph_optimize): ... here. Remove redundant
8936 cgraph_analyze_functions.
8937 * varasm.c (find_decl_and_mark_needed): Remove no longer
8939 (finish_aliases_1): Adjust check for thunk aliases.
8941 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
8943 * config/arm/arm.md (ctzsi2): Added braces
8944 to avoid warning that broke booststrap.
8946 2009-09-04 Martin Jambor <mjambor@suse.cz>
8948 PR tree-optimization/41112
8949 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
8950 handle variable-bounded arrays.
8951 (expr_with_var_bounded_array_refs_p): New function.
8952 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
8954 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
8956 * config/s390/2097.md: Removed two incorrect bypasses.
8957 (z10_fsimpdf): Fixed latency.
8958 (z10_fhex): New insn_reservation.
8959 (z10_floaddf): Fixed latency.
8960 (z10_floadsf): Fixed latency.
8961 (z10_ftrunctf): Fixed latency.
8962 (z10_ftruncdf): Fixed latency.
8963 * config/s390/s390.c (z10_cost): Fixed values.
8964 (s390_adjust_priority): Added z10 path.
8965 * config/s390/s390.md (type): Added fhex.
8966 (*mov<mode>_64dfp): Updated type attribute.
8967 (*mov<mode>_64): Updated type attribute.
8968 (*mov<mode>_31): Updated type attribute.
8969 (*mov<mode>"): Likewise.
8970 * config/s390/2084.md (x_fsimpdf): Updated condition.
8972 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
8974 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
8975 RTXs in the predicate for operand 1.
8977 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
8979 * config/arm/arm.md (UNSPEC_RBIT): New constant.
8980 (rbitsi2): New insn.
8981 (ctzsi2): New expand.
8982 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
8984 2009-09-03 Martin Jambor <mjambor@suse.cz>
8986 * tree-sra.c (duplicate_expr_for_different_base): Removed.
8987 (create_artificial_child_access): Use build_ref_for_offset instead
8988 of duplicate_expr_for_different_base.
8989 (propagate_subacesses_accross_link): Likewise.
8991 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
8993 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
8995 (mips16e_collect_argument_saves): Skip debug instructions.
8996 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
8997 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
8998 (r10k_insert_cache_barriers): Likewise.
8999 (mips_reorg_process_insns): Likewise.
9001 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
9004 * ira.c (update_equiv_reg): Remove check on class likely spill.
9006 2009-09-03 Jakub Jelinek <jakub@redhat.com>
9009 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
9010 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
9014 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
9015 the stack slot if it is passed by invisible reference.
9016 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
9017 by invisible reference.
9019 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
9021 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
9022 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
9023 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
9025 * config/bfin/sync.md: New file.
9026 * config/bfin/bfin.md: Include it.
9027 (UNSPEC_ATOMIC): New.
9028 (UNSPEC_ONES): Provide a unique number.
9030 From Jie Zhang <jie.zhang@analog.com>:
9031 * config/bfin/bfin.c (ret_regs): New.
9032 (must_save_fp_p): Don't return true because of frame_pointer_needed.
9033 (must_save_rets_p): New.
9034 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
9035 current_function_is_leaf.
9036 (do_link): Likewise.
9037 (do_unlink): Likewise.
9038 (expand_interrupt_handler_prologue): Use ret_regs array.
9039 (expand_interrupt_handler_epilogue): Use ret_regs array and
9040 pass return register to gen_return_internal.
9041 (bfin_expand_epilogue): Pass return register to
9042 gen_return_internal.
9043 (bfin_expand_call): Explicitly clobber RETS.
9044 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
9045 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
9046 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
9047 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
9049 (return_internal): Take a reg rtx rather than the register number.
9051 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
9053 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
9054 when comparing against estimated_loop_iterations_int return.
9056 2009-09-03 Richard Guenther <rguenther@suse.de>
9058 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
9059 eh_personality_libfunc.
9061 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
9063 * tree-parloops.c (separate_decls_in_region): Add space.
9065 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
9067 * tree-parloops.c (separate_decls_in_region): Change the condition
9068 checking if there are reductions in the loop.
9070 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
9072 PR tree-optimization/38275
9073 * tree-parloops.c (parallelize_loops): Replace profitability condition
9074 for expected number of iterations.
9076 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
9078 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
9079 (bootstrap-debug): Explain conditions in which it becomes default.
9080 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
9083 2009-09-03 Namhyung Kim <namhyung@gmail.com>
9085 * doc/invoke.texi (Optimize Options): Move
9086 -finline-small-functions to the -O2 list.
9088 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
9090 * toplev.c (process_options): Enable var-tracking-assignments
9091 by default if var-tracking is enabled.
9093 2009-09-02 David Daney <ddaney@caviumnetworks.com>
9095 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
9097 * emit-rtl.c (prev_nonnote_insn_bb): New function.
9098 * rtl.h (prev_nonnote_insn_bb): Declare it.
9100 2009-09-03 Diego Novillo <dnovillo@google.com>
9102 * cgraph.c (cgraph_node_for_decl): New.
9103 * cgraph.h (cgraph_node_for_decl): Declare.
9104 * tree.c (host_integerp): Return 0 if T is NULL.
9106 2009-09-03 Diego Novillo <dnovillo@google.com>
9108 * tree.h (struct alias_pair): Move from varasm.c.
9109 (alias_pairs): Likewise.
9110 (TYPE_MAXVAL): Define.
9111 (TYPE_MINVAL): Define.
9112 (iterative_hash_host_wide_int): Declare.
9113 (remove_unreachable_alias_pairs): Declare.
9114 * tree-pass.h (pass_ipa_free_lang_data): Declare.
9115 * diagnostic.c (default_diagnostic_starter): Make extern.
9116 (default_diagnostic_finalizer): Make extern.
9117 * diagnostic.h (default_diagnostic_starter): Declare.
9118 (default_diagnostic_finalizer): Declare.
9119 (default_tree_printer): Declare.
9120 * toplev.c (default_tree_printer): Make extern.
9122 2009-09-03 Richard Guenther <rguenther@suse.de>
9123 Diego Novillo <dnovillo@google.com>
9125 * cgraph.c (cgraph_add_new_function): Remove gimplification.
9126 * cgraphunit.c (cgraph_expand_function): Do not emit
9127 associated thunks from here.
9128 (cgraph_emit_thunks): New.
9129 (cgraph_optimize): Call it.
9130 Return if any IPA pass finds an error.
9131 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
9134 2009-09-03 Simon Baldwin <simonb@google.com>
9135 Rafael Espindola <espindola@google.com>
9136 Richard Guenther <rguenther@suse.de>
9137 Doug Kwan <dougkwan@google.com>
9138 Diego Novillo <dnovillo@google.com>
9140 * tree.c: Include tree-pass.h, langhooks-def.h,
9141 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
9142 (free_lang_data_in_type): New.
9143 (need_assembler_name_p): New.
9144 (free_lang_data_in_block): New.
9145 (free_lang_data_in_decl): New.
9146 (struct free_lang_data_d): New.
9147 (add_tree_to_fld_list): New.
9148 (find_decls_types_r): New.
9149 (get_eh_types_for_runtime): New.
9150 (find_decls_types_in_eh_region): New.
9151 (find_decls_types_in_node): New.
9152 (find_decls_types_in_var): New.
9153 (free_lang_data_in_cgraph): New.
9154 (free_lang_data): New.
9155 (gate_free_lang_data): New.
9156 (pass_ipa_free_lang_data): New.
9158 2009-09-03 Diego Novillo <dnovillo@google.com>
9160 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
9161 * langhooks.h (struct lang_hooks): Add field free_lang_data.
9162 (lang_hooks): Remove const qualifier.
9163 * ipa.c (cgraph_remove_unreachable_nodes): Call
9164 remove_unreachable_alias_pairs.
9165 * except.c (add_type_for_runtime): Check if TYPE has
9166 already been converted.
9167 (lookup_type_for_runtime): Likewise.
9168 (check_handled): Handle converted types.
9169 * varasm.c (remove_unreachable_alias_pairs): New.
9170 * gimple.c: Include demangle.h.
9171 (gimple_decl_printable_name): New.
9172 (gimple_fold_obj_type_ref): New.
9173 * gimple.h (gimple_decl_printable_name): Declare.
9174 (gimple_fold_obj_type_ref): Declare.
9175 * passes.c (init_optimization_passes): Add pass
9176 pass_ipa_free_lang_data.
9177 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
9178 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
9180 2009-09-03 Diego Novillo <dnovillo@google.com>
9182 * c-lang.c (lang_hooks): Remove const qualifier.
9184 2009-09-02 Loren James Rittle <ljrittle@acm.org>
9186 * doc/install.texi (*-*-freebsd*): Update target information.
9188 2009-09-02 Anatoly Sokolov <aesok@post.ru>
9190 * hard-reg-set.h (call_fixed_regs): Remove.
9191 * reginfo.c (call_fixed_regs): Remove.
9192 (init_reg_sets_1): Remove initialization of call_fixed_regs.
9193 (globalize_reg): Don't use call_fixed_regs.
9194 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
9197 2009-09-01 Michael Matz <matz@suse.de>
9199 * expr.h (emit_storent_insn, expand_expr_real_1,
9200 expand_expr_real_2): Declare.
9201 * expr.c (emit_storent_insn, expand_expr_real_1,
9202 expand_expr_real_2): Export.
9203 (store_expr): Setting and evaluating dont_return_target is useless.
9204 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
9205 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
9206 * except.c (expand_resx_expr): Rename to ...
9207 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
9208 * except.h (expand_resx_stmt): Declare.
9209 * stmt.c: Add include gimple.h
9210 (expand_asm_expr): Rename to ...
9211 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
9212 (expand_case): Rewrite to take gimple statement.
9213 * tree.h (expand_asm_stmt): Declare.
9214 (expand_case): Change prototype.
9215 * Makefile.in (stmt.o): Depend on gimple.h.
9216 * builtins.c (expand_builtin_synchronize): Build gimple asm
9217 statement, not an ASM_EXPR.
9218 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
9219 gimple_to_tree, release_stmt_tree): Remove.
9220 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
9221 ggc_free, but hold comparison code and operands separately.
9222 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
9223 (expand_call_stmt, expand_gimple_stmt_1,
9224 expand_gimple_stmt): New helpers.
9225 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
9226 release_stmt_tree. Call expand_gimple_stmt instead.
9227 (expand_gimple_basic_block): Ditto.
9229 * calls.c (emit_call_1): Don't look at EH regions here, make
9230 fntree parameter useless.
9231 (expand_call): New local rettype for TREE_TYPE(exp), use it
9232 throughout. Remove local p, use addr instead.
9233 Don't look at EH regions here.
9235 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
9237 * doc/invoke.texi (-fsched-pressure): Document it.
9238 (-fsched-reg-pressure-heuristic): Remove it.
9240 * reload.c (ira.h): Include.
9241 (find_reloads): Add choosing reload on number of small spilled
9244 * haifa-sched.c (ira.h): Include.
9245 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
9246 saved_reg_pressure, curr_reg_live, saved_reg_live,
9247 region_ref_regs): New variables.
9248 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
9249 initiate_reg_pressure_info, setup_ref_regs,
9250 initiate_bb_reg_pressure_info, save_reg_pressure,
9251 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
9253 (setup_insn_reg_pressure_info): New function.
9254 (rank_for_schedule): Add pressure checking and insn issue time.
9255 Remove comparison of insn reg weights.
9256 (ready_sort): Set insn reg pressure info.
9257 (update_register_pressure, setup_insn_max_reg_pressure,
9258 update_reg_and_insn_max_reg_pressure,
9259 sched_setup_bb_reg_pressure_info): New functions.
9260 (schedule_insn): Add code for printing and updating reg pressure info.
9261 (find_set_reg_weight, find_insn_reg_weight): Remove.
9262 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
9263 (debug_ready_list): Print reg pressure info.
9264 (schedule_block): Ditto. Check insn issue time.
9265 (sched_init): Set up sched_pressure_p. Allocate and set up some
9266 reg pressure related info.
9267 (sched_finish): Free some reg pressure related info.
9268 (fix_tick_ready): Make insn always ready if pressure_p.
9269 (init_h_i_d): Don't call find_insn_reg_weight.
9270 (haifa_finish_h_i_d): Free insn reg pressure info.
9272 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
9273 ira_memory_move_cost, ira_class_hard_regs,
9274 ira_class_hard_regs_num, ira_no_alloc_regs,
9275 ira_available_class_regs, ira_reg_class_cover_size,
9276 ira_reg_class_cover, ira_class_translate): Move to ira.h.
9278 * ira-lives.c (single_reg_class): Check mode to find how many
9279 registers are necessary for operand.
9280 (ira_implicitly_set_insn_hard_regs): New.
9282 * common.opt (fsched-pressure): New options.
9283 (fsched-reg-pressure-heuristic): Remove.
9285 * ira.c (setup_eliminable_regset): Rename to
9286 ira_setup_eliminable_regset. Make it external.
9287 (expand_reg_info): Pass cover class to setup_reg_classes.
9288 (ira): Call resize_reg_info instead of allocate_reg_info.
9290 * sched-deps.c: Include ira.h.
9291 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
9292 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
9293 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
9294 mark_insn_hard_regno_birth, mark_insn_reg_birth,
9295 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
9296 mark_insn_reg_store, mark_insn_reg_clobber,
9297 setup_insn_reg_pressure_info): New.
9298 (sched_analyze_1): Update implicit_reg_pending_uses.
9299 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
9300 Use them to create dependencies. Set insn reg uses and pressure
9301 info. Process reg_pending_uses in one place.
9302 (free_deps): Free implicit sets.
9303 (remove_from_deps): Remove implicit sets if necessary. Check
9304 implicit sets when clearing reg_last_in_use.
9305 (init_deps_global): Clear implicit_reg_pending_clobbers and
9306 implicit_reg_pending_uses.
9308 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
9309 ira_memory_move_cost, ira_class_hard_regs,
9310 ira_class_hard_regs_num, ira_no_alloc_regs,
9311 ira_available_class_regs, ira_reg_class_cover_size,
9312 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
9313 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
9314 ira_implicitly_set_insn_hard_regs): New prototypes.
9316 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
9317 cost_elements_num): New variables.
9318 (allocno_costs, total_costs): Rename to costs and
9319 total_allocno_costs.
9320 (COSTS_OF_ALLOCNO): Rename to COSTS.
9321 (allocno_pref): Rename to pref.
9322 (allocno_pref_buffer): Rename to pref_buffer.
9323 (common_classes): Rename to regno_cover_class.
9325 (record_reg_classes): Set allocno attributes only if allocno_p.
9326 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
9327 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
9328 and COSTS_OF_ALLOCNO.
9329 (print_costs): Rename to print_allocno_costs.
9330 (print_pseudo_costs): New.
9331 (process_bb_node_for_costs): Split into 2 functions with new
9332 function process_bb_for_costs. Pass BB to process_bb_for_costs.
9333 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
9334 new parameter dump_file. Use cost_elements_num instead of
9335 ira_allocnos_num. Make one iteration if preferred classes were
9336 already calculated for scheduler. Make 2 versions of code
9337 depending on allocno_p.
9338 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
9339 regno_cover_class and COSTS instead of common_classes and
9341 (init_costs, finish_costs): New.
9342 (ira_costs): Set up allocno_p and cost_elements_num. Call
9343 init_costs and finish_costs.
9344 (ira_set_pseudo_classes): New.
9346 * rtl.h (allocate_reg_info): Remove.
9347 (resize_reg_info): Change return type.
9348 (reg_cover_class): New.
9349 (setup_reg_classes): Add new parameter.
9351 * sched-int.h (struct deps_reg): New member implicit_sets.
9352 (sched_pressure_p, sched_regno_cover_class): New external definitions.
9353 (INCREASE_BITS): New macro.
9354 (struct reg_pressure_data, struct reg_use_data): New.
9355 (struct _haifa_insn_data): Remove reg_weight. Add members
9356 reg_pressure, reg_use_list, reg_set_list, and
9357 reg_pressure_excess_cost_change.
9358 (struct deps): New member implicit_sets.
9359 (pressure_p): New variable.
9360 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
9361 (struct reg_pressure_data, struct reg_use_data): New.
9362 (INSN_REG_WEIGHT): Remove.
9363 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
9364 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
9365 (sched_init_region_reg_pressure_info,
9366 sched_setup_bb_reg_pressure_info): New prototypes.
9368 * reginfo.c (struct reg_pref): New member coverclass.
9369 (reg_cover_class): New function.
9370 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
9371 (reg_info_size): New variable.
9372 (allocate_reg_info): Make static. Setup reg_info_size.
9373 (resize_reg_info): Use reg_info_size. Return flag of resizing.
9374 (setup_reg_classes): Add a new parameter. Setup cover class too.
9376 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
9379 * sched-rgn.c (deps_join): Set up implicit_sets.
9380 (schedule_region): Set up region and basic blocks pressure
9383 * passes.c (init_optimization_passes): Move
9384 pass_subregs_of_mode_init before pass_sched.
9386 2009-09-02 Martin Jambor <mjambor@suse.cz>
9388 * tree-sra.c (struct access): New field grp_hint.
9389 (dump_access): Dump grp_hint.
9390 (sort_and_splice_var_accesses): Set grp_hint if a group is read
9392 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
9393 those which have been specifically read and somehow written to.
9394 (propagate_subacesses_accross_link): Set grp_hint of right child and
9395 also possibly of the left child.
9397 2009-09-02 Jakub Jelinek <jakub@redhat.com>
9399 * tree-object-size.c (addr_object_size): Always use object_size_type
9400 0 or 2 when determining the pointer pointed object size.
9402 2009-09-02 Richard Guenther <rguenther@suse.de>
9405 2009-08-31 Richard Guenther <rguenther@suse.de>
9407 * builtins.c (fold_builtin_memory_op): Use the alias oracle
9408 to query if the memory regions for memmove overlap.
9409 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
9410 asserts on pointers, instead deal with odd trees.
9411 (ptr_derefs_may_alias_p): Likewise.
9412 (refs_may_alias_p_1): Constructor bases also never alias.
9414 2009-08-01 Christian Bruel <christian.bruel@st.com>
9417 2009-07-31 Christian Bruel <christian.bruel@st.com>
9418 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
9420 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
9422 * doc/invoke.texi (-fvar-tracking-assignments): New.
9423 (-fvar-tracking-assignments-toggle): New.
9424 (-fdump-final-insns=file): Mark filename as optional.
9425 (--param min-nondebug-insn-uid): New.
9426 (-gdwarf-@{version}): Mention version 4.
9427 * opts.c (common_handle_option): Accept it.
9428 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
9429 * regrename.c (regrename_optimize): Drop last. Don't count debug
9430 insns as uses. Don't reject change because of debug insn.
9431 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
9432 from the chain starter, and check for inexact matches in DEBUG_INSNS.
9433 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
9434 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
9435 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
9436 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
9437 * doc/gimple.texi (is_gimple_debug): New.
9438 (gimple_debug_bind_p): New.
9439 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
9440 * doc/install.texi (bootstrap-debug): More details.
9441 (bootstrap-debug-big, bootstrap-debug-lean): Document.
9442 (bootstrap-debug-lib): More details.
9443 (bootstrap-debug-ckovw): Update.
9444 (bootstrap-time): New.
9445 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
9446 (insert_phi_nodes_for): Insert debug stmts.
9447 (rewrite_stmt): Take iterator. Insert debug stmts.
9448 (rewrite_enter_block): Adjust.
9449 (maybe_replace_use_in_debug_stmt): New.
9450 (rewrite_update_stmt): Use it.
9451 (mark_use_interesting): Return early for debug stmts.
9452 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
9453 stmts before replacing stmt.
9454 (move_computations_stmt): Likewise.
9455 * ira-conflicts.c (add_copies): Skip debug insns.
9456 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
9457 (regstat_bb_compute_ri): Skip debug insns.
9458 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
9459 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
9460 check_loop_closed_ssa_stmt): Skip debug stmts.
9461 * tree-tailcall.c (find_tail_calls): Likewise.
9462 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
9463 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
9464 (build_var_debug_value_stat): Declare.
9465 (build_var_debug_value): Define.
9466 (target_for_debug_bind): Declare.
9467 * reload.c (find_equiv_reg): Skip debug insns.
9468 * rtlanal.c (reg_used_between_p): Skip debug insns.
9469 (side_effects_p): Likewise.
9470 (canonicalize_condition): Likewise.
9471 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
9472 insns never depend on debug insns.
9473 (create_ddg_dep_no_link): Likewise.
9474 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
9475 Don't add inter-loop dependencies for debug insns.
9476 (build_intra_loop_deps): Likewise.
9477 (create_ddg): Count debug insns.
9478 * ddg.h (struct ddg::num_debug): New.
9479 (num_backargs): Pair up with previous int field.
9480 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
9481 -fcompare-debug-second.
9482 * final.c (get_attr_length_1): Skip debug insns.
9483 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
9484 * gcc.c (invoke_as): Call compare-debug-dump-opt.
9485 (driver_self_specs): Map -fdump-final-insns to
9486 -fdump-final-insns=..
9487 (get_local_tick): New.
9488 (compare_debug_dump_opt_spec_function): Test for . argument and
9489 compute output name. Compute temp output spec without flag name.
9490 Compute -frandom-seed.
9491 (OPT): Undef after use.
9492 * cfgloopanal.c (num_loop_insns): Skip debug insns.
9493 (average_num_loop_insns): Likewise.
9494 * params.h (MIN_NONDEBUG_INSN_UID): New.
9495 * gimple.def (GIMPLE_DEBUG): New.
9496 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
9497 * auto-inc-dec.c (merge_in_block): Skip debug insns.
9498 (merge_in_block): Fix whitespace.
9499 * toplev.c (flag_var_tracking): Update comment.
9500 (flag_var_tracking_assignments): New.
9501 (flag_var_tracking_assignments_toggle): New.
9502 (process_options): Don't open final insns dump file if we're not
9503 going to write to it. Compute defaults for var_tracking.
9504 * df-scan.c (df_insn_rescan_debug_internal): New.
9505 (df_uses_record): Handle debug insns.
9506 * haifa-sched.c (ready): Initialize n_debug.
9507 (contributes_to_priority): Skip debug insns.
9508 (dep_list_size): New.
9510 (rank_for_schedule): Likewise. Schedule debug insns as soon as
9511 they're ready. Disregard previous debug insns to make decisions.
9512 (queue_insn): Never queue debug insns.
9513 (ready_add, ready_remove_first, ready_remove): Count debug insns.
9514 (schedule_insn): Don't reject debug insns because of issue rate.
9515 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
9516 (queue_to_ready): Skip and discount debug insns.
9517 (choose_ready): Let debug insns through.
9518 (schedule_block): Check boundary debug insns. Discount debug
9519 insns, schedule them early. Adjust whitespace.
9520 (set_priorities): Check for boundary debug insns.
9521 (add_jump_dependencies): Use dep_list_size.
9522 (prev_non_location_insn): New.
9523 (check_cfg): Use it.
9524 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
9526 (remove_unused_ivs): Reset debug stmts.
9527 * modulo-sched.c (const_iteration_count): Skip debug insns.
9528 (res_MII): Discount debug insns.
9529 (loop_single_full_bb_p): Skip debug insns.
9530 (sms_schedule): Likewise.
9531 (sms_schedule_by_order): Likewise.
9532 (ps_has_conflicts): Likewise.
9533 * caller-save.c (refmarker_fn): New.
9534 (save_call_clobbered_regs): Replace regs with saved mem in
9536 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
9537 Call refmarker_fn mark for hardregnos.
9538 (mark_reg_as_referenced): New.
9539 (replace_reg_with_saved_mem): New.
9540 * ipa-pure-const.c (check_stmt): Skip debug stmts.
9541 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
9543 (cse_extended_basic_block): Skip debug insns.
9544 (count_reg_usage): Likewise.
9545 (is_dead_reg): New, split out of...
9546 (set_live_p): ... here.
9547 (insn_live_p): Use it for debug insns.
9548 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
9549 (execute_optimize_stdarg): Likewise.
9550 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
9551 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
9552 changes in debug stmts as changes.
9553 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
9554 (moveup_expr): Don't move across debug insns. Don't move
9555 debug insn if it would create a bookkeeping block.
9556 (moveup_expr_cached): Don't use cache for debug insns that
9557 are heads of blocks.
9558 (compute_av_set_inside_bb): Skip debug insns.
9559 (sel_rank_for_schedule): Schedule debug insns first. Remove
9561 (block_valid_for_bookkeeping_p); Support lax searches.
9562 (create_block_for_bookkeeping): Adjust block numbers when
9563 encountering debug-only blocks.
9564 (find_place_for_bookkeeping): Deal with debug-only blocks.
9565 (generate_bookkeeping_insn): Accept no place to insert.
9566 (remove_temp_moveop_nops): New argument full_tidying.
9567 (prepare_place_to_insert): Deal with debug insns.
9568 (advance_state_on_fence): Debug insns don't start cycles.
9569 (update_boundaries): Take fence as argument. Deal with
9571 (schedule_expr_on_boundary): No full_tidying on debug insns.
9572 (fill_insns): Deal with debug insns.
9573 (track_scheduled_insns_and_blocks): Don't count debug insns.
9574 (need_nop_to_preserve_insn_bb): New, split out of...
9575 (remove_insn_from_stream): ... this.
9576 (fur_orig_expr_not_found): Skip debug insns.
9577 * rtl.def (VALUE): Move up.
9579 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
9580 (nearest_common_dominator_of_uses): Take debug_stmts argument.
9581 Set it if debug stmts are found.
9582 (statement_sink_location): Skip debug stmts. Propagate
9583 moving defs into debug stmts.
9584 * ifcvt.c (first_active_insn): Skip debug insns.
9585 (last_active_insns): Likewise.
9586 (cond_exec_process_insns): Likewise.
9587 (noce_process_if_block): Likewise.
9588 (check_cond_move_block): Likewise.
9589 (cond_move_convert_if_block): Likewise.
9590 (block_jumps_and_fallthru_p): Likewise.
9591 (dead_or_predicable): Likewise.
9592 * dwarf2out.c (debug_str_hash_forced): New.
9593 (find_AT_string): Add comment.
9594 (gen_label_for_indirect_string): New.
9595 (get_debug_string_label): New.
9596 (AT_string_form): Use it.
9597 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
9598 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
9599 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
9600 several operations that cannot be represented with DWARF opcodes.
9601 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
9602 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
9603 (dwarf2out_var_location): Take during-call mark into account.
9604 (output_indirect_string): Update comment. Output if there are
9605 label and references.
9606 (prune_indirect_string): New.
9607 (prune_unused_types): Call it if debug_str_hash_forced.
9608 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
9609 (dw_long_long_const): Remove.
9610 (struct dw_val_struct): Change val_long_long type to rtx.
9611 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
9612 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
9613 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
9614 component instead of HOST_BITS_PER_LONG.
9615 (output_loc_operands): Likewise. For const8* assert
9616 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
9617 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
9618 rather than HOST_BITS_PER_LONG is >= 64.
9619 (add_AT_long_long): Remove val_hi and val_lo arguments, add
9621 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
9622 HOST_BITS_PER_LONG for dw_val_class_long_long.
9623 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
9624 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
9625 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
9627 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9628 Handle DW_OP_implicit_value.
9629 (extract_int): Move prototype earlier.
9630 (mem_loc_descriptor): For SUBREG punt if inner
9631 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
9632 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
9633 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
9634 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
9635 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
9636 instead of Pmode size.
9637 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
9638 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
9639 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
9640 (concat_loc_descriptor, concatn_loc_descriptor,
9641 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
9642 (add_location_or_const_value_attribute): Likewise. For single
9643 location loc_lists attempt to use add_const_value_attribute
9644 for constant decls. Add DW_AT_const_value even if
9645 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
9647 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
9648 (control_flow_insn_p): Likewise.
9649 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
9650 (separate_decls_in_region_debug_bind): New.
9651 (separate_decls_in_region): Process debug bind stmts afterwards.
9652 * recog.c (verify_changes): Handle debug insns.
9653 (extract_insn): Likewise.
9654 (peephole2_optimize): Skip debug insns.
9655 * dse.c (scan_insn): Skip debug insns.
9656 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
9658 (setup_id_for_insn): Handle debug insns.
9659 (maybe_tidy_empty_bb): Adjust whitespace.
9660 (tidy_control_flow): Skip debug insns.
9661 (sel_remove_insn): Adjust for debug insns.
9662 (sel_estimate_number_of_insns): Skip debug insns.
9663 (create_insn_rtx_from_pattern): Handle debug insns.
9664 (create_copy_of_insn_rtx): Likewise.
9665 * sel-sched-.h (sel_bb_end): Declare.
9666 (sel_bb_empty_or_nop_p): New.
9667 (get_all_loop_exits): Use it.
9668 (_eligible_successor_edge_p): Likewise.
9669 (return_nop_to_pool): Adjust.
9670 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
9671 * ira-lives.c (process_bb_node_lives): Skip debug insns.
9672 * gimple-pretty-print.c (dump_gimple_debug): New.
9673 (dump_gimple_stmt): Use it.
9674 (dump_bb_header): Skip gimple debug stmts.
9675 * regmove.c (optimize_reg_copy_1): Discount debug insns.
9676 (fixup_match_2): Likewise.
9677 (regmove_backward_pass): Likewise. Simplify combined
9678 replacement. Handle debug insns.
9679 * function.c (instantiate_virtual_regs): Handle debug insns.
9680 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
9681 * print-rtl.h: Include cselib.h.
9682 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
9683 * df.h (df_inns_rescan_debug_internal): Declare.
9684 * gcse.c (alloc_hash_table): Estimate n_insns.
9685 (cprop_insn): Don't regard debug insns as changes.
9686 (bypass_conditional_jumps): Skip debug insns.
9687 (one_pre_gcse_pass): Adjust.
9688 (one_code_hoisting_pass): Likewise.
9689 (compute_ld_motion_mems): Skip debug insns.
9690 (one_cprop_pass): Adjust.
9691 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
9692 (if_convertible_stmt_p): Handle debug stmts.
9693 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
9694 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
9695 * ira-build.c (create_bb_allocnos): Skip debug insns.
9696 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
9697 (has_single_use): Likewise.
9698 (single_imm_use): Likewise.
9699 (num_imm_uses): Likewise.
9700 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
9701 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
9702 (create_outofssa_var_map): Likewise.
9703 * lower-subreg.c (adjust_decomposed_uses): New.
9704 (resolve_debug): New.
9705 (decompose_multiword_subregs): Use it.
9706 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
9707 * emit-rtl.c: Include params.h.
9708 (cur_debug_insn_uid): Define.
9709 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
9710 (copy_rtx_if_shared_1): Handle debug insns.
9711 (reset_used_flags): Likewise.
9712 (set_used_flags): LIkewise.
9713 (get_max_insn_count): New.
9714 (next_nondebug_insn): New.
9715 (prev_nondebug_insn): New.
9716 (make_debug_insn_raw): New.
9717 (emit_insn_before_noloc): Handle debug insns.
9718 (emit_jump_insn_before_noloc): Likewise.
9719 (emit_call_insn_before_noloc): Likewise.
9720 (emit_debug_insn_before_noloc): New.
9721 (emit_insn_after_noloc): Handle debug insns.
9722 (emit_jump_insn_after_noloc): Likewise.
9723 (emit_call_insn_after_noloc): Likewise.
9724 (emit_debug_insn_after_noloc): Likewise.
9725 (emit_insn_after): Take loc from earlier non-debug insn.
9726 (emit_jump_insn_after): Likewise.
9727 (emit_call_insn_after): Likewise.
9728 (emit_debug_insn_after_setloc): New.
9729 (emit_debug_insn_after): New.
9730 (emit_insn_before): Take loc from later non-debug insn.
9731 (emit_jump_insn_before): Likewise.
9732 (emit_call_insn_before): Likewise.
9733 (emit_debug_insn_before_setloc): New.
9734 (emit_debug_insn_before): New.
9735 (emit_insn): Handle debug insns.
9736 (emit_debug_insn): New.
9737 (emit_jump_insn): Handle debug insns.
9738 (emit_call_insn): Likewise.
9740 (init_emit): Take min-nondebug-insn-uid into account.
9741 Initialize cur_debug_insn_uid.
9742 (emit_copy_of_insn_after): Handle debug insns.
9743 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
9744 location of single rhs in place.
9745 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
9746 (floor_sdiv_adjust): New.
9747 (cell_sdiv_adjust): New.
9748 (cell_udiv_adjust): New.
9749 (round_sdiv_adjust): New.
9750 (round_udiv_adjust): New.
9751 (wrap_constant): Moved from cselib.
9752 (unwrap_constant): New.
9753 (expand_debug_expr): New.
9754 (expand_debug_locations): New.
9755 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
9757 (gimple_expand_cfg): Expand debug locations.
9758 * cselib.c: Include tree-pass.h.
9759 (struct expand_value_data): New.
9760 (cselib_record_sets_hook): New.
9761 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
9762 (cselib_clear_table): Move, and implemnet in terms of...
9763 (cselib_reset_table_with_next_value): ... this.
9764 (cselib_get_next_unknown_value): New.
9765 (discard_useless_locs): Don't discard preserved values.
9766 (cselib_preserve_value): New.
9767 (cselib_preserved_value_p): New.
9768 (cselib_preserve_definitely): New.
9769 (cselib_clear_preserve): New.
9770 (cselib_preserve_only_values): New.
9771 (new_cselib_val): Take rtx argument. Dump it in details.
9772 (cselib_lookup_mem): Adjust.
9773 (expand_loc): Take regs_active in struct. Adjust. Silence
9774 dumps unless details are requested.
9775 (cselib_expand_value_rtx_cb): New.
9776 (cselib_expand_value_rtx): Rename and reimplment in terms of...
9777 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
9778 without details. Copy more subregs. Try to resolve values
9779 using a callback. Wrap constants.
9780 (cselib_subst_to_values): Adjust.
9781 (cselib_log_lookup): New.
9782 (cselib_lookup): Call it.
9783 (cselib_invalidate_regno): Don't count preserved values as useless.
9784 (cselib_invalidate_mem): Likewise.
9785 (cselib_record_set): Likewise.
9786 (struct set): Renamed to cselib_set, moved to cselib.h.
9787 (cselib_record_sets): Adjust. Call hook.
9788 (cselib_process_insn): Reset table when it would be cleared.
9789 (dump_cselib_val): New.
9790 (dump_cselib_table): New.
9791 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
9792 (remove_forwarder_block): Support moving debug stmts.
9793 * cselib.h (cselib_record_sets_hook): Declare.
9794 (cselib_expand_callback): New type.
9795 (cselib_expand_value_rtx_cb): Declare.
9796 (cselib_reset_table_with_next_value): Declare.
9797 (cselib_get_next_unknown_value): Declare.
9798 (cselib_preserve_value): Declare.
9799 (cselib_preserved_value_p): Declare.
9800 (cselib_preserve_only_values): Declare.
9801 (dump_cselib_table): Declare.
9802 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
9803 (try_crossjump_to_edge): Likewise.
9804 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
9805 dominated blocks when debug stmts are present.
9806 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
9807 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
9808 (set_var_live_on_entry): Likewise.
9809 * loop-invariant.c (find_invariants_bb): Skip debug insns.
9810 * cfglayout.c (curr_location, last_location): Make static.
9811 (set_curr_insn_source_location): Don't avoid bouncing.
9812 (get_curr_insn_source_location): New.
9813 (get_curr_insn_block): New.
9814 (duplicate_insn_chain): Handle debug insns.
9815 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
9817 * common.opt (fcompare-debug): Move to sort order.
9818 (fdump-unnumbered-links): Likewise.
9819 (fvar-tracking-assignments): New.
9820 (fvar-tracking-assignments-toggle): New.
9821 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
9822 because of debug stmts.
9823 (mark_stmt_if_obviously_necessary): Mark debug stmts.
9824 (eliminate_unnecessary_stmts): Walk dominated blocks before
9826 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
9827 * ira.c (memref_used_between_p): Skip debug insns.
9828 (update_equiv_regs): Likewise.
9829 * sched-deps.c (sd_lists_size): Accept empty list.
9830 (sd_init_insn): Mark debug insns.
9831 (sd_finish_insn): Unmark them.
9832 (sd_add_dep): Reject non-debug deps on debug insns.
9833 (fixup_sched_groups): Give debug insns group treatment.
9835 (sched_analyze_reg): Don't mark debug insns for sched before call.
9836 (sched_analyze_2): Handle debug insns.
9837 (sched_analyze_insn): Compute next non-debug insn. Handle debug
9839 (deps_analyze_insn): Handle debug insns.
9840 (deps_start_bb): Skip debug insns.
9841 (init_deps): Initialize last_debug_insn.
9842 * tree-ssa.c (target_for_debug_bind): New.
9843 (find_released_ssa_name): New.
9844 (propagate_var_def_into_debug_stmts): New.
9845 (propagate_defs_into_debug_stmts): New.
9846 (verify_ssa): Skip debug bind stmts without values.
9847 (warn_uninialized_vars): Skip debug stmts.
9848 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
9849 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
9850 (rtx_equal_p): Likewise.
9851 * ira-costs.c (scan_one_insn): Skip debug insns.
9852 (process_bb_node_for_hard_reg_moves): Likewise.
9853 * rtl.h (DEBUG_INSN_P): New.
9854 (NONDEBUG_INSN_P): New.
9855 (MAY_HAVE_DEBUG_INSNS): New.
9856 (INSN_P): Accept debug insns.
9857 (RTX_FRAME_RELATED_P): Likewise.
9858 (INSN_DELETED_P): Likewise
9859 (PAT_VAR_LOCATION_DECL): New.
9860 (PAT_VAR_LOCATION_LOC): New.
9861 (PAT_VAR_OCATION_STATUS): New.
9862 (NOTE_VAR_LOCATION_DECL): Reimplement.
9863 (NOTE_VAR_LOCATION_LOC): Likewise.
9864 (NOTE_VAR_LOCATION_STATUS): Likewise.
9865 (INSN_VAR_LOCATION): New.
9866 (INSN_VAR_LOCATION_DECL): New.
9867 (INSN_VAR_LOCATION_LOC): New.
9868 (INSN_VAR_LOCATION_STATUS): New.
9869 (gen_rtx_UNKNOWN_VAR_LOC): New.
9870 (VAR_LOC_UNKNOWN_P): New.
9871 (NOTE_DURING_CALL_P): New.
9872 (SCHED_GROUP_P): Accept debug insns.
9873 (emit_debug_insn_before): Declare.
9874 (emit_debug_insn_before_noloc): Declare.
9875 (emit_debug_insn_beore_setloc): Declare.
9876 (emit_debug_insn_after): Declare.
9877 (emit_debug_insn_after_noloc): Declare.
9878 (emit_debug_insn_after_setloc): Declare.
9879 (emit_debug_insn): Declare.
9880 (make_debug_insn_raw): Declare.
9881 (prev_nondebug_insn): Declare.
9882 (next_nondebug_insn): Declare.
9883 (delegitimize_mem_from_attrs): Declare.
9884 (get_max_insn_count): Declare.
9885 (wrap_constant): Declare.
9886 (unwrap_constant): Declare.
9887 (get_curr_insn_source_location): Declare.
9888 (get_curr_insn_block): Declare.
9889 * tree-inline.c (insert_debug_decl_map): New.
9890 (processing_debug_stmt): New.
9891 (remap_decl): Don't create new mappings in debug stmts.
9892 (remap_gimple_op_r): Don't add references in debug stmts.
9893 (copy_tree_body_r): Likewise.
9894 (remap_gimple_stmt): Handle debug bind stmts.
9895 (copy_bb): Skip debug stmts.
9896 (copy_edges_for_bb): Likewise.
9897 (copy_debug_stmt): New.
9898 (copy_debug_stmts): New.
9899 (copy_body): Copy debug stmts at the end.
9900 (insert_init_debug_bind): New.
9901 (insert_init_stmt): Take id. Skip and emit debug stmts.
9902 (setup_one_parameter): Remap variable earlier, register debug mapping.
9903 (estimate_num_insns): Skip debug stmts.
9904 (expand_call_inline): Preserve debug_map.
9905 (optimize_inline_calls): Check for no debug_stmts left-overs.
9906 (unsave_expr_now): Preserve debug_map.
9907 (copy_gimple_seq_and_replace_locals): Likewise.
9908 (tree_function_versioning): Check for no debug_stmts left-overs.
9909 Init and destroy debug_map as needed. Split edges unconditionally.
9910 (build_duplicate_type): Init and destroy debug_map as needed.
9911 * tree-inline.h: Include gimple.h instead of pointer-set.h.
9912 (struct copy_body_data): Add debug_stmts and debug_map.
9913 * sched-int.h (struct ready_list): Add n_debug.
9914 (struct deps): Add last_debug_insn.
9915 (DEBUG_INSN_SCHED_P): New.
9916 (BOUNDARY_DEBUG_INSN_P): New.
9917 (SCHEDULE_DEBUG_INSN_P): New.
9918 (sd_iterator_cond): Accept empty list.
9919 * combine.c (create_log_links): Skip debug insns.
9920 (combine_instructions): Likewise.
9921 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
9922 return value is always unshared.
9923 (struct rtx_subst_pair): New.
9924 (auto_adjust_pair): New.
9925 (propagate_for_debug_subst): New.
9926 (propagate_for_debug): New.
9927 (try_combine): Skip debug insns. Propagate removed defs into
9929 (next_nonnote_nondebug_insn): New.
9930 (distribute_notes): Use it. Skip debug insns.
9931 (distribute_links): Skip debug insns.
9932 * tree-outof-ssa.c (set_location_for_edge): Likewise.
9933 * resource.c (mark_target_live_regs): Likewise.
9934 * var-tracking.c: Include cselib.h and target.h.
9935 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
9937 (micro_operation_type_name): New.
9938 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
9939 (struct micro_operation_def): Update comments.
9940 (decl_or_value): New type. Use instead of decls.
9941 (struct emit_note_data_def): Add vars.
9942 (struct attrs_def): Use decl_or_value.
9943 (struct variable_tracking_info_def): Add permp, flooded.
9944 (struct location_chain_def): Update comment.
9945 (struct variable_part_def): Use decl_or_value.
9946 (struct variable_def): Make var_part a variable length array.
9948 (scratch_regs): New.
9949 (cselib_hook_called): New.
9950 (dv_is_decl_p): New.
9951 (dv_is_value_p): New.
9954 (dv_as_opaque): New.
9955 (dv_onepart_p): New.
9957 (IS_DECL_CODE): New.
9958 (check_value_is_not_decl): New.
9959 (dv_from_decl): New.
9960 (dv_from_value): New.
9961 (dv_htab_hash): New.
9962 (variable_htab_hash): Use it.
9963 (variable_htab_eq): Support values.
9964 (variable_htab_free): Free from the right pool.
9965 (attrs_list_member, attrs_list_insert): Use decl_or_value.
9966 (attrs_list_union): Adjust.
9967 (attrs_list_mpdv_union): New.
9968 (tie_break_pointers): New.
9969 (canon_value_cmp): New.
9970 (unshare_variable): Return possibly-modified slot.
9971 (vars_copy_1): Adjust.
9972 (var_reg_decl_set): Adjust. Split out of...
9973 (var_reg_set): ... this.
9974 (get_init_value): Adjust.
9975 (var_reg_delete_and_set): Adjust.
9976 (var_reg_delete): Adjust.
9977 (var_regno_delete): Adjust.
9978 (var_mem_decl_set): Split out of...
9979 (var_mem_set): ... this.
9980 (var_mem_delete_and_set): Adjust.
9981 (var_mem_delete): Adjust.
9985 (variable_union): Adjust. Speed up merge of 1-part vars.
9986 (variable_canonicalize): Use unshared slot.
9987 (VALUED_RECURSED_INTO): New.
9988 (find_loc_in_1pdv): New.
9989 (struct dfset_merge): New.
9990 (insert_into_intersection): New.
9991 (intersect_loc_chains): New.
9993 (canonicalize_loc_order_check): New.
9994 (canonicalize_values_mark): New.
9995 (canonicalize_values_star): New.
9996 (variable_merge_over_cur): New.
9997 (variable_merge_over_src): New.
9998 (dataflow_set_merge): New.
9999 (dataflow_set_equiv_regs): New.
10000 (remove_duplicate_values): New.
10001 (struct dfset_post_merge): New.
10002 (variable_post_merge_new_vals): New.
10003 (variable_post_merge_perm_vals): New.
10004 (dataflow_post_merge_adjust): New.
10005 (find_mem_expr_in_1pdv): New.
10006 (dataflow_set_preserve_mem_locs): New.
10007 (dataflow_set_remove_mem_locs): New.
10008 (dataflow_set_clear_at_call): New.
10009 (onepart_variable_different_p): New.
10010 (variable_different_p): Use it.
10011 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
10012 (track_expr_p): Add need_rtl parameter. Don't generate rtl
10014 (track_loc_p): Pass it true.
10015 (struct count_use_info): New.
10016 (find_use_val): New.
10017 (replace_expr_with_values): New.
10018 (log_op_type): New.
10019 (use_type): New, partially split out of...
10020 (count_uses): ... this. Count new micro-ops.
10021 (count_uses_1): Adjust.
10022 (count_stores): Adjust.
10023 (count_with_sets): New.
10024 (VAL_NEEDS_RESOLUTION): New.
10025 (VAL_HOLDS_TRACK_EXPR): New.
10026 (VAL_EXPR_IS_COPIED): New.
10027 (VAL_EXPR_IS_CLOBBERED): New.
10028 (add_uses): Adjust. Generate new micro-ops.
10029 (add_uses_1): Adjust.
10030 (add_stores): Generate new micro-ops.
10031 (add_with_sets): New.
10032 (find_src_status): Adjust.
10033 (find_src_set_src): Adjust.
10034 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
10035 Handle new micro-ops. Canonicalize value equivalances.
10036 (vt_find_locations): Compute total size of hash tables for
10037 dumping. Perform merge for var-tracking-assignments. Don't
10038 disregard single-block loops.
10039 (dump_attrs_list): Handle decl_or_value.
10040 (dump_variable): Take variable. Deal with decl_or_value.
10041 (dump_variable_slot): New.
10042 (dump_vars): Use it.
10043 (dump_dataflow_sets): Adjust.
10044 (set_slot_part): New, extended to support one-part variables
10045 after splitting out of...
10046 (set_variable_part): ... this.
10047 (clobber_slot_part): New, split out of...
10048 (clobber_variable_part): ... this.
10049 (delete_slot_part): New, split out of...
10050 (delete_variable_part): .... this.
10051 (check_wrap_constant): New.
10052 (vt_expand_loc_callback): New.
10053 (vt_expand_loc): New.
10054 (emit_note_insn_var_location): Adjust. Handle values. Handle
10055 EMIT_NOTE_AFTER_CALL_INSN.
10056 (emit_notes_for_differences_1): Adjust. Handle values.
10057 (emit_notes_for_differences_2): Likewise.
10058 (emit_notes_for_differences): Adjust.
10059 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
10060 Adjust. Handle new micro-ops.
10061 (vt_add_function_parameters): Adjust. Create and bind values.
10062 (vt_initialize): Adjust. Initialize scratch_regs and
10063 valvar_pool, flooded and perm.. Initialize and use cselib. Log
10064 operations. Move some code to count_with_sets and add_with_sets.
10065 (delete_debug_insns): New.
10066 (vt_debug_insns_local): New.
10067 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
10069 (var_tracking_main): If var-tracking-assignments is enabled
10070 but var-tracking isn't, delete debug insns and leave. Likewise
10071 if we exceed limits or fail the stack adjustments tests, and
10072 after all var-tracking processing.
10073 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
10074 (dataflow_set): Add traversed_vars.
10075 (value_chain, const_value_chain): New typedefs.
10076 (value_chain_pool, value_chains): New variables.
10077 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
10078 add_value_chains, add_cselib_value_chains, remove_value_chain,
10079 remove_value_chains, remove_cselib_value_chains): New functions.
10080 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
10081 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
10083 (shared_hash_find_slot_unshare, shared_hash_find_slot,
10084 shared_hash_find_slot_noinsert, shared_hash_find): Update.
10085 (dst_can_be_shared): New variable.
10086 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
10087 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
10088 different from set->vars, look up slot again instead of using the
10090 (dataflow_set_init): Initialize traversed_vars.
10091 (variable_union): Use shared_hash_*. Use initially NO_INSERT
10092 lookup if set->vars is shared. Don't keep slot cleared before
10093 calling unshare_variable. Unshare set->vars if needed. Adjust
10094 unshare_variable callers. Clear dst_can_be_shared if needed.
10095 Even ->refcount == 1 vars must be unshared if set->vars is shared
10096 and var needs to be modified.
10097 (dataflow_set_union): Set traversed_vars during canonicalization.
10098 (VALUE_CHANGED, DECL_CHANGED): Define.
10099 (set_dv_changed, dv_changed_p): New static inlines.
10100 (track_expr_p): Clear DECL_CHANGED.
10101 (dump_dataflow_sets): Set it.
10102 (variable_was_changed): Call set_dv_changed.
10103 (emit_note_insn_var_location): Likewise.
10104 (changed_variables_stack): New variable.
10105 (check_changed_vars_1, check_changed_vars_2): New functions.
10106 (emit_notes_for_changes): Do nothing if changed_variables is
10107 empty. Traverse changed_variables with check_changed_vars_1,
10108 call check_changed_vars_2 on each changed_variables_stack entry.
10109 (emit_notes_in_bb): Add SET argument. Just clear it at the
10110 beginning, use it instead of local &set, don't destroy it at the end.
10111 (vt_emit_notes): Call dataflow_set_clear early on all
10112 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
10113 computed set, dataflow_set_clear also VTI(bb)->in when we are
10114 done with the basic block. Initialize changed_variables_stack,
10115 free it afterwards. If ENABLE_CHECKING verify that after noting
10116 differences to an empty set value_chains hash table is empty.
10117 (vt_initialize): Initialize value_chains and value_chain_pool.
10118 (vt_finalize): Delete value_chains htab, free value_chain_pool.
10119 (variable_tracking_main): Call dump_dataflow_sets before calling
10120 vt_emit_notes, not after it.
10121 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
10122 (propagate_var_def_into_debug_stmts): Declare.
10123 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
10124 (df_set_note): Reject debug insns.
10125 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
10126 add notes to debug insns.
10127 (df_note_bb_compute): Adjust. Likewise.
10128 (df_simulate_uses): Skip debug insns.
10129 (df_simulate_initialize_backwards): Likewise.
10130 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
10131 (subst_stack_regs_pat): Reject debug insns.
10132 (convert_regs_1): Handle debug insns.
10133 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
10134 (print-rtl.o): Depend on cselib.h.
10135 (cselib.o): Depend on TREE_PASS_H.
10136 (var-tracking.o): Depend on cselib.h and TARGET_H.
10137 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
10138 (init_ready_list): Skip boundary debug insns.
10139 (add_branch_dependences): Skip debug insns.
10140 (free_block_dependencies): Check for blocks with only debug insns.
10141 (compute_priorities): Likewise.
10142 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
10143 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
10145 (gimple_build_debug_bind_stat): New.
10146 (empty_body_p): Skip debug stmts.
10147 (gimple_has_side_effects): Likewise.
10148 (gimple_rhs_has_side_effects): Likewise.
10149 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
10150 (gimple_build_debug_bind_stat): Declare.
10151 (gimple_build_debug_bind): Define.
10152 (is_gimple_debug): New.
10153 (gimple_debug_bind_p): New.
10154 (gimple_debug_bind_get_var): New.
10155 (gimple_debug_bind_get_value): New.
10156 (gimple_debug_bind_get_value_ptr): New.
10157 (gimple_debug_bind_set_var): New.
10158 (gimple_debug_bind_set_value): New.
10159 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
10160 (gimple_debug_bind_reset_value): New.
10161 (gimple_debug_bind_has_value_p): New.
10162 (gsi_next_nondebug): New.
10163 (gsi_prev_nondebug): New.
10164 (gsi_start_nondebug_bb): New.
10165 (gsi_last_nondebug_bb): New.
10166 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
10167 (print_insn): Handle DEBUG_INSN.
10168 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
10169 of first insn prevail.
10170 (first_stmt): Skip debug stmts.
10171 (first_non_label_stmt): Likewise.
10172 (last_stmt): Likewise.
10173 (has_zero_uses_1): New.
10174 (single_imm_use_1): New.
10175 (verify_gimple_debug): New.
10176 (verify_types_in_gimple_stmt): Handle debug stmts.
10177 (verify_stmt): Likewise.
10178 (debug_loop_num): Skip debug stmts.
10179 (remove_edge_and_dominated_blocks): Remove dominators last.
10180 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
10181 (linearize_expr): Likewise.
10182 * config/i386/i386.c (ix86_delegitimize_address): Call
10183 default implementation.
10184 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
10185 (group_barrier_needed): Skip debug insns.
10186 (emit_insn_group_barriers): Likewise.
10187 (emit_all_insn_group_barriers): Likewise.
10188 (ia64_variable_issue): Handle debug insns.
10189 (ia64_dfa_new_cycle): Likewise.
10190 (final_emit_insn_group_barriers): Skip debug insns.
10191 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
10192 def cfa without frame.
10193 (process_set): Likewise.
10194 (process_for_unwind_directive): Pass frame on.
10195 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
10196 (rs6000_delegitimize_address): New.
10197 (rs6000_debug_adjust_cost): Handle debug insns.
10198 (is_microcoded_insn): Likewise.
10199 (is_cracked_insn): Likewise.
10200 (is_nonpipeline_insn): Likewise.
10201 (insn_must_be_first_in_group): Likewise.
10202 (insn_must_be_last_in_group): Likewise.
10203 (force_new_group): Likewise.
10204 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
10205 contains only debug insns.
10206 (rtl_merge_blocks): Skip debug insns.
10207 (purge_dead_edges): Likewise.
10208 (rtl_block_ends_with_call_p): Skip debug insns.
10209 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
10210 (mark_reg_dependencies): Skip debug insns.
10211 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
10212 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
10213 * tree-ssa-threadedge.c
10214 (record_temporary_equivalences_from_stmts): Skip debug stmts.
10215 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
10216 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
10217 (copyprop_hardreg_forward_1): Handle debug insns.
10218 * reload1.c (reload): Skip debug insns. Replace unassigned
10219 pseudos in debug insns with their equivalences.
10220 (eliminate_regs_in_insn): Skip debug insns.
10221 (emit_input_reload_insns): Skip debug insns at first, adjust
10223 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
10224 (get_indirect_ref_operands): Pass opf_no_vops on.
10225 (get_expr_operands): Likewise. Skip debug stmts.
10226 (parse_ssa_operands): Scan debug insns with opf_no_vops.
10228 2009-09-01 Richard Henderson <rth@redhat.com>
10230 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
10231 stmt_ends_pp_p statements at least once.
10232 * tree-vrp.c (vrp_initialize): Likewise.
10233 (vrp_visit_stmt): Be prepared for non-interesting stmts.
10235 2009-09-01 Dodji Seketeli <dodji@redhat.com>
10238 Fix AIX bootstrap after PR debug/30161
10239 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
10240 that is a GNU extension.
10241 (tmpl_value_parm_die_table): Move the definition of this global
10242 outside #ifdef DWARF2_DEBUGGING_INFO region.
10244 2009-09-01 Richard Guenther <rguenther@suse.de>
10246 * tree.c (tree_expr_size): New function.
10247 * tree.h (tree_expr_size): Declare.
10248 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
10249 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
10250 * langhooks.c (lhd_expr_size): Remove.
10251 * langhooks.h (struct lang_hooks): Remove expr_size.
10252 * explow.c (expr_size): Use tree_expr_size.
10253 (int_expr_size): Likewise.
10254 * langhooks-def.h (lhd_expr_size): Remove.
10255 (LANG_HOOKS_EXPR_SIZE): Likewise.
10256 (LANG_HOOKS_INITIALIZER): Adjust.
10258 2009-09-01 Richard Guenther <rguenther@suse.de>
10260 * tree-flow.h (mark_addressable): Move declaration ...
10261 * tree.h (mark_addressable): ... here.
10262 * stmt.c (expand_asm_operands): Use mark_addressable, not
10263 lang_hooks.mark_addressable.
10264 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
10265 LANG_HOOKS_MARK_ADDRESSABLE.
10266 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
10267 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
10269 2009-08-31 Chris Demetriou <cgd@google.com>
10271 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
10272 vectorize if not TARGET_SSE2.
10274 2009-08-31 DJ Delorie <dj@redhat.com>
10276 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
10277 registers if no coprocessor is enabled.
10279 2009-08-31 Dodji Seketeli <dodji@redhat.com>
10282 * cgraph.h (cgraph_get_node): Declare ...
10283 * cgraph.c (cgraph_get_node): ... new function.
10284 * dwarf2out.c (gen_generic_params_dies,
10285 generic_parameter_die, tree_add_const_value_attribute_for_decl,
10286 make_ith_pack_parameter_name,
10287 append_entry_to_tmpl_value_parm_die_table,
10288 gen_remaining_tmpl_value_param_die_attribute): New functions.
10289 (gen_subprogram_die): Generate debug info for template parameters
10290 if debug info level is higher than DINFO_LEVEL_TERSE.
10291 Use tree_add_const_value_attribute_for_decl instead of
10292 tree_add_const_value_attribute.
10293 (gen_const_die): Use tree_add_const_value_attribute_for_decl
10294 instead of tree_add_const_value_attribute.
10295 (gen_struct_or_union_type_die): Generate debug
10296 info for template parameters if debug info level is higher than
10298 (tree_add_const_value_attribute): Handle integral and pointer
10299 constants. Update comment.
10300 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
10301 (dwarf_attr_name): Support DW_AT_GNU_template_name.
10302 (reference_to_unused): Fix thinko. Remove redundant predicates from
10304 (tree_add_const_value_attribute): Make this work for constant
10306 tree_add_const_value_attribute_for_decl is to be used for variable
10308 (add_location_or_const_value_attribute): Use
10309 tree_add_const_value_attribute_for_decl now.
10310 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
10311 DW_TAG_template_value_param DIEs after function DIEs have been
10313 * langhooks.h (lang_hooks_for_types): Add
10314 get_argument_pack_elems.
10315 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
10316 (lang_hooks): Added get_innermost_generic_parms,
10317 get_innermost_generic_args.
10318 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
10319 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
10320 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
10321 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
10323 2009-08-31 DJ Delorie <dj@redhat.com>
10325 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
10326 it once we start generating the prologue or epilogue.
10327 (mep_call_saves_register): If the frame is locked, re-use
10329 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
10330 (mep_expand_prologue): Call it.
10331 (mep_expand_epilogue): Likewise.
10332 (mep_start_function): Use the same logic as mep_expand_prologue.
10333 (mep_pass_by_reference): Make logic more readable.
10334 (mep_return_in_memory): Zero-sized objects are passed in memory.
10335 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
10337 2009-08-31 Richard Guenther <rguenther@suse.de>
10339 * builtins.c (fold_builtin_memory_op): Use the alias oracle
10340 to query if the memory regions for memmove overlap.
10341 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
10342 asserts on pointers, instead deal with odd trees.
10343 (ptr_derefs_may_alias_p): Likewise.
10344 (refs_may_alias_p_1): Constructor bases also never alias.
10346 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
10348 * doc/install.texi (Final install): Adjust reference on where to
10349 order printed manuals.
10351 2009-08-30 Olivier Hainque <hainque@adacore.com>
10353 * dwarf2out.c (switch_to_frame_table_section): Move
10354 definition prior to first use.
10356 2009-08-30 Richard Guenther <rguenther@suse.de>
10358 PR tree-optimization/41186
10359 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
10360 (ao_ref_init_from_ptr_and_size): New function.
10361 (ref_maybe_used_by_call_p_1): Be more precise tracking
10362 used ranges for builtin functions.
10363 (ref_maybe_used_by_call_p): Adjust.
10364 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
10365 ranges for builtin functions.
10366 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
10368 2009-08-30 Alan Modra <amodra@bigpond.net.au>
10371 * fwprop.c (get_reg_use_in): Delete.
10372 (free_load_extend): New function.
10373 (forward_propagate_subreg): Use it.
10375 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
10377 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
10379 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
10382 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
10385 2009-08-29 Douglas B Rupp <rupp@gnat.com>
10387 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
10388 fini or fini_array section.
10390 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
10392 * graphite-dependences.c (graphite_legal_transform_bb): Call
10393 pbb_remove_duplicate_pdrs.
10394 * graphite-poly.c (can_collapse_pdr): Removed.
10395 (pdr_find_duplicate): Removed.
10396 (can_collapse_pdrs): New.
10397 (pbb_remove_duplicate_pdrs): New.
10398 (new_poly_dr): Do not look for duplicates.
10399 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
10400 (PBB_PDR_DUPLICATES_REMOVED): New.
10401 (pbb_remove_duplicate_pdrs): Declared.
10403 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
10405 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
10406 the strides by multiplying by PDR_NB_REFS.
10407 * graphite-poly.c (can_collapse_pdr): New.
10408 (pdr_find_duplicate): New.
10409 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
10410 Initialize PDR_NB_REFS.
10411 * graphite-poly.h (struct poly_dr): Add field nb_refs.
10412 (PDR_NB_REFS): New.
10413 (new_poly_dr): Number of subscripts is a graphite_dim_t.
10415 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
10417 PR middle-end/40965
10418 * graphite-poly.c (apply_poly_transforms): Remove legality test before
10421 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
10423 * graphite-dependences.c (pddr_original_scattering): Return NULL
10424 for read-read dependence relations.
10425 * graphite-poly.h (enum poly_dr_type): Fix comment.
10427 (pdr_write_p): New.
10428 (pdr_may_write_p): New.
10430 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
10432 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
10433 (struct poly_dr): Same.
10434 (new_poly_dr): Same.
10435 * graphite-poly.c (new_poly_dr): Same.
10436 * graphite-dependences.c (dot_deps): Disable call to system.
10438 2009-08-28 Cary Coutant <ccoutant@google.com>
10441 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
10442 struct/union/enum types local to a function.
10444 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
10445 Sebastian Pop <sebastian.pop@amd.com>
10447 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
10448 pbb_strip_mine_time_depth. Changed the implementation so that
10449 transformation is expressed as a transformation on
10450 time (scatttering) dimensions. Also, ensures that the 2d+1
10451 scheduling format is preserved.
10452 (pbb_strip_mine_profitable_p): Profitability is based on the
10453 iteration number of a given time (scattering) dimension,
10454 and not on a original loop depth dimension.
10455 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
10456 (pbb_do_strip_mine): Call psct_dynamic_dim.
10457 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
10458 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
10459 (pbb_nb_dynamic_scattering_transform): New.
10460 (psct_dynamic_dim): New.
10462 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
10464 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
10465 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
10466 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
10467 * graphite-interchange.c (build_linearized_memory_access): Same.
10468 (memory_stride_in_loop): Same.
10470 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
10472 * graphite-dependences.c (pddr_original_scattering): New.
10473 (graphite_legal_transform_dr): Call pddr_original_scattering.
10476 * graphite-dependences.h (dot_deps): Declared.
10477 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
10478 (print_pdr): Print PDR_ID.
10479 * graphite-poly.h (struct poly_dr): Add field id.
10482 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
10484 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
10486 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
10487 not delete the original dependence relation.
10489 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
10491 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
10492 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
10493 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
10494 (free_poly_ddr): New.
10495 (pddr_is_empty): New.
10496 (dependence_polyhedron_1): Now returns a poly_ddr_p.
10497 (dependence_polyhedron): Same. Remove useless gcc_assert.
10499 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
10500 (graphite_carried_dependence_level_k): Call pddr_is_empty.
10501 * graphite-dependences.h (enum poly_dependence_kind): New.
10502 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
10503 (PDRP_SOURCE): Renamed PDDR_SOURCE.
10504 (PDRP_SINK): Renamed PDDR_SINK.
10505 (PDRP_DDP): Renamed PDDR_DDP.
10507 (free_poly_ddr): Declared.
10508 * graphite-poly.c (new_scop): Use the new hash function names.
10509 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
10510 into original_pddrs.
10511 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
10513 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
10515 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
10516 bounds with LT_EXPR to make niter analysis more precise on code
10517 generated by Graphite.
10519 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
10521 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
10522 (graphite_legal_transform_bb): Same.
10523 (poly_drs_may_alias_p): Same.
10525 2009-08-28 Richard Guenther <rguenther@suse.de>
10527 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
10529 2009-08-28 Jan Beulich <jbeulich@novell.com>
10531 * config/i386/netware.c: Include langhooks.h.
10532 (i386_nlm_encode_section_info): Simplify.
10533 (netware_override_options): Delete.
10534 * config/i386/netware.h (netware_override_options): Delete
10536 (OVERRIDE_OPTIONS): Delete definition.
10537 (SUBTARGET_OVERRIDE_OPTIONS): Define.
10538 (ASM_COMMENT_START): Define.
10539 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
10541 2009-08-28 Jan Beulich <jbeulich@novell.com>
10543 * configure.ac: For in-tree ld, do a plain version check to
10544 determine whether comdat groups are supported.
10545 * configure: Regenerate.
10547 2009-08-28 Olivier Hainque <hainque@adacore.com>
10549 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
10550 always defined. Reflect definition or absence of such for
10551 COLLECT_EXPORT_LIST. Readability helper.
10552 (scanfilter): New enum, to help control what symbols
10553 are to be considered or ignored by scan_prog_file.
10554 (enum pass): Rename as "scanpass", moved together with scanfilter
10555 prior to scan_prog_file's prototype.
10556 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
10557 Group prototype with the scanpass/scanfilter definitions, factorize
10558 head comments for the several implementations at the prototype.
10559 (main): Reorganize the first pass link control to let AIX
10560 drag only the needed frame tables in executables. Prevent
10561 frame tables collection during the scan aimed at static ctors.
10562 Pre-link and scan for frame tables later to compensate.
10563 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
10564 A C statement to issue assembly directives that create a reference
10565 to the given DWARF table identifier label from the current function
10567 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
10568 to differentiate first time section entry. Only emit a .data
10569 tables start identifier label the first time around.
10570 (switch_to_frame_table_section): New function. Helper for
10571 output_call_frame_info to switch possibly BACK into the eh_frame
10572 or the debug_frame section depending on FOR_EH.
10573 (output_call_frame_info): Use helper to first enter the proper
10575 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
10576 emit a link to the frame table start label from each function
10578 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
10579 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
10580 * config/rs6000/rs6000-protos.h: Declare it.
10581 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
10583 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
10585 * config/sh/sh.c (split_branches): Check the result of
10588 2009-08-27 Steve Ellcey <sje@cup.hp.com>
10590 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
10591 using -pthread -fopenmp
10593 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
10595 * doc/service.texi (service directory): Update URL.
10597 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
10599 PR rtl-optimization/40861
10600 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
10601 extract word from a multi-word subreg for negative byte positions.
10603 2009-08-27 Tristan Gingold <gingold@adacore.com>
10604 Douglas B Rupp <rupp@gnat.com>
10606 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
10607 (SECTION_VMS_OVERLAY): Define.
10608 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
10610 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
10612 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
10613 common_object declarations.
10614 (ia64_section_type_flags): Set section flag for common_object.
10615 * config/ia64/ia64-protos.h
10616 (ia64_vms_output_aligned_decl_common): Declare.
10617 (ia64_vms_elf_asm_named_section): Declare.
10619 2009-08-27 Michael Matz <matz@suse.de>
10621 * expr.c (expand_expr_real_2): New function taking exploded
10622 unary or binary expression, split out from ...
10623 (expand_expr_real_1): ... here. Move over all unary/binary
10624 switch parts to above function, in particular these codes:
10625 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
10626 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
10627 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
10628 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
10629 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
10630 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
10631 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
10632 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
10633 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
10634 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
10635 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
10636 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
10637 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
10638 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
10639 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
10640 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
10641 VEC_PACK_FIX_TRUNC_EXPR.
10642 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
10645 2009-08-27 Richard Guenther <rguenther@suse.de>
10647 * gengtype.c (main): Handle uint64_t.
10648 * ipa-utils.c (get_base_var): Indent properly.
10649 * tree-ssa-live.c (debug_scope_block): New function.
10650 * tree-flow.h (debug_scope_block): Declare.
10651 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
10652 * basic-block.h (enum profile_status): Rename to
10653 enum profile_status_d.
10654 (x_profile_status): Adjust type.
10656 2009-08-27 Dodji Seketeli <dodji@redhat.com>
10659 * dwarf2out.c (get_context_die): Declare this static function.
10660 (gen_type_die_with_usage): Make sure a DIE is a generated for
10661 the context of a typedef.
10663 2009-08-26 Anatoly Sokolov <aesok@post.ru>
10665 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
10668 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
10670 * config/mips/mips-protos.h (mips_output_sync): Declare.
10671 (mips_sync_loop_insns): Likewise.
10672 (mips_output_sync_loop): Replace first two parameters with an rtx.
10673 * config/mips/mips.c (mips_multi_member): New structure.
10674 (mips_multi_members): New variable.
10675 (mips_multi_start): New function.
10676 (mips_multi_add): Likewise.
10677 (mips_multi_add_insn): Likewise.
10678 (mips_multi_add_label): Likewise.
10679 (mips_multi_last_index): Likewise.
10680 (mips_multi_copy_insn): Likewise.
10681 (mips_multi_set_operand): Likewise.
10682 (mips_multi_write): Likewise.
10683 (mips_print_operand_punctuation): Remove '%|' and '%-'.
10684 (mips_init_print_operand_punct): Update accordingly.
10685 (mips_start_ll_sc_sync_block): New function.
10686 (mips_end_ll_sc_sync_block): Likewise.
10687 (mips_output_sync): Likewise.
10688 (mips_sync_insn1_template): Likewise.
10689 (mips_sync_insn2_template): Likewise.
10690 (mips_get_sync_operand): Likewise.
10691 (mips_process_sync_loop): Likewise.
10692 (mips_output_sync_loop): Use mips_process_sync_loop.
10693 (mips_sync_loop_insns): New function.
10694 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
10695 (MIPS_COMPARE_AND_SWAP_12): Likewise.
10696 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
10697 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
10698 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
10699 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
10700 (MIPS_SYNC_OLD_OP_12): Likewise.
10701 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
10702 (MIPS_SYNC_NEW_OP_12): Likewise.
10703 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
10704 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
10705 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
10706 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
10707 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
10708 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
10709 * config/mips/mips.md (sync_mem): New attribute.
10710 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
10711 (sync_exclusive_mask, sync_required_oldval): Likewise.
10712 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
10713 (sync_release_barrier): Likewise.
10714 (length): Handle sync loops.
10715 (sync): Use mips_output_sync.
10716 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
10717 (sync_compare_and_swap<mode>): Set the new sync_* attributes
10718 and use mips_output_sync_loop.
10719 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
10720 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
10721 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
10722 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
10723 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
10724 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
10725 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
10726 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
10727 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
10729 2009-08-26 Richard Guenther <rguenther@suse.de>
10731 PR middle-end/41163
10732 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
10733 the types to not match.
10734 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
10736 * tree-ssa.c (useless_type_conversion_p): Conversions to
10737 pointers to unprototyped functions are useless.
10739 2009-08-26 Richard Guenther <rguenther@suse.de>
10741 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
10742 whole-program condition, prepare to be called for non-globals.
10743 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
10744 params build a representative with known type and track its fields.
10746 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
10748 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
10749 clearing by a taken branch.
10750 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
10751 effectively after bbro pass.
10752 (sync_nand<mode>): Ditto.
10753 (sync_old_<fetchop_name><mode>): Ditto.
10754 (sync_old_nand<mode>): Ditto.
10755 (sync_new_<fetchop_name><mode>): Dito.
10756 (sync_new_nand<mode>): Ditto.
10757 (sync_compare_and_swap<mode>_1): Ditto.
10758 (*sync_compare_and_swap<mode>): Ditto.
10759 (sync_lock_test_and_set<mode>_1): Ditto.
10760 ("sync_lock_test_and_set<mode>): Ditto.
10762 2009-08-25 Douglas B Rupp <rupp@gnat.com>
10764 * hwint.h (HOST_LONG_FORMAT): New macro
10765 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
10766 Use HOST_PTR_PRINTF.
10767 * system.h (HOST_PTR_PRINTF): Resurrect old macro
10768 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
10769 (HOST_PTR_PRINTF): Document.
10771 2009-08-25 Jan Hubicka <jh@suse.cz>
10773 * config/i386/bmmintrin.h: Replace by #error.
10776 Michael Meissner <michael.meissner@amd.com>
10777 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
10778 Tony Linthicum <tony.linthicum@amd.com>
10780 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
10781 (TARGET_ROUND): New macro for the round/ptest instructions which
10782 are shared between SSE4.1 and SSE5.
10783 (OPTION_MASK_ISA_ROUND): Ditto.
10784 (OPTION_ISA_ROUND): Ditto.
10785 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
10786 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
10788 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
10789 (-mfused-madd): New switch to give users control over whether the
10790 compiler optimizes to use the multiply/add SSE5 instructions.
10792 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
10793 (ix86_handle_option): Turn off 3dnow if -msse5.
10794 (override_options): Add SSE5 support.
10795 (print_operand): %Y prints comparison codes for SSE5 com/pcom
10797 (ix86_expand_sse_movcc): Add SSE5 support.
10798 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
10799 vector type to the next largest size.
10800 (ix86_expand_sse5_pack): New function to use pperm to pack a
10801 vector type to the next smallest size.
10802 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
10803 (IX86_BUILTIN_FMADDSD): Ditto.
10804 (IX86_BUILTIN_FMADDPS): Ditto.
10805 (IX86_BUILTIN_FMADDPD): Ditto.
10806 (IX86_BUILTIN_FMSUBSS): Ditto.
10807 (IX86_BUILTIN_FMSUBSD): Ditto.
10808 (IX86_BUILTIN_FMSUBPS): Ditto.
10809 (IX86_BUILTIN_FMSUBPD): Ditto.
10810 (IX86_BUILTIN_FNMADDSS): Ditto.
10811 (IX86_BUILTIN_FNMADDSD): Ditto.
10812 (IX86_BUILTIN_FNMADDPS): Ditto.
10813 (IX86_BUILTIN_FNMADDPD): Ditto.
10814 (IX86_BUILTIN_FNMSUBSS): Ditto.
10815 (IX86_BUILTIN_FNMSUBSD): Ditto.
10816 (IX86_BUILTIN_FNMSUBPS): Ditto.
10817 (IX86_BUILTIN_FNMSUBPD): Ditto.
10818 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
10819 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
10820 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
10821 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
10822 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
10823 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
10824 (IX86_BUILTIN_PPERM): Ditto.
10825 (IX86_BUILTIN_PERMPS): Ditto.
10826 (IX86_BUILTIN_PERMPD): Ditto.
10827 (IX86_BUILTIN_PMACSSWW): Ditto.
10828 (IX86_BUILTIN_PMACSWW): Ditto.
10829 (IX86_BUILTIN_PMACSSWD): Ditto.
10830 (IX86_BUILTIN_PMACSWD): Ditto.
10831 (IX86_BUILTIN_PMACSSDD): Ditto.
10832 (IX86_BUILTIN_PMACSDD): Ditto.
10833 (IX86_BUILTIN_PMACSSDQL): Ditto.
10834 (IX86_BUILTIN_PMACSSDQH): Ditto.
10835 (IX86_BUILTIN_PMACSDQL): Ditto.
10836 (IX86_BUILTIN_PMACSDQH): Ditto.
10837 (IX86_BUILTIN_PMADCSSWD): Ditto.
10838 (IX86_BUILTIN_PMADCSWD): Ditto.
10839 (IX86_BUILTIN_PHADDBW): Ditto.
10840 (IX86_BUILTIN_PHADDBD): Ditto.
10841 (IX86_BUILTIN_PHADDBQ): Ditto.
10842 (IX86_BUILTIN_PHADDWD): Ditto.
10843 (IX86_BUILTIN_PHADDWQ): Ditto.
10844 (IX86_BUILTIN_PHADDDQ): Ditto.
10845 (IX86_BUILTIN_PHADDUBW): Ditto.
10846 (IX86_BUILTIN_PHADDUBD): Ditto.
10847 (IX86_BUILTIN_PHADDUBQ): Ditto.
10848 (IX86_BUILTIN_PHADDUWD): Ditto.
10849 (IX86_BUILTIN_PHADDUWQ): Ditto.
10850 (IX86_BUILTIN_PHADDUDQ): Ditto.
10851 (IX86_BUILTIN_PHSUBBW): Ditto.
10852 (IX86_BUILTIN_PHSUBWD): Ditto.
10853 (IX86_BUILTIN_PHSUBDQ): Ditto.
10854 (IX86_BUILTIN_PROTB): Ditto.
10855 (IX86_BUILTIN_PROTW): Ditto.
10856 (IX86_BUILTIN_PROTD): Ditto.
10857 (IX86_BUILTIN_PROTQ): Ditto.
10858 (IX86_BUILTIN_PROTB_IMM): Ditto.
10859 (IX86_BUILTIN_PROTW_IMM): Ditto.
10860 (IX86_BUILTIN_PROTD_IMM): Ditto.
10861 (IX86_BUILTIN_PROTQ_IMM): Ditto.
10862 (IX86_BUILTIN_PSHLB): Ditto.
10863 (IX86_BUILTIN_PSHLW): Ditto.
10864 (IX86_BUILTIN_PSHLD): Ditto.
10865 (IX86_BUILTIN_PSHLQ): Ditto.
10866 (IX86_BUILTIN_PSHAB): Ditto.
10867 (IX86_BUILTIN_PSHAW): Ditto.
10868 (IX86_BUILTIN_PSHAD): Ditto.
10869 (IX86_BUILTIN_PSHAQ): Ditto.
10870 (IX86_BUILTIN_FRCZSS): Ditto.
10871 (IX86_BUILTIN_FRCZSD): Ditto.
10872 (IX86_BUILTIN_FRCZPS): Ditto.
10873 (IX86_BUILTIN_FRCZPD): Ditto.
10874 (IX86_BUILTIN_CVTPH2PS): Ditto.
10875 (IX86_BUILTIN_CVTPS2PH): Ditto.
10876 (IX86_BUILTIN_COMEQSS): Ditto.
10877 (IX86_BUILTIN_COMNESS): Ditto.
10878 (IX86_BUILTIN_COMLTSS): Ditto.
10879 (IX86_BUILTIN_COMLESS): Ditto.
10880 (IX86_BUILTIN_COMGTSS): Ditto.
10881 (IX86_BUILTIN_COMGESS): Ditto.
10882 (IX86_BUILTIN_COMUEQSS): Ditto.
10883 (IX86_BUILTIN_COMUNESS): Ditto.
10884 (IX86_BUILTIN_COMULTSS): Ditto.
10885 (IX86_BUILTIN_COMULESS): Ditto.
10886 (IX86_BUILTIN_COMUGTSS): Ditto.
10887 (IX86_BUILTIN_COMUGESS): Ditto.
10888 (IX86_BUILTIN_COMORDSS): Ditto.
10889 (IX86_BUILTIN_COMUNORDSS): Ditto.
10890 (IX86_BUILTIN_COMFALSESS): Ditto.
10891 (IX86_BUILTIN_COMTRUESS): Ditto.
10892 (IX86_BUILTIN_COMEQSD): Ditto.
10893 (IX86_BUILTIN_COMNESD): Ditto.
10894 (IX86_BUILTIN_COMLTSD): Ditto.
10895 (IX86_BUILTIN_COMLESD): Ditto.
10896 (IX86_BUILTIN_COMGTSD): Ditto.
10897 (IX86_BUILTIN_COMGESD): Ditto.
10898 (IX86_BUILTIN_COMUEQSD): Ditto.
10899 (IX86_BUILTIN_COMUNESD): Ditto.
10900 (IX86_BUILTIN_COMULTSD): Ditto.
10901 (IX86_BUILTIN_COMULESD): Ditto.
10902 (IX86_BUILTIN_COMUGTSD): Ditto.
10903 (IX86_BUILTIN_COMUGESD): Ditto.
10904 (IX86_BUILTIN_COMORDSD): Ditto.
10905 (IX86_BUILTIN_COMUNORDSD): Ditto.
10906 (IX86_BUILTIN_COMFALSESD): Ditto.
10907 (IX86_BUILTIN_COMTRUESD): Ditto.
10908 (IX86_BUILTIN_COMEQPS): Ditto.
10909 (IX86_BUILTIN_COMNEPS): Ditto.
10910 (IX86_BUILTIN_COMLTPS): Ditto.
10911 (IX86_BUILTIN_COMLEPS): Ditto.
10912 (IX86_BUILTIN_COMGTPS): Ditto.
10913 (IX86_BUILTIN_COMGEPS): Ditto.
10914 (IX86_BUILTIN_COMUEQPS): Ditto.
10915 (IX86_BUILTIN_COMUNEPS): Ditto.
10916 (IX86_BUILTIN_COMULTPS): Ditto.
10917 (IX86_BUILTIN_COMULEPS): Ditto.
10918 (IX86_BUILTIN_COMUGTPS): Ditto.
10919 (IX86_BUILTIN_COMUGEPS): Ditto.
10920 (IX86_BUILTIN_COMORDPS): Ditto.
10921 (IX86_BUILTIN_COMUNORDPS): Ditto.
10922 (IX86_BUILTIN_COMFALSEPS): Ditto.
10923 (IX86_BUILTIN_COMTRUEPS): Ditto.
10924 (IX86_BUILTIN_COMEQPD): Ditto.
10925 (IX86_BUILTIN_COMNEPD): Ditto.
10926 (IX86_BUILTIN_COMLTPD): Ditto.
10927 (IX86_BUILTIN_COMLEPD): Ditto.
10928 (IX86_BUILTIN_COMGTPD): Ditto.
10929 (IX86_BUILTIN_COMGEPD): Ditto.
10930 (IX86_BUILTIN_COMUEQPD): Ditto.
10931 (IX86_BUILTIN_COMUNEPD): Ditto.
10932 (IX86_BUILTIN_COMULTPD): Ditto.
10933 (IX86_BUILTIN_COMULEPD): Ditto.
10934 (IX86_BUILTIN_COMUGTPD): Ditto.
10935 (IX86_BUILTIN_COMUGEPD): Ditto.
10936 (IX86_BUILTIN_COMORDPD): Ditto.
10937 (IX86_BUILTIN_COMUNORDPD): Ditto.
10938 (IX86_BUILTIN_COMFALSEPD): Ditto.
10939 (IX86_BUILTIN_COMTRUEPD): Ditto.
10940 (IX86_BUILTIN_PCOMEQUB): Ditto.
10941 (IX86_BUILTIN_PCOMNEUB): Ditto.
10942 (IX86_BUILTIN_PCOMLTUB): Ditto.
10943 (IX86_BUILTIN_PCOMLEUB): Ditto.
10944 (IX86_BUILTIN_PCOMGTUB): Ditto.
10945 (IX86_BUILTIN_PCOMGEUB): Ditto.
10946 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
10947 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
10948 (IX86_BUILTIN_PCOMEQUW): Ditto.
10949 (IX86_BUILTIN_PCOMNEUW): Ditto.
10950 (IX86_BUILTIN_PCOMLTUW): Ditto.
10951 (IX86_BUILTIN_PCOMLEUW): Ditto.
10952 (IX86_BUILTIN_PCOMGTUW): Ditto.
10953 (IX86_BUILTIN_PCOMGEUW): Ditto.
10954 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
10955 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
10956 (IX86_BUILTIN_PCOMEQUD): Ditto.
10957 (IX86_BUILTIN_PCOMNEUD): Ditto.
10958 (IX86_BUILTIN_PCOMLTUD): Ditto.
10959 (IX86_BUILTIN_PCOMLEUD): Ditto.
10960 (IX86_BUILTIN_PCOMGTUD): Ditto.
10961 (IX86_BUILTIN_PCOMGEUD): Ditto.
10962 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
10963 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
10964 (IX86_BUILTIN_PCOMEQUQ): Ditto.
10965 (IX86_BUILTIN_PCOMNEUQ): Ditto.
10966 (IX86_BUILTIN_PCOMLTUQ): Ditto.
10967 (IX86_BUILTIN_PCOMLEUQ): Ditto.
10968 (IX86_BUILTIN_PCOMGTUQ): Ditto.
10969 (IX86_BUILTIN_PCOMGEUQ): Ditto.
10970 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
10971 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
10972 (IX86_BUILTIN_PCOMEQB): Ditto.
10973 (IX86_BUILTIN_PCOMNEB): Ditto.
10974 (IX86_BUILTIN_PCOMLTB): Ditto.
10975 (IX86_BUILTIN_PCOMLEB): Ditto.
10976 (IX86_BUILTIN_PCOMGTB): Ditto.
10977 (IX86_BUILTIN_PCOMGEB): Ditto.
10978 (IX86_BUILTIN_PCOMFALSEB): Ditto.
10979 (IX86_BUILTIN_PCOMTRUEB): Ditto.
10980 (IX86_BUILTIN_PCOMEQW): Ditto.
10981 (IX86_BUILTIN_PCOMNEW): Ditto.
10982 (IX86_BUILTIN_PCOMLTW): Ditto.
10983 (IX86_BUILTIN_PCOMLEW): Ditto.
10984 (IX86_BUILTIN_PCOMGTW): Ditto.
10985 (IX86_BUILTIN_PCOMGEW): Ditto.
10986 (IX86_BUILTIN_PCOMFALSEW): Ditto.
10987 (IX86_BUILTIN_PCOMTRUEW): Ditto.
10988 (IX86_BUILTIN_PCOMEQD): Ditto.
10989 (IX86_BUILTIN_PCOMNED): Ditto.
10990 (IX86_BUILTIN_PCOMLTD): Ditto.
10991 (IX86_BUILTIN_PCOMLED): Ditto.
10992 (IX86_BUILTIN_PCOMGTD): Ditto.
10993 (IX86_BUILTIN_PCOMGED): Ditto.
10994 (IX86_BUILTIN_PCOMFALSED): Ditto.
10995 (IX86_BUILTIN_PCOMTRUED): Ditto.
10996 (IX86_BUILTIN_PCOMEQQ): Ditto.
10997 (IX86_BUILTIN_PCOMNEQ): Ditto.
10998 (IX86_BUILTIN_PCOMLTQ): Ditto.
10999 (IX86_BUILTIN_PCOMLEQ): Ditto.
11000 (IX86_BUILTIN_PCOMGTQ): Ditto.
11001 (IX86_BUILTIN_PCOMGEQ): Ditto.
11002 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
11003 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
11004 (enum multi_arg_type): New enum for describing the various SSE5
11005 intrinsic argument types.
11006 (bdesc_multi_arg): New table for SSE5 intrinsics.
11007 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
11008 (ix86_expand_multi_arg_builtin): New function for creating SSE5
11010 (ix86_expand_builtin): Add SSE5 intrinsic support.
11011 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
11012 operand instructions.
11013 (ix86_expand_sse5_multiple_memory): New function to split the
11014 second memory reference from SSE5 instructions.
11015 (type_has_variadic_args_p): Delete in favor of stdarg_p.
11016 (ix86_return_pops_args): Use stdarg_p to determine if the function
11017 has variable arguments.
11018 (ix86_setup_incoming_varargs): Ditto.
11019 (x86_this_parameter): Ditto.
11021 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
11023 (ix86_expand_sse5_pack): Ditto.
11024 (ix86_sse5_valid_op_p): Ditto.
11025 (ix86_expand_sse5_multiple_memory): Ditto.
11027 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
11028 constant for SSE5 support.
11029 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
11030 (UNSPEC_SSE5_TRUEFALSE): Ditto.
11031 (UNSPEC_SSE5_PERMUTE): Ditto.
11032 (UNSPEC_SSE5_ASHIFT): Ditto.
11033 (UNSPEC_SSE5_LSHIFT): Ditto.
11034 (UNSPEC_FRCZ): Ditto.
11035 (UNSPEC_CVTPH2PS): Ditto.
11036 (UNSPEC_CVTPS2PH): Ditto.
11037 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
11038 (PCOM_TRUE): Ditto.
11039 (COM_FALSE_S): Ditto.
11040 (COM_FALSE_P): Ditto.
11041 (COM_TRUE_S): Ditto.
11042 (COM_TRUE_P): Ditto.
11043 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
11044 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
11046 (memory attribute): Ditto.
11047 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
11048 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
11049 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
11050 (floor<mode>2): Ditto.
11051 (ceil<mode>2): Ditto.
11052 (btrunc<mode>2): Ditto.
11053 (nearbyintdf2): Ditto.
11054 (nearbyintsf2): Ditto.
11055 (sse_setccsf): Disable if SSE5.
11056 (sse_setccdf): Ditto.
11057 (sse5_setcc<mode>): New support for SSE5 conditional move.
11058 (sse5_pcmov_<mode>): Ditto.
11060 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
11061 (SSEMODEF4): Ditto.
11062 (SSEMODEF2P): Ditto.
11063 (ssemodesuffixf4): New mode attribute for SSE5.
11064 (ssemodesuffixf2s): Ditto.
11065 (ssemodesuffixf2c): Ditto.
11066 (sserotatemax): Ditto.
11067 (ssescalarmode): Ditto.
11068 (sse_maskcmpv4sf3): Disable if SSE5.
11069 (sse_maskcmpv2df3): Ditto.
11070 (sse_vmmaskcmpv4sf3): Ditto.
11071 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
11072 (sse5_vmfmadd<mode>4): Ditto.
11073 (sse5_fmsub<mode>4): Ditto.
11074 (sse5_vmfmsub<mode>4): Ditto.
11075 (sse5_fnmadd<mode>4): Ditto.
11076 (sse5_vmfnmadd<mode>4): Ditto.
11077 (sse5_fnmsub<mode>4): Ditto.
11078 (sse5_vmfnmsub<mode>4): Ditto.
11079 (sse5i_fmadd<mode>4): Ditto.
11080 (sse5i_fmsub<mode>4): Ditto.
11081 (sse5i_fnmadd<mode>4): Ditto.
11082 (sse5i_fnmsub<mode>4): Ditto.
11083 (sse5i_vmfmadd<mode>4): Ditto.
11084 (sse5i_vmfmsub<mode>4): Ditto.
11085 (sse5i_vmfnmadd<mode>4): Ditto.
11086 (sse5i_vmfnmsub<mode>4): Ditto.
11087 (mulv16qi3): Add SSE5 support.
11089 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
11090 (sse2_mulv4si3): Disable if SSE5.
11091 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
11092 (sse4_1_roundps): Ditto.
11093 (sse4_1_roundsd): Ditto.
11094 (sse4_1_roundss): Ditto.
11095 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
11097 (sse_maskcmpsf3): Ditto.
11098 (sse_vmmaskcmpv4sf3): Ditto.
11099 (sse2_maskcmpv2df3): Ditto.
11100 (sse2_maskcmpdf3): Ditto.
11101 (sse2_vmmaskcmpv2df3): Ditto.
11102 (sse2_eq<mode>3): Ditto.
11103 (sse2_gt<mode>3): Ditto.
11104 (sse5_pcmov_<mode>): Add SSE5 support.
11105 (vec_unpacku_hi_v16qi): Ditto.
11106 (vec_unpacks_hi_v16qi): Ditto.
11107 (vec_unpacku_lo_v16qi): Ditto.
11108 (vec_unpacks_lo_v16qi): Ditto.
11109 (vec_unpacku_hi_v8hi): Ditto.
11110 (vec_unpacks_hi_v8hi): Ditto.
11111 (vec_unpacku_lo_v8hi): Ditto.
11112 (vec_unpacks_lo_v8hi): Ditto.
11113 (vec_unpacku_hi_v4si): Ditto.
11114 (vec_unpacks_hi_v4si): Ditto.
11115 (vec_unpacku_lo_v4si): Ditto.
11116 (vec_unpacks_lo_v4si): Ditto.
11117 (sse5_pmacsww): New SSE5 intrinsic insn.
11118 (sse5_pmacssww): Ditto.
11119 (sse5_pmacsdd): Ditto.
11120 (sse5_pmacssdd): Ditto.
11121 (sse5_pmacssdql): Ditto.
11122 (sse5_pmacssdqh): Ditto.
11123 (sse5_pmacsdqh): Ditto.
11124 (sse5_pmacsswd): Ditto.
11125 (sse5_pmacswd): Ditto.
11126 (sse5_pmadcsswd): Ditto.
11127 (sse5_pmadcswd): Ditto.
11128 (sse5_pcmov_<move>): Conditional move support on SSE5.
11129 (sse5_phaddbw): New SSE5 intrinsic insn.
11130 (sse5_phaddbd): Ditto.
11131 (sse5_phaddbq): Ditto.
11132 (sse5_phaddwd): Ditto.
11133 (sse5_phaddwq): Ditto.
11134 (sse5_phadddq): Ditto.
11135 (sse5_phaddubw): Ditto.
11136 (sse5_phaddubd): Ditto.
11137 (sse5_phaddubq): Ditto.
11138 (sse5_phadduwd): Ditto.
11139 (sse5_phadduwq): Ditto.
11140 (sse5_phaddudq): Ditto.
11141 (sse5_phsubbw): Ditto.
11142 (sse5_phsubwd): Ditto.
11143 (sse5_phsubdq): Ditto.
11144 (sse5_pperm): Ditto.
11145 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
11146 (sse5_pperm_zero_v16qi_v8hi): Ditto.
11147 (sse5_pperm_sign_v8hi_v4si): Ditto.
11148 (sse5_pperm_zero_v8hi_v4si): Ditto.
11149 (sse5_pperm_sign_v4si_v2di): Ditto.
11150 (sse5_pperm_sign_v4si_v2di): Ditto.
11151 (sse5_pperm_pack_v2di_v4si): Ditto.
11152 (sse5_pperm_pack_v4si_v8hi): Ditto.
11153 (sse5_pperm_pack_v8hi_v16qi): Ditto.
11154 (sse5_perm<mode>): New SSE5 intrinsic insn.
11155 (rotl<mode>3): Ditto.
11156 (sse5_rotl<mode>3): Ditto.
11157 (sse5_ashl<mode>3): Ditto.
11158 (sse5_lshl<mode>3): Ditto.
11159 (sse5_frcz<mode>2): Ditto.
11160 (sse5s_frcz<mode>2): Ditto.
11161 (sse5_cvtph2ps): Ditto.
11162 (sse5_cvtps2ph): Ditto.
11163 (sse5_vmmaskcmp<mode>3): Ditto.
11164 (sse5_com_tf<mode>3): Ditto.
11165 (sse5_maskcmp<mode>3): Ditto.
11166 (sse5_maskcmp_uns<mode>3): Ditto.
11167 (sse5_maskcmp_uns2<mode>3): Ditto.
11168 (sse5_pcom_tf<mode>3): Ditto.
11170 * config/i386/predicates.md (sse5_comparison_float_operator):
11171 New predicate to match the comparison operators supported by
11172 the SSE5 com instruction.
11173 (ix86_comparison_int_operator): New predicate to match just the
11174 signed int comparisons.
11175 (ix86_comparison_uns_operator): New predicate to match just the
11176 unsigned int comparisons.
11178 * doc/invoke.texi (-msse5): Add documentation.
11179 (-mfused-madd): Ditto.
11181 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
11183 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
11185 (x86_64-*-*): Ditto.
11187 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
11189 * config/i386/bmmintrin.h: New file, provide common x86 compiler
11190 intrinisics for SSE5.
11192 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
11195 * config/i386/mmintrin-common.h: New file, to contain common
11196 instructions between SSE4.1 and SSE5.
11198 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
11199 FOREACH_FUNCTION_ARGS to iterate over the argument list.
11200 (gen_regparm_prefix): Ditto.
11202 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
11203 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
11204 prototype_p to determine if a function is prototyped.
11206 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
11208 * c-common.c (c_common_reswords) add the alignof keyword,
11209 with same RID as __alignof and __alignof__
11211 2009-08-25 Anatoly Sokolov <aesok@post.ru>
11213 * hooks.h (hook_bool_const_int_const_int_true): Declare.
11214 * hooks.c (hook_bool_const_int_const_int_true): New function.
11215 * target.h (struct gcc_target): Add can_eliminate field.
11216 * target-def.h (TARGET_CAN_ELIMINATE): Define.
11217 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
11218 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
11219 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
11220 (elim_table): Revise comment.
11221 * system.h (CAN_ELIMINATE): Poison.
11222 * defaults.h (CAN_ELIMINATE): Remove.
11223 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
11225 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
11226 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
11228 (alpha_vms_can_eliminate): Declare as static, change return type to
11230 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
11232 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
11233 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
11234 (arm_can_eliminate): New function.
11236 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
11237 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
11238 (avr_can_eliminate): Declare as static.
11239 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
11241 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
11242 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
11243 (bfin_can_eliminate): New function.
11245 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
11246 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
11247 (crx_can_eliminate): New function.
11249 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
11250 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
11251 (fr30_can_eliminate): New function.
11253 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
11254 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
11255 (frv_can_eliminate): New function.
11257 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
11258 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
11259 (h8300_can_eliminate): New function.
11261 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
11262 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
11263 (i386_can_eliminate): Declare as static, change return type to bool.
11264 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
11266 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
11267 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
11268 (ia64_can_eliminate): New function.
11270 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
11271 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
11272 (iq2000_can_eliminate): New function.
11274 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
11275 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
11276 (m32r_can_eliminate): New function.
11278 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
11279 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
11280 (m68hc11_can_eliminate): New function.
11282 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
11283 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
11284 (m68k_can_eliminate): New function.
11286 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
11287 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
11288 (mep_can_eliminate): New function.
11290 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
11291 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
11292 (mips_can_eliminate): New function.
11294 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
11295 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
11296 (rs6000_can_eliminate): New function.
11298 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
11299 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
11300 (s390_can_eliminate): Declare as static.
11301 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
11303 * config/score/score.h (CAN_ELIMINATE): Remove macro.
11304 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
11305 (score_can_eliminate): New function.
11307 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
11308 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
11309 (sparc_can_eliminate): Declare as static.
11310 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
11312 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
11313 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
11314 (xstormy16_can_eliminate): New function.
11316 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
11317 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
11318 (v850_can_eliminate): New function.
11320 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
11322 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
11323 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
11324 (*movdfcc_ext[1234]): Disable for IEEE mode.
11326 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
11328 * gimplify.c (prepare_gimple_addressable): New static function.
11329 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
11331 (gimplify_addr_expr): Invoke it similarly on the operand instead of
11332 manually fiddling with it.
11334 2009-08-25 Michael Matz <matz@suse.de>
11336 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
11337 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
11339 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
11340 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
11341 (do_jump): Split out code for simple binary comparisons into ...
11342 (do_jump_1): ... this, taking the individual operands and code.
11343 Change callers to helper function above accordingly.
11344 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
11347 2009-08-25 Michael Matz <matz@suse.de>
11349 * expr.h (struct separate_ops, sepops): New type for passing
11350 around an exploded simple expression.
11351 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
11352 Use this structure instead of expression tree.
11353 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
11354 expression, only its type.
11355 (expand_vec_cond_expr): Take type and individual operands instead
11356 of full expression.
11357 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
11358 expand_vec_shift_expr): Change prototype accordingly.
11359 * tree-vect-stmts.c (vectorizable_condition): Change call of
11360 expand_vec_cond_expr_p to pass only type.
11361 * expr.c (do_store_flags): Change prototype and implementation
11362 to take an exploded expression.
11363 (expand_expr_real_1): New local ops initialized with details
11364 of the full expression. Use it instead of full
11365 expression in calls to do_store_flags, expand_vec_cond_expr,
11366 expand_widen_pattern_expr and expand_vec_shift_expr.
11368 2009-08-25 Michael Matz <matz@suse.de>
11370 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
11371 treeop2 initialized with first three operands of the full expression.
11372 Substitute all TREE_OPERAND (exp, [012]) calls with them.
11374 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
11376 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
11377 (__gthread_objc_condition_allocate): Mark arguments as unused.
11378 (__gthread_objc_condition_deallocate): Likewise.
11379 (__gthread_objc_condition_wait): Likewise.
11380 (__gthread_objc_condition_broadcast): Likewise.
11381 (__gthread_objc_condition_signal): Likewise.
11382 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
11383 (__gthread_objc_thread_id): Likewise.
11385 2009-08-25 Janus Weil <janus@gcc.gnu.org>
11387 PR middle-end/41149
11388 * tree-pretty-print.c (print_call_name): Print the correct call name
11389 for procedure pointer components.
11391 2009-08-24 Steve Ellcey <sje@cup.hp.com>
11393 * config/ia64/ia64.c (ia64_promote_function_mode): Call
11394 default_promote_function_mode when not VMS.
11396 2009-08-24 Olivier Hainque <hainque@adacore.com>
11398 * convert.c (convert_to_integer): Don't assume an input pointer is
11399 POINTER_SIZE wide. Fetch from the type instead.
11401 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11403 * configure.ac (AC_PREREQ): Bump to 2.64.
11405 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
11407 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
11408 (process_command): Don't search standard_exec_prefix_1 and
11409 standard_exec_prefix_2.
11411 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11413 * config/arm/arm.c (output_return_instruction): Handle for
11416 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11418 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
11420 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11422 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
11423 (*arm_movdf_vfp): Likewise.
11425 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11427 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
11428 (vashr<mode>3): Rename from ashr<mode>3.
11429 (vlshr<mode>3): Rename from lshr<mode>3.
11431 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
11434 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
11435 (check_format_info_main): Use scalar_identify_flag.
11436 (check_format_types): Check for scalar size identity if
11437 scalar_identify_flag is set.
11438 (printf_length_specs): Extend by new field.
11439 (asm_fprintf_length_specs): Likewise.
11440 (gcc_diag_length_specs): Likewise.
11441 (scanf_length_specs): Likewise.
11442 (strfmon_length_specs): Likewise.
11443 (gcc_gfc_length_specs): Likewise.
11444 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
11445 (ms_printf_flag_specs): Likewise.
11446 * c-format.h (format_length_info): Add new member scalar_identity_flag.
11448 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
11451 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
11452 (*call_value_pop_1): Ditto.
11453 (*sibcall_pop_1): New insn pattern.
11454 (*sibcall_value_pop_1): Ditto.
11456 2009-08-23 Alan Modra <amodra@bigpond.net.au>
11459 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
11462 2009-08-23 Alan Modra <amodra@bigpond.net.au>
11465 * fwprop.c (try_fwprop_subst): Allow multiple sets.
11466 (get_reg_use_in): New function.
11467 (forward_propagate_subreg): Propagate through subreg of zero_extend
11470 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
11472 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
11473 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
11475 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11477 * configure.ac: Remove --with-datarootdir, --with-docdir,
11478 --with-htmldir switches. No need to call AC_SUBST for
11479 datarootdir, docdir, htmldir any more.
11480 * configure: Regenerate.
11481 * doc/install.texi (Configuration): Document --datarootdir,
11482 --docdir, --htmldir, --pdfdir; update documentation for
11483 --infodir, --mandir.
11484 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
11487 * aclocal.m4: Regenerate.
11488 * config.in: Regenerate.
11489 * configure: Regenerate.
11491 2009-08-21 Douglas B Rupp <rupp@gnat.com>
11492 Olivier Hainque <hainque@adacore.com>
11494 * config/ia64/ia64.c: Include libfuncs.h.
11495 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
11496 (ia64_expand_call): Use reg 25 on VMS.
11497 (ia64_initialize_trampoline): Fix for VMS ABI.
11498 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
11499 (ia64_function_arg): Initialize reg 25 on VMS.
11500 Fix OpenVMS ABI issues for varargs.
11501 For OpenVMS, emit the Argument Information register set in the
11502 incoming/sibcall case as well.
11503 (ia64_arg_type): New function.
11504 (ia64_function_arg_advance): Keep track of cum->words.
11505 Fix OpenVMS ABI issues for varargs.
11506 (ia64_function_value): On VMS, promote mode of non-aggregate types.
11507 (ia64_override_options): Set flag_no_common on VMS.
11508 (ia64_init_builtins): Disable FWRITE builtin.
11509 (ia64_asm_output_external): Call DO_CRTL_NAMES.
11510 (ia64_vms_init_libfuncs): Add decc$ routines.
11511 (ia64_vms_valid_pointer_mode): New function.
11512 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
11513 (ia64_promote_function_mode): New function
11514 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
11515 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
11516 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
11517 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
11518 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
11519 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
11520 Suppress trailing '#' if VALUE is numeric.
11521 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
11522 ia64_promote_function_mode.
11523 (TARGET_VALID_POINTER_MODE): Define.
11525 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11528 * config/rs6000/rs6000.c (rs6000_override_options): Use
11529 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
11532 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
11533 reporting of vector + decimal/boolean/complex error.
11535 2009-08-21 Jakub Jelinek <jakub@redhat.com>
11537 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
11538 __vector double TYPE_DECL.
11540 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
11542 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
11543 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
11544 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
11545 to pointer to enum machine_mode. Update all callers as needed.
11547 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
11549 * config/alpha/alpha.md (exception_receiver): Emit alternative
11550 GP load sequence if flag_reorder_blocks_and_partition is set.
11551 (*exception_receiver_2): Also enable when
11552 flag_reorder_blocks_and_partition is set.
11554 2009-08-20 Matt Rice <ratmice@gmail.com>
11555 Diego Novillo <dnovillo@google.com>
11557 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
11560 2009-08-20 Richard Guenther <rguenther@suse.de>
11562 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
11563 * c-tree.h (c_dup_lang_specific_decl): Remove.
11564 (struct lang_decl, struct lang_type): Move definitions ...
11565 * c-lang.h: ... here. New file.
11566 * c-decl.c: Include c-lang.h.
11567 (c_dup_lang_specific_decl): Remove.
11568 * c-typeck.c: Include c-lang.h.
11569 * Makefile.in (c-decl.o): Add c-lang.h dependency.
11570 (c-typeck.o): Likewise.
11571 * c-config-lang.in (gtfiles): Add c-lang.h.
11572 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
11575 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
11577 * config/alpha/alpha.c (alpha_end_function): Do not clear
11578 crtl->emit structure and free insn locators if cfun->is_thunk is true,
11579 this is now handled in generic code.
11581 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
11583 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
11584 (s390_z10_fix_long_loop_prediction): New function.
11585 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
11586 (s390_reorg): Walk over the INSNs and invoke
11587 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
11589 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
11591 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
11592 "*brx_64bit", "*brx_31bit"): New patterns.
11593 * config/s390/s390.c ('E'): New output modifier.
11595 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11596 Richard Earnshaw <richard.earnshaw@arm.com>
11598 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
11599 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
11601 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11603 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
11605 * pa.c (emit_move_sequence): Check if address of operand1 is valid
11606 for mode mode of operand0 when doing secondary reload for SAR.
11608 2009-08-19 Jakub Jelinek <jakub@redhat.com>
11610 PR middle-end/41123
11611 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
11612 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
11614 2009-08-19 Jason Merrill <jason@redhat.com>
11616 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
11617 supported template depth in C++0x.
11619 2009-08-19 Jakub Jelinek <jakub@redhat.com>
11621 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
11622 free_after_compilation.
11623 * config/score/score7.c (score7_output_mi_thunk): Likewise.
11624 * config/score/score3.c (score3_output_mi_thunk): Likewise.
11625 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11626 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
11627 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11628 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11629 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11631 2009-08-19 Ian Lance Taylor <iant@google.com>
11633 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
11634 of (plus (mult (neg B) C) A).
11636 2009-08-18 Michael Matz <matz@suse.de>
11638 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
11639 instead of comparing TYPE_MAIN_VARIANT for equality.
11640 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
11641 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
11642 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
11643 * gimplify.c (goa_lhs_expr_p): Ditto and use
11644 STRIP_USELESS_TYPE_CONVERSION.
11646 2009-08-18 Michael Matz <matz@suse.de>
11648 * tree-ssa-structalias.c (create_variable_info_for): Also mark
11649 first field in a struct.
11650 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
11652 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
11654 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
11655 locators before emit_insn is called. Remove assert that
11657 (alpha_end_function): Clear crtl->emit structure and free insn
11658 locators if cfun->is_thunk is true.
11660 2009-08-18 Jason Merrill <jason@redhat.com>
11662 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11664 * configure.ac: Test for it.
11665 * configure, config.in: Regenerate.
11666 * doc/install.texi: Document --enable-gnu-unique-object.
11668 2009-08-18 Richard Guenther <rguenther@suse.de>
11670 PR middle-end/41094
11671 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
11672 pow(x,y*z) only if x is nonnegative.
11674 2009-08-18 Jakub Jelinek <jakub@redhat.com>
11676 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
11680 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
11681 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
11683 2009-08-17 DJ Delorie <dj@redhat.com>
11685 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
11686 * config/m32c/prologue.md (epilogue_freit): New.
11688 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
11689 (bank_switch_p): Likewise.
11690 (fast_interrupt_p): Likewise.
11691 (interrupt_p): Likewise.
11692 (m32c_conditional_register_usage): Round memregs size up.
11693 (need_to_save): We only need to save $a0 when we use ENTER.
11694 (interrupt_p): Check for fast_interrupt too.
11695 (bank_switch_p): New.
11696 (fast_interrupt_p): New.
11697 (m32c_attribute_table): Add bank_switch and fast_interrupt.
11698 (m32c_emit_prolog): Support bank switching and fast interrupts.
11699 * doc/extend.texi (Function Attributes): Add bank_switch and
11702 2009-08-17 Douglas B Rupp <rupp@gnat.com>
11704 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
11705 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
11707 2009-08-16 Douglas B Rupp <rupp@gnat.com>
11709 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
11710 (menu): Add IA-64/VMS Options.
11711 (IA-64/VMS Options): Likewise.
11713 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
11716 * config/mips/mips.md (*lwxs): Use :P for pointer values.
11718 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
11720 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
11721 (mips_pop_asm_switch): Likewise.
11722 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
11724 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
11725 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
11726 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
11727 (mips_print_operand_punctuation): Use them. Check mips_noreorder
11728 instead of set_noreorder.
11729 (mips_output_function_prologue): Use the new functions.
11730 (mips_output_function_epilogue): Likewise.
11731 (mips_need_noat_wrapper_p): New function, split out from...
11732 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
11733 Use mips_push_asm_switch and mips_pop_asm_switch.
11734 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
11735 and mips_pop_asm_switch.
11736 (ASM_OUTPUT_REG_POP): Likewise.
11737 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
11738 Use mips_pop_asm_switch.
11739 (mips_asm_switch): New structure.
11740 (set_noreorder, set_nomacro): Replace with...
11741 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
11742 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
11743 instead of set_nomacro.
11744 (fix_truncsfsi2_macro): Likewise.
11745 (cprestore): Likewise.
11746 (hazard): Use mips_noreorder instead of set_noreorder.
11747 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
11749 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
11751 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
11752 from prev_active_insn.
11754 2009-08-16 Anatoly Sokolov <aesok@post.ru>
11756 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
11757 * config/avr/avr.c (avr_override_options): Initialize
11758 avr_current_arch variable.
11759 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
11760 __AVR_HAVE_16BIT_SP__ according to the device type.
11761 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
11763 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
11764 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
11766 2009-08-16 Dodji Seketeli <dodji@redhat.com>
11769 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
11770 generating inlined subroutine die only. We shouldn't be
11771 called for anything else.
11772 (gen_block_die): Don't generate inline subroutine debug info for
11775 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
11777 * graphite-poly.c (print_pbb): Print PBB index.
11779 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
11781 PR middle-end/40981
11782 * graphite-interchange.c (ppl_max_for_le): Moved...
11783 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
11784 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
11785 ppl_Pointset_Powerset_C_Polyhedron_maximize.
11786 * graphite-ppl.h (ppl_max_for_le): Declared.
11788 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
11790 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
11791 supported on all platforms.
11792 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
11793 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
11794 * c-pragma.c: Likewise.
11795 * target-def.h (TARGET_INITIALIZER): Remove
11796 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
11797 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
11799 2009-08-14 Douglas B Rupp <rupp@gnat.com>
11801 * config/ia64/fde-vms.c: New file.
11802 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
11803 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
11804 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
11805 (uw_frame_state_for): Only register a personality routine if it is
11806 known to be compatible with our expectations.
11807 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
11808 Declare unw_table_entry stack variable and
11809 mod all calls to _Unwind_FindTableEntry to add arg.
11810 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
11811 (_Unwind_FindTableEntry): Add arg to prototype.
11813 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
11815 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
11816 field 'signal_pfs_loc'.
11817 (uw_frame_state_for): Remove duplicate code dealing with leaf
11818 procedures without unwind info.
11819 If in the frame after unwinding through a signal handler, restore
11820 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
11821 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
11822 'pfs_loc' to the AR.PFS location in the signal context; instead
11823 set 'signal_pfs_loc'.
11824 Manually generate the unwind info for the AR.PFS register.
11825 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
11826 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
11827 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
11828 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
11829 instead set 'signal_pfs_loc'.
11830 Remove code preventing the AR.PFS register from being restored
11831 from the signal context.
11833 2009-08-14 Douglas B Rupp <rupp@gnat.com>
11834 Tristan Gingold <gingold@adacore.com>
11836 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
11837 * config/ia64/t-vms: New file.
11838 * config/ia64/vms64.h: New file.
11839 * config/ia64/vms.h: New file.
11840 * config/ia64/vms-crtinit.asm: New file.
11841 * config/ia64/vms_symvec_libgcc_s.opt: New file.
11842 * config/ia64/vms-unwind.h: New file.
11844 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
11846 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
11849 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11851 PR middle-end/30789
11852 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
11853 Move declaration...
11854 * real.h (do_mpc_arg2): ... here.
11855 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
11858 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
11860 * final.c (add_debug_prefix_map): Don't use GC memory for
11861 old_prefix and new_prefix.
11863 2009-08-14 Richard Guenther <rguenther@suse.de>
11865 * ipa-prop.c (compute_complex_pass_through): If we cannot
11866 compute a non-varying offset for IPA_JF_ANCESTOR punt.
11868 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11870 * c-lex.c (c_lex_with_flags): Increase size of local variable
11871 to avoid memory clobber.
11873 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
11876 * config/i386/i386.c (ix86_fp_comparison_strategy):
11877 Only enable/disable sahf at function granularity.
11879 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
11881 PR rtl-optimization/41064
11882 * reload1.c (reload_as_needed): Don't call extract_insn
11883 for known invalid replacements after calling
11884 validate_replace_rtx_group and verify_changes.
11886 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
11889 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
11890 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
11891 ix86_expand_fp_vcond.
11892 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
11893 Assert that operation is supported by ix86_expand_int_vcond.
11894 (vcondu<SSEMODE124C8:mode>): Ditto.
11896 2009-08-13 DJ Delorie <dj@redhat.com>
11898 * config/i386/djgpp-stdint.h: New.
11899 * config.gcc (djgpp): Use it.
11901 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
11903 * config/sh/sh.c (sh_override_options): When flag_exceptions or
11904 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
11906 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
11908 * tree-ssa-loop-prefetch.c
11909 (prune_ref_by_group_reuse): Enhance probabilistic analysis
11910 for long-stride pruning.
11911 (compute_miss_rate): New function to compute the probability
11912 that two memory references access different cache lines.
11914 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
11916 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
11918 2009-08-13 Richard Guenther <rguenther@suse.de>
11920 PR middle-end/41047
11921 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
11922 use the constant pointer type.
11923 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
11924 of CV qualifiers on the target pointer type.
11925 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
11926 conversion check before restrict check.
11928 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
11931 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
11933 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
11935 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
11937 2009-08-12 Richard Guenther <rguenther@suse.de>
11939 PR tree-optimization/41011
11940 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
11941 and reference constructing.
11943 2009-08-12 Xinliang David Li <davidxl@google.com>
11945 PR tree-optimization/41012
11946 * tree-flow.h : New external interface.
11947 * gimple-low.c (check_call_arg): Change to public function.
11948 Remove argument mismatch check in lowering.
11949 * tree-inline.h (tree_can_inline_p): Interface change.
11950 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
11951 into this function.
11952 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
11953 Call change to tree_can_inline_p function.
11954 (cgraph_decide_inlining_incrementally): Ditto.
11956 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
11958 PR tree-optimization/41031
11959 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
11960 on the partition variable rather than promote_mode on the source
11961 type. Assert that the partition variable's type has the same
11962 mode as the source value's.
11964 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
11966 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
11967 for for_return == 2.
11968 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
11970 * calls.c (expand_call): Fix typo.
11971 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
11973 * stmt.c (expand_value_return): Use promote_function_mode to copy out
11975 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
11976 * config/cris/cris.c (cris_promote_function_mode): Likewise.
11977 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
11978 * config/pa/pa.c (pa_promote_function_mode): Likewise.
11980 2009-08-12 Andrew Haley <aph@redhat.com>
11982 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
11984 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11987 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
11989 2009-08-12 Richard Guenther <rguenther@suse.de>
11991 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
11992 * gimplify.c (gimplify_modify_expr): Do not use
11993 lang_hooks.types_compatible_p.
11994 * tree-ssa.c (useless_type_conversion_p): For aggregates
11995 just return false if the canonical types differ.
11997 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11999 PR middle-end/40980
12000 * sese.c (convert_for_phi_arg): New.
12001 (add_guard_exit_phis): Use convert_for_phi_arg.
12003 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
12005 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
12006 unknown subscript upper bounds.
12008 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
12009 Pranav Garg <pranav.garg2107@gmail.com>
12011 * graphite-interchange.c (gather_access_strides): Removed.
12012 (ppl_max_for_le): New.
12013 (build_linearized_memory_access): New.
12014 (memory_stride_in_loop): New.
12015 (pbb_interchange_profitable_p): Reimplemented.
12016 * graphite-ppl.h (ppl_new_id_map): New.
12017 (ppl_interchange): New.
12019 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
12021 * graphite-interchange.c (compute_subscript): Removed.
12022 (compute_array_size_cstr): Removed.
12023 (compute_array_size_poly): Removed.
12024 (compute_array_size): Removed.
12025 (gather_access_strides_poly): Removed.
12026 (gather_access_strides): Empty.
12028 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
12030 * graphite-dependences.c (dependence_polyhedron_1): Replace
12031 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
12032 (graphite_legal_transform_dr): Same.
12033 (graphite_carried_dependence_level_k): Same.
12034 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
12035 Initialize PDR_NB_SUBSCRIPTS.
12036 (print_pdr_access_layout): Replace pdr_nb_subscripts with
12038 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
12039 (PDR_NB_SUBSCRIPTS): New.
12040 (pdr_nb_subscripts): Removed.
12041 (pdr_dim): Simplified.
12042 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
12043 with PDR_NB_SUBSCRIPTS.
12045 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
12047 * graphite-interchange.c (compute_array_size): Remove use of
12048 PDR_DATA_CONTAINER.
12049 * graphite-poly.c (new_poly_dr): Remove argument data_container.
12050 Do not initialize PDR_DATA_CONTAINER.
12051 (print_pdr): Do not print PDR_DATA_CONTAINER.
12052 * graphite-poly.h (struct poly_dr): Remove data_container field.
12053 (PDR_DATA_CONTAINER): Removed.
12054 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
12055 PDR_DATA_CONTAINER.
12056 (build_poly_dr): Same.
12058 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
12059 Sebastian Pop <sebastian.pop@amd.com>
12061 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
12062 copy of the dependence polyhedron. Free the temporary objects.
12063 (graphite_carried_dependence_level_k): Free unused objects before
12066 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
12068 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
12069 Early return without analyzing the data dependences if no
12070 transform has been done. Call restore_scattering if the transform
12072 (graphite-interchange.c): Same.
12073 * graphite-poly.c (print_scattering_function): Test for
12075 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
12076 (apply_poly_transforms): Do not gcc_assert that
12077 the transform is legal.
12078 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
12079 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
12080 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
12081 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
12082 * graphite-poly.h (struct poly_scattering): New.
12083 (struct poly_bb): Add original, transformed, and saved fields.
12084 Remove transformed_scattering, original_scattering,
12085 nb_local_variables and nb_scattering_transform fields.
12086 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
12087 (poly_scattering_new): New.
12088 (poly_scattering_free): New.
12089 (poly_scattering_copy): New.
12090 (store_scattering_pbb): New.
12091 (store_scattering): New.
12092 (restore_scattering_pbb): New.
12093 (restore_scattering): New.
12094 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
12095 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
12097 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
12099 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
12100 (print_scop): Same.
12102 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
12104 * Makefile.in (graphite.o): Depends on PREDICT_H.
12105 * graphite.c: Include predict.h.
12106 (graphite_finalize): Call tree_estimate_probability.
12107 * predict.c (predict_loops): Do not call scev_initialize and
12109 (tree_estimate_probability_bb): New.
12110 (tree_estimate_probability): Do not initialize loops: move that
12111 code to the driver. Call tree_estimate_probability_bb.
12112 (tree_estimate_probability_driver): New.
12113 (pass_profile): Use tree_estimate_probability_driver.
12114 * predict.h (tree_estimate_probability): Declared.
12116 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
12118 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
12119 * graphite-dependences.c (graphite_legal_transform): Add time to
12120 TV_GRAPHITE_DATA_DEPS.
12121 (dependency_between_pbbs_p): Same.
12122 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
12124 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
12126 PR rtl-optimization/41033
12127 * alias.c (nonoverlapping_component_refs_p): Punt when strict
12128 aliasing is disabled.
12130 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
12132 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
12133 si_mask_operand, and_load_operand, low_bitmask_operand,
12134 and_reg_operand, and_operand): New predicates.
12135 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
12136 * config/mips/mips.c (and_operands_ok): New function.
12137 * config/mips/mips-protos.h (and_operands_ok): Declare it.
12138 * config/mips/mips.md (move_type): Add ext_ins and logical.
12139 (type): Handle them.
12140 (and<mode>3): Use and_reg_operand as the second operand's predicate.
12141 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
12142 shift_shift. Remove commutative constraint modifier.
12143 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
12145 (*clear_upper32_dext): Remove define_insn_and_split.
12146 (*clear_upper32): Turn this define_insn_and_split ...
12147 (splitter for ANDing register with 0xffff_ffff): .. into this.
12149 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
12151 * combine.c (try_widen_shift_mode): Factor out code to check if an
12152 integer constant is a low-order bitmask from here ...
12153 * rtlanal.c (low_bitmask_len): ... to here.
12154 * rtl.h (low_bitmask_len): Declare.
12156 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
12159 * config/alpha/alpha.md (addsi3): Remove expander.
12160 (addsi3): Rename from *addsi3_internal insn pattern.
12161 (subsi3): Remove expander.
12162 (subsi3): Rename from *subsi3_internal insn pattern.
12164 2009-08-11 Douglas B Rupp <rupp@gnat.com>
12166 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
12169 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
12170 Eric Botcazou <botcazou@adacore.com>
12171 Douglas B Rupp <rupp@gnat.com>
12173 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
12174 that records that fit in 64 bits are returned by immediate value,
12175 as required by OpenVMS Calling Standard.
12176 (function_value): Adjust for above modification.
12177 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
12178 virtual_incoming_args_rtx as base object, not next_arg.
12179 * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
12181 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12183 * reload.c (find_reloads_subreg_address): Check the original
12184 req_equiv_mem address to detect the case where an address is
12185 not valid in the outer mode.
12187 2009-08-11 Richard Guenther <rguenther@suse.de>
12190 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
12192 2009-08-10 Douglas B Rupp <rupp@gnat.com>
12194 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
12195 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
12197 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
12198 Douglas B Rupp <rupp@gnat.com>
12200 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
12201 PT_STACK when frame_pointer_needed on OpenVMS.
12202 (alpha_pv_save_size, alpha_using_fp): Remove.
12203 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
12204 with proper processing for PT_NULL.
12205 (alpha_vms_initial_elimination_offset): New function. Support for
12206 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
12207 (alpha_sa_size): Force procedure type to PT_STACK when
12208 frame_pointer_needed on OpenVMS.
12209 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
12210 (alpha_using_fp): Likewise.
12211 (alpha_vms_can_eliminate): Add prototype.
12212 (alpha_vms_initial_elimination_offset): Likewise.
12213 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
12214 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
12216 2009-08-10 Eric Botcazou <botcazou@adacore.com>
12217 Douglas B Rupp <rupp@gnat.com>
12219 * config/alpha/alpha.c (common_object_handler): New function.
12220 (vms_attribute_table): Declare a single attribute "common_object".
12221 (vms_output_aligned_decl_common): New global function.
12222 (SECTION_VMS_OVERLAY): Delete.
12223 (SECTION_VMS_GLOBAL): Likewise.
12224 (SECTION_VMS_INITIALIZE): Likewise.
12225 (vms_asm_named_section): Remove support for above flags.
12226 (vms_section_type_flags): Delete.
12227 (TARGET_SECTION_TYPE_FLAGS): Likewise.
12228 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
12229 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
12230 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
12232 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12235 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
12236 (sub_ddmmss): Likewise.
12238 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
12241 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
12244 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12247 * reload1.c (reload_as_needed): Use cancel_changes to completely
12248 undo a failed replacement attempt.
12250 2009-08-10 Richard Guenther <rguenther@suse.de>
12252 PR middle-end/41006
12253 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
12254 (useless_type_conversion_p): ... here. Require pointer targets
12257 2009-08-10 Dodji Seketeli <dodji@redhat.com>
12260 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
12261 loose the original type of the statement list.
12263 2009-08-09 Douglas B Rupp <rupp@gnat.com>
12265 * config/alpha/alpha.c: Include libfuncs.h
12266 (avms_asm_output_extern): New function.
12267 (alpha_init_libfuncs): Init some decc libfuncs.
12268 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
12269 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
12270 (DO_CRTL_NAMES): Define.
12271 (LIB_SPEC): Remove.
12272 * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
12273 (LONG_TYPE_SIZE): Define.
12274 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
12275 (SUBTARGET_SWITCHES): Define malloc64 switch.
12276 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
12277 (MASK_RETURN_ADDR): Define.
12278 doc/invoke.texi (mmalloc64): Document switch.
12280 2009-08-09 Olivier Hainque <hainque@adacore.com>
12281 Douglas B Rupp <rupp@gnat.com>
12283 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
12284 uses_condition_handler.
12285 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
12286 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
12287 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
12288 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
12289 (code_for_builtin): New insn codes for the new alpha_builtins.
12290 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
12291 (alpha_sa_size): Account for uses_condition_handler.
12292 (alpha_expand_prologue): Likewise.
12293 (alpha_start_function): Likewise.
12294 (alpha_expand_epilogue): Likewise.
12295 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
12296 establish/revert expanders.
12297 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
12298 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
12299 New expander, resorting to the alpha.c associated function.
12300 (builtin_revert_vms_condition_handler): Likewise.
12301 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
12302 __gcc_shell_handler, the static VMS condition handler used as
12303 an indirection wrapper to the current dynamically established
12305 * config/alpha/vms-unwind.h: Complete rewrite.
12306 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
12307 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
12309 2009-08-09 Eric Botcazou <botcazou@adacore.com>
12310 Douglas B Rupp <rupp@gnat.com>
12312 * config/alpha/alpha.c (alpha_links): Add 'target' field.
12313 (alpha_need_linkage): Handle aliases. Return function symbol.
12314 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
12315 Use ultimate alias target for the linkage name.
12316 * config/alpha/alpha.md (movmemdi): Use the symbol returned
12317 by alpha_need_linkage for the function symbol.
12318 (setmemdi): Likewise.
12320 2009-08-09 Douglas B Rupp <rupp@gnat.com>
12322 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
12323 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
12324 (ASM_WEAKEN_LABEL): Define.
12325 (CRT_CALL_STATIC_FUNCTION): Define.
12326 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
12327 (ENDFILE_SPEC): Define.
12328 (INIT_SECTION_ASM_OP): Define.
12329 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
12330 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
12331 crtend.o crtendS.o.
12332 (MULTILIB_OSDIRNAMES): Define.
12333 (shlib_version): Define.
12334 (SHLIB_EXT): Define.
12335 (SHLIB_OBJS): Define.
12336 (SHLIB_NAME): Define.
12337 (SHLIB_MULTILIB): Define.
12338 (SHLIB_INSTALL): Define.
12339 (SHLIB_SYMVEC): Define.
12340 (SHLIB_SYMVECX2): Define.
12341 (SHLIB_LINK): Define.
12343 2009-08-09 Douglas B Rupp <rupp@gnat.com>
12345 * config/alpha/alpha.c (alpha_initialize_trampoline):
12346 Initialize VMS trampoline IAW ABI for bounded procedure calls.
12347 (alpha_start_function): Emit transfer address on nested functions
12348 for VMS trampoline call.
12349 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
12350 since no longer used.
12351 * config/alpha/vms-tramp.asm: Remove.
12352 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
12353 since now only data initialized at runtime.
12355 2009-08-09 Douglas B Rupp <rupp@gnat.com>
12357 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
12358 (LINK_GCC_C_SEQUENCE_SPEC): Define.
12359 (MD_EXEC_PREFIX): Remove, no longer used.
12360 (MD_STARTFILE_PREFIX): Likewise.
12361 (INCLUDE_DEFAULTS): Likewise.
12362 * config/alpha/t-vms:
12363 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
12365 2009-08-09 Richard Guenther <rguenther@suse.de>
12367 PR tree-optimization/41016
12368 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
12369 (operand_precision): Remove.
12370 (integral_operand_p): Likewise.
12371 (recognize_single_bit_test): Adjust.
12373 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
12375 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
12376 operation overflows. Likewise non-cast unary arithmetic.
12377 If one arm of a conditional expression is always taken,
12378 inhibit evaluation warnings for the other arm. Likewise inhibit
12379 evaluation warnings for the second && or || operand if the first
12380 operand is enough to determine the result.
12381 * c-typeck.c (build_conditional_expr): Apply the same inhibition
12383 (build_binary_op): Prevent duplicate evaluation warnings.
12385 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
12387 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
12388 and destination have different modes, Use promote_mode to
12389 determine the signedness of the conversion. Assert that the
12390 promoted source mode matches the destination mode. Don't pass
12391 the destination and destination mode to expand_expr if the source
12392 mode is different. Simplify conversion logic.
12394 2009-08-09 Ira Rosen <irar@il.ibm.com>
12396 PR tree-optimization/41008
12397 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
12398 from condition only in case it's a comparison. Adjust checks.
12400 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
12402 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
12403 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
12404 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
12405 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
12406 (dump_cand): Handle them.
12407 (struct iv_cand): New members COST_STEP and AINC_USE.
12408 (stmt_after_increment): Likewise.
12409 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
12410 callers changed. Use gimple_uid comparison instead of scanning.
12411 (add_candidate_1): When looking for identical candidates, take
12412 AINC_USE into account. Set it for new candidates.
12413 (force_expr_to_var_cost): Cast target_spill_cost to int.
12414 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
12415 All callers changed. Check for availability of autoinc addressing
12416 modes, both in general for a given mode, and in the specific use case.
12417 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
12419 (get_computation_cost): Likewise.
12420 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
12421 add_autoinc_candidates): New static functions.
12422 (add_candidate): Call add_autoinc_candidates for candidates based on
12424 (find_iv_candidates): Call set_autoinc_for_original_candidates.
12425 (determine_use_iv_cost_address): If we have an autoinc candidate at
12426 the matching use, verify autoinc is possible and subtract the cost
12427 of the candidate's step from the cost.
12428 (determine_iv_cost): Record the cost of the increment in the COST_STEP
12429 member of the candidate.
12430 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
12431 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
12433 2009-08-09 Douglas B Rupp <rupp@gnat.com>
12435 * config.build (ia64-hp-*vms*): New target.
12436 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
12437 with ia64-hp-*vms*.
12438 * config.gcc (ia64-hp-*vms*): New target.
12439 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
12440 with ia64-hp-*vms*.
12441 * config.host (ia64-hp-*vms*): New target.
12442 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
12443 with ia64-hp-*vms*.
12445 2009-08-08 Richard Guenther <rguenther@suse.de>
12447 PR tree-optimization/40991
12448 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
12450 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
12452 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
12453 mode check. Do truncations in an integer mode.
12454 (force_to_mode): Handle subregs for all mode types. Only do
12455 arithmetic simplifications on integer modes.
12457 2009-08-07 Richard Guenther <rguenther@suse.de>
12459 PR tree-optimization/40999
12460 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
12461 (maybe_fold_reference): Lookup constant initializers.
12462 (fold_gimple_assign): Likewise.
12464 2009-08-07 Richard Guenther <rguenther@suse.de>
12466 * tree-ssa.c (useless_type_conversion_p_1): Only for types
12467 that require structural equality defer to the langhook.
12469 2009-08-07 Martin Jambor <mjambor@suse.cz>
12471 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
12473 (struct ipa_pass_through_data): New type.
12474 (struct ipa_ancestor_jf_data): New type.
12475 (union jump_func_value): Removed field formal_id, added fields
12476 pass_through and ancestor.
12477 (struct ipa_param_call_note): Changed type of formal_id to int from
12479 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
12480 operations jump functions and ancestor jump functions.
12481 (compute_complex_pass_through): New function.
12482 (compute_scalar_jump_functions): Call compute_complex_pass_through,
12483 reflect changes in the jump function strucutre.
12484 (update_jump_functions_after_inlining): Ignore complex pass-through
12485 and ancestor jump functions.
12486 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
12487 polynomial pass-through with operation jump functions.
12489 2009-08-07 Jakub Jelinek <jakub@redhat.com>
12491 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
12492 fde->dw_fde_begin as begin label instead of hot/cold label.
12493 Use LLSDAC label instead of LLSDA for second section lsda.
12494 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
12495 label instead of LLSDA if it is true.
12496 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
12498 * except.c (add_call_site, dw2_size_of_call_site_table): Add
12499 SECTION argument. Use it as index into crtl->eh.call_site_record
12501 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
12502 use it to determine how to print table entries instead of using
12503 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
12504 label instead of normal begin label as base.
12505 (sjlj_assign_call_site_values): Adjust add_call_site caller.
12506 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
12507 ensure no EH range spans between sections and that landing pads
12508 are always in the corresponding section.
12509 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
12510 for crtl->eh.call_site_record being an array rather than scalar.
12511 (output_one_function_exception_table): New function, copied
12512 from output_function_exception_table. Adjust
12513 dw2_size_of_call_site_table, dw2_output_call_site_table
12514 callers. For SECOND section use *C suffixed labels.
12515 (output_function_exception_table): Call
12516 output_one_function_exception_table and, when doing hot/cold
12517 partitioning, also another time for the second section.
12518 * opts.c: Include except.h.
12519 (decode_options): Allow -freorder-blocks-and-partition with
12520 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
12521 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
12522 * function.h (struct rtl_eh): Change call_site_record from
12523 scalar into array of 2 elements.
12525 2009-08-07 Martin Jambor <mjambor@suse.cz>
12527 * ipa-prop.c (count_formal_params_1): New function.
12528 (ipa_get_vector_of_formal_parms): New function.
12529 (get_vector_of_formal_parm_types): New function.
12530 (ipa_modify_formal_parameters): New function.
12531 (ipa_modify_call_arguments): New function.
12532 (index_in_adjustments_multiple_times_p): New function.
12533 (ipa_combine_adjustments): New function.
12534 (ipa_dump_param_adjustments): New function.
12535 * ipa-prop.h (struct ipa_parm_adjustment): New type.
12536 (ipa_get_vector_of_formal_parms): Declare.
12537 (ipa_modify_formal_parameters): Declare.
12538 (ipa_modify_call_arguments): Declare.
12539 (ipa_combine_adjustments): Declare.
12540 (ipa_dump_param_adjustments): Declare.
12541 (build_ref_for_offset): Declare.
12542 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
12543 * tree-sra.c: Include ipa-prop.c.
12544 (build_ref_for_offset): Make public.
12546 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
12548 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
12550 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
12552 * gcc/doc/extend.texi (__builtin_extract_return_address)
12553 (__builtin_frob_return_address): Document.
12555 2009-08-06 Paul Brook <paul@codesourcery.com>
12557 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
12558 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
12559 implementation on ARMv6-M.
12561 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
12563 * doc/extend.texi (pcs): Document new attribute for ARM.
12565 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
12567 * arm.c (pcs_attribute_args): Comment out unsupported attribute
12570 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
12572 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
12575 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
12577 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
12579 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
12581 Merge ARM/hard_vfp_branch to trunk.
12583 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
12585 * arm.c (libcall_eq): New function.
12586 (libcall_hash): New function.
12587 (add_libcall): New function.
12588 (arm_libcall_uses_aapcs_base): New function.
12589 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
12590 libcalls using the base PCS.
12591 (arm_init_cumulative_args): Likewise.
12593 2009-07-20 Joseph Myers <joseph@codesourcery.com>
12595 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
12596 Use base ABI for conversion libfuncs between HFmode and SFmode.
12598 2009-05-12 Joseph Myers <joseph@codesourcery.com>
12600 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
12601 V4SImode as representatives of all 64-bit and 128-bit vector
12602 types. Allow vector types without vector modes.
12603 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
12604 without vector modes like BLKmode.
12605 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
12606 BLKmode. Avoid unsupported vector modes or TImode moves for
12608 (aapcs_vfp_allocate_return_reg): Likewise.
12609 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
12610 V8QImode if TARGET_NEON || TARGET_IWMMXT.
12612 2009-05-12 Joseph Myers <joseph@codesourcery.com>
12614 * config/arm/arm.c (arm_handle_pcs_attribute): New.
12615 (arm_get_pcs_model): Pass attribute arguments to
12616 arm_pcs_from_attribute.
12617 (arm_init_cumulative_args): Use base AAPCS for conversions from
12618 floating-point types to DImode.
12619 (arm_attribute_table): Add pcs attribute.
12620 (arm_handle_pcs_attribute): New.
12621 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
12622 conversions from floating-point types to DImode, also declare them
12623 to use base AAPCS and declare functions they call to use base
12624 AAPCS and their RTABI names.
12626 2009-05-12 Joseph Myers <joseph@codesourcery.com>
12628 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
12629 -mfloat-abi=hard not being supported for VFP.
12631 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
12633 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
12634 SYMBOL_REF to hard_libcall_value.
12636 2009-03-05 Joseph Myers <joseph@codesourcery.com>
12637 Richard Earnshaw <rearnsha@arm.com>
12639 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
12640 has been put on the stack, all remaining co-processory arguments for
12641 that co-processor also go on the stack.
12643 2009-03-05 Joseph Myers <joseph@codesourcery.com>
12645 * config/arm/arm.c (arm_return_in_memory): Handle returning
12646 vectors of suitable size in registers also for AAPCS case.
12648 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
12650 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
12652 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
12654 ARM Hard-VFP calling convention
12655 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
12656 * target.h (gcc_target): Add libcall_value to table of call hooks.
12657 * targhooks.h (default_libcall_value): Default implementation.
12658 * targhooks.c (default_libcall_value): Likewise.
12659 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
12660 * optabs.c (expand_unop): Use it.
12661 * expr.h (hard_libcall_value): Pass the function RTX through.
12662 * calls.c (emit_library_call_value_1): Update call to
12663 hard_libcall_value.
12664 * explow.c (hard_libcall_value): Use new target hook.
12665 * config/arm/arm.c: Include cgraph.h
12666 (TARGET_FUNCTION_VALUE): Override default hook.
12667 (arm_pcs_default): New variable.
12668 (arm_override_options): Don't fault hard calling convention with VFP.
12669 Add support for AAPCS variants.
12670 (arm_function_value): Make static. Handle AAPCS variants.
12671 (arm_libcall_value): New function.
12672 (arm_apply_result_size): Handle VFP registers in results.
12673 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
12675 (pcs_attribute_args): New variable.
12676 (arm_pcs_from_attribute): New function.
12677 (arm_get_pcs_model): New function.
12678 (aapcs_vfp_cum_init): New function.
12679 (aapcs_vfp_sub_candidate): New function.
12680 (aapcs_vfp_is_return_candidate): New function.
12681 (aapcs_vfp_is_call_candidate): New function.
12682 (aapcs_vfp_allocate): New function.
12683 (aapcs_vfp_allocate_return_reg): New function.
12684 (aapcs_vfp_advance): New function.
12685 (aapcs_cp_arg_layout): New variable.
12686 (aapcs_select_call_coproc): New function.
12687 (aapcs_select_return_coproc): New function.
12688 (aapcs_allocate_return_reg): New function.
12689 (aapcs_libcall_value): New function.
12690 (aapcs_layout_arg): New function.
12691 (arm_init_cumulative_args): Initialize AAPCS args data.
12692 (arm_function_arg): Handle AAPCS variants using new interface.
12693 (arm_arg_parital_bytes): Likewise.
12694 (arm_function_arg_advance): New function.
12695 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
12696 calling conventions.
12697 (arm_setup_incoming_varargs): Handle new AAPCS args data.
12698 * arm.h (NUM_VFP_ARG_REGS): Define.
12699 (LIBCALL_VALUE): Update.
12700 (FUNCTION_VALUE): Delete.
12701 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
12702 (arm_pcs): New enum.
12703 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
12704 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
12705 (FUNCTION_ARG_REGNO_P): Add VFP regs.
12706 * arm-protos.h (arm_function_arg_advance): Add.
12707 (aapcs_libcall_value): Add.
12708 (arm_function_value): Delete.
12710 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
12711 H.J. Lu <hongjiu.lu@intel.com>
12714 * config/i386/i386.c (standard_sse_mode_p): Remove.
12715 (standard_sse_constant_p): Return 2 for integer mode
12716 vector_all_ones_operand when SSE2 is enabled.
12717 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
12718 (ix86_expand_vector_move): Do not check for negative values from
12719 standard_sse_constant_p.
12721 2009-08-06 Richard Guenther <rguenther@suse.de>
12723 * tree-ssa.c (useless_type_conversion_p_1): Make function and
12724 array type comparisons frontend independent.
12725 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
12726 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
12727 out array reference lower bound and element size operands.
12728 (ao_ref_init_from_vn_reference): Properly compute the offset
12729 for ARRAY_RANGE_REF.
12730 (vn_reference_fold_indirect): Fill out array reference lower
12731 bound and element size operands.
12732 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
12733 a non gimple valued reference operand which can happen for
12734 array reference lower bound or element size.
12735 (create_component_ref_by_pieces_1): Properly generate the
12736 element size operand for array references.
12738 2009-08-06 Richard Guenther <rguenther@suse.de>
12740 PR tree-optimization/40964
12741 * tree.c (iterative_hash_host_wide_int): Export.
12742 * tree.h (iterative_hash_host_wide_int): Declare.
12743 * tree-ssa-structalias.c (heapvar_map): New struct.
12744 (heapvar_map_eq): New function.
12745 (heapvar_map_hash): Likewise.
12746 (heapvar_lookup): Adjust.
12747 (heapvar_insert): Likewise.
12748 (make_constraint_from_heapvar): Allow multiple heap variables
12749 per decl at different offsets.
12750 (init_alias_heapvars): Adjust.
12752 2009-08-04 David Daney <ddaney@caviumnetworks.com>
12754 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
12755 * mips_output_sync_loop (mips_output_sync_loop): Only emit
12756 trailing sync if TARGET_SYNC_AFTER_SC.
12758 2009-08-05 David Daney <ddaney@caviumnetworks.com>
12760 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
12761 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
12762 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
12763 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
12764 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
12765 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
12766 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
12767 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
12768 test_and_set_12): Rewrite calls to mips_output_sync_loop.
12769 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
12770 the prototype declaration match the definition.
12771 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
12772 instructions explicitly. Add barrier_before and operands
12774 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
12775 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
12776 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
12777 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
12778 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
12779 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
12781 2009-08-05 Andrew Pinski <pinskia@gmail.com>
12783 * tree-ssa-alias.c: Fix intervals to use [) syntax.
12785 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
12786 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
12789 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
12792 2009-08-05 Jakub Jelinek <jakub@redhat.com>
12794 PR rtl-optimization/40924
12795 * dse.c (canon_address): Before calling cselib_expand_value_rtx
12796 make sure canon_rtx (mem_address) isn't simpler than
12797 canon_rtx (expanded_mem_address).
12799 2009-08-05 Li Feng <nemokingdom@gmail.com>
12801 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
12802 for each poly_bb_p.
12803 (build_scop_drs): Build alias set for each SCoP.
12805 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
12807 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
12808 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
12809 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
12810 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12811 (BASE_DRIVER_SELF_SPECS): Likewise.
12813 2009-08-04 Andrew Pinski <pinskia@gmail.com>
12815 * tree-ssa-alias.c: Fix some comment typos.
12817 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
12819 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
12820 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
12822 2009-08-03 Janis Johnson <janis187@us.ibm.com>
12825 * simplify-rtx.c (simplify_binary_operation_1): Disable
12826 simplifications for decimal float operations.
12828 2009-08-03 Jakub Jelinek <jakub@redhat.com>
12830 PR middle-end/40943
12831 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
12832 operand of INDIRECT_REF.
12834 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
12836 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
12837 constants referencing TLS symbols.
12839 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12841 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
12842 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
12844 2009-08-03 Richard Guenther <rguenther@suse.de>
12846 * tree.c (make_vector_type): Build a main variant first,
12847 get the canonical one and then build the variant.
12848 * tree-ssa.c (useless_type_conversion_p_1): Handle
12850 (useless_type_conversion_p): Conversions to pointers to
12851 incomplete record types are useless.
12853 2009-08-03 Richard Guenther <rguenther@suse.de>
12855 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
12856 file will be created.
12857 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
12858 * toplev.c (compile_file): Adjust comment.
12860 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
12862 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
12863 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
12864 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12865 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
12866 (sh_promote_function_mode): Fix typo.
12868 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
12870 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
12872 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12874 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
12875 declaration arguments.
12877 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
12879 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
12880 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
12881 (ix86_split_ashl): Ditto.
12882 (ix86_expand_vector_init_one_nonzero): Ditto.
12883 (ix86_expand_vector_set): Ditto.
12884 (ix86_expand_reduc_v4sf): Ditto.
12886 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
12888 * explow.c (promote_function_mode): Remove assert.
12889 * config/sh/sh.c (sh_promote_function_mode): Declare.
12891 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12893 * config/pa/pa.c (pa_promote_function_mode): Declare.
12894 Change to static. Fix promote_mode call.
12896 * gthr-dce.h (CONST_CAST2): Define if not defined.
12897 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
12899 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
12901 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
12903 * expr.c (store_constructor): Use promote_decl_mode. Remove
12904 now write-only variable unsignedp.
12905 (expand_expr_real_1): Use promote_decl_mode.
12906 * expr.h (promote_function_mode, promote_decl_mode): New.
12907 (promote_mode): Remove last argument.
12908 * function.c (assign_temp): Drop last argument of promote_mode.
12909 (assign_parm_find_data_types): Use promote_function_mode.
12910 (assign_parm_setup_reg): Likewise.
12911 (expand_function_end): Use promote_function_mode.
12912 * calls.c (initialize_argument_information): Use promote_function_mode.
12913 (precompute_arguments): Use promote_mode instead of checking if
12914 only PROMOTE_FUNCTION_MODE is defined.
12915 (expand_call): When making sibcall decisions, use promote_function_mode.
12916 Below, remove an if for targetm.calls.promote_function_return and
12917 and use promote_function_mode.
12918 (emit_library_call_value_1): Use promote_function_mode, fix bug
12919 where promote_mode was passed FOR_CALL == 0 for a return value in an
12921 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
12922 * explow.c (promote_function_mode, promote_decl_mode): New.
12923 (promote_mode): Keep only the FOR_CALL == 0 case.
12924 * combine.c (setup_incoming_promotion): Remove test of
12925 promote_function_args. Use promote_function_mode.
12926 * stmt.c (expand_value_return): Use promote_decl_mode.
12927 (expand_decl): Use promote_decl_mode.
12929 * expr.c (store_constructor): Use promote_decl_mode. Remove
12930 now write-only variable unsignedp.
12931 (expand_expr_real_1): Use promote_decl_mode.
12932 * expr.h (promote_function_mode, promote_decl_mode): New.
12933 (promote_mode): Remove last argument.
12934 * function.c (assign_temp): Drop last argument of promote_mode.
12935 (assign_parm_find_data_types): Use promote_function_mode.
12936 (assign_parm_setup_reg): Likewise.
12937 (expand_function_end): Use promote_function_mode.
12938 * calls.c (initialize_argument_information): Use promote_function_mode.
12939 (precompute_arguments): Use promote_mode instead of checking if
12940 only PROMOTE_FUNCTION_MODE is defined.
12941 (expand_call): When making sibcall decisions, use promote_function_mode.
12942 Below, remove an if for targetm.calls.promote_function_return and
12943 and use promote_function_mode.
12944 (emit_library_call_value_1): Use promote_function_mode, fix bug
12945 where promote_mode was passed FOR_CALL == 0 for a return value in an
12947 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
12948 * explow.c (promote_function_mode, promote_decl_mode): New.
12949 (promote_mode): Keep only the FOR_CALL == 0 case.
12950 * combine.c (setup_incoming_promotion): Remove test of
12951 promote_function_args. Use promote_function_mode.
12952 * stmt.c (expand_value_return): Use promote_decl_mode.
12953 (expand_decl): Use promote_decl_mode.
12955 * explow.c (promote_function_mode): Just call the target hook.
12956 * targhooks.c (default_promote_function_mode,
12957 default_promote_function_mode_always_promote): New.
12958 * targhooks.h (default_promote_function_mode,
12959 default_promote_function_mode_always_promote): Declare.
12960 * target.h (promote_function_args, promote_function_return): Remove.
12961 (promote_function_mode): New.
12962 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
12963 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
12964 (TARGET_PROMOTE_FUNCTION_MODE): New.
12965 (TARGET_CALLS): Adjust.
12966 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
12967 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
12969 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
12970 * config/s390/s390.c (s390_promote_function_mode): ... here,
12971 with pointer handling.
12972 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12973 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
12975 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
12976 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
12977 with pointer handling.
12978 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12979 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
12981 * config/sh/sh-protos.h (sh_promote_function_mode): New.
12982 * config/sh/sh.c (sh_promote_function_mode): New.
12983 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12984 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
12986 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
12987 * config/cris/cris.c (cris_promote_function_mode): ... here.
12988 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12989 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
12991 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
12992 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
12993 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12994 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
12996 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
12997 * config/arm/arm.c (arm_promote_function_mode): ... here, without
12998 complex type handling.
12999 (TARGET_PROMOTE_FUNCTION_MODE): Define.
13000 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13002 * config/pa/pa.c (pa_promote_function_mode): New.
13003 (TARGET_PROMOTE_FUNCTION_MODE): Define.
13004 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13006 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
13007 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13008 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
13009 * config/xtensa/xtensa.c: Likewise.
13010 * config/stormy16/stormy16.c: Likewise.
13011 * config/iq2000/iq2000.c: Likewise.
13012 * config/rs6000/rs6000.c: Likewise.
13013 * config/picochip/picochip.c: Likewise.
13014 * config/arc/arc.c: Likewise.
13015 * config/mcore/mcore.c: Likewise.
13016 * config/score/score.c: Likewise.
13017 * config/mips/mips.c: Likewise.
13018 * config/bfin/bfin.c: Likewise.
13019 * config/ia64/ia64.c: Likewise (disabled though).
13021 * config/frv/frv.h: Remove pointless remark.
13023 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
13024 TARGET_PROMOTE_FUNCTION_ARGS,
13025 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
13026 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
13028 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
13030 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
13031 -floop-parallelize-all.
13032 * toplev.c (process_options): Rename flag_graphite_force_parallel to
13033 flag_loop_parallelize_all.
13034 * tree-ssa-loop.c (gate_graphite_transforms): Same.
13035 * graphite.c (graphite_transform_loops): Same.
13036 * common.opt: Same.
13037 * graphite-poly.c (apply_poly_transforms): Same.
13039 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
13041 PR tree-optimization/40914
13042 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
13043 if set, then check the delta field of the PMF record.
13044 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
13045 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
13046 call is stored in the delta.
13048 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
13050 * config/mips/mips.md (*clear_upper32_dext): New pattern.
13052 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
13054 * config/i386/bsd.h (ASM_BYTE): New define.
13055 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
13056 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
13057 .byte. Use fputs or putc instead of fprintf where appropriate.
13058 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
13059 fputs or putc instead of fprintf where appropriate.
13060 * config/i386/i386elf.h: Ditto.
13061 * config/i386/sysv4.h: Ditto.
13063 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
13064 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
13065 (*tls_global_dynamic_64): Ditto.
13067 2009-07-31 Christian Bruel <christian.bruel@st.com>
13069 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
13071 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13073 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
13074 Remove dead code for MINUS.
13076 2009-07-31 Anthony Green <green@moxielogic.com>
13078 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
13080 (moxie_expand_epilogue): Ditto for epilogue.
13081 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
13082 incoming arguments.
13083 (moxie_function_arg): Ditto.
13084 (moxie_pass_by_reference): Ditto.
13085 (moxie_arg_partial_bytes): Ditto.
13086 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
13087 (FUNCTION_ARG_ADVANCE) Ditto.
13088 (REG_PARM_STACK_SPACE) Ditto.
13089 (FUNCTION_ARG_REGNO_P) Dito.
13091 * config.gcc: Add moxie linux config support.
13092 * gcc/config/moxie/uclinux.h: New file.
13094 2009-07-31 DJ Delorie <dj@redhat.com>
13096 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13097 (UNSPECV_SP_SWITCH_E): New.
13098 (sp_switch_1): Change to an unspec.
13099 (sp_switch_2): Change to an unspec. Don't use post-inc when we
13101 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
13102 reference the new stack's address
13104 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13106 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
13107 graphite-clast-to-gimple.o, graphite-dependences.o,
13108 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
13109 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
13110 (graphite-blocking.o,
13111 graphite-clast-to-gimple.o, graphite-dependences.o,
13112 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
13113 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
13114 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
13115 * cfgloop.h (struct loop): Add can_be_parallel field.
13116 * common.opt (fgraphite-identity): Moved up.
13117 (fgraphite-force-parallel): New flag.
13118 * graphite.c: Rewrite.
13119 * graphite.h: Rewrite.
13120 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
13122 * toplev.c (graphite_out_file): New file descriptor.
13123 (graphite_in_file): New.
13124 (process_options): flag_graphite_force_parallel cannot be used without
13126 * tree-ssa-loop.c: Include toplev.h.
13127 (gate_graphite_transforms): Enable flag_graphite for
13128 flag_graphite_force_parallel.
13130 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13132 * ChangeLog.graphite: New.
13133 * graphite-blocking.c: New.
13134 * graphite-clast-to-gimple.c: New.
13135 * graphite-clast-to-gimple.h: New.
13136 * graphite-dependences.c: New.
13137 * graphite-dependences.h: New.
13138 * graphite-interchange.c: New.
13139 * graphite-poly.c: New.
13140 * graphite-poly.h: New.
13141 * graphite-ppl.c: New.
13142 * graphite-ppl.h: New.
13143 * graphite-scop-detection.c: New.
13144 * graphite-scop-detection.h: New.
13145 * graphite-sese-to-poly.c: New.
13146 * graphite-sese-to-poly.h: New.
13150 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13152 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
13153 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
13155 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13157 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
13158 (scev_is_linear_expression): Return false if the evolution is not
13159 affine multivariate.
13161 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13163 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
13164 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
13166 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13168 * tree-data-ref.c (debug_data_references): New.
13169 (debug_data_reference): New.
13170 * tree-data-ref.h (debug_data_references): Declared.
13171 (debug_data_reference): Declared.
13173 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13175 * tree-data-ref.c (stmt_simple_memref_p: Removed.
13176 * tree-data-ref.h (scop_p): Removed.
13177 (struct data_reference): Remove field scop.
13178 (DR_SCOP): Removed.
13179 (stmt_simple_memref_p): Removed.
13181 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13183 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
13184 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
13187 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13189 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
13191 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13193 * doc/invoke.texi (-fgraphite-identity): Documented.
13195 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13197 * tree-scalar-evolution.c: Fix comment.
13198 (instantiate_scev_1): Return unknow from scev instantiation if the
13199 result is not above instantiate_below.
13201 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
13203 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
13204 static anymore. Instantiate the symbols that may have been introduced
13206 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
13209 2009-07-30 DJ Delorie <dj@redhat.com>
13211 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
13212 .vliw directive to VLIW sections.
13214 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13216 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
13218 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
13219 (AUTOHEADER): New variable.
13220 ($(srcdir)/cstamp-h.in): Use it.
13222 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
13223 Pat Haugen <pthaugen@us.ibm.com>
13224 Revital Eres <ERES@il.ibm.com>
13226 * config/rs6000/vector.md (VEC_F): Add VSX support.
13229 (mov<mode>): Ditto.
13230 (vector_load_<mode>): Ditto.
13231 (vector_store_<mode>): Ditto.
13232 (vector GPR move split): Ditto.
13233 (vec_reload_and_plus_<mptrsize>): Ditto.
13234 (vec_reload_and_reg_<mptrsize>): Ditto.
13235 (add<mode>3): Ditto.
13236 (sub<mode>3): Ditto.
13237 (mul<mode>3): Ditto.
13238 (neg<mode>2): Ditto.
13239 (abs<mode>2): Ditto.
13240 (smin<mode>3): Ditto.
13241 (smax<mode>3): Ditto.
13242 (vector_eq<mode>): Ditto.
13243 (vector_gt<mode>): Ditto.
13244 (vector_ge<mode>): Ditto.
13245 (vector_gtu<mode>): Ditto.
13246 (vector_select_<mode>_uns): Ditto.
13247 (vector_eq_<mode>_p): Ditto.
13248 (vector_gt_<mode>_p): Ditto.
13249 (vector_ge_<mode>_p): Ditto.
13250 (vector_gtu_<mode>_p): Ditto.
13251 (cr6_test_for_zero): Ditto.
13252 (cr6_test_for_zero_reverse): Ditto.
13253 (cr6_test_for_lt): Ditto.
13254 (cr6_test_for_lt_reverse): Ditto.
13255 (xor<mode>3): Ditto.
13256 (ior<mode>3): Ditto.
13257 (and<mode>3): Ditto.
13258 (one_cmpl<mode>2): Ditto.
13259 (nor<mode>2): Ditto.
13260 (andc<mode>2): Ditto.
13261 (float<VEC_int<mode>2): Ditto.
13262 (unsigned_float<VEC_int><mode>2): Ditto.
13263 (fix_trunc<mode><VEC_int>2): Ditto.
13264 (fixuns_trunc<mode><VEC_int>2): Ditto.
13266 (vec_set<mode>): Ditto.
13267 (vec_extract<mode>): Ditto.
13268 (vec_interleave_highv4sf): Ditto.
13269 (vec_interleave_lowv4sf): Ditto.
13270 (vec_realign_load_<mode>): Ditto.
13271 (vec_shl_<mode>): Ditto.
13272 (vec_shr_<mode>): Ditto.
13273 (div<mode>3): New patterns for VSX.
13274 (vec_interleave_highv2df): Ditto.
13275 (vec_interleave_lowv2df): Ditto.
13276 (vec_pack_trunc_v2df): Ditto.
13277 (vec_pack_sfix_trunc_v2df): Ditto.
13278 (vec_pack_ufix_trunc_v2df): Ditto.
13279 (vec_unpacks_hi_v4sf): Ditto.
13280 (vec_unpacks_lo_v4sf): Ditto.
13281 (vec_unpacks_float_hi_v4si): Ditto.
13282 (vec_unpacks_float_lo_v4si): Ditto.
13283 (vec_unpacku_float_hi_v4si): Ditto.
13284 (vec_unpacku_float_lo_v4si): Ditto.
13285 (movmisalign<mode>): Ditto.
13286 (vector_ceil<mode>2): New patterns for vectorizing math library.
13287 (vector_floor<mode>2): Ditto.
13288 (vector_btrunc<mode>2): Ditto.
13289 (vector_copysign<mode>3): Ditto.
13291 * config/rs6000/predicates.md (easy_vector_constant_msb): New
13292 predicate for setting the high bit in each word, used for copysign.
13294 * config/rs6000/ppc-asm.h (f19): Whitespace.
13295 (f32-f63): Define if VSX.
13296 (v0-v31): Define if Altivec.
13297 (vs0-vs63): Define if VSX.
13299 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
13301 * config/rs6000/power7.md: New file, provide tuning parameters for
13304 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
13305 (rs6000_cpu_cpp_builtins): Ditto.
13306 (altivec_overloaded_builtins): Ditto.
13307 (altivec_resolve_overloaded_builtin): Ditto.
13309 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
13310 debug switch to disable vectorizing simple math builtin
13313 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
13314 Vectorize simple math builtin functions.
13315 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
13316 hook to vectorize math builtins.
13317 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
13318 (rs6000_builtin_conversion): Add VSX/power7 support.
13319 (rs6000_builtin_vec_perm): Ditto.
13320 (vsplits_constant): Add support for loading up a vector constant
13321 with just the high bit set in each part.
13322 (rs6000_expand_vector_init): Add VSX/power7 support.
13323 (rs6000_expand_vector_set): Ditto.
13324 (rs6000_expand_vector_extract): Ditto.
13325 (rs6000_emit_move): Ditto.
13326 (bdesc_3arg): Ditto.
13327 (bdesc_2arg): Ditto.
13328 (bdesc_1arg): Ditto.
13329 (rs6000_expand_ternop_builtin): Ditto.
13330 (altivec_expand_builtin): Ditto.
13331 (rs6000_expand_unop_builtin): Ditto.
13332 (rs6000_init_builtins): Ditto.
13333 (altivec_init_builtins): Ditto.
13334 (builtin_function_type): Ditto.
13335 (rs6000_common_init_builtins): Ditto.
13336 (rs6000_handle_altivec_attribute); Ditto.
13337 (rs6000_mangle_type): Ditto.
13338 (rs6000_vector_mode_supported_p): Ditto.
13339 (rs6000_mode_dependent_address): Altivec addresses with AND -16
13340 are mode dependent.
13342 * config/rs6000/vsx.md: New file for VSX support.
13344 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
13345 identifing values with just the most significant bit set.
13346 (enum rs6000_builtins): Add builtins for VSX. Add simple math
13347 vectorized builtins.
13349 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
13350 (UNSPEC_VRFIM): Delete.
13351 (splitter for loading up vector with most significant bit): New
13352 splitter for vectorizing copysign.
13353 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
13354 vectorizing simple math functions.
13355 (altivec_vrfip): Add support for vectorizing simple math functions.
13356 (altivec_vrfim): Ditto.
13357 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
13359 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
13360 (power7.md, vsx.md): Include for power7 support.
13361 (copysigndf3): Use VSX instructions if -mvsx.
13362 (negdf2_fpr): Ditto.
13363 (absdf2_fpr): Ditto.
13364 (nabsdf2_fpr): Ditto.
13365 (adddf3_fpr): Ditto.
13366 (subdf3_fpr): Ditto.
13367 (muldf3_fpr): Ditto.
13368 (divdf3_fpr): Ditto.
13369 (fix_truncdfdi2_fpr): Ditto.
13370 (cmpdf_internal1): Ditto.
13371 (fred, fred_fpr): Convert into expander/insn to add VSX support.
13372 (btruncdf2, btruncdf2_fpr): Ditto.
13373 (ceildf2, ceildf2_fpr): Ditto.
13374 (floordf2, floordf2_fpr): Ditto.
13375 (floatdidf2, floatdidf2_fpr): Ditto.
13376 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
13377 (fmsubdf4_fpr): Ditto.
13378 (fnmadddf4_fpr_1): Ditto.
13379 (fnmadddf4_fpr_2): Ditto.
13380 (fnmsubdf4_fpr_1): Ditto.
13381 (fnmsubdf4_fpr_2): Ditto.
13382 (fixuns_truncdfdi2): Add expander for VSX support.
13383 (fix_truncdfdi2): Ditto.
13384 (fix_truncdfsi2): Ditto.
13385 (ftruncdf2): Ditto.
13386 (btruncsf2): Whitespace.
13387 (movdf_hardfloat32): Add support for VSX registers.
13388 (movdf_softfloat32): Ditto.
13389 (movdf_hardfloat64): Ditto.
13390 (movdf_hardfloat64_mfpgpr): Ditto.
13391 (movdf_softfloat64): Ditto.
13392 (movti splitters): Add check for vector registers supporting
13393 TImode in the future.
13394 (bpermd): Add power7 bpermd instruction.
13396 * config/rs6000/altivec.h (vec_div): Define if VSX.
13399 (vec_nmadd): Ditto.
13400 (vec_nearbyint): Ditto.
13403 (all predicates): Use the generic builtin function, and not the V4SF
13404 specific function so that the predicates will work with VSX's V2DF.
13405 (vec_all_*): Ditto.
13406 (vec_any_*): Ditto.
13408 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
13409 Document new VSX functions and types.
13411 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
13414 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
13415 "wa", and "j" constraints. Modify "v" to talk about Altivec
13416 instead of just vector.
13418 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
13421 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
13422 location for phi arguments.
13423 (rewrite_update_phi_arguments): Find locations for reaching defs.
13424 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
13425 Add location to add_phi_arg calls.
13426 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
13427 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
13428 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
13429 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
13430 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
13431 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
13432 * tree-phinodes.c (make_phi_node): Initialize location.
13433 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
13434 (add_phi_arg): Add location parameter.
13435 (remove_phi_arg_num): Move location when moving phi argument.
13436 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
13438 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
13439 slpeel_update_phi_nodes_for_guard1,
13440 slpeel_update_phi_nodes_for_guard2,
13441 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
13442 vect_loop_versioning): Set locations.
13443 * tree-parloops.c (create_phi_for_local_result,
13444 transform_to_exit_first_loop, create_parallel_loop): Add locations.
13445 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
13446 * tree-vect-loop.c (get_initial_def_for_induction,
13447 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
13449 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
13450 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
13451 (gimple_phi_arg_set_location): New. Set locus.
13452 (gimple_phi_arg_has_location): New. Check for locus.
13453 (redirect_edge_var_map_location): New. Return locus from var_map.
13454 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
13455 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
13456 combining PHI arguments.
13457 (cond_store_replacement): Set location.
13458 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
13459 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
13460 scop_add_exit_phis_edge): Add locations.
13461 * tree-cfgcleanup.c (remove_forwarder_block,
13462 remove_forwarder_block_with_phi): Add locations.
13463 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
13464 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
13466 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
13467 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
13468 flush_pending_stmts): Add source location.
13469 * lambda-code.c (perfect_nestify): Maintain location stack with argument
13470 stack to preserve locations.
13471 * tree-vect-stmts.c (vectorizable_load): Add location.
13472 * tree-inline.c (copy_phis_for_bb): Copy locus.
13473 (setup_one_parameter): Add call locus to inlined parameter stmts.
13474 (initialize_inlined_parameters): Pass in call location as parameter
13476 (tree_function_versioning): Pass location to setup_one_parameter.
13477 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
13478 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
13479 copy and edge lists.
13480 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
13481 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
13482 locus parameter and override the stmt default if provided.
13483 (new_elim_graph, clear_elim_graph, delete_elim_graph,
13484 elim_graph_add_edge, elim_graph_remove_succ_edge,
13485 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
13486 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
13487 eliminate_phi): Add locus info in elimination graph for each edge and
13489 (insert_backedge_copies): Copy locus if present.
13490 * tree-flow.h (struct _edge_var_map): Add locus field.
13491 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
13492 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
13493 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
13495 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
13497 2009-07-30 Martin Jambor <mjambor@suse.cz>
13499 PR tree-optimization/40570
13500 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
13501 use inlining loops.
13503 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
13505 * ssa-loop-manip.c: Include langhooks.h.
13506 (rewrite_phi_with_iv): New.
13507 (rewrite_all_phi_nodes_with_iv): New.
13508 (canonicalize_loop_ivs): Move here from tree-parloops.c.
13509 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
13510 * tree-parloops.c (loop_parallel_p): Move out all conditions
13511 except dependency check.
13512 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
13513 (gen_parallel_loop): Call canonicalize_loop_ivs without
13514 reduction_list argument.
13515 (build_new_reduction): New.
13516 (gather_scalar_reductions): New.
13517 (try_get_loop_niter): New.
13518 (try_create_reduction_list): New.
13519 (parallleize_loops): Change the parallel conditions check.
13520 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
13521 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
13523 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
13525 * opt-functions.awk (opt_args): Allow argument to be enclosed in
13527 * doc/options.texi (Option properties): Mention new quoting syntax.
13529 2009-07-29 Douglas B Rupp <rupp@gnat.com>
13531 * config/alpha/alpha.c (alpha_start_function):
13532 Handle VMS_DEBUG_MAIN_POINTER
13533 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
13534 * doc/invoke.texi: Document -mdebug-main switch.
13536 2009-07-29 Richard Henderson <rth@redhat.com>
13538 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
13539 (cgraph_create_edge_including_clones): Likewise.
13540 * tree-inline.c (copy_bb): Operate on the correct edges
13541 when updating the callgraph.
13543 2009-07-29 Douglas B Rupp <rupp@gnat.com>
13545 * config/alpha/vms-cc.c: Deleted.
13546 * config/alpha/vms-ld.c: Deleted.
13547 * config/alpha/t-vms64: Moved to config/vms
13548 * config/alpha/vms-crt0-64.c: Moved to config/vms
13549 * config/alpha/vms-crt0.c: Moved to config/vms
13550 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
13551 * config/alpha/vms-psxcrt0.c: Moved to config/vms
13552 * config/alpha/xm-vms.h: Moved to config/vms
13553 * config/alpha/x-vms: Moved to config/vms
13554 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
13556 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
13557 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
13559 * config/vms/t-vms64: Moved here from config/alpha
13560 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
13561 (argc,argv,envp): Enforce 32bit malloc'ing.
13562 * config/vms/vms-psxcrt0-64.c: Likewise.
13563 * config/vms/vms-crt0.c: Moved here from config/alpha.
13564 * config/vms/vms-psxcrt0.c: Likewise.
13565 * config/vms/vms-crtl-64.h: New file.
13566 * config/vms/vms-crtl.h: New file.
13567 * config/vms/vms.opt: New file.
13568 * config/vms/xm-vms64.h: New file.
13569 * config/vms/xm-vms.h: Moved here from config/alpha.
13570 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
13572 * config/vms/x-vms: Moved here from config/alpha.
13573 (version, VMS_EXTRA_PARTS): Moved to t-vms.
13574 (vms-ld.o, vms-cc.o): Removed.
13575 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
13577 2009-07-29 Douglas B Rupp <rupp@gnat.com>
13579 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
13580 correct stack (obvious VMS fix).
13582 2009-07-29 Douglas B Rupp <rupp@gnat.com>
13584 * dwarf2out.c (output_file_names): Output VMS style file name, size,
13585 date, version info if VMS_DEBUGGING_INFO defined.
13586 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
13587 size, date calculating code moved here.
13589 2009-07-29 Paul Brook <paul@codesourcery.com>
13591 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
13594 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
13597 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
13598 to DImode when generating insq_le insn.
13600 2009-07-28 Douglas B Rupp <rupp@gnat.com>
13602 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
13603 New macro set for VMS_DEBUGGGING_INFO.
13604 (AT_string_form): Use it.
13606 2009-07-28 DJ Delorie <dj@redhat.com>
13608 * config/mep/mep.c (vtext_section): New.
13609 (vftext_section): New.
13610 (ftext_section): New.
13611 (mep_select_section): Add support for functions.
13612 (mep_unique_section): Likewise.
13613 (mep_asm_init_sections): Likewise.
13614 (mep_encode_section_info): Remove it from here.
13616 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
13618 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
13620 * tree.h (TREE_DEPRECATED): Document it is used for types too.
13621 (TYPE_VECTOR_OPAQUE): Use default_def_flag
13623 2009-07-28 Douglas B Rupp <rupp@gnat.com>
13625 * dwarf2out.c (output_file_names): Test new macro
13626 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
13627 (add_comp_dir_attribute): Likewise.
13629 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
13631 * config/i386/mingw-w64.h (LINK_SPEC): Add
13632 separating space between commands.
13634 2009-07-28 Jan Hubicka <jh@suse.cz>
13636 PR tree-optimization/40759
13637 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
13640 2009-07-27 DJ Delorie <dj@redhat.com>
13642 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
13643 types are dword-aligned.
13644 (mep_expand_va_start): Likewise.
13646 2009-07-27 Olivier Hainque <hainque@adacore.com>
13647 Douglas B Rupp <rupp@gnat.com>
13649 * convert.c (convert_to_pointer): Don't assume the target
13650 pointer type is POINTER_SIZE long. Fetch its precision instead.
13652 2009-07-27 Douglas B Rupp <rupp@gnat.com>
13654 * system.h (fopen): Undefine if macro.
13656 2009-07-27 Jakub Jelinek <jakub@redhat.com>
13658 * dwarf2out.c (output_cfi_p): Removed.
13659 (output_cfis): New function.
13660 (output_fde): New function, split from output_call_frame_info.
13661 (output_call_frame_info): Use it.
13662 (dwarf2out_switch_text_section): Use output_cfis.
13664 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
13666 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
13667 TARGET_BI_ARCH is specified without enabling SJLJ.
13668 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
13669 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
13671 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
13673 * arm.md (negdi2): Use DImode if forcing a value into a register.
13675 2009-07-26 Ira Rosen <irar@il.ibm.com>
13677 PR tree-optimization/40801
13678 * tree-vect-stmts.c (vectorizable_call): Get previous copy
13679 of vector operand from the previous copy of vector statement.
13680 Pass the correct definition type value to
13681 vect_get_vec_def_for_stmt_copy().
13683 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13685 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
13686 const char ** conversion.
13688 2009-07-25 David Daney <ddaney@caviumnetworks.com>
13690 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
13691 fancy_abort() if !ENABLE_ASSERT_CHECKING.
13692 (gcc_unreachable): Invoke __builtin_unreachable() if
13693 !ENABLE_ASSERT_CHECKING.
13695 2009-07-25 David Daney <ddaney@caviumnetworks.com>
13697 PR rtl-optimization/40445
13698 * emit-rtl.c (next_nonnote_insn_bb): New function.
13699 * rtl.h (next_nonnote_insn_bb): Declare new function.
13700 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
13701 with no successors that is the successor of the ENTRY_BLOCK.
13702 Continue from the top after removing an empty fallthrough block.
13703 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
13704 of next_nonnote_insn.
13706 2009-07-25 David Daney <ddaney@caviumnetworks.com>
13708 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
13710 2009-07-25 Martin Jambor <mjambor@suse.cz>
13712 * c-common.c (c_common_attribute_table): New element for noclone.
13713 (handle_noclone_attribute): New function. Forward-declare.
13714 * tree-inline.c (tree_versionable_function_p): Check for noclone
13716 * doc/extend.texi (Labels as Values): Document need for noclone.
13717 (Function Attributes): Document noclone attribute.
13719 2009-07-25 Jakub Jelinek <jakub@redhat.com>
13721 PR rtl-optimization/34999
13722 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
13723 and dw_fde_switched_cold_to_hot fields.
13724 (output_cfi_p): New function.
13725 (output_call_frame_info): If fde->dw_fde_switched_sections,
13726 output 2 FDEs instead of one with corrupted header.
13727 (dwarf2out_do_cfi_startproc): New function.
13728 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
13729 and fde->dw_fde_switched_cold_to_hot.
13730 (dwarf2out_switch_text_section): Compute
13731 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
13732 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
13733 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
13734 Otherwise, compute fde->dw_fde_switch_cfi.
13736 2009-07-24 Cary Coutant <ccoutant@google.com>
13738 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
13740 2009-07-24 Cary Coutant <ccoutant@google.com>
13742 * cfghooks.c (split_block): Copy discriminator to new block.
13743 * tree-cfg.c (assign_discriminator): Check location of last
13744 instruction in block as well as first.
13746 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
13748 * config/i386/linux.c: Use fputs or putc instead of fprintf
13750 * config/i386/gas.h: Ditto.
13751 * config/i386/x86-64.h: Ditto.
13752 * config/i386/att.h: Ditto.
13754 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13756 * expmed.c (emit_store_flag): Use a recursive call to optimize the
13759 2009-07-24 Martin Jambor <mjambor@suse.cz>
13761 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
13762 (ipa_push_func_to_list_1): Declare.
13763 (ipa_push_func_to_list): New function.
13765 * ipa-prop.c (ipa_push_func_to_list_1): New function.
13766 (ipa_init_func_list): Call ipa_push_func_to_list_1.
13767 (ipa_push_func_to_list): Removed.
13768 (ipa_pop_func_from_list): Clear node_enqueued flag.
13770 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
13772 * config/s390/s390.c (override_options): Default
13773 max-unrolled-insns to 100 for z10 tuning.
13775 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
13777 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
13778 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
13779 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
13780 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
13781 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
13782 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
13783 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
13785 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
13787 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
13788 use default set in mingw32.h header.
13789 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
13790 64-bit /mingw/include path.
13791 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
13794 2009-07-23 Neil Vachharajani <nvachhar@google.com>
13796 PR rtl-optimization/40209
13797 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
13799 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
13801 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
13802 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
13803 with the rest of string where appropriate. Use fputs or putc
13804 instead of fprintf where appropriate.
13806 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13807 Pat Haugen <pthaugen@us.ibm.com>
13808 Revital Eres <ERES@il.ibm.com>
13810 * config/rs6000/vector.md: New file. Move most of the vector
13811 expander support here from altivec.md to allow for the VSX vector
13812 unit in the future. Add support for secondary_reload patterns.
13813 Rewrite the patterns for vector comparison, and vector comparison
13814 predicate instructions so that the RTL expresses the desired
13815 behavior, instead of using unspec.
13817 * config/rs6000/constraints.md ("f" constraint): Use
13818 rs6000_constraints to hold the precalculated register class.
13819 ("d" constraint): Ditto.
13820 ("wd" constraint): New constraint for VSX.
13821 ("wf" constraint): Ditto.
13822 ("ws" constraint): Ditto.
13823 ("wa" constraint): Ditto.
13824 ("wZ" constraint): Ditto.
13825 ("j" constraint): Ditto.
13827 * config/rs6000/predicates.md (vsx_register_operand): New
13829 (vfloat_operand): New predicate for vector.md.
13830 (vint_operand): Ditto.
13831 (vlogical_operand): Ditto.
13832 (easy_fp_constant): If VSX, 0.0 is an easy constant.
13833 (easy_vector_constant): Add VSX support.
13834 (altivec_indexed_or_indirect_operand): New predicate for
13835 recognizing Altivec style memory references with AND -16.
13837 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
13838 for vector secondary reload support.
13839 (rs6000_vector_reg_class): Delete, replacing it with
13840 rs6000_constraints.
13841 (rs6000_vsx_reg_class): Ditto.
13842 (rs6000_constraints): New array to hold the register classes of
13843 each of the register constraints that can vary at runtime.
13844 (builtin_mode_to_type): New static array for builtin function type
13846 (builtin_hash_table): New static hash table for builtin function
13848 (TARGET_SECONDARY_RELOAD): Define target hook.
13849 (TARGET_IRA_COVER_CLASSES): Ditto.
13850 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
13851 registers are 128 bits if VSX memory reference instructions are used.
13852 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
13853 unit is being used.
13854 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
13855 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
13856 Print several of the scheduling related parameters.
13857 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
13858 rs6000_constraints instead of rs6000_vector_reg_class. Move
13859 -mdebug=reg code to rs6000_debug_reg_global. Add support for
13860 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
13861 Altivec. Add VSX support. Setup for secondary reload support on
13862 Altivec/VSX registers.
13863 (rs6000_override_options): Make power7 set the scheduling groups
13864 like the power5. Add support for new debug switches to override
13865 the scheduling defaults. Temporarily disable -mcpu=power7 from
13866 setting -mvsx. Add support for debug switches -malways-hint,
13867 -msched-groups, and -malign-branch-targets.
13868 (rs6000_buitlin_conversion): Add support for returning unsigned
13869 vector conversion functions to fix regressions due to stricter
13871 (rs6000_builtin_mul_widen_even): Ditto.
13872 (rs6000_builtin_mul_widen_odd): Ditto.
13873 (rs6000_builtin_vec_perm): Ditto.
13874 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
13875 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
13876 to zero a register.
13877 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
13878 generated upstream.
13879 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
13880 VSX types for bit operations. Changes to accomidate vector.md.
13881 (bdesc_2arg): Ditto.
13882 (bdesc_1arg): Ditto.
13883 (struct builtin_description_predicates): Rewrite predicate
13884 handling so that RTL describes the operation, instead of passing
13885 the instruction to be used as a string argument.
13886 (bdesc_altivec_preds): Ditto.
13887 (altivec_expand_predicate_builtin): Ditto.
13888 (altivec_expand_builtin): Ditto.
13889 (rs6000_expand_ternop_builtin): Use a switch instead of an if
13890 statement for vsldoi support.
13891 (altivec_expand_ld_builtin): Change to use new names from vector.md.
13892 (altivec_expand_st_builtin): Ditto.
13893 (paired_expand_builtin): Whitespace changes.
13894 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
13895 builtin_mode_to_type table for secondary reload. Call
13896 builtin_function_type to build random builtin functions.
13897 (altivec_init_builtins): Change to use builtin_function_type to
13898 create builtin function types dynamically as we need them.
13899 (builtin_hash_function): New support for hashing the tree types
13900 for builtin function as we need it, rather than trying to build
13901 all of the trees that we need. Add initial preliminary VSX support.
13902 (builtin_function_type): Ditto.
13903 (builtin_function_eq): Ditto.
13904 (builtin_hash_struct): Ditto.
13905 (rs6000_init_builtins): Ditto.
13906 (rs6000_common_init_builtins): Ditto.
13907 (altivec_init_builtins): Ditto.
13908 (rs6000_common_init_builtins): Ditto.
13909 (enum reload_reg_type): New enum for simplifing reg classes.
13910 (rs6000_reload_register_type): Simplify register classes into GPR,
13911 Vector, and other registers. Altivec and VSX addresses in reload.
13912 (rs6000_secondary_reload_inner): Ditto.
13913 (rs6000_ira_cover_classes): New target hook, that returns the
13914 appropriate cover classes, based on -mvsx being used or not.
13915 (rs6000_secondary_reload_class): Add VSX support.
13916 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
13917 (get_vsel_insn): Ditto.
13918 (rs6000_emit_vector_compare): Rewrite vector conditional support
13919 so that where we can, we use RTL operators, instead of blindly use
13921 (rs6000_emit_vector_select): Ditto.
13922 (rs6000_emit_vector_cond_expr): Ditto.
13923 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
13924 (create_TOC_reference): Add -mdebug=addr support.
13925 (emit_frame_save): VSX loads/stores need register indexed addressing.
13927 * config/rs6000/rs6000.md: Include vector.md.
13929 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
13931 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13932 support for V2DI, V2DF in logical, permute, select operations.
13934 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
13935 switch for vsx/power7.
13936 (-mvsx-scalar-memory): Ditto.
13937 (-mvsx-align-128): Ditto.
13938 (-mallow-movmisalign): Ditto.
13939 (-mallow-df-permute): Ditto.
13940 (-msched-groups): Ditto.
13941 (-malways-hint): Ditto.
13942 (-malign-branch-targets): Ditto.
13944 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
13946 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
13947 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
13948 (rs6000_vector_reg_class): Delete.
13949 (rs6000_vsx_reg_class): Ditto.
13950 (enum rs6000_reg_class_enum): New enum for the constraints that
13951 vary based on target switches.
13952 (rs6000_constraints): New array to hold the register class for all
13953 of the register constraints that vary based on the switches used.
13954 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
13955 (enum rs6000_builtins): Add unsigned varients for the builtin
13956 declarations returned by target hooks for expanding multiplies,
13957 select, and permute operations. Add VSX builtins.
13958 (enum rs6000_builtin_type_index): Add entries for VSX.
13959 (V2DI_type_node): Ditto.
13960 (V2DF_type_node): Ditto.
13961 (unsigned_V2DI_type_node): Ditto.
13962 (bool_long_type_node): Ditto.
13963 (intDI_type_internal_node): Ditto.
13964 (uintDI_type_internal_node): Ditto.
13965 (double_type_internal_node): Ditto.
13967 * config/rs6000/altivec.md (whole file): Move all expanders to
13968 vector.md from altivec.md. Rename insn matching functions to be
13970 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
13971 (altivec_vcmp*): Ditto.
13972 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
13973 (VM): New iterator for moves that includes the VSX types.
13974 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
13975 (altivec_vperm_<mode>_uns): New, for unsigned types.
13976 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
13977 (altivec_eq<mode>): Ditto.
13978 (altivec_gt<mode>): Ditto.
13979 (altivec_gtu<mode>): Ditto.
13980 (altivec_eqv4sf): Ditto.
13981 (altivec_gev4sf): Ditto.
13982 (altivec_gtv4sf): Ditto.
13983 (altivec_vcmpbfp_p): Ditto.
13985 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
13987 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
13990 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
13993 * config/i386/i386.c (output_387_ffreep): Rewrite to use
13994 ASM_SHORT instead of .word.
13995 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
13996 instead of .word in asm template.
13998 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
14001 * ira-lives.c (bb_has_abnormal_call_pred): New function.
14002 (process_bb_node_lives): Use it.
14004 * ira.c (setup_cover_and_important_classes): Don't setup
14005 ira_important_class_nums. Add cover classes to the end of
14007 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
14009 (find_reg_class_closure): Use reorder_important_classes.
14011 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
14013 * config/i386/i386.c (i386_ira_cover_classes): New function.
14014 (TARGET_IRA_COVER_CLASSES): Redefine.
14016 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
14017 importance of order of cover classes in the array.
14019 2009-07-22 Diego Novillo <dnovillo@google.com>
14021 * tree-pass.h (TDF_EH): Define.
14022 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
14023 contains TDF_EH, print the EH region number holding GS.
14024 * tree-dump.c (dump_options): Add "eh".
14025 * doc/invoke.texi: Document it.
14027 2009-07-22 Doug Kwan <dougkwan@google.com>
14029 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
14031 2009-07-22 Michael Matz <matz@suse.de>
14033 PR tree-optimization/35229
14034 PR tree-optimization/39300
14036 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
14037 (inhibit_phi_insertion): New function.
14038 (insert_into_preds_of_block): Call it for REFERENCEs.
14039 (init_pre): Initialize and finalize scalar evolutions.
14040 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
14042 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
14044 * config/i386/predicates.md (zero_extended_scalar_load_operand):
14045 Use CONST_VECTOR_NUNITS to determine number of elements.
14047 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
14049 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
14050 (U, W): Constraints are now deprecated and will be removed if we
14051 run out of letters.
14052 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
14054 ("prefetch"): Add the stcmh instruction for prefetching.
14055 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
14057 (s390_short_displacement): Return always true if compiling for
14058 machines not providing the long displacement facility.
14059 (s390_mem_constraint): Support the new constraint letter Z.
14060 (s390_check_qrst_address): New function.
14062 2009-07-21 DJ Delorie <dj@redhat.com>
14064 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
14067 2009-07-21 Jason Merrill <jason@redhat.com>
14069 * c-common.c (max_tinst_depth): Increase default to 1024.
14071 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
14073 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
14074 (vec_unpacku_float_lo_v4si): Ditto.
14076 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
14079 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
14080 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
14081 (builtin_description): Add __builtin_ia32_cvtudq2ps.
14082 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
14084 2009-07-21 Jakub Jelinek <jakub@redhat.com>
14086 PR tree-optimization/40813
14087 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
14090 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
14092 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
14093 with a NOP_EXPR if needed.
14095 2009-07-21 Paul Brook <paul@codesourcery.com>
14097 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
14098 Terminate debug dump with newline.
14100 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14102 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
14103 Cast "1" to unsigned HOST_WIDE_INT.
14104 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
14105 deposit length to the maximum length - lsb. Extend length if
14106 HOST_BITS_PER_WIDE_INT is 32.
14108 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
14110 * cgraph.h (constant_pool_htab): New function.
14111 (constant_descriptor_tree): Move from varasm.c.
14112 * varasm.c (constant_pool_htab): New function.
14113 (constant_descriptor_tree): Move to cgraph.h.
14115 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
14117 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
14119 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
14121 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
14124 2009-07-20 Xinliang David Li <davidxl@google.com>
14126 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
14128 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
14130 * config/mips/mips.md (move_type): Add arith.
14131 (type): Handle arith.
14132 (zero_extendsidi2): Rename this into ...
14133 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
14134 (zero_extendsidi2): New expander.
14135 (*zero_extendsidi2_dext): New pattern.
14137 2009-07-20 Nick Clifton <nickc@redhat.com>
14139 * config.gcc (mips64-*-*): Add definition of tm_defines in order
14140 to set MIPS_ABI_DEFAULT.
14141 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
14143 2009-07-20 Jakub Jelinek <jakub@redhat.com>
14145 * tree-object-size.c (addr_object_size): Handle unions with
14146 array in it as last field of structs in __bos (, 1) as __bos (, 0).
14148 PR tree-optimization/40792
14149 * tree.c (build_function_type_skip_args): Remove bogus assert.
14151 2009-07-20 Jan Hubicka <jh@suse.cz>
14152 Martin Jambor <mjambor@suse.cz>
14154 * cgraph.h (combined_args_to_skip): New field.
14155 * cgraph.c (cgraph_create_virtual_clone): Properly handle
14156 combined_args_to_skip and args_to_skip.
14157 * tree-inline.c (update_clone_info): New function.
14158 (tree_function_versioning): Call update_clone_info.
14159 * cgraphunit.c (cgraph_materialize_clone): Dump materialized
14161 (cgraph_materialize_all_clones): More extensive dumping, working
14162 with combined_args_to_skip rather than args_to_skip.
14164 2009-07-20 Ira Rosen <irar@il.ibm.com>
14166 * tree-vectorizer.h (vectorizable_condition): Add parameters.
14167 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
14168 (get_initial_def_for_reduction): Likewise.
14169 (vectorizable_reduction): Skip the check of first operand in case
14170 of COND_EXPR. Add check that it is outer loop vectorization if
14171 nested cycle was detected. Call vectorizable_condition() for
14172 COND_EXPR. If reduction epilogue cannot be created do not fail for
14173 nested cycles (if it is not double reduction). Assert that there
14174 is only one type in the loop in case of COND_EXPR. Call
14175 vectorizable_condition() to vectorize COND_EXPR.
14176 * tree-vect-stmts.c (vectorizable_condition): Update comment.
14177 Add parameters. Allow nested cycles if called from
14178 vectorizable_reduction(). Use reduction vector variable if provided.
14179 (vect_analyze_stmt): Call vectorizable_reduction() before
14180 vectorizable_condition().
14181 (vect_transform_stmt): Update call to vectorizable_condition().
14183 2009-07-20 Christian Bruel <christian.bruel@st.com>
14185 * config/sh/sh.opt (-mfmovd): Resurrect and document.
14186 * doc/invoke.texi (-mfmovd): Likewise.
14187 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
14189 2009-07-20 Jan Hubicka <jh@suse.cz>
14191 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
14192 when handling SSA name.
14194 2009-07-19 Jan Hubicka <jh@suse.cz>
14196 PR tree-optimization/40676
14197 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
14198 virtual PHIs in empty BBs.
14200 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
14202 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
14203 re-expanded the compound use gen_lowpart instead to convert to the
14206 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
14208 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
14209 OUTER_CONST arguments.
14210 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
14211 the new wider mode will be masked off.
14212 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
14214 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
14216 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
14217 high-order bits are zero.
14219 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
14221 * combine.c (simplify_shift_const_1): Split code to determine
14222 shift_mode into ...
14223 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
14224 new bits shifted in are identical to the old sign bit.
14226 2009-07-18 Richard Guenther <rguenther@suse.de>
14229 * gimplify.c (gimplify_call_expr): Reject code using results from
14230 functions returning void.
14232 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
14234 * doc/md.texi: Document the new PowerPC "es" constraint.
14235 Document that "m" can include automodified addresses on this target,
14236 and explain how %U must be used. Extend the "Q" and "Z" documentation
14237 to suggest "es" as well as "m".
14238 * config/rs6000/constraints.md (es): New memory constraint.
14239 (Q, Z): Update strings to match new documentation.
14241 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
14243 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
14244 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
14245 * config/rs6000/predicates.md (volatile_mem_operand): Use
14246 offsettable_nonstrict_memref_p.
14247 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
14248 (*floatunssidf2_internal): Likewise.
14249 (*fix_truncdfsi2_internal): Likewise.
14250 (*fix_trunctfsi2_internal): Likewise.
14252 2009-07-17 Anatoly Sokolov <aesok@post.ru>
14254 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
14255 atmega32u2 devices.
14256 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
14258 2009-07-17 Richard Guenther <rguenther@suse.de>
14261 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
14262 (pass_warn_unused_result): Likewise.
14263 (TODO_set_props): Remove.
14264 * omp-low.c (diagnose_omp_structured_block_errors): Change to
14266 (pass_diagnose_omp_blocks): Define.
14267 * c-decl.c (pop_file_scope): Do not finalize the CU here.
14268 (c_gimple_diagnostics_recursively): Remove.
14269 (finish_function): Do not call it.
14270 (c_write_global_declarations): Continue after errors.
14271 Finalize the CU here.
14272 * c-gimplify.c (c_genericize): Do not gimplify here.
14273 * c-common.c (c_warn_unused_result): Move ...
14274 * tree-cfg.c (do_warn_unused_result): ... here.
14275 (run_warn_unused_result): New function.
14276 (gate_warn_unused_result): New function.
14277 (pass_warn_unused_result): New pass.
14278 * c-common.h (c_warn_unused_result): Remove.
14279 * flags.h (flag_warn_unused_result): Declare.
14280 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
14281 * opts.c (flag_warn_unused_result): Initialize to false.
14282 * toplev.c (compile_file): Add comment.
14283 * omp-low.c (create_omp_child_function): Do not register
14284 the function with the frontend.
14285 (diagnose_omp_structured_block_errors): Prepare to be
14286 called as optimization pass.
14287 (gate_diagnose_omp_blocks): New function.
14288 (pass_diagnose_omp_blocks): New pass.
14289 * cgraph.h (cgraph_optimize): Remove.
14290 (cgraph_analyze_function): Likewise.
14291 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
14292 * cgraphunit.c (cgraph_lower_function): Lower nested functions
14293 before their parents here.
14294 (cgraph_finalize_function): Not here.
14295 (cgraph_analyze_function): Gimplify functions here.
14296 (cgraph_finalize_compilation_unit): Continue after errors.
14297 Optimize the callgraph from here.
14298 (cgraph_optimize): Make static.
14299 * langhooks.c (write_global_declarations): Finalize the CU.
14300 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
14301 (gimplify_function_tree): Assert we gimplify only once.
14302 Set PROP_gimple_any property.
14303 * tree-nested.c (gimplify_all_functions): New function.
14304 (lower_nested_functions): Gimplify all nested functions.
14305 * gimple.h (diagnose_omp_structured_block_errors): Remove.
14306 * passes.c (init_optimization_passes): Add pass_warn_unused_result
14307 and pass_diagnose_omp_blocks after gimplification. Do not
14308 set TODO_set_props on all_lowering_passes.
14309 (execute_one_pass): Do not handle TODO_set_props.
14310 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
14311 (gimplify.o): Add tree-pass.h dependency.
14312 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
14313 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
14314 (unsave_r): Likewise.
14315 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
14316 temporary variable.
14318 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
14320 * doc/service.texi (Service): Restore previously removed link,
14321 which isn't broken after all.
14323 2009-07-17 Richard Guenther <rguenther@suse.de>
14325 PR tree-optimization/40321
14326 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
14327 PHI nodes to the maximal set.
14328 (make_values_for_phi): Add PHI arguments to the maximal set.
14329 (execute_pre): Dump PHI_GEN and the maximal set.
14331 2009-07-17 Jakub Jelinek <jakub@redhat.com>
14334 * gimplify.c (gimplify_conversion): Don't change non-conversions into
14337 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
14339 * doc/extend.texi (Nested Functions): Replace broken link with
14341 * doc/service.texi (Service): Remove broken link.
14343 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
14346 * builtins.c (expand_builtin_memcmp): Use loc instead of
14347 EXPR_LOCATION (exp).
14348 (expand_builtin_strncmp): Likewise.
14350 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
14351 Manuel López-Ibáñez <manu@gcc.gnu.org>
14354 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
14355 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
14356 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
14357 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
14358 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
14359 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
14360 tree-inline.c, c-common.c, c-common.h, gimple.c,
14361 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
14362 convert.c: Add location argument to fold_{unary,binary,ternary},
14363 fold_build[123], build_call_expr, build_size_arg,
14364 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
14365 fold_build1_initializer, fold_build2_initializer,
14366 fold_build3_initializer, fold_build_call_array,
14367 fold_build_call_array_initializer, fold_single_bit_test,
14368 omit_one_operand, omit_two_operands, invert_truthvalue,
14369 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
14370 combine_comparisons, fold_builtin_*, fold_call_expr,
14371 build_range_check, maybe_fold_offset_to_address, round_up,
14374 2009-07-16 Jason Merrill <jason@redhat.com>
14377 * c-common.c (c_common_reswords): Add __is_standard_layout
14379 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
14380 * doc/implement-cxx.texi: New.
14381 * doc/gcc.texi: Include it.
14383 2009-07-16 DJ Delorie <dj@redhat.com>
14385 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
14386 compares that may be indirectly affected by previous instructions.
14388 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14390 * builtins.c (do_mpc_arg2): New.
14391 (fold_builtin_2): Fold builtin cpow.
14392 * real.h (HAVE_mpc_pow): New.
14394 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
14396 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
14397 comparison to skip unprofitable schedule
14399 2009-07-16 Simon Baldwin <simonb@google.com>
14401 * gcc.c (option_map): New flag -no-canonical-prefixes.
14402 * (display_help): Print help text for new flag.
14403 * (process_command): Move options translation and language specifics
14404 and handle new flag early. Use it to set a function pointer to a
14405 prefix builder. Replace make_relative_prefix calls with calls to
14406 the function pointed to. Ignore new flag in regular options handling.
14407 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
14409 2009-07-15 DJ Delorie <dj@redhat.com>
14411 * config/mep/mep.md (sibcall_internal): Change register to avoid
14412 argument registers.
14413 (sibcall_value_internal): Likewise.
14415 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
14417 PR rtl-optimization/40710
14418 * resource.c (mark_target_live_regs): Reset DF problem to LR.
14420 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
14422 * config/mips/mips.md (*extenddi_truncate<mode>,
14423 *extendsi_truncate<mode>): Change type attribute to move_type
14424 with shift_shift. Split out code handling exts from here ...
14425 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
14427 (*extendhi_truncateqi): Change type attribute to move_type with
14428 shift_shift. Split out code handling exts from here ...
14429 (*extendhi_truncateqi_exts): ... to this new pattern.
14431 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
14433 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
14434 instead of "and" with inverted sign bit mask value. Use
14435 "nonimmediate_operand" for operand 1 and operand 2 predicate.
14436 Allocate registers only for operand 4 and operand 5.
14438 2009-07-15 Jakub Jelinek <jakub@redhat.com>
14440 PR middle-end/40747
14441 * fold-const.c (fold_cond_expr_with_comparison): When folding
14442 < and <= to MIN, make sure the MIN uses the same type as the
14443 comparison's operands.
14445 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
14447 * arm.md (ior_xor): New code iterator.
14448 (split for ior/xor with shift and zero-extend): New split pattern.
14449 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
14451 2009-07-15 Richard Guenther <rguenther@suse.de>
14453 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
14456 2009-07-15 Richard Guenther <rguenther@suse.de>
14458 PR middle-end/40753
14459 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
14461 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
14463 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
14464 handle 2.6.30 kernel.
14466 2009-07-15 DJ Delorie <dj@redhat.com>
14468 * config/mep/mep.md (sibcall_internal): Change register to allow
14469 for 24-bit addresses.
14470 (sibcall_value_internal): Likewise.
14472 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
14474 * doc/invoke.texi: Added descriptions of the scheduling heuristics
14475 that are enabled/disabled by the flags introduced by a previous patch.
14477 2009-07-14 DJ Delorie <dj@redhat.com>
14479 * config/mep/mep.md (sibcall_internal): Include non-toggling
14481 (sibcall_value_internal): Likewise.
14483 2009-07-14 Taras Glek <tglek@mozilla.com>
14484 Rafael Espindola <espindola@google.com>
14486 * doc/sourcebuild.texi: Document install-plugin target.
14487 * configure.ac: Added install-plugin target to language makefiles.
14488 * configure: Regenerate.
14489 * Makefile.in (install-plugin): Install more headers,
14490 depend on lang.install-plugin.
14492 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
14494 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
14497 2009-07-14 DJ Delorie <dj@redhat.com>
14499 * config/mep/mep.c (mep_vliw_jmp_match): New function.
14500 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
14501 * config/mep/mep.md (sibcall_internal): Change test from
14502 mep_vliw_mode_match to mep_vliw_jmp_match.
14503 (sibcall_value_internal): Likewise.
14505 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
14507 * config/i386/sse.md (copysign<mode>3): New expander.
14508 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
14509 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
14510 Use ix86_build_const_vector.
14511 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
14512 IX86_BUILTIN_CPYSGNPD.
14513 (builtin_description): Add __builtin_ia32_copysignps and
14514 __builtin_ia32_copysignpd.
14515 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
14516 and BUILT_IN_COPYSIGNF.
14518 2009-07-13 Jason Merrill <jason@redhat.com>
14520 * builtins.c (can_trust_pointer_alignment): New fn.
14521 (get_pointer_alignment): Factor it out from here.
14522 * tree.h: Declare it.
14524 2009-07-14 David Edelsohn <edelsohn@gnu.org>
14526 * config/rs6000/predicates.md (offsettable_mem_operand): Test
14529 2009-07-14 Dodji Seketeli <dodji@redhat.com>
14533 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
14535 2009-07-14 Richard Guenther <rguenther@suse.de>
14536 Andrey Belevantsev <abel@ispras.ru>
14538 PR middle-end/40745
14539 * cfgexpand.c (partition_stack_vars): Do not bother to update
14540 alias information when not optimizing.
14542 2009-07-14 Richard Guenther <rguenther@suse.de>
14543 Andrey Belevantsev <abel@ispras.ru>
14545 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
14546 (pt_solution_set): Likewise.
14547 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
14548 * tree-ssa-structalias.c (pt_solution_set): New function.
14549 * final.c (rest_of_clean_state): Free SSA data structures.
14550 * print-rtl.c (print_decl_name): Remove.
14551 (print_mem_expr): Implement in terms of print_generic_expr.
14552 * alias.c (ao_ref_from_mem): New function.
14553 (rtx_refs_may_alias_p): Likewise.
14554 (true_dependence): Query alias-export info.
14555 (canon_true_dependence): Likewise.
14556 (write_dependence_p): Likewise.
14557 * tree-dfa.c (get_ref_base_and_extent): For void types leave
14559 * emit-rtl.c (component_ref_for_mem_expr): Remove.
14560 (mem_expr_equal_p): Use operand_equal_p.
14561 (set_mem_attributes_minus_bitpos): Do not use
14562 component_ref_for_mem_expr.
14563 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
14564 (update_alias_info_with_stack_vars): Likewise.
14565 (partition_stack_vars): Call update_alias_info_with_stack_vars.
14566 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
14567 explicitly nor clear stmt operands.
14568 Free the decl-to-pointer map.
14569 * tree-optimize.c (execute_free_datastructures): Do not free
14570 SSA data structures here.
14571 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
14572 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
14573 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
14575 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
14577 2009-07-13 DJ Delorie <dj@redhat.com>
14579 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
14580 unrolling at the right iteration count.
14582 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
14585 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
14587 * haifa-sched.c (rank_for_schedule): Introduced flags to
14588 enable/disable individual scheduling heuristics.
14589 * common.opt: Introduced flags to enable/disable individual
14590 heuristics in the scheduler.
14591 * doc/invoke.texi: Introduced flags to enable/disable individual
14592 heuristics in the scheduler.
14594 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
14596 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
14597 config/i386/mingw-tls.c.
14598 * config/i386/mingw-tls.c: Removed.
14600 2009-07-13 Ira Rosen <irar@il.ibm.com>
14602 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
14603 checks access only relevant statements.
14604 (vectorizable_reduction): Likewise.
14606 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
14608 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
14609 just for 32-bit case.
14611 2009-07-12 Jan Hubicka <jh@suse.cz>
14613 PR tree-optimization/40585
14614 * except.c (expand_resx_expr): When there already is resume
14615 instruction, produce linked list.
14616 (build_post_landing_pads): Assert that resume is empty.
14617 (connect_post_landing_pads): Handle resume lists.
14618 (dump_eh_tree): Dump resume list.
14620 2009-07-12 Ira Rosen <irar@il.ibm.com>
14622 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
14623 with additional argument.
14624 * tree-vectorizer.h (enum vect_def_type): Add
14625 vect_double_reduction_def.
14626 (vect_is_simple_reduction): Add argument.
14627 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
14629 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
14630 vect_is_simple_reduction with additional argument.
14631 (vect_analyze_loop_operations): Handle exit phi nodes in case of
14633 (reduction_code_for_scalar_code): Handle additional codes by
14634 returning ERROR_MARK for them. Fix comment and indentation.
14635 (vect_is_simple_reduction): Fix comment, add argument to specify
14636 double reduction. Detect double reduction.
14637 (get_initial_def_for_induction): Fix indentation.
14638 (get_initial_def_for_reduction): Fix comment and indentation.
14639 Handle double reduction. Create initial definitions that do not
14640 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
14641 (vect_create_epilog_for_reduction): Fix comment, add argument to
14642 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
14643 epilogue result extraction. Create double reduction phi node and
14644 replace relevant uses.
14645 (vectorizable_reduction): Call vect_is_simple_reduction with
14646 additional argument. Fix indentation. Update epilogue code treatment
14647 according to the changes in reduction_code_for_scalar_code. Check
14648 for double reduction. Call vect_create_epilog_for_reduction with
14649 additional argument.
14650 * tree-vect-stmts.c (process_use): Handle double reduction, update
14652 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
14653 (vect_get_vec_def_for_operand): Likewise.
14655 2009-07-12 Danny Smith <dansmister@gmail.com>
14657 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
14658 dllexport if !TREE_PUBLIC.
14659 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
14661 2009-07-11 Anatoly Sokolov <aesok@post.ru>
14663 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
14664 (avr_extra_arch_macro) Remove declatation.
14665 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
14666 (avr_extra_arch_macro) Declare as static.
14667 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
14669 2009-07-11 Jan Hubicka <jh@suse.cz>
14671 PR middle-end/48388
14672 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
14674 2009-07-11 Jakub Jelinek <jakub@redhat.com>
14677 * dwarf2out.c (dw_fde_struct): Add in_std_section and
14678 cold_in_std_section bits.
14679 (dwarf2out_begin_prologue): Initialize them.
14680 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
14681 if already covered by text_section or cold_text_section range.
14683 PR rtl-optimization/40667
14684 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
14685 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
14686 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
14687 * config/i386/i386.c (ix86_minimum_alignment): New function.
14688 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
14689 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
14690 * emit-rtl.c (gen_reg_rtx): Likewise.
14691 * function.c (assign_parms): Likewise. If nominal_type needs
14692 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
14693 rather than passed_type's alignment.
14696 * function.c (assign_parm_setup_stack): Adjust
14697 MEM_OFFSET (data->stack_parm) if promoted_mode is different
14698 from nominal_mode on big endian.
14700 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
14702 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
14704 2009-07-10 DJ Delorie <dj@redhat.com>
14706 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
14708 2009-07-10 Mark Mitchell <mark@codesourcery.com>
14710 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
14712 (thumb2_cbnz): Likewise.
14714 2009-07-10 David Daney <ddaney@caviumnetworks.com>
14717 * config.gcc (supported_defaults): Add synci.
14718 (with_synci): Add validation.
14719 (all_defaults): Add synci.
14720 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
14723 * config/mips/mips.opt (msynci): New option.
14724 * config/mips/mips.c (mips_override_options): Warn on use of
14725 -msynci for targets that do now support it.
14726 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
14728 * gcc/doc/invoke.texi (-msynci): Document the new option.
14729 * doc/install.texi (--with-synci): Document the new option.
14731 2009-07-10 Richard Guenther <rguenther@suse.de>
14733 PR tree-optimization/40496
14734 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
14735 the PHI result with a compatible type.
14737 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
14741 * c.opt (Wunused-result): New.
14742 * doc/invoke.texi: Document it.
14743 * c-common.c (c_warn_unused_result): Use it.
14745 2009-07-09 DJ Delorie <dj@redhat.com>
14747 * targhooks.c (default_target_can_inline_p): Rename from
14748 default_target_option_can_inline_p.
14749 * targhooks.h (default_target_can_inline_p): Likewise.
14750 * target-def.h (TARGET_CAN_INLINE_P): Rename from
14751 TARGET_OPTION_CAN_INLINE_P.
14752 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
14753 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
14754 (mep_target_can_inline_p): Rename from
14755 mep_target_option_can_inline_p.
14758 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
14759 registers used to pass vectors.
14761 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
14763 2009-07-09 Tom Tromey <tromey@redhat.com>
14765 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
14766 * config/mmix/mmix.c: Include dwarf2.h.
14767 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
14768 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
14769 * config/sh/sh.c: Include dwarf2.h.
14770 * config/i386/i386.c: Include dwarf2.h.
14771 * Makefile.in (DWARF2_H): Remove 'elf'.
14772 * except.c: Include dwarf2.h.
14773 * unwind-dw2.c: Include dwarf2.h.
14774 * dwarf2out.c: Include dwarf2.h.
14775 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
14776 * unwind-dw2-fde.c: Include dwarf2.h.
14777 * dwarf2asm.c: Include dwarf2.h.
14779 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
14781 * haifa-sched.c (insn_finishes_cycle_p): New static function.
14782 (max_issue): Use it.
14783 * sched-int.h (struct sched_info: insn_finishes_block_p): New
14785 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
14786 (region_sched_info): Update.
14787 * sched-ebb.c (ebb_sched_info): Update.
14788 * modulo-sched.c (sms_sched_info): Update.
14789 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
14791 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
14793 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
14795 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
14797 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
14799 2009-07-09 Jakub Jelinek <jakub@redhat.com>
14801 PR middle-end/40692
14802 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
14803 arg1 with arg01 if arg1 is already INTEGER_CST.
14805 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
14807 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
14808 Transform (and (truncate)) into (truncate (and)).
14810 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
14812 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
14813 creating LHS paradoxical subregs. Fix surrounding returns to
14814 use NULL_RTX rather than 0.
14816 2009-07-08 DJ Delorie <dj@redhat.com>
14818 * config/mep/mep.c (mep_option_can_inline_p): New.
14819 (TARGET_OPTION_CAN_INLINE_P): Define.
14821 2009-07-08 Mark Wielaard <mjw@redhat.com>
14824 * dwarf2out.c (add_data_member_location_attribute): When we have
14825 only a constant offset don't emit a new location description using
14826 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
14829 2009-07-08 Richard Henderson <rth@redhat.com>
14832 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
14833 (enum reg_class): Add CLOBBERED_REGS.
14834 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
14835 * config/i386/i386.c (ix86_conditional_register_usage): Moved
14836 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
14837 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
14838 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
14839 force 64-bit sibcalls into R11.
14840 * config/i386/constraints.md (U): New constraint.
14841 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
14842 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
14843 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
14845 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
14847 * basic-block.h (dump_regset, debug_regset): Remove duplicate
14849 * c-objc-common.h (c_initialize_diagnostics): Ditto.
14850 * ebitmap.h (dump_ebitmap): Ditto.
14851 * optabs.h (optab_libfunc): Ditto.
14852 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
14853 * tree-flow.h (vect_can_force_dr_alignment_p,
14854 get_vectype_for_scalar_type): Ditto.
14855 (vectorize_loops): Move prototype to ...
14856 * tree-vectorizer.h: ... here. Also, adjust comment.
14857 (vect_set_verbosity_level): Remove duplicate prototype.
14858 * tree-ssa-loop.c: Include tree-vectorizer.h.
14859 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
14861 2009-07-08 Nick Clifton <nickc@redhat.com>
14863 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
14866 2009-07-08 DJ Delorie <dj@redhat.com>
14868 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
14869 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
14870 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
14872 * config/mep/intrinsics.md: Regenerated.
14873 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
14874 registers when asm() or calls are detected.
14876 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14879 * gimplify.c (gimplify_expr): Propagate no_warning flag when
14881 * gimple (gimple_build_call_from_tree): Likewise.
14882 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
14883 no_warning flag before warning.
14885 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
14887 * tree.c (set_expr_locus): Remove.
14888 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
14889 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
14891 * gimplify.c (internal_get_tmp_var): Likewise.
14892 (gimplify_call_expr): Likewise.
14893 (gimplify_one_sizepos): Likewise.
14895 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
14898 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
14899 to variables for debugging purposes.
14901 2009-06-23 Mark Loeser <mark@halcy0n.com>
14904 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
14906 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
14908 * pretty-print.c (pp_base_format): Remove %J.
14909 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
14910 gcc_cxxdiag_char_table): Likewise.
14911 (init_dynamic_diag_info): Likewise.
14913 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
14915 * pretty-print.c (pp_base_format): Remove %H.
14916 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
14917 gcc_cxxdiag_char_table): Likewise.
14918 (init_dynamic_diag_info): Likewise.
14919 * config/mep/mep.c (mep_select_section): Likewise.
14921 2009-07-07 Duncan Sands <baldrick@free.fr>
14923 * final.c (pass_clean_state): Give the pass a name.
14924 * passes.c (pass_rest_of_compilation): Likewise.
14925 * tree-optimize.c (pass_all_optimizations): Likewise.
14927 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
14929 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
14930 an extra 'decl' for error_at.
14932 2009-07-07 Jakub Jelinek <jakub@redhat.com>
14934 PR middle-end/40669
14935 * tree-tailcall.c (adjust_return_value_with_ops,
14936 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
14937 if it has complex or vector type.
14939 2009-07-07 Olivier Hainque <hainque@adacore.com>
14941 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
14944 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
14946 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
14948 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
14950 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
14951 * c-decl.c: Likewise.
14952 * function.c: Likewise.
14953 * varasm.c: Likewise.
14954 * tree-ssa.c: Likewise.
14955 * c-common.c: Likewise.
14956 * tree-cfg.c: Likewise.
14957 * config/spu/spu.c: Likewise.
14958 * config/ia64/ia64.c: Likewise.
14959 * config/v850/v850.c: Likewise.
14961 2009-07-06 DJ Delorie <dj@redhat.com>
14963 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
14964 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
14965 unspecified accesses to control registers.
14966 * config/mep/intrinsics.md: Regenerate.
14967 * config/mep/intrinsics.h: Regenerate.
14968 * config/mep/mep-intrin.h: Regenerate.
14970 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
14972 * c-lex.c: Replace %H by an explicit location. Update all calls.
14973 * c-common.c: Likewise.
14974 * c-decl.c: Likewise.
14975 * c-typeck.c: Likewise.
14976 * fold-const.c: Likewise.
14977 * gimplify.c: Likewise.
14978 * stmt.c: Likewise.
14979 * tree-cfg.c: Likewise.
14980 * tree-ssa-loop-niter.c: Likewise.
14981 * tree-vrp.c: Likewise.
14982 * value-prof.c: Likewise.
14984 2009-07-06 Diego Novillo <dnovillo@google.com>
14986 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
14987 if it has one. Handle cases where VAR does not have an
14988 annotation or cfun is NULL.
14990 2009-07-06 Diego Novillo <dnovillo@google.com>
14992 * tree.c: Include debug.h.
14993 (initialize_tree_contains_struct): New.
14994 (init_ttree): Call it.
14995 (tree_node_structure_for_code): Factor out of ...
14996 (tree_node_structure): ... here.
14997 * treestruct.def (TS_PHI_NODE): Remove.
14998 (TS_GIMPLE_STATEMENT): Remove.
15000 2009-07-06 Diego Novillo <dnovillo@google.com>
15002 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
15003 (debug_tree_chain): Handle cycles.
15005 2009-07-06 Nick Clifton <nickc@redhat.com>
15006 DJ Delorie <dj@redhat.com>
15008 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
15009 __FMOVD_ENABLED__ is defined.
15011 (TARGET_FMOVD): Provide a default definition.
15012 (MASK_FMOVD): Likewise.
15013 (TARGET_CPU_CPP_BUILTINS): Define
15014 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
15015 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
15016 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
15017 (split for DF load from memory into register): Also handle
15018 MEMs which consist of REG+DISP addressing.
15019 (split for DF store from register to memory): Likewise.
15020 (movsf_ie): Always use single fp_mode.
15021 * config/sh/sh.c (sh_override_options): Do not automatically
15022 enable TARGET_MOVD for the SH2A when supporting doubles - leave
15023 that to the -mfmovd command line switch.
15024 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
15025 (fldi_ok): Always allow.
15026 * config/sh/sh.opt (mfmovd): Remove this switch.
15027 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
15029 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
15030 Kaz Kojima <kkojima@gcc.gnu.org>
15032 PR rtl-optimization/30807
15033 * postreload.c (reload_combine): For every new use of REG_SUM,
15034 record the use of BASE.
15036 2009-07-06 Jan Hubicka <jh@suse.cz>
15038 * params.def: Revert my accidental commit at 2009-06-30.
15040 2009-07-04 Ian Lance Taylor <iant@google.com>
15043 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
15045 (mingw_format_attribute_overrides): Likewise.
15047 2009-07-04 Jakub Jelinek <jakub@redhat.com>
15050 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
15051 don't check cfa.reg. Instead of cfa.indirect use
15052 fde && fde->drap_reg != INVALID_REGNUM test.
15054 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
15056 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
15058 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
15061 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
15063 2009-07-03 Richard Guenther <rguenther@suse.de>
15065 PR tree-optimization/40640
15066 * tree-switch-conversion.c (build_arrays): Perform arithmetic
15069 2009-07-03 Jan Hubicka <jh@suse.cz>
15071 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
15072 for size, reduce amount of inlining.
15074 2009-07-03 Richard Guenther <rguenther@suse.de>
15076 PR middle-end/34163
15077 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
15078 if t +- x is known to not overflow and the conversion widens the
15080 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
15082 2009-07-03 Jan Hubicka <jh@suse.cz>
15084 * ipa-pure-const.c (analyze): Update loop optimizer init.
15085 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
15086 try_remove_empty_loop, remove_empty_loops): Remove.
15087 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
15088 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
15089 to mark regular loops as neccesary.
15090 (degenerate_phi_p): New function.
15091 (propagate_necessity, remove_dead_phis): Use it.
15092 (forward_edge_to_pdom): Likewise.
15093 (eliminate_unnecessary_stmts): Take care to remove uses of results of
15094 virtual PHI nodes that became unreachable.
15095 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
15096 * tree-flow.h (remove_empty_loops): Remove.
15097 * passes.c (init_optimization_passes): Remove.
15099 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
15101 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
15102 can_create_pseudo_p.
15103 (*fix_trunc<mode>_i387_1): Ditto.
15104 (*floathi<mode>2_1): Ditto.
15105 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
15106 (*fistdi2_1): Ditto.
15107 (*fist<mode>2_1): Ditto.
15108 (frndintxf2_floor): Ditto.
15109 (*fist<mode>2_floor_1): Ditto.
15110 (frndintxf2_ceil): Ditto.
15111 (*fist<mode>2_ceil_1): Ditto.
15112 (frndintxf2_trunc): Ditto.
15113 (frndintxf2_mask_pm): Ditto.
15114 (fxam<mode>2_i387_with_temp): Ditto.
15115 * config/i386/sse.md (mulv16qi3): Ditto.
15116 (*sse2_mulv4si3): Ditto.
15118 (sse4_2_pcmpestr): Ditto.
15119 (sse4_2_pcmpistr): Ditto.
15121 2009-07-03 Jan Hubicka <jh@suse.cz>
15123 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
15124 (mark_stmt_necessary): Set it.
15125 (mark_operand_necessary): Set it.
15126 (mark_control_dependent_edges_necessary): Set it.
15127 (mark_virtual_phi_result_for_renaming): New function.
15128 (get_live_post_dom): New function.
15129 (forward_edge_to_pdom): New function.
15130 (remove_dead_stmt): Fix handling of control dependences.
15131 (tree_dce_init): Init new bitmap.
15132 (tree_dce_done): Free it.
15134 2009-07-02 Richard Guenther <rguenther@suse.de>
15137 * tree-ssa-structalias.c (new_var_info): Initialize
15140 2009-07-02 Jan Hubicka <jh@suse.cz>
15142 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
15145 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
15147 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
15148 instead of recomputing it. Adjust calls.
15149 (emit_store_flag): Adjust recursive calls.
15151 2009-07-02 Richard Guenther <rguenther@suse.de>
15153 * tree-ssa-live.c (remove_unused_locals): Do not remove
15155 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
15156 of DECL_EXTERNAL for HEAP variables.
15157 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
15158 HEAP variables. Do not adjust RESTRICT vars.
15159 (find_what_var_points_to): Nobody cares if something
15160 points to READONLY.
15162 2009-07-02 Ben Elliston <bje@au.ibm.com>
15164 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
15165 pc_low and pc_high declarations to the top of the function.
15167 2009-07-01 DJ Delorie <dj@redhat.com>
15169 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
15170 registers as fixed.
15171 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
15172 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
15173 unspecified accesses to control registers.
15174 * config/mep/intrinsics.md: Regenerate.
15175 * config/mep/intrinsics.h: Regenerate.
15176 * config/mep/mep-intrin.h: Regenerate.
15178 2009-07-01 Anthony Green <green@moxielogic.com>
15180 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
15181 instruction when possible.
15182 (moxie_expand_prologue): Ditto. Also, save an instruction and
15183 some complexity by popping off of $r12 instead of $sp.
15184 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
15187 2009-07-01 Richard Henderson <rth@redhat.com>
15190 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
15191 contained no insns, reposition note before last insn.
15193 2009-07-01 Richard Henderson <rth@redhat.com>
15196 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
15197 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
15199 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15202 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
15203 darwin9 for printing reg addresses with %y.
15205 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
15207 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
15208 truncation from operands in binary operations.
15210 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
15213 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
15214 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
15215 subreg of op0 to the original op0.
15217 * expmed.c (store_bit_field_1): Use a temporary as the destination
15218 instead of a paradoxical subreg when we need to truncate the result.
15220 2009-07-01 DJ Delorie <dj@redhat.com>
15222 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
15223 names to VLIW variants.
15224 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
15225 * config/mep/intrinsics.md: Regenerate.
15226 * config/mep/intrinsics.h: Regenerate.
15227 * config/mep/mep-intrin.h: Regenerate.
15229 2009-07-01 Jakub Jelinek <jakub@redhat.com>
15232 * jump.c (returnjump_p): Revert last patch.
15233 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
15235 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15238 * pa.md (casesi32p): Use jump table label to determine the offset
15240 (casesi64p): Likewise.
15242 * pa.c (forward_branch_p): Return bool type. Use instruction
15243 addresses when available. Assert that INSN has a jump label.
15244 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
15247 2009-07-01 Richard Guenther <rguenther@suse.de>
15249 PR tree-optimization/19831
15250 * tree-ssa-dce.c (propagate_necessity): Calls to functions
15251 that only act as barriers do not make any previous stores necessary.
15252 * tree-ssa-structalias.c (handle_lhs_call): Delay making
15253 HEAP variables global, do not add a constraint from nonlocal.
15254 (find_func_aliases): Handle escapes through return statements.
15255 (compute_points_to_sets): Make escaped HEAP variables global.
15257 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
15260 * expmed.c (emit_store_flag): Perform a conversion if necessary,
15261 after reducing a DImode cstore to SImode.
15263 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
15265 * expr.c (expand_expr_real_1): Reinstate fallthrough to
15266 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
15268 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
15270 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
15271 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
15273 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
15274 and umod_optab if TARGET_BSD_DIVMOD.
15275 * config/vax/lib1funcs.asm: New file.
15276 * config/vax/t-linux: New file.
15277 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
15279 2009-06-30 Jakub Jelinek <jakub@redhat.com>
15282 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
15283 to type arguments that have void type.
15286 * dwarf2out.c (gen_formal_parameter_die): Call
15287 equate_decl_number_to_die if node is different from origin.
15289 2009-06-30 Anthony Green <green@moxielogic.com>
15291 Clean up moxie port for --enable-build-with-cxx.
15292 * config/moxie/moxie.c (moxie_function_value): First two
15293 parameters are const_tree, not tree.
15294 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
15295 (REG_CLASS_NAMES): Ditto.
15296 (REGNO_REG_CLASS): Ditto.
15297 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
15298 (moxie_function_value): Fix constyness of arguments.
15300 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
15302 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
15303 finalize_size_functions before further processing.
15304 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
15305 (variable_size): Call self_referential_size on size expressions
15306 that contain a PLACEHOLDER_EXPR.
15307 (size_functions): New static variable.
15308 (copy_self_referential_tree_r): New static function.
15309 (self_referential_size): Likewise.
15310 (finalize_size_functions): New global function.
15311 * tree.c: Include tree-inline.h.
15312 (push_without_duplicates): New static function.
15313 (find_placeholder_in_expr): New global function.
15314 (substitute_in_expr) <tcc_declaration>: Return the replacement object
15316 <tcc_expression>: Likewise.
15317 <tcc_vl_exp>: If the replacement object is a constant, try to inline
15318 the call in the expression.
15319 * tree.h (finalize_size_functions): Declare.
15320 (find_placeholder_in_expr): Likewise.
15321 (FIND_PLACEHOLDER_IN_EXPR): New macro.
15322 (substitute_placeholder_in_expr): Update comment.
15323 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
15325 (copy_tree_body_r): Likewise.
15326 (copy_tree_body): New static function.
15327 (maybe_inline_call_in_expr): New global function.
15328 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
15329 (maybe_inline_call_in_expr): Declare.
15330 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
15331 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
15334 2009-06-30 Richard Guenther <rguenther@suse.de>
15336 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
15338 (propagate_necessity): Do not mark reaching defs of stores
15341 2009-06-30 Jan Hubicka <jh@suse.cz>
15343 * cfgloopanal.c (check_irred): Move into ...
15344 (mark_irreducible_loops): ... here; return true if ireducible
15346 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
15347 (analyze_function): Try to prove loop finiteness.
15348 * cfgloop.h (mark_irreducible_loops): Update prototype.
15349 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
15351 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
15353 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
15355 2009-06-30 Ira Rosen <irar@il.ibm.com>
15357 PR tree-optimization/40542
15358 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
15361 2009-06-30 Martin Jambor <mjambor@suse.cz>
15363 PR tree-optimization/40582
15364 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
15365 than useless_type_conversion_p.
15366 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
15369 2009-06-30 Martin Jambor <mjambor@suse.cz>
15371 PR middle-end/40554
15372 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
15374 2009-06-30 Richard Guenther <rguenther@suse.de>
15376 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
15377 use ao_ref references.
15378 (walk_aliased_vdefs): Likewise.
15379 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
15380 * tree-ssa-dce.c (struct ref_data): Remove.
15381 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
15382 (mark_aliased_reaching_defs_necessary): Adjust.
15383 (mark_all_reaching_defs_necessary_1): Likewise.
15385 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
15388 * expmed.c (emit_cstore): New name of emit_store_flag_1.
15389 (emit_store_flag_1): Extract from emit_store_flag, adjust
15390 calls to (what now is) emit_cstore.
15391 (emit_store_flag): Call emit_store_flag_1 and also use it
15392 for what used to be recursive calls.
15394 2009-06-30 Wei Guozhi <carrot@google.com>
15397 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
15398 if the target bb post dominates from bb.
15399 * config/i386/i386.c (memory_address_length): Check existence of base
15400 register before using it.
15402 2009-06-30 Nick Clifton <nickc@redhat.com>
15403 DJ Delorie <dj@redhat.com>
15405 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
15406 __FMOVD_ENABLED__ is defined.
15408 (TARGET_FMOVD): Provide a default definition.
15409 (MASK_FMOVD): Likewise.
15410 (TARGET_CPU_CPP_BUILTINS): Define
15411 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
15412 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
15413 two fmov instructions depending upon whether TARGET_FMOVD is
15415 (split for DF load from memory into register): Also handle
15416 MEMs which consist of REG+DISP addressing.
15417 (split for DF store from register to memory): Likewise.
15418 * config/sh/sh.opt (mfmovd): Remove this switch.
15419 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
15420 * config/sh/sh.c (sh_override_options): Do not automatically
15421 enable TARGET_MOVD for the SH2A when supporting doubles - leave
15422 that to the -mfmovd command line switch.
15424 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
15426 (fldi_ok): Always allow.
15427 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
15429 2009-06-29 DJ Delorie <dj@redhat.com>
15431 * doc/install.texi (mep-x-elf): Correct chip's full name.
15433 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
15435 * doc/extend.texi: Fix typo.
15437 2009-06-29 Tom Tromey <tromey@redhat.com>
15439 * dwarf2.h: Remove.
15440 * Makefile.in (DWARF2_H): New variable.
15441 (except.o): Use it.
15442 (dwarf2out.o): Likewise.
15443 (dwarf2asm.o): Likewise.
15444 * config/i386/t-i386: Use DWARF2_H.
15445 * except.c: Include elf/dwarf2.h.
15446 * unwind-dw2.c: Include elf/dwarf2.h.
15447 * dwarf2out.c: Include elf/dwarf2.h.
15448 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
15449 <dtprel>: New field.
15450 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
15451 (size_of_loc_descr): Likewise.
15452 (output_loc_operands_raw): Likewise.
15453 (output_loc_operands): Handle new dtprel field.
15454 (loc_checksum): Update.
15455 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
15456 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
15457 * unwind-dw2-fde.c: Include elf/dwarf2.h.
15458 * dwarf2asm.c: Include elf/dwarf2.h.
15459 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
15460 * config/mmix/mmix.c: Include elf/dwarf2.h.
15461 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
15462 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
15463 * config/sh/sh.c: Include elf/dwarf2.h.
15464 * config/i386/i386.c: Include elf/dwarf2.h.
15466 2009-06-29 DJ Delorie <dj@redhat.com>
15468 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
15470 * doc/extend.texi: Add MeP attributes and pragmas.
15471 * doc/invoke.text: Add MeP Options.
15472 * doc/contrib.texi: Add MeP contribution.
15473 * doc/md.texi: Add MeP constraints.
15474 * doc/install.texi: Add MeP target.
15476 2009-06-30 Anatoly Sokolov <aesok@post.ru>
15478 * target.h (struct gcc_target): Add frame_pointer_required field.
15479 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
15480 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
15481 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
15483 * reload1.c (update_eliminables): (Ditto.).
15484 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
15485 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
15486 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
15488 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
15490 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
15491 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
15492 (arm_frame_pointer_required): New function.
15494 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
15495 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
15496 (avr_frame_pointer_required_p): Declare as static.
15497 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
15499 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
15500 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
15501 (bfin_frame_pointer_required): Make as static, change return type
15503 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
15505 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
15506 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
15507 (cris_frame_pointer_required): New function.
15509 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
15511 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
15512 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
15513 (fr30_frame_pointer_required): New function.
15515 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
15516 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
15517 (frv_frame_pointer_required): Make as static, change return type
15519 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
15521 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
15522 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
15523 (ix86_frame_pointer_required): Make as static, change return type to
15525 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
15527 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
15528 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
15530 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
15532 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
15534 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
15536 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
15537 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
15538 (mips_frame_pointer_required): Make as static.
15539 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
15541 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
15542 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
15543 (mmix_frame_pointer_required): Mew function.
15545 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
15546 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
15548 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
15550 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
15552 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
15554 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
15555 (CAN_ELIMINATE): Redefine.
15556 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
15557 (sparc_frame_pointer_required): New function.
15558 (sparc_can_eliminate): New function.
15559 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
15561 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
15562 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
15564 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
15565 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
15566 (xtensa_frame_pointer_required): Make as static, change return type
15568 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
15571 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
15573 * doc/plugins.texi: Document PLUGIN_START_UNIT.
15574 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
15575 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
15576 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
15577 (register_callback): Handle PLUGIN_START_UNIT.
15578 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
15580 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
15582 * tree.c (process_call_operands): Propagate TREE_READONLY from the
15584 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
15585 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
15587 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
15589 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
15592 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
15594 * doc/extend.texi (Additional Floating Types): __float128 is also
15595 supported on i386 targets.
15597 2009-06-29 Richard Guenther <rguenther@suse.de>
15599 PR middle-end/14187
15600 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
15602 (pt_solutions_same_restrict_base): Declare.
15603 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
15605 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
15606 (make_constraint_from, make_copy_constraint): Move earlier.
15607 (make_constraint_from_heapvar): New function.
15608 (make_constraint_from_restrict): Likewise.
15609 (handle_lhs_call): Use it.
15610 (find_func_aliases): Use it to track conversions to restrict
15611 qualified pointers.
15612 (struct fieldoff): Add only_restrict_pointers flag.
15613 (push_fields_onto_fieldstack): Initialize it.
15614 (create_variable_info_for): Track global restrict qualified pointers.
15615 (intra_create_variable_infos): Use make_constraint_from_heapvar.
15616 Track restrict qualified pointer arguments.
15617 (set_uids_in_ptset): Use varinfo is_global_var flag.
15618 (find_what_var_points_to): Set the vars_contains_restrict flag.
15619 Always create the points-to solution for sets including restrict tags.
15620 (pt_solutions_same_restrict_base): New function.
15621 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
15622 qualified pointers use pt_solutions_same_restrict_base as
15623 additional source for disambiguation.
15625 2009-06-29 Richard Guenther <rguenther@suse.de>
15627 PR middle-end/38212
15628 * alias.c (find_base_decl): Remove.
15629 (get_deref_alias_set_1): Remove restrict handling.
15630 * c-common.c (c_apply_type_quals_to_decl): Do not set
15631 DECL_POINTER_ALIAS_SET.
15632 * gimplify.c (find_single_pointer_decl_1): Remove.
15633 (find_single_pointer_decl): Likewise.
15634 (internal_get_tmp_var): Remove restrict handling.
15635 (gimple_regimplify_operands): Likewise.
15636 * omp-low.c (expand_omp_atomic_pipeline): Do not set
15637 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
15638 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
15639 * tree.c (restrict_base_for_decl): Remove.
15640 (init_ttree): Do not allocate it.
15641 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
15642 LABEL_DECL_UID for label decls.
15643 (copy_node_stat): Do not copy restrict information.
15644 (decl_restrict_base_lookup): Remove.
15645 (decl_restrict_base_insert): Likewise.
15646 (print_restrict_base_statistics): Likewise.
15647 (dump_tree_statistics): Do not call print_restrict_base_statistics.
15648 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
15649 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
15650 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
15651 (LABEL_DECL_UID): Adjust.
15652 (DECL_BASED_ON_RESTRICT_P): Remove.
15653 (DECL_GET_RESTRICT_BASE): Likewise.
15654 (SET_DECL_RESTRICT_BASE): Likewise.
15655 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
15657 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
15658 instead of DECL_POINTER_ALIAS_SET.
15659 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
15660 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15661 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15663 2009-06-29 Richard Guenther <rguenther@suse.de>
15665 PR tree-optimization/40579
15666 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
15667 the IL to simplify has constants that overflowed.
15669 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
15671 PR tree-optimization/40550
15672 * tree-vect-generic.c (expand_vector_operations_1): Compute in
15673 vector_compute_type only when the size of vector_compute_type is
15674 less than the size of type.
15676 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
15678 * fold-const.c (contains_label_1): Fix comments.
15679 (contains_label_p): Do not walk trees multiple time.
15681 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
15683 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
15684 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
15685 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
15686 ix86_fp_comparison_operator.
15687 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
15688 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
15689 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
15690 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
15691 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
15692 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
15693 (related splits): Change predicate to ix86_fp_comparison_operator.
15694 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
15695 instead of ix86_fp_comparison_codes.
15696 (ix86_trivial_fp_comparison_operator,
15697 ix86_fp_comparison_operator): New.
15698 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
15699 (ix86_expand_compare): Eliminate last two parameters.
15700 (ix86_fp_jump_nontrivial_p): Kill.
15701 * config/i386/i386.c (put_condition_code): Eliminate call to
15702 ix86_fp_comparison_codes and subsequent assertion.
15703 (ix86_fp_comparison_codes): Eliminate.
15704 (ix86_fp_swap_condition): New.
15705 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
15706 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
15707 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
15708 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
15709 and ix86_fp_swap_condition.
15710 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
15711 Use ix86_fp_comparison_strategy.
15712 (ix86_expand_compare): Likewise. Eliminate last two arguments.
15713 (ix86_fp_jump_nontrivial_p): Eliminate.
15714 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
15715 call to ix86_expand_compare.
15716 (ix86_split_fp_branch, ix86_expand_setcc,
15717 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
15718 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
15720 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
15722 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
15723 related to jump_clobbers.
15724 * config/arm/arm.md (conds): Remove jump_clob case.
15725 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
15726 splits): Change comparison_operator to arm_comparison_operator.
15727 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
15730 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
15732 * dojump.c (do_compare_rtx_and_jump): Try swapping the
15733 condition for floating point modes.
15734 * expmed.c (emit_store_flag_1): Move here a bigger part
15735 of emit_store_flag.
15736 (emit_store_flag): Try swapping the condition for floating point
15738 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
15740 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
15742 * expr.c (expand_expr_real_1): Just use do_store_flag.
15743 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
15744 emit_store_flag_force.
15745 * expmed.c (emit_store_flag_force): Copy here trick
15746 previously in expand_expr_real_1. Try reversing the comparison.
15747 (emit_store_flag_1): Work if target is NULL.
15748 (emit_store_flag): Work if target is NULL, using the result mode
15749 from the comparison. Use split_comparison, restructure final part
15750 to simplify conditionals.
15752 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
15754 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
15755 * dojump.c (do_jump): Change handling of floating-point
15756 ops to use just do_compare_and_jump.
15757 (split_comparison): New.
15758 (do_compare_rtx_and_jump): Add here logic coming previously
15759 in do_jump, using split_comparison.
15761 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
15764 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
15766 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
15768 * tree-ssa-alias.c: Fix unintentional commit.
15770 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
15772 * passes.c (execute_one_pass): Fix unintentional commit.
15774 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
15776 * df-problems.c (df_set_seen, df_unset_seen): Delete.
15777 (df_rd_local_compute, df_md_local_compute): Inline them.
15779 (df_md_scratch): New.
15780 (df_md_alloc, df_md_free): Allocate/free it.
15781 (df_md_local_compute): Only include live registers in init.
15782 (df_md_transfer_function): Prune the in-set computed by
15783 the confluence function, and the gen-set too.
15785 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
15787 PR rtl-optimization/26854
15788 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
15789 * df-problems.c (df_rd_add_problem): Fix comment.
15790 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
15791 df_md_simulate_artificial_defs_at_top,
15792 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
15793 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
15794 df_md_transfer_function, df_md_init, df_md_confluence_0,
15795 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
15796 problem_MD, df_md_add_problem): New.
15797 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
15798 df_md_get_bb_info): New.
15799 (DF_LAST_PROBLEM_PLUS1): Adjust.
15801 * Makefile.in (fwprop.o): Include domwalk.h.
15802 * fwprop.c: Include domwalk.h.
15803 (reg_defs, reg_defs_stack): New.
15804 (bitmap_only_bit_between): Remove.
15805 (process_defs): New.
15806 (process_uses): Use reg_defs and local_md instead of
15807 bitmap_only_bit_between and local_rd.
15808 (single_def_use_enter_block): New, from build_single_def_use_links.
15809 (single_def_use_leave_block): New.
15810 (build_single_def_use_links): Remove code moved to
15811 single_def_use_enter_block, invoke domwalk.
15812 (use_killed_between): Adjust comment.
15814 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
15816 * bitmap.h (bitmap_ior_and_into): New.
15817 * bitmap.c (bitmap_ior_and_into): New.
15819 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
15821 * domwalk.h (struct dom_walk_data): Remove all callbacks except
15822 before_dom_children_before_stmts and after_dom_children_after_stmts.
15823 Rename the two remaining callbacks to just before_dom_children and
15824 after_dom_children. Remove other GIMPLE statement walking bits.
15825 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
15826 * graphite.c: Do not include domwalk.h.
15827 * tree-into-ssa.c (interesting_blocks): New global.
15828 (struct mark_def_sites_global_data): Remove it and names_to_rename.
15829 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
15830 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
15831 now that they're not domwalk callbacks.
15832 (rewrite_initialize_block): Rename to...
15833 (rewrite_enter_block): ... this, place after called functions. Test
15834 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
15835 (rewrite_finalize_block): Rename to...
15836 (rewrite_leave_block): ... this, place after called functions.
15837 (rewrite_update_init_block): Rename to...
15838 (rewrite_update_enter_block): ... this, place after called functions.
15839 Test interesting_blocks, call rewrite_update_stmt and
15840 rewrite_update_phi_arguments.
15841 (rewrite_update_fini_block): Rename to...
15842 (rewrite_leave_block): ... this, place after called functions.
15843 (rewrite_blocks): Remove last argument, simplify initialization of
15845 (mark_def_sites_initialize_block): Rename to...
15846 (mark_def_sites_block): ... this, call mark_def_sites.
15847 (mark_def_sites_blocks): Remove argument, simplify initialization of
15849 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
15850 (update_ssa): Likewise.
15851 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
15853 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
15854 (dom_opt_initialize_block): Rename to...
15855 (dom_opt_enter_block): ... this, place after called functions. Walk
15856 statements here, inline propagate_to_outgoing_edges.
15857 (dom_opt_finalize_block): Rename to...
15858 (dom_opt_leave_block): ... this, place after called functions.
15859 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
15861 (dse_enter_block, dse_record_phi): New.
15862 (dse_record_phis): Delete.
15863 (dse_finalize_block): Rename to...
15864 (dse_leave_block): ... this.
15865 (tree_ssa_dse): Simplify initialization of walk_data.
15866 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
15867 Adjust initialization of walk_data.
15868 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
15869 * tree-ssa-loop-phiopt.c (get_non_trapping):
15870 Adjust initialization of walk_data.
15871 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
15872 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
15873 it's not a domwalk callback.
15874 (uncprop_initialize_block): Rename to...
15875 (dse_enter_block): ... this, call uncprop_into_successor_phis.
15876 (dse_finalize_block): Rename to...
15877 (dse_leave_block): ... this.
15878 (tree_ssa_uncprop): Simplify initialization of walk_data.
15879 * Makefile.in: Adjust dependencies.
15881 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
15883 * arm.md (casesi): Fix test for Thumb1.
15884 (thumb1_casesi_internal_pic): Likewise.
15885 (thumb1_casesi_dispatch): Likewise.
15887 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
15889 * config/arm/arm-cores.def: Added core cortex-m0.
15890 * config/arm/arm-tune.md: Regenerated.
15891 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
15893 2009-06-26 DJ Delorie <dj@redhat.com>
15895 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
15897 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
15898 the scheduler doesn't tag jump insns.
15900 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
15902 * c-decl.c (merge_decls): Re-indent.
15904 2009-06-26 Janis Johnson <janis187@us.ibm.com>
15907 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
15908 Special-case decimal float constants.
15910 2009-06-26 Richard Henderson <rth@redhat.com>
15912 * function.h (struct function): Add cannot_be_copied_reason,
15913 and cannot_be_copied_set.
15914 * tree-inline.c (has_label_address_in_static_1): Rename from
15915 inline_forbidden_p_2; don't set inline_forbidden_reason here.
15916 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
15917 don't set inline_forbidden_reason.
15918 (copy_forbidden): New function, split out of inline_forbidden_p.
15919 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
15920 (inline_forbidden_p): Use copy_forbidden.
15921 (tree_versionable_function_p): Likewise.
15922 (inlinable_function_p): Merge into tree_inlinable_function_p.
15923 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
15924 * ipa-cp.c (ipcp_versionable_function_p): New function.
15925 (ipcp_cloning_candidate_p): Use it.
15926 (ipcp_node_modifiable_p): Likewise.
15928 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
15930 * builtins.c (expand_builtin_alloca): Handle builtin alloca
15931 that is marked not to be inlined. Remove flag_mudflap use.
15932 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
15933 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
15935 2009-06-26 Steve Ellcey <sje@cup.hp.com>
15938 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
15939 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
15941 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
15943 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
15945 (__mingwthr_remove_key_dtor): Likewise.
15947 2009-06-26 Richard Guenther <rguenther@suse.de>
15949 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
15951 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
15953 PR middle-end/40525
15954 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
15955 try the non-cond_exec path also.
15957 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15960 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
15961 (output_cbranch): Use new functions.
15962 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
15965 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
15966 Pat Haugen <pthaugen@us.ibm.com>
15967 Revital Eres <ERES@il.ibm.com>
15969 * config/rs6000/rs6000.c (print_operand): Correct lossage message
15970 for %c error. Add %x support to print VSX registers as a unified
15971 register set, instead of separate float and altivec registers.
15972 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
15973 %y case, and add support for VSX pre-modify addresses.
15974 (output_toc): Add assert for CONST containing an integer constant
15976 (rs6000_adjust_cost): Add POWER7 support.
15977 (insn_must_be_first_in_group): Ditto.
15978 (insn_must_be_last_in_group): Ditto.
15979 (rs6000_emit_popcount): Ditto.
15980 (rs6000_vector_mode_supported_p): Ditto.
15982 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
15983 Change some of the functions called by macros to being called
15984 through a pointer, so debug functions can be inserted if
15985 -mdebug=addr or -mdebug=cost.
15986 (rs6000_preferred_reload_class_ptr): Ditto.
15987 (rs6000_secondary_reload_class_ptr): Ditto.
15988 (rs6000_secondary_memory_needed_ptr): Ditto.
15989 (rs6000_cannot_change_mode_class_ptr): Ditto.
15990 (rs6000_secondary_reload_inner): Ditto.
15991 (rs6000_legitimize_reload_address): Ditto.
15992 (rs6000_legitimize_reload_address_ptr): Ditto.
15993 (rs6000_mode_dependent_address): Ditto.
15994 (rs6000_mode_dependent_address_ptr): Ditto.
15996 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
15997 function to return true if the mode allows reg + integer
15999 (virtual_stack_registers_memory_p): New function to return true if
16000 the address refers to a virtual stack register.
16001 (rs6000_legitimate_offset_address_p): Move code to say whether a
16002 mode supports reg+int addressing to reg_offset_addressing_ok_p and
16004 (rs6000_legitimate_address_p): Add checks for modes that only can
16005 do reg+reg addressing. Start adding VSX support.
16006 (rs6000_legitimize_reload_address): Ditto.
16007 (rs6000_legitimize_address): Ditto.
16008 (rs6000_debug_legitimate_address_p): New debug functions for
16009 -mdebug=addr and -mdebug=cost.
16010 (rs6000_debug_rtx_costs): Ditto.
16011 (rs6000_debug_address_costs): Ditto.
16012 (rs6000_debug_adjust_cost): Ditto.
16013 (rs6000_debug_legitimize_address): Ditto.
16014 (rs6000_legitimize_reload_address_ptr): Point to call normal
16015 function or debug function. Make functions called via pointer
16017 (rs6000_mode_dependent_address_ptr): Ditto.
16018 (rs6000_secondary_reload_class_ptr): Ditto.
16019 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
16020 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
16021 into a friendlier error.
16022 (rs6000_init_builtins): Add initial VSX support.
16023 (rs6000_adjust_cost): Fix some spacing issues.
16025 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
16026 (REG_CLASS_NAMES): Ditto.
16027 (REG_CLASS_CONTENTS): Ditto.
16028 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
16029 pointer, to add -mdebug=addr support.
16030 (CANNOT_CHANGE_MODE_CLASS): Ditto.
16031 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
16032 -mdebug=addr support.
16033 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
16034 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
16035 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
16037 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
16039 (bswapsi*): Set attribute types for load/store. Add combiner
16040 patterns to eliminate zero extend on 64-bit.
16041 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
16042 stdbrx if the hardware supports those instructions.
16044 2009-06-25 Ian Lance Taylor <iant@google.com>
16046 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
16047 (Link Options): Document -static-libstdc++.
16049 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
16052 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
16053 DATA_ALIGNMENT instead.
16055 2009-06-25 Richard Guenther <rguenther@suse.de>
16057 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
16058 indirect references against the callused/escaped solutions.
16059 (call_may_clobber_ref_p_1): Likewise.
16061 2009-06-25 Martin Jambor <mjambor@suse.cz>
16063 PR tree-optimization/40493
16064 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
16065 (enum unscalarized_data_handling): New type.
16066 (handle_unscalarized_data_in_subtree): Return what has been done.
16067 (load_assign_lhs_subreplacements): Handle left flushes differently.
16068 (sra_modify_assign): Use unscalarized_data_handling, simplified
16069 condition determining whether to remove the statement.
16071 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
16073 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
16074 excerpt - @ should be doubled for texinfo.
16076 2009-06-24 Ian Lance Taylor <iant@google.com>
16078 * config/arc/arc.c: Include "df.h".
16079 (arc_attribute_table): Make static. Move higher in file.
16080 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
16081 (output_shift): Initialize n later to avoid warning.
16082 * config/arm/arm.c (arm_attribute_table): Make static. Move
16084 * config/avr/avr.c (avr_attribute_table): Make static. Move
16086 (reg_class_tab): Change array type from int to enum reg_class.
16087 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
16089 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
16090 (lshrhi3_out): Likewise.
16091 (class_likely_spilled_p): Change return type to bool.
16092 (avr_rtx_costs): Use local code variable with enum type.
16093 * config/avr/avr.md (movmemhi): Use add_reg_note.
16094 (andhi3, andsi3): Don't use AS2 with "and".
16095 (iorhi3, iorsi3): Don't use AS2 with "or".
16096 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
16097 * config/crx/crx.c: Include "df.h".
16098 (crx_attribute_table): Make static.
16099 * config/m32r/m32r.c: Include "df.h".
16100 (m32r_attribute_table): Make static. Move higher in file.
16101 (pop): Use add_reg_note.
16102 (block_move_call): Change 0 to LCT_NORMAL in function call.
16103 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
16104 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
16105 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
16106 declare, not just when TREE_CODE is defined.
16107 * config/m68hc11/m68hc11.c: Include "expr.h".
16108 (m68hc11_attribute_table): Make static. Move higher in file.
16109 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
16111 (m68hc11_register_indirect_p): Likewise.
16112 (m68hc11_function_arg_padding): Change return type to enum
16114 (emit_move_after_reload): Use add_reg_note.
16115 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
16116 (m68hc11_split_logical): Likewise.
16117 (m68hc11_rtx_costs): Add local code_and outer_code variables with
16119 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
16120 to VOIDmode in function call.
16121 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
16123 (m68hc11_split_logical): Update declaration.
16124 (m68hc11_function_arg_padding): Update declaration.
16125 * config/mcore/mcore.c (regno_reg_class): Change form array of int
16126 to array of enum reg_class.
16127 (mcore_attribute_table): Make static. Move higher in file.
16128 (mcore_rtx_costs): Add cast to enum type.
16129 * config/mcore/mcore.h (regno_reg_class): Update declaration.
16130 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
16131 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
16133 * config/sh/predicates.md (trapping_target_operand): Rename and to
16135 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
16137 * config/spu/spu.c (spu_attribute_table): Make static. Move
16139 * config/v850/v850.c (v850_attribute_table): Make static. Move
16141 (v850_rtx_costs): Use local code with enum type.
16142 (expand_epilogue): Add cast.
16143 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
16145 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
16148 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
16149 -m2a-single-only and -m2a-nofpu.
16150 * config/sh/sh.opt: Document m2a generates FPU code.
16152 2009-06-24 Anatoly Sokolov <aesok@post.ru>
16154 * defaults.h (CAN_ELIMINATE): Provide default.
16155 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
16156 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
16157 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
16158 * config/spu/spu.h (CAN_ELIMINATE): Delete.
16159 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
16160 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
16161 * config/cris/cris.h (CAN_ELIMINATE): Delete.
16162 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
16163 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
16164 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
16166 2009-06-24 DJ Delorie <dj@redhat.com>
16168 * mep-ext-cop.cpu: Fix copyright notice.
16169 * mep-default: Fix copyright notice.
16170 * mep-core: Fix copyright notice.
16171 * mep: Fix copyright notice.
16172 * mep-ivc2: Fix copyright notice.
16173 * mep-c5: Fix copyright notice.
16175 2009-06-24 Denis Chertykov <chertykov@gmail.com>
16177 * doc/contrib.texi (Contributors):
16179 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
16181 PR middle-end/40501
16182 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
16183 src and dst operands if necessary.
16185 2009-06-23 DJ Delorie <dj@redhat.com>
16188 * config.gcc: Add mep support.
16189 * recog.c: Resurrect validate_replace_rtx_subexp().
16190 * recog.h: Likewise.
16191 * config/mep/: Add new port:
16192 * config/mep/constraints.md: New file.
16193 * config/mep/default.h: New file.
16194 * config/mep/intrinsics.h: New file.
16195 * config/mep/intrinsics.md: New file.
16196 * config/mep/ivc2-template.h: New file.
16197 * config/mep/mep-c5.cpu: New file.
16198 * config/mep/mep-core.cpu: New file.
16199 * config/mep/mep-default.cpu: New file.
16200 * config/mep/mep-ext-cop.cpu: New file.
16201 * config/mep/mep-intrin.h: New file.
16202 * config/mep/mep-ivc2.cpu: New file.
16203 * config/mep/mep-lib1.asm: New file.
16204 * config/mep/mep-lib2.c: New file.
16205 * config/mep/mep-pragma.c: New file.
16206 * config/mep/mep-protos.h: New file.
16207 * config/mep/mep-tramp.c: New file.
16208 * config/mep/mep.c: New file.
16209 * config/mep/mep.cpu: New file.
16210 * config/mep/mep.h: New file.
16211 * config/mep/mep.md: New file.
16212 * config/mep/mep.opt: New file.
16213 * config/mep/predicates.md: New file.
16214 * config/mep/t-mep: New file.
16216 2009-06-23 Ian Lance Taylor <iant@google.com>
16218 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
16219 from loose_warn into c_loose_warn and from strict_warn into
16220 c_strict_warn. Set and substitute warn_cxxflags. Check for
16221 --enable-build-with-cxx. Set and substitute
16222 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
16223 * Makefile.in (CXXFLAGS): New variable.
16224 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
16225 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
16226 the default is the same as $(STRICT_WARN).
16227 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
16228 (CXX): New variable.
16229 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
16230 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
16231 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
16232 (HOST_LIBS): New variable.
16233 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
16234 (ALL_CXXFLAGS): New variable.
16235 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
16236 * doc/install.texi (Configuration): Document
16237 --enable-build-with-cxx, --with-stage1-ldflags,
16238 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
16239 * configure: Rebuild.
16241 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16243 * config/arm/arm.c (arm_override_options): Fix braces and formatting
16244 from previous commit.
16246 2009-06-23 Ian Lance Taylor <iant@google.com>
16248 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
16250 2009-06-23 Ian Lance Taylor <iant@google.com>
16252 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
16253 with ATTRIBUTE_UNUSED.
16255 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16256 Pat Haugen <pthaugen@us.ibm.com>
16257 Revital Eres <eres@il.ibm.com>
16259 * config.in (HAVE_AS_POPCNTD): Add default definition.
16260 (HAVE_AS_LWSYNC): Ditto.
16262 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
16264 (gcc_cv_as_powerpc_cmpb): Ditto.
16265 (gcc_cv_as_powerpc_dfp): Ditto.
16266 (gcc_cv_as_powerpc_vsx): Ditto.
16267 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
16268 supporting the popcntd/lwsync instructions.
16269 (gcc_cv_as_powerpc_lwsync): Ditto.
16270 * configure: Regenerate.
16272 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
16273 -mcpu=native and -mcpu=power7.
16274 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
16276 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
16277 a variable instead of a mask to reduce the number of mask bits.
16278 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
16279 (-mbit-word): Ditto.
16280 (-mregnames): Ditto.
16281 * config/rs6000/rs6000.opt (-mupdate): Ditto.
16282 (-mfused-madd): Ditto.
16284 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
16286 (-mvsx): New switch for VSX instructions.
16287 (-misel): Move from a variable to a mask to allow it to be set by
16290 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
16291 function declaration to an array declaration.
16292 (rs6000_hard_regno_nregs): New external array declaration.
16294 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
16295 files included by rs6000.md.
16297 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16298 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
16300 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
16302 (rs6000_debug_reg): New -mdebug= variables.
16303 (rs6000_debug_addr): Ditto.
16304 (rs6000_debug_cost): Ditto.
16305 (rs6000_pmode): New variable to hold Pmode.
16306 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
16307 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
16308 calculated at compiler start.
16309 (rs6000_hard_regno_nregs): Change function to an array which holds
16310 HARD_REGNO_NREGS calculated at compiler start.
16311 (rs6000_explicit_options): Delete isel field.
16312 (rs6000_vector_unit): New array to hold which vector unit
16313 supports arithmetic options for a given type.
16314 (rs6000_vector_mem): New array to hold which vector unit supports
16315 memory reference operations for a given type.
16316 (rs6000_vector_align): New array to given the alignment of each
16318 (power7_cost): New basic costs for power7.
16319 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
16320 (rs6000_hard_regno_nregs_internal): New function, moved from
16321 HARD_REGNO_NREGS, to calculate the number of registers each hard
16322 register takes for each type.
16323 (rs6000_debug_reg_print): New function for -mdebug=reg support.
16324 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
16325 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
16326 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
16327 unit information here so it is calculated once at compiler startup
16329 (rs6000_override_options): Make -misel a target mask. Add more
16330 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
16331 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
16333 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
16334 (rs6000_handle_option): Move -misel from variable to target mask.
16335 (rs6000_builtin_mask_for_load): Add VSX support.
16336 (rs6000_conditional_register_usage): Ditto.
16337 (USE_ALTIVEC_FOR_ARG_P): Ditto.
16338 (function_arg_boundary): Ditto.
16339 (rs6000_expand_builtin): Ditto.
16340 (def_builtin): Make abort message a little friendlier.
16341 (rs6000_emit_int_cmove): Add support for 64-bit isel.
16343 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
16344 assembler support the popcntd instruction instead of a vsx
16345 instruction to enable power7 support.
16346 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
16347 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
16348 option to the assembler if -mcpu=native.
16349 (ASM_CPU_NATIVE_SPEC): Ditto.
16350 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
16352 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
16353 the lwsync instruction.
16354 (enum processor_type): Add PROCESSOR_POWER7.
16355 (rs6000_debug_reg): New -mdebug= options.
16356 (rs6000_debug_addr): Ditto.
16357 (rs6000_debug_cost): Ditto.
16358 (rs6000_isel): Delete.
16359 (enum rs6000_vector): New enum to say what vector unit we have.
16360 (VECTOR_UNIT_*): New macros to say which vector unit has
16361 arithmetic operations for a given type.
16362 (VECTOR_MEM_*): New macros to say which vector unit has memory
16363 operations for a given type.
16364 (TARGET_LDBRX): Whether the machine supports the ldbrx
16366 (TARGET_ISEL): Delete, -misel moved to be a mask.
16367 (TARGET_ISEL64): New macro for 64-bit isel support.
16368 (UNITS_PER_VSX_WORD): New macro.
16369 (POINTER_SIZE): Move to be an external variable, rather than
16370 calculating whether we are generating 32 ot 64-bit code.
16372 (STACK_BOUNDARY): Add VSX support.
16373 (LOCAL_ALIGNMENT): Ditto.
16374 (SLOW_UNALIGNED_ACCESS): Ditto.
16375 (VSX_REGNO_P): New macro for VSX support.
16376 (VFLOAT_REGNO_P): Ditto.
16377 (VINT_REGNO_P): Ditto.
16378 (VLOGICAL_REGNO_P): Ditto.
16379 (VSX_VECTOR_MODE): Ditto.
16380 (VSX_SCALAR_MODE): Ditto.
16382 (VSX_MOVE_MODE): Ditto.
16383 (VSX_REG_CLASS_P): Ditto.
16384 (HARD_REGNO_NREGS): Instead of calling a function, use an array
16386 (UNITS_PER_SIMD_WORD): Add VSX support.
16387 (MODES_TIEABLE_P): Ditto.
16388 (STARTING_FRAME_OFFSET): Ditto.
16389 (STACK_DYNAMIC_OFFSET): Ditto.
16390 (EPILOGUE_USES): Ditto.
16391 (REGNO_REG_CLASS): Move to array lookup.
16392 (CLASS_MAX_NREGS): Ditto.
16393 (rs6000_vector_reg_class): Add declaration.
16394 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
16395 overlap with the floating point and Altivec registers.
16397 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
16399 * config/rs6000/driver-rs6000.c (asm_names): New static array to
16400 give the appropriate asm switches if -mcpu=native.
16401 (host_detect_local_cpu): Add support for "asm".
16402 (host_detect_local_cpu): Follow GNU code guidelines for name.
16404 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
16405 -mbit-word to a variable instead of being a target mask.
16407 * config/rs6000/sync.md (lwsync): If the assembler supports it,
16408 emit the lwsync instruction instead of emitting the instruction as
16409 an integer constant.
16411 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
16412 fixuns_trundfsi2, move expander into rs6000.md.
16414 * config/rs6000/rs6000.md (cpu): Add power7.
16415 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
16416 (logical predicate patterns): Change the single instruction
16417 primitives that set CR0 to be fast_compare instead of compare.
16419 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
16420 (popcntddi2): Ditto.
16421 (popcount<mode>): Ditto.
16422 (floating multiply/add insns): Name the floating point
16423 multiply/add insns.
16424 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
16425 (isel_unsigned_<mode>): Ditto.
16426 (fixuns_trundfsi2): Move expander here from spe.md.
16427 (smindi3): Define if we have -misel on 64-bit systems.
16432 2009-06-23 Anatoly Sokolov <aesok@post.ru>
16434 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
16436 * config/avr/avr.c (avr_current_device): New variable.
16437 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
16438 (avr_arch, mcu_type_s): Move to avr.h.
16439 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
16440 default_data_section_start fields.
16441 (avr_arch): Moved from avr.c.
16442 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
16443 library_name fields.
16444 (avr_current_device, avr_mcu_types, avr_arch_types,
16445 avr_device_to_arch, avr_device_to_data_start,
16446 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
16447 (EXTRA_SPEC_FUNCTIONS): Define.
16448 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
16449 options mapping. Use device_to_arch and device_to_data_start insted.
16450 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
16451 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
16452 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
16453 * config/avr/driver-avr.c: New file.
16454 * config/avr/avr-devices.c: New file.
16456 2009-06-23 Jakub Jelinek <jakub@redhat.com>
16458 * var-tracking.c (unshare_variable): Force initialized to
16459 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
16460 (set_variable_part): Likewise.
16461 (struct variable_union_info): Remove pos_src field.
16462 (vui_vec, vui_allocated): New variables.
16463 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
16464 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
16465 == 1 use a simpler sorting algorithm. Compute pos field right
16466 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
16467 Avoid quadratic comparison if !flag_var_tracking_uninit.
16468 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
16469 unshare_variable unconditionally.
16470 (dataflow_set_different_2): Removed.
16471 (dataflow_set_different): Don't traverse second hash table.
16472 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
16473 unconditionally to var_reg_set or var_mem_set.
16474 (emit_notes_in_bb): Likewise.
16475 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
16477 (emit_note_insn_var_location): Don't set initialized to
16478 VAR_INIT_STATUS_INITIALIZED early.
16479 (vt_finalize): Free vui_vec if needed, clear vui_vec and
16481 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
16483 * tree-object-size.c (addr_object_size): Instead of checking
16484 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
16485 are no FIELD_DECLs following it.
16487 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
16489 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
16490 order to match bswaps with signed source operands.
16492 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16494 * sdbout.c (sdbout_one_type): Fix braces in switch.
16496 2009-06-23 Richard Guenther <rguenther@suse.de>
16498 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
16500 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
16501 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
16502 var_callused, callused_tree, var_storedanything, storedanything_tree,
16503 var_integer, integer_tree): Remove global variables.
16504 (new_var_info): Do not pass new id, append the new var to the
16505 global variable vector.
16506 (do_ds_constraint): Use is_global_var member of the variable-info.
16507 (new_scalar_tmp_constraint_exp): Adjust.
16508 (create_function_info_for): Likewise.
16509 (create_variable_info_for): Likewise.
16510 (find_what_var_points_to): Remove dead code.
16511 (init_base_vars): Simplify.
16512 (compute_points_to_sets): Adjust.
16514 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
16516 * combine.c (try_combine): Dump information about the insns we're
16519 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
16521 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
16522 check when calling force_to_mode on TRUNCATE's operand.
16524 2009-06-22 Ian Lance Taylor <iant@google.com>
16526 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
16528 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
16530 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
16532 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16534 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
16535 override library linkage flags such as -static-libgcc or
16538 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
16540 * config/m68k/m68k-devices.def: Add line for MCF5221x.
16542 2009-06-22 Ian Lance Taylor <iant@google.com>
16544 * config/linux.opt: Put mglibc ahead of muclibc.
16546 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
16547 for duplicate decls.
16549 2009-06-22 Matthias Klose <doko@ubuntu.com>
16551 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
16553 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
16556 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
16557 instead of NULL if a parser error occurs.
16559 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16561 * dwarf2out.c (dwarf2_debug_hooks): Initialize
16562 non-DWARF2_DEBUGGING_INFO version.
16564 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
16566 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
16567 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
16569 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
16570 (LIBGCC2_TF_CEXT): Define.
16573 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16576 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
16578 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16580 * config/arm/arm.c (arm_override_options): Disable
16581 -mcaller-super-interworking and -mcallee-super-interworking.
16582 * doc/invoke.texi (ARM Options): Document this.
16584 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
16586 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
16587 * config/arm/constraints.md (j): New constraint for movw operands.
16588 (N): Remove thumb2 meaning.
16589 * config/arm/arm.md (*arm_movw): Delete.
16590 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
16591 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
16592 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
16594 2009-06-22 Martin Jambor <mjambor@suse.cz>
16596 PR tree-optimization/40492
16597 * tree-sra.c (sra_modify_assign): Pass zero offsets to
16598 build_ref_for_offset.
16600 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
16602 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
16603 JUMP_TABLE_DATA_P predicates where applicable.
16604 * auto-inc-dec.c: Ditto.
16605 * builtins.c: Ditto.
16606 * caller-save.c: Ditto.
16608 * cfgcleanup.c: Ditto.
16609 * cfglayout.c: Ditto.
16611 * combine.c: Ditto.
16612 * combine-stack-adj.c: Ditto.
16616 * df-scan.c: Ditto.
16618 * dwarf2asm.c: Ditto.
16619 * dwarf2out.c: Ditto.
16620 * emit-rtl.c: Ditto.
16626 * function.c: Ditto.
16629 * genpreds.c: Ditto.
16630 * genrecog.c: Ditto.
16632 * ira-costs.c: Ditto.
16633 * ira-lives.c: Ditto.
16635 * loop-iv.c: Ditto.
16636 * lower-subreg.c: Ditto.
16637 * modulo-sched.c: Ditto.
16639 * postreload.c: Ditto.
16640 * print-rtl.c: Ditto.
16642 * reginfo.c: Ditto.
16643 * regmove.c: Ditto.
16644 * reload1.c: Ditto.
16647 * rtlanal.c: Ditto.
16649 * sched-vis.c: Ditto.
16651 * sel-sched-ir.c: Ditto.
16652 * simplify-rtx.c: Ditto.
16653 * targhooks.c: Ditto.
16654 * var-tracking.c: Ditto.
16655 * vmsdbgout.c: Ditto.
16657 2009-06-22 Matthias Klose <doko@ubuntu.com>
16659 * Makefile.in (install-plugin): Always use DESTDIR.
16661 2009-06-22 Olivier Hainque <hainque@adacore.com>
16663 * config/pa/pa.c (output_call): Don't optimize post call jumps
16664 into return address adjustments if the call may throw.
16666 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
16668 * arm.c (thumb1_output_casesi): New function.
16669 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
16670 optimizing for size or PIC.
16671 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
16672 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
16673 (casesi): Handle Thumb-1 when optimizing for size or PIC.
16674 (thumb1_casesi_internal_pic): New expand rule.
16675 (thumb1_casesi_dispatch): New pattern.
16676 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
16678 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
16679 in the text seciton when PIC or optimizing for size.
16680 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
16681 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
16682 preservation properties of code.
16683 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
16684 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
16685 (__gnu_thumb1_case_si): New function.
16686 * t-arm (LIB1ASMSRC): Define here.
16687 (LIB1ASMFUNCS): Add some common functions.
16688 * t-arm-elf (LIB1ASMSRC): Delete.
16689 (LIB1ASMFUNCS): Append to existing set.
16690 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
16691 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
16692 * t-symbian (LIB1ASMFUNCS): Likewise.
16693 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
16694 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
16696 2009-06-21 Richard Guenther <rguenther@suse.de>
16698 PR tree-optimization/38729
16699 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
16700 to loops with a single exit if -fno-expensive-optimizations.
16702 2009-06-21 Jakub Jelinek <jakub@redhat.com>
16704 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
16705 (dataflow_set): Change vars type from htab_t to shared_hash.
16706 (shared_hash_pool, empty_shared_hash): New variables.
16707 (vars_clear): Removed.
16708 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
16709 shared_hash_find_slot_unshare, shared_hash_find_slot,
16710 shared_hash_find_slot_noinsert, shared_hash_find): New
16712 (shared_hash_unshare, shared_hash_destroy): New functions.
16713 (unshare_variable): Unshare set->vars if shared, use
16715 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
16716 (get_init_value, find_src_set_src, dump_dataflow_set,
16717 clobber_variable_part, emit_notes_for_differences): Use
16719 (dataflow_set_init): Remove second argument, set vars to
16720 empty_shared_hash instead of creating a new htab.
16721 (dataflow_set_clear): Call shared_hash_destroy and set vars
16722 to empty_shared_hash instead of calling vars_clear.
16723 (dataflow_set_copy): Don't call vars_copy, instead just share
16724 the src htab with dst.
16725 (variable_union): Use shared_hash_*, use initially NO_INSERT
16726 lookup if set->vars is shared. Don't keep slot cleared before
16727 calling unshare_variable. Unshare set->vars if needed.
16728 Even ->refcount == 1 vars must be unshared if set->vars is shared
16729 and var needs to be modified.
16730 (variable_canonicalize): New function.
16731 (dataflow_set_union): If dst->vars is empty, just share src->vars
16732 with dst->vars and traverse with variable_canonicalize to canonicalize
16733 and unshare what is needed.
16734 (dataflow_set_different): If old_set and new_set use the same shared
16735 htab, they aren't different. If number of htab elements is different,
16736 htabs are different. Use shared_hash_*.
16737 (dataflow_set_destroy): Call shared_hash_destroy instead of
16739 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
16740 second argument to dataflow_set_init.
16741 (vt_initialize): Likewise. Initialize shared_hash_pool and
16742 empty_shared_hash, move bb in/out initialization afterwards.
16743 Use variable_htab_free instead of NULL as changed_variables del hook.
16744 (variable_was_changed): Change type of second argument to pointer to
16745 dataflow_set. When inserting var into changed_variables, bump
16746 refcount. Unshare set->vars if set is shared htab and slot needs to
16748 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
16749 lookup if set->vars is shared. Unshare set->vars if needed.
16750 Even ->refcount == 1 vars must be unshared if set->vars is shared
16751 and var needs to be modified. Adjust variable_was_changed caller.
16752 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
16753 vars must be unshared if set->vars is shared and var needs to be
16754 modified. Adjust variable_was_changed caller.
16755 (emit_note_insn_var_location): Don't pool_free var.
16756 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
16758 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
16759 free_alloc_pool on shared_hash_pool.
16761 2009-06-20 Anthony Green <green@moxielogic.com>
16763 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
16764 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
16766 2009-06-20 Richard Guenther <rguenther@suse.de>
16768 * tree-ssa-structalias.c (find_func_aliases): For memset use
16769 a constraint from NULL if we memset to zero.
16770 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
16771 we explicitly handle that do not read from memory.
16772 (call_may_clobber_ref_p_1): Properly handle builtins that may
16775 2009-06-20 Richard Guenther <rguenther@suse.de>
16777 PR tree-optimization/40495
16778 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
16779 (new_scalar_tmp_constraint_exp): New function.
16780 (process_constraint): Do not create temporary decls.
16781 (process_all_all_constraints): Likewise.
16782 (handle_const_call): Likewise.
16783 (create_function_info_for): Do not set decl.
16785 2009-06-19 Ian Lance Taylor <iant@google.com>
16787 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
16788 (rs6000_attribute_table): Make static; move before use.
16790 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
16792 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
16793 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
16794 Propagate the TREE_READONLY flag without overwriting it.
16795 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
16796 Propagate the TREE_READONLY flag onto the result.
16797 (process_call_operands): Move around. Use correct constant value.
16799 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16802 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
16803 * config/arm/arm.md: Likewise.
16805 2009-06-19 Ian Lance Taylor <iant@google.com>
16807 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
16808 to GIMPLE_ERROR_MARK.
16810 * c-typeck.c (build_conditional_expr): Add op1_original_type and
16811 op2_original_type parameters. Warn about using different enum types.
16812 * c-parser.c (c_parser_conditional_expression): Pass original
16813 types to build_conditional_expr.
16814 * c-tree.h (build_conditional_expr): Update declaration.
16816 2009-06-19 Ian Lance Taylor <iant@google.com>
16818 * config/i386/i386.c (ix86_function_specific_save): Test that
16819 fields match values, rather than testing the values are in a
16822 2009-06-19 Richard Guenther <rguenther@suse.de>
16824 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
16825 ADDR_EXPR pointers.
16826 (ptr_derefs_may_alias_p): Likewise.
16827 (ptr_deref_may_alias_ref_p_1): New function.
16828 (ptr_deref_may_alias_ref_p): Likewise.
16829 (ref_maybe_used_by_call_p_1): Handle builtins that are not
16830 covered by looking at the ESCAPED solution.
16831 (call_may_clobber_ref_p_1): Likewise.
16832 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
16833 Handle NULL_TREE offset. Do not produce redundant constraints.
16834 (process_all_all_constraints): New helper function.
16835 (do_structure_copy): Use it.
16836 (handle_lhs_call): Likewise.
16837 (find_func_aliases): Handle some builtins with pointer arguments
16838 and/or return values explicitly.
16840 2009-06-19 Ian Lance Taylor <iant@google.com>
16842 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
16844 2009-06-19 Ian Lance Taylor <iant@google.com>
16846 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
16848 2009-06-19 Ian Lance Taylor <iant@google.com>
16850 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
16851 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
16854 * c-decl.c (finish_decl): If -Wc++-compat, warn about
16855 uninitialized const.
16857 2009-06-19 Ian Lance Taylor <iant@google.com>
16859 * dse.c (struct store_info): Rename bitmap field to bmap. Change
16862 * c-decl.c (in_struct, struct_types): Remove.
16863 (struct c_binding): Add in_struct field.
16864 (c_binding_ptr): Define type, along with VEC.
16865 (struct c_struct_parse_info): Define.
16866 (struct_parse_info): New static variable.
16867 (bind): Initialize in_struct field.
16868 (start_struct): Remove enclosing_in_struct and
16869 enclosing_struct_types parameters. Add
16870 enclosing_struct_parse_info parameter. Change all callers. Set
16871 struct_parse_info rather than in_struct and struct_types.
16872 (grokfield): If -Wc++-compat and there is a symbol binding for the
16873 field name, set the in_struct flag and push it on the
16874 struct_parse_info->fields vector.
16875 (warn_cxx_compat_finish_struct): New static function.
16876 (finish_struct): Remove enclosing_in_struct and
16877 enclosing_struct_types parameters. Add
16878 enclosing_struct_parse_info parameter. Change all callers. Don't
16879 set C_TYPE_DEFINED_IN_STRUCT here. Call
16880 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
16881 parameter. Only push on struct_types if warn_cxx_compat.
16882 (finish_enum): Only push on struct_types if warn_cxx_compat.
16883 (declspecs_add_type): Add loc parameter. Change all callers.
16884 Change all error calls to error_at. Pass loc, not input_location,
16885 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
16886 defined in a struct. If -Wc++-compat and parsing a struct, record
16887 that a typedef name was used.
16888 * c-parser.c (c_parser_declspecs): Get location to pass to
16889 declspecs_add_type.
16890 (c_parser_struct_or_union_specifier): Update calls to start_struct
16892 * c-tree.h (struct c_struct_parse_info): Declare.
16893 (finish_struct, start_struct): Update declarations.
16894 (declspecs_add_type): Update declaration.
16896 2009-06-19 Ian Lance Taylor <iant@google.com>
16898 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
16899 variable with an anonymous type.
16901 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
16903 * see.c: Remove for real.
16905 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
16907 * optabs.h (enum optab_index): Add new OTI_significand.
16908 (significand_optab): Define corresponding macro.
16909 * optabs.c (init_optabs): Initialize significand_optab.
16910 * genopinit.c (optabs): Implement significand_optab using
16911 significand?f2 patterns.
16912 * builtins.c (expand_builtin_mathfn): Handle
16913 BUILT_IN_SIGNIFICAND{,F,L}.
16914 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
16915 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
16917 * config/i386/i386.md (significandxf2, significand<mode>2): New
16918 expanders to implement significandf, significand and significandl
16919 built-ins as inline x87 intrinsics.
16921 2009-06-18 Anatoly Sokolov <aesok@post.ru>
16923 * config/avr/avr.c (avr_override_options): Remove setting value of
16924 PARAM_INLINE_CALL_COST.
16926 2009-06-18 Richard Henderson <rth@redhat.com>
16929 * tree-pass.h (TDF_ASMNAME): New.
16930 * tree-dump.c (dump_options): Add asmname.
16931 * doc/invoke.texi: Document it.
16933 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
16934 (dump_decl_name): ...here.
16935 (dump_function_name): New flags arg; mind TDF_ASMNAME.
16936 (dump_generic_node): Update dump_function_name calls.
16937 (print_call_name): New flags arg; update all dump calls.
16938 * diagnostic.h (print_call_name): Update.
16939 * gimple-pretty-print.c (dump_gimple_call): Update.
16941 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
16944 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
16946 2009-06-18 Diego Novillo <dnovillo@google.com>
16948 * doc/plugins.texi: Document plugin_is_GPL_compatible.
16949 * plugin.c (str_license): Declare.
16950 (try_init_one_plugin): Assert that the symbol
16951 'plugin_is_GPL_compatible' exists.
16953 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
16956 * Makefile.in (OBJS-common): Remove see.o.
16958 * common.opt (fsee): Mark as preserved for backward compatibility.
16959 * opts.c (common_handle_option): Add OPT_fsee to the backward
16960 compatibility section.
16961 * passes.c (init_optimization_passes, pass_see): Remove pass.
16962 * timevar.def (TV_SEE): Remove.
16963 * tree-pass.h (pass_see): Remove declaration.
16964 * doc/invoke.texi (-fsee): Remove documentation.
16966 2009-06-18 Martin Jambor <mjambor@suse.cz>
16968 * tree-sra.c: Include statistics.h
16969 (sra_stats): New variable.
16970 (sra_initialize): Clear sra_stats.
16971 (create_access_replacement): Increment sra_stats.replacements.
16972 (get_access_replacement): Do not return twice.
16973 (analyze_all_variable_accesses): Increment statistics counter by the
16974 number of scalarized aggregates.
16975 (generate_subtree_copies): Increment sra_stats.subtree_copies.
16976 (sra_modify_expr): Increment sra_stats.exprs.
16977 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
16978 (sra_modify_assign): Increment sra_stats.exprs,
16979 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
16980 (perform_intra_sra): Update statistics counters.
16981 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
16983 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
16985 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
16986 (arm_scalar_mode_supported_p): New function.
16988 2009-06-18 Paul Brook <paul@codesourcery.com>
16989 Sandra Loosemore <sandra@codesourcery.com>
16991 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
16992 (__extendhfsf2, __truncsfhf2): Define.
16993 * config/arm/fp16.c: New file.
16994 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
16995 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
16997 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
16999 * doc/extend.texi (Half-Precision): New section.
17000 * doc/invoke.texi (Option Summary): List -mfp16-format.
17001 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
17002 * config/arm/arm.opt (mfp16-format=): New.
17003 * config/arm/arm.c: Include intl.h.
17004 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
17005 (TARGET_INVALID_RETURN_TYPE): Redefine.
17006 (TARGET_PROMOTED_TYPE): Redefine.
17007 (TARGET_CONVERT_TO_TYPE): Redefine.
17008 (arm_fp16_format): Define.
17009 (all_fpus): Add entry for neon-fp16.
17010 (fp_model_for_fpu): Likewise.
17011 (struct fp16_format): Declare.
17012 (all_fp16_formats): Define.
17013 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
17015 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
17017 (arm_legitimate_index_p): Treat HFmode like HImode.
17018 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
17019 (coproc_secondary_reload_class): Special-case HFmode.
17020 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
17021 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
17022 (arm_init_fp16_builtins): New.
17023 (arm_init_builtins): Call it.
17024 (arm_invalid_parameter_type): New.
17025 (arm_invalid_return_type): New.
17026 (arm_promoted_type): New.
17027 (arm_convert_to_type).
17028 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
17030 (arm_emit_fp16_const): New function.
17031 (arm_mangle_type): Mangle __fp16 as "Dh".
17032 * config/arm/arm.h (TARGET_VFPD32): Make it know about
17034 (TARGET_NEON_FP16): New.
17035 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
17036 (enum fputype): Add FPUTYPE_NEON_FP16.
17037 (enum arm_fp16_format_type): Declare.
17038 (arm_fp16_format): Declare.
17039 (LARGEST_EXPONENT_IS_NORMAL): Define.
17040 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
17041 * config/arm/arm-modes.def (HFmode): Define.
17042 * config/arm/vfp.md (*movhf_vfp): New.
17043 (extendhfsf2): New.
17045 * config/arm/arm.md (fpu): Add neon_fp16.
17046 (floatsihf2, floatdihf2): New.
17047 (fix_trunchfsi2, fix_trunchfdi2): New.
17049 (extendhfdf2): New.
17051 (*arm32_movhf): New.
17052 (*thumb1_movhf): New.
17053 (consttable_2): Add check for HFmode constants.
17054 (consttable_4): Handle HFmode constants.
17056 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
17058 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
17060 2009-06-17 Olivier Hainque <hainque@adacore.com>
17062 * collect2.c (main): Use CONST_CAST2 to perform char ** to
17063 const char ** conversion in AIX specific section.
17065 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
17067 * config/i386/i386.c (ix86_special_builtin_type): Remove
17068 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
17069 (bdesc_special_args): Updated.
17070 (ix86_init_mmx_sse_builtins): Likewise.
17071 (ix86_expand_special_args_builtin): Likewise.
17073 2009-06-17 Richard Henderson <rth@redhat.com>
17075 * tree-pretty-print.c (maybe_dump_asm_name): New.
17076 (dump_decl_name): Use it.
17077 (PRINT_FUNCTION_NAME): Merge into...
17078 (dump_function_name): ... here. Use maybe_dump_asm_name.
17080 2009-06-17 Cary Coutant <ccoutant@google.com>
17082 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
17084 * debug.c (struct gcc_debug_hooks): Change placeholder for
17086 (debug_nothing_int_charstar_int): Replaced by...
17087 (debug_nothing_int_charstar_int_bool): ...this.
17088 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
17089 source_line prototype.
17090 (debug_nothing_int_charstar_int): Replaced by...
17091 (debug_nothing_int_charstar_int_bool): ...this.
17092 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
17093 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
17094 Output is_stmt operand when necessary.
17095 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
17096 (notice_source_line): Add is_stmt parameter.
17097 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
17098 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
17100 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
17101 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
17103 2009-06-17 Ian Lance Taylor <iant@google.com>
17105 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
17107 (struct store_by_pieces_d): Rename from store_by_pieces. Change
17110 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
17112 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
17113 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
17114 tree_strip_sign_nop_conversions and
17115 tree_ssa_strip_useless_type_conversions rather than stripping
17116 the operations here.
17117 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
17119 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
17120 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
17121 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
17122 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
17125 2009-06-17 Michael Eager <eager@eagercon.com>
17127 * config/rs6000/constraints.md (register_constraint "d"): New.
17128 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
17129 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
17130 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
17131 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
17132 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
17133 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
17134 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
17135 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
17136 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
17137 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
17139 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
17140 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
17141 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
17142 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
17143 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
17144 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
17145 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
17146 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
17147 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
17148 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
17149 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
17150 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
17151 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
17152 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
17154 2009-06-16 Ian Lance Taylor <iant@google.com>
17156 * profile.c (total_num_never_executed): Don't define.
17157 (compute_branch_probabilities): Don't count or print
17158 num_never_executed.
17159 (init_branch_prob): Don't set total_num_never_executed.
17160 (end_branch_prob): Don't print total_num_never_executed.
17162 2009-06-17 David Daney <ddaney@caviumnetworks.com>
17164 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
17166 2009-06-17 David Edelsohn <edelsohn@gnu.org>
17168 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
17169 (nabstd2_fpr): Same.
17171 2009-06-17 Steve Ellcey <sje@cup.hp.com>
17173 * expr.c (expand_assignment): Change complex type check.
17175 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
17177 * doc/plugins.texi (Building GCC plugins): Added new section.
17179 2009-06-17 Ian Lance Taylor <iant@google.com>
17181 * c-pch.c (get_ident): Don't set size of templ array.
17182 (pch_init): Don't set size of partial_pch array.
17184 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
17185 string constant to intialize an array whose size is the length of
17188 2009-06-17 Richard Guenther <rguenther@suse.de>
17190 PR tree-optimization/40389
17191 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
17192 to addressable types.
17193 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
17195 2009-06-17 Richard Guenther <rguenther@suse.de>
17197 PR middle-end/40460
17198 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
17199 if there is no evolution of left in the loop bail out.
17200 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
17201 chrec_fold_multiply.
17203 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
17204 Janis Johnson <janis187@us.ibm.com>
17207 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
17208 for the symbol ref of a constant that is the source of a move
17209 - nor for any other not-obvious-label-ref constants.
17211 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
17213 * plugin.c (position_pass): Skip newly inserted pass during list
17214 traversal to avoid repeated insertion.
17216 2009-06-16 Ian Lance Taylor <iant@google.com>
17218 * vec.h (VEC_stack_alloc): Define different version if
17219 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
17220 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
17221 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
17222 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17224 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
17226 * config.gcc (extra_headers): Add ia32intrin.h for x86.
17228 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
17229 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
17230 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
17231 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
17232 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
17233 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
17234 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
17235 (bdesc_special_args): Add __builtin_ia32_rdtsc and
17236 __builtin_ia32_rdtscp.
17237 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
17238 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
17239 and __builtin_ia32_rorhi.
17240 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
17241 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
17242 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
17243 (ix86_expand_args_builtin): Likewise.
17244 (ix86_expand_special_args_builtin): Likewise.
17246 * config/i386/i386.md (UNSPECV_RDTSCP): New.
17247 (UNSPECV_RDTSC): Likewise.
17248 (UNSPECV_RDPMC): Likewise.
17249 (*bsr): Renamed to ...
17251 (*bsr_rex64): Renamed to ...
17254 (*rdpmc): Likewise.
17255 (*rdpmc_rex64): Likewise.
17257 (*rdtsc): Likewise.
17258 (*rdtsc_rex64): Likewise.
17259 (rdtscp): Likewise.
17260 (*rdtscp): Likewise.
17261 (*rdtscp_rex64): Likewise.
17263 * config/i386/ia32intrin.h: New.
17265 * config/i386/x86intrin.h: Include <ia32intrin.h>.
17267 2009-06-16 Ian Lance Taylor <iant@google.com>
17269 * ira-build.c (copy_info_to_removed_store_destinations):
17270 Initialize parent_a.
17272 2009-06-16 Ian Lance Taylor <iant@google.com>
17274 * c-decl.c (grokdeclarator): Change size_varies to bool.
17276 2009-06-16 Ian Lance Taylor <iant@google.com>
17278 * sel-sched.c: Make forward declarations of move_op_hooks and
17279 fur_hooks explicitly extern.
17281 2009-06-16 Ian Lance Taylor <iant@google.com>
17283 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
17284 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
17286 2009-06-16 Ian Lance Taylor <iant@google.com>
17288 * resource.c (mark_referenced_resources): Change
17289 include_delayed_effects parameter to bool. Change all callers.
17290 (mark_end_of_function_resources): Likewise.
17291 * reorg.c (insn_references_resource_p): Likewise.
17292 (insn_sets_resource_p): Likewise.
17293 * resource.h (mark_referenced_resources): Update declaration.
17294 (mark_end_of_function_resources): Update declaration.
17296 2009-06-16 David Edelsohn <edelsohn@gnu.org>
17298 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
17300 2009-06-16 David Edelsohn <edelsohn@gnu.org>
17302 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
17303 GCC can bootstrap on AIX with GNU Binutils 2.20.
17305 2009-06-16 Ian Lance Taylor <iant@google.com>
17307 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
17309 2009-06-16 Ian Lance Taylor <iant@google.com>
17311 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
17312 inline, not extern inline.
17313 (exact_log2): Likewise.
17314 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
17316 (exact_log2): Likewise, but don't test CTZ_HWI.
17318 2009-06-16 Ian Lance Taylor <iant@google.com>
17320 * bitmap.c (bitmap_clear): Don't declare as inline.
17321 * gimple.c (gimplify_assign): Likewise.
17322 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
17323 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
17324 (sched_scan_info): Remove duplicate definition.
17326 2009-06-16 Ian Lance Taylor <iant@google.com>
17328 * c-common.c (skip_evaluation): Don't define.
17329 (c_inhibit_evaluation_warnings): Define global variable.
17330 (overflow_warning): Check c_inhibit_evaluation_warnings rather
17331 than skip_evaluation.
17332 (convert_and_check, warn_for_div_by_zero): Likewise.
17333 * c-common.h (skip_evaluation): Don't declare.
17334 (c_inhibit_evaluation_warnings): Declare.
17335 * c-parser.c (c_parser_typeof_specifier): Set
17336 c_inhibit_evaluation_warnings rather than skip_evaluation.
17337 (c_parser_conditional_expression): Likewise.
17338 (c_parser_binary_expression): Likewise.
17339 (c_parser_sizeof_expression): Likewise.
17340 (c_parser_alignof_expression): Likewise.
17341 * c-typeck.c (build_indirect_ref): Check
17342 c_inhibit_evaluation_warnings rather than skip_evaluation.
17343 (build_conditional_expr, build_binary_op): Likewise.
17345 2009-06-16 Richard Guenther <rguenther@suse.de>
17347 * tree-ssa-alias.c (is_escape_site): Remove.
17348 * tree-ssa-alias.h (enum escape_type): Remove.
17349 (is_escape_site): Likewise.
17350 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
17351 via casts and asms without deferring to is_escape_site.
17353 2009-06-16 Jakub Jelinek <jakub@redhat.com>
17355 PR middle-end/40446
17356 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
17357 use gen_lowpart if op0 has complex mode.
17359 2009-06-16 Richard Guenther <rguenther@suse.de>
17361 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
17362 variables add them to ESCAPED.
17363 (find_func_aliases): Do not make all indirectly stored values escaped.
17365 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
17367 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
17368 make_decl_one_only.
17370 2009-06-16 Martin Jambor <mjambor@suse.cz>
17372 PR tree-optimization/40432
17373 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
17374 check whether we need to force gimple register operand.
17376 2009-06-16 Martin Jambor <mjambor@suse.cz>
17378 PR tree-optimization/40413
17379 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
17380 build_ref_for_offset.
17381 (propagate_subacesses_accross_link): Fix a typo in a comment.
17383 2009-06-16 Ira Rosen <irar@il.ibm.com>
17385 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
17386 with additional parameter.
17387 * tree-vectorizer.h (enum vect_def_type): Add new value
17389 (enum vect_relevant): Add comments.
17390 (vect_is_simple_reduction): Add new argument.
17391 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
17392 Detect nested cycles.
17393 (vect_is_simple_reduction): Update documentation, add an argument to
17394 distinguish inner-loop reduction from nested cycle, detect nested
17395 cycles, fix printings and indentation, don't swap operands in case
17397 (get_initial_def_for_reduction): Handle subtraction.
17398 (vect_create_epilog_for_reduction): Add new argument to specify
17399 reduction variable.
17400 (vect_finalize_reduction): Handle subtraction, fix comments.
17401 (vectorizable_reduction): Handle nested cycles. In case of nested
17402 cycle keep track of the reduction variable position. Call
17403 vect_is_simple_reduction with additional parameter. Use original
17404 statement code in reduction epilogue for nested cycle. Call
17405 vect_create_epilog_for_reduction with additional parameter.
17406 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
17407 inner-loop vectorization.
17408 (vect_recog_widen_sum_pattern): Likewise.
17409 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
17411 (vect_mark_stmts_to_be_vectorized): Likewise.
17412 (vect_get_vec_def_for_operand): Handle nested cycles.
17414 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17416 * doc/invoke.texi (Debugging Options): Fix option index entries
17417 for -fdump-statistics, -frandom-seed add entries for
17418 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
17419 (FRV Options): Fix entries for -mTLS, -mtls.
17420 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
17421 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
17422 (M68hc1x Options): Fix @itemx for -mnominmax.
17423 (MCore Options): Fix entry for -mno-lsim.
17424 (MMIX Options): Fix entry for -mabi=mmixware.
17425 (PDP-11 Options): Fix entry for -mbcopy-builtin.
17427 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
17429 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
17430 Mention the plugin mode of gengtype.
17431 * doc/gty.texi (Source Files Containing Type Information): Likewise.
17432 * gengtype.c: Updated copyright.
17433 (plugin_files, nb_plugin_files) Added new static variables.
17434 (measure_input_list) Care about plugin_files.
17435 (write_rtx_next): Added early return in plugin mode.
17436 (create_file): Updated copyright year in generated file. Added
17438 (oprintf): Added early return if NULL outf.
17439 (get_output_file_with_visibility): Care of plugin_files.
17440 (get_output_file_name): May return null.
17441 (write_local): Added early return.
17442 (put_mangled_filename): Ditto.
17443 (finish_root_table): Added check for base_files.
17444 (write_roots): Care about null when plugins.
17445 (main): Added plugin mode.
17447 2009-06-15 Ian Lance Taylor <iant@google.com>
17449 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
17450 * gcov.c (read_count_file): Add braces around variables declared
17453 * c.opt (Wjump-misses-init): New warning.
17454 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
17455 -Wall and -Wc++-compat if not already set.
17456 (c_common_post_options): Clear warn_jump_misses_init if it was not
17458 * c-decl.c (struct c_binding): Change type field to a union with
17459 new label field. Make it the first field in the struct. Update
17460 references to type to use u.type instead.
17461 (struct c_spot_bindings): Define.
17462 (struct c_goto_bindings): Define.
17463 (c_goto_bindings_p): Define, along with VECs.
17464 (struct c_label_vars): Define.
17465 (struct c_scope): Add has_label_bindings field.
17466 (bind_label, set_spot_bindings): New static functions.
17467 (decl_jump_unsafe, update_spot_bindings): New static functions.
17468 (update_label_decls): New static function.
17469 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
17470 Update binding u.label field to shadowed field.
17471 (c_binding_start_stmt_expr): New function.
17472 (c_binding_end_stmt_expr): New function.
17473 (pushdecl): Don't call c_begin_vm_scope.
17474 (make_label): Add defining and p_label_vars parameters. Change
17476 (lookup_label): Correct test for whether a label has not yet been
17477 defined. Call bind_label rather than bind.
17478 (warn_about_goto): New static function.
17479 (lookup_label_for_goto): New function.
17480 (declare_label): Call bind_label rather than bind.
17481 (check_earlier_gotos): New static function.
17482 (define_label): Don't give errors about jumping into statement
17483 expressions or scopes of variably modified types. Call
17484 set_spot_bindings and check_earlier_gotos. Call bind_label
17485 instead of bind. Don't set label_context_stack_se or
17486 label_context_stack_vm.
17487 (c_get_switch_bindings): New function.
17488 (c_release_switch_bindings): New function.
17489 (c_check_switch_jump_warnings): New function.
17490 (start_function): Don't set label_context_stack_se or
17491 label_context_stack_vm.
17492 (finish_function): Likewise.
17493 * c-typeck.c (label_context_stack_se): Don't define.
17494 (label_context_stack_vm): Don't define.
17495 (c_finish_goto_label): Call lookup_label_for_goto rather than
17496 lookup_label. Don't give errors about jumping into a statement
17497 expression or the scope of a variably modified type. Don't set
17498 label_context_stack_se or label_context_stack_vm.
17499 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
17500 fields. Add bindings field.
17501 (c_start_case): Don't set deleted fields. Set bindings field.
17502 (do_case): Rework order of tests. Don't check blocked_stmt_expr
17503 or blocked_vm. Call c_check_switch_jump_warnings.
17504 (c_finish_case): Don't test blocked_stmt_expr field. Call
17505 c_release_switch_bindings.
17506 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
17507 c_switch_stack. Don't walk label_context_stack_se labels. Don't
17508 set label_context_stack_se. Call c_bindings_start_stmt_expr.
17509 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
17510 c_switch_stack. Don't walk label_context_stack_se labels. Don't
17511 set label_context_stack_se. Call c_bindings_end_stmt_expr.
17512 (c_begin_vm_scope, c_end_vm_scope): Don't define.
17513 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
17514 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
17515 (C_DECL_UNJUMPABLE_VM): Don't define.
17516 (C_DECL_UNDEFINABLE_VM): Don't define.
17517 (struct c_label_list): Don't define.
17518 (struct c_label_context_se): Don't define.
17519 (struct c_label_context_vm): Don't define.
17520 (struct c_spot_bindings): Declare.
17521 (c_bindings_start_stmt_expr): Declare.
17522 (c_bindings_end_stmt_expr): Declare.
17523 (lookup_label_for_goto): Declare.
17524 (c_get_switch_bindings, c_release_switch_bindings): Declare.
17525 (c_check_switch_jump_warnings): Declare.
17526 (label_context_stack_se, label_context_stack_vm): Don't declare.
17527 (c_finish_goto_label): Update declaration.
17528 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
17529 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
17530 (Warning Options): Document -Wjump-misses-init.
17532 2009-06-15 Jakub Jelinek <jakub@redhat.com>
17534 * tree-object-size.c (addr_object_size): Fix a pasto in the last
17537 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
17539 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
17541 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
17543 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
17545 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
17547 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
17549 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
17551 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
17552 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
17553 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
17554 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
17555 * dwarf2asm.c (dw2_force_const_mem): Update call to
17556 make_decl_one_only.
17557 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
17558 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
17559 * langhooks.c (lhd_comdat_group): Remove.
17560 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
17561 * tree.h (DECL_COMDAT_GROUP): New.
17562 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
17563 (tree_decl_with_vis): Add comdat_group. Remove one_only.
17564 (make_decl_one_only): Change signature.
17565 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
17566 make_decl_one_only.
17567 (make_decl_one_only): Change signature.
17568 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
17570 2009-06-15 Richard Guenther <rguenther@suse.de>
17572 PR middle-end/40439
17573 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
17575 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17577 * tree-ssa-math-opts.c: Remove extra divide.
17579 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17581 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
17583 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17585 * passes.c: Add bswap pass.
17586 * tree-pass.h: Add pass_optimize_bswap declaration.
17587 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
17588 Include rtl.h, expr.h and optabs.h for optab_handler check.
17589 (struct symbolic_number, pass_optimize_bswap): New definition.
17590 (do_shift_rotate, verify_symbolic_number_p): New functions.
17591 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
17592 (gate_optimize_bswap): New function.
17593 * tree.c (widest_int_cst_value): New function.
17594 * tree.h (widest_int_cst_value): Prototype added.
17596 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
17598 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
17599 REG_EQUAL/REG_EQUIV notes.
17601 2009-06-14 Richard Guenther <rguenther@suse.de>
17603 PR middle-end/40389
17604 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
17605 has its address taken if NRV was applied and it is addressable.
17606 * tree-ssa-structalias.c (get_constraint_for_address_of): New
17607 function split out from ...
17608 (get_constraint_for_1): ... here.
17609 (handle_rhs_call): Use it to mark the return slot escaped if
17610 it is addressable and NRV was applied.
17612 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
17614 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
17615 Change first argument type to location_t.
17616 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
17617 Do not set input_location.
17618 Use loc instead of input_location throughout.
17620 2009-06-13 Richard Guenther <rguenther@suse.de>
17622 PR tree-optimization/40421
17623 * tree-predcom.c (should_unroll_loop_p): Remove.
17624 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
17626 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17628 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17629 Add location argument.
17631 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
17633 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
17635 * config/s390/s390.c (s390_build_builtin_va_list): Same.
17636 (s390_gimplify_va_arg): Pass location to create_artificial_label.
17637 * config/spu/spu-protos.h: Add location to
17638 spu_resolve_overloaded_builtin.
17639 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
17640 spu_build_builtin_va_list.
17641 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
17642 argument. Pass location to build_function_call_vec.
17643 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
17645 (emit_fpu_switch): Same.
17646 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
17647 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
17648 to build_decl and create_artificial_label.
17649 (xtensa_gimplify_va_arg_expr): Same.
17650 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
17651 (xstormy16_gimplify_va_arg_expr): Same.
17652 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
17653 * config/arm/arm.c (arm_build_builtin_va_list): Same.
17654 * config/mips/mips.c (mips_build_builtin_va_list): Same.
17655 (mips16_build_function_stub): Same.
17656 (mips16_build_call_stub): Same.
17658 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
17661 * arm/constraints.md (Pa, Pb): New constraints.
17662 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
17663 split pattern to deal with them.
17665 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
17667 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
17668 fix index entry for -Xpreprocessor.
17670 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
17672 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17673 Add location argument to build_decl call.
17674 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
17675 (rs6000_init_builtins): Same.
17676 (spe_init_builtins): Same.
17677 (rs6000_gimplify_va_arg): Add location argument to
17678 create_artificial_label call.
17680 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
17682 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
17683 * combine-stack-adj.c (pass_stack_adjustments): Use it.
17684 * Makefile.in: Fix GGC dependency for gcse.o.
17686 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
17688 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
17689 * gimple-pretty-print.c (dump_gimple_stmt): Same.
17690 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
17692 * c-parser.c (c_parser_binary_expression): Use current column while
17693 building binary operations.
17694 * common.opt (fshow-column): Enable by default.
17695 * tree-vrp.c (check_array_ref): Use warning_at.
17696 (check_array_bounds): Use location from call back if expr has no
17698 * tree.h: Add location argument to maybe_fold_*.
17699 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
17700 (maybe_fold_offset_to_array_ref): Add location argument and use it.
17701 (maybe_fold_offset_to_component_ref): Same.
17702 (maybe_fold_offset_to_reference): Same.
17703 (maybe_fold_offset_to_address): Same.
17704 (maybe_fold_stmt_indirect): Same.
17705 (maybe_fold_stmt_addition): Same.
17706 (fold_stmt_r): Pass location to maybe_fold_*.
17707 (fold_gimple_assign): Same.
17708 * c-tree.h: Add location argument to finish_decl,
17709 default_function_array_conversion, store_init_value.
17710 * c-decl.c (define_label): Use error_at.
17711 (c_make_fname_decl): Pass location to finish_decl.
17712 (finish_decl): New location argument.
17713 (build_compound_literal): Pass location to store_init_value.
17714 (grokdeclarator): Pass location to finish_decl.
17716 * c-typeck.c (array_to_pointer_conversion): New location argument.
17717 (function_to_pointer_conversion): Same.
17718 (default_function_array_conversion): Same.
17719 (parser_build_unary_op): Pass location to overflow_warning.
17720 (parser_build_binary_op): Same. Use warning_at.
17721 (build_unary_op): Pass location to array_to_pointer_conversion.
17722 (build_c_cast): Pass location to digest_init.
17723 (build_modify_expr): New location argument.
17724 (convert_for_assignment): Same.
17725 (store_init_value): Same.
17726 (digest_init): Same.
17727 (output_init_element): Pass location to digest_init and
17728 array_to_pointer_conversion.
17729 (c_finish_return): Pass location to convert_for_assignment.
17730 * gimplify.c (gimplify_conversion): Pass location to
17731 maybe_fold_offset_to_address.
17732 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
17733 to maybe_fold_stmt_addition.
17734 * c-omp.c (c_finish_omp_atomic): Pass new location to
17736 (c_finish_omp_for): Same.
17737 * c-common.c (overflow_warning): New argument.
17738 * c-common.h: New argument to build_modify_expr, overflow_warning.
17739 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
17741 (c_parser_initializer): Pass location to
17742 default_function_array_conversion.
17743 (c_parser_initelt): Same.
17744 (c_parser_initval): Same.
17745 (c_parser_asm_operands): Same.
17746 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
17747 (c_parser_conditional_expression): Same.
17748 (c_parser_binary_expression): Add location info to stack. Use it.
17749 (c_parser_unary_expression): Pass location to
17750 default_function_array_conversion, parser_build_unary_op,
17751 build_indirect_ref, c_parser_postfix_expression_after_primary.
17752 (c_parser_postfix_expression_after_primary): New location argument.
17754 (c_parser_expression_conv): Pass location to
17755 default_function_array_conversion.
17756 (c_parser_expr_list): Same.
17757 (c_parser_omp_atomic): Same.
17758 (c_parser_omp_for_loop): Same.
17759 * c-tree.h (struct c_declarator): Add comment to id_loc.
17760 (build_array_declarator): New argument.
17761 * c-decl.c (build_array_declarator): Add location argument.
17762 (grokdeclarator): Set id_loc for cdk_array.
17763 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
17764 build_array_declarator.
17765 * tree.c (build_omp_clause): Add location argument.
17766 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
17767 (OMP_CLAUSE_LOCATION): New macro.
17768 (struct tree_omp_clause): Add location field.
17769 (build_omp_clause): Add argument.
17770 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
17772 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
17773 (cp_parser_omp_clause_collapse): Same.
17774 (cp_parser_omp_clause_default): Same.
17775 (cp_parser_omp_clause_if): Same.
17776 (cp_parser_omp_clause_nowait): Same.
17777 (cp_parser_omp_clause_num_threads): Same.
17778 (cp_parser_omp_clause_ordered): Same.
17779 (cp_parser_omp_clause_schedule): Same.
17780 (cp_parser_omp_clause_untied): Same.
17781 (cp_parser_omp_for_loop): Same.
17782 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
17783 * c-tree.h (c_start_case): Add location argument.
17784 (c_process_expr_stmt): Same.
17785 (c_finish_goto_*): Same.
17786 * tree-parloops.c (initialize_reductions): Pass location to
17788 (create_parallel_loop): Same.
17789 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
17790 (gfc_trans_omp_reduction_list): Same.
17791 (gfc_trans_omp_clauses): Same.
17792 (gfc_trans_omp_do): Same.
17793 * c-typeck.c (c_finish_goto_label): Same.
17794 (c_finish_goto_ptr): New location argument.
17795 (c_start_case): Same.
17796 (emit_side_effect_warnings): Same.
17797 (c_process_expr_stmt): Same.
17798 (c_finish_stmt_expr): Same.
17799 (c_finish_omp_clauses): Use error_at instead of error.
17800 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
17802 * c-omp.c (c_split_parallel_clauses): New location argument.
17803 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
17804 to build_omp_clause.
17805 (convert_local_reference_stmt): Same.
17806 (convert_gimple_call): Same.
17807 * c-common.h (c_split_parallel_clauses): New argument.
17808 * c-parser.c (c_parser_statement_after_labels): Pass location to
17809 c_finish_goto_label.
17810 (c_parser_switch_statement): Pass location to c_start_case.
17811 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
17812 and c_process_expr_stmt.
17813 (c_parser_omp_variable_list): Add location argument.
17814 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
17815 (c_parser_omp_clause_default): Same.
17816 (c_parser_omp_clause_if): Same.
17817 (c_parser_omp_clause_num_threads): Same.
17818 (-c_parser_omp_clause_ordered): Same.
17819 (c_parser_omp_clause_reduction): Pass location to
17820 c_parser_omp_variable_list.
17821 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
17822 (c_parser_omp_clause_untied): Same.
17823 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
17824 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
17826 * c-tree.h (check_for_loop_decls, undeclared_variable,
17827 build_component_ref, build_array_ref, build_external_ref,
17828 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
17829 build_conditional_expr, build_compound_expr, c_cast_expr,
17830 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
17831 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
17833 * c-semantics.c (build_stmt): Same.
17834 (build_case_label): Same.
17835 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
17836 (undeclared_variable): New argument.
17837 (make_label): Same.
17838 (lookup_label): Pass location on down.
17839 (define_label): Same.
17840 (finish_decl): Same.
17841 (build_compound_literal): Same.
17842 (finish_struct): Same.
17843 (finish_function): Do not set location here.
17844 (check_for_loop_decls): New argument.
17845 * tree.c (save_expr): Set location.
17846 (build_empty_stmt): New argument.
17847 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
17848 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
17849 * builtins.c (gimplify_va_arg_expr): Use locations.
17850 (expand_builtin_sync_operation): Same.
17851 * c-typeck.c (build_component_ref): New argument.
17852 (build_array_ref): Same.
17853 (build_external_ref): Same.
17854 (c_expr_sizeof_expr): Same.
17855 (c_expr_sizeof_type): Same.
17856 (parser_build_unary_op): Same.
17857 (build_conditional_expr): Same.
17858 (build_compound_expr): Pass location on down.
17859 (build_compound_expr): New argument.
17860 (build_c_cast): Same.
17861 (c_cast_expr): Same.
17862 (build_asm_expr): Same.
17863 (c_finish_return): Same.
17864 (c_process_expr_stmt): Pass location on down.
17865 (c_finish_stmt_expr): New argument.
17866 (push_clenaup): Same.
17867 (c_finish_omp_parallel): Same.
17868 (c_finish_omp_task): Same.
17869 * gimplify.c (gimplify_call_expr): Pass location on down.
17870 * c-omp.c (c_finish_omp_master): New argument.
17871 (c_finish_omp_critical): Same.
17872 (c_finish_omp_ordered): Same.
17873 (c_finish_omp_barrier): Same.
17874 (-c_finish_omp_taskwait): Same.
17875 (c_finish_omp_atomic): Same.
17876 (c_finish_omp_flush): Same.
17877 * tree-inline.c (copy_tree_body_r): Pass location on down.
17878 (inline_forbidden_p): Remove use of input_location.
17879 * c-gimplify.c (c_build_bind_expr): New argument.
17880 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
17881 (c_sizeof_or_alignof_type): New argument.
17882 (c_alignof_expr): Same.
17883 (build_va_arg): Same.
17884 (c_add_case_label): Same.
17885 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
17886 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
17887 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
17888 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
17889 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
17890 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
17892 * stub-objc.c (objc_build_selector_expr): Same.
17893 (objc_build_throw_stmt): Same.
17894 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
17895 (c_parser_initelt): Same.
17896 (c_parser_compound_statement): Same.
17897 (c_parser_compound_statement_nostart): Same.
17898 (c_parser_label): Same.
17899 (c_parser_statement_after_labels): Same.
17900 (c_parser_if_body): Same.
17901 (c_parser_else_body): Same.
17902 (c_parser_if_statement): Same.
17903 (c_parser_switch_statement): Same.
17904 (c_parser_while_statement): Same.
17905 (c_parser_do_statement): Same.
17906 (c_parser_for_statement): Same.
17907 (c_parser_asm_statement): Same.
17908 (c_parser_conditional_expression): Same.
17909 (c_parser_binary_expression): Same.
17910 (c_parser_cast_expression): Same.
17911 (c_parser_unary_expression): Same.
17912 (c_parser_sizeof_expression): Same.
17913 (c_parser_alignof_expression): Same.
17914 (c_parser_postfix_expression): Same.
17915 (c_parser_expression): Same.
17916 (c_parser_objc_receiver): Same.
17917 (c_parser_omp_variable_list): Same.
17918 (c_parser_omp_structured_block): Same.
17919 (c_parser_omp_atomic): New argument.
17920 (c_parser_omp_barrier): Same.
17921 (c_parser_omp_critical): Same.
17922 (c_parser_omp_flush): Pass location on down.
17923 (c_parser_omp_for_loop): New argument.
17924 (c_parser_omp_for): Same.
17925 (c_parser_omp_master): Same.
17926 (c_parser_omp_ordered): Same.
17927 (c_parser_omp_sections_scope): Same.
17928 (c_parser_omp_sections): Same.
17929 (c_parser_omp_parallel): Same.
17930 (c_parser_omp_single): Same.
17931 (c_parser_omp_task): Same.
17932 (c_parser_omp_taskwait): Pass location on down.
17933 (c_parser_omp_construct): Same.
17934 (c_parser_omp_threadprivate): Same.
17935 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
17936 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
17937 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
17938 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
17939 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
17940 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
17941 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
17942 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
17943 config/i386/i386.c, stmt.c:
17944 Add location argument to the following function definitions and/or
17945 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
17946 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
17947 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
17948 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
17949 do_case, c_finish_bc_stmt, build_compound_literal,
17950 build_function_call.
17951 * c-decl.c (build_compound_literal): Add location argument.
17952 Make all diagnostic calls use location.
17953 (start_struct): Same.
17954 (finish_struct): Same.
17955 (start_enum): Same.
17956 (build_enumerator): Same.
17957 (start_function): Same.
17958 (grokdeclarator): Make all diagnostic calls use location.
17959 (store_parm_decls_oldstyle): Same.
17960 * c-typeck.c (build_function_call): Add location argument.
17961 Make all diagnostic calls use location.
17963 (c_finish_bc_stmt): Same.
17964 * tree-nested.c (get_trampoline_type): Add argument.
17965 Pass location to build_decl.
17966 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
17967 * rtl.h (RTL_LOCATION): New.
17968 * c-common.c (c_add_case_label): Add location argument.
17969 Make all diagnostic calls use location.
17970 * c-common.h: Add location argument to make_fname_decl, do_case,
17971 c_add_case_label, build_function_call, resolve_overloaded_builtin.
17972 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
17973 Set it appropriately for every case. Pass enum_loc to start_enum
17974 call. Pass value_loc first to build_enumerator. Pass enum_loc to
17976 (c_parser_struct_or_union_specifier): Save location. Use it for
17977 start_struct, finish_struct, and parser_xref_tag.
17979 2009-06-12 Ian Lance Taylor <iant@google.com>
17981 * fold-const.c (fold_unary): Rename local variable and to and_expr.
17983 * c-opts.c (c_common_handle_option): For -Wc++-compat set
17984 cpp_opts->warn_cxx_operator_names.
17986 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
17989 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
17990 is returns NULL and OP is a VCE, look through the VCE.
17992 2009-06-12 Ian Lance Taylor <iant@google.com>
17995 * collect2.c (main): Use CONST_CAST2 in code inside #if
17996 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
17998 2009-06-12 Joey Ye <joey.ye@intel.com>
18000 PR middle-end/39146
18001 * cfgexpand.c (get_decl_align_unit): Update
18002 max_used_stack_slot_alignment with align instead of
18003 stack_alignment_needed.
18005 * function.c (assign_stack_local_1): Update
18006 max_used_stack_slot_alignment with alignment_in_bits instead
18007 of stack_alignment_needed.
18008 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
18011 2009-06-12 Jakub Jelinek <jakub@redhat.com>
18013 * dwarf2out.c (last_var_location_insn): New variable.
18014 (dwarf2out_end_epilogue): Clear last_var_location_insn.
18015 (dwarf2out_var_location): Don't record anything after last real
18016 insn. Only change labels if there were any real instructions
18017 in between last note and this one, or if changed sections.
18019 2009-06-11 Richard Henderson <rth@redhat.com>
18021 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
18022 note when storing the frame pointer in a register.
18023 (FRP): Don't redefine to nothing for epilogue.
18024 (alpha_expand_epilogue): Mark register and sp restores.
18025 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
18027 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
18028 when gen_lowpart is needed.
18030 2009-06-11 Richard Henderson <rth@redhat.com>
18032 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
18034 * dwarf2out.c (need_data_align_sf_opcode): New.
18035 (div_data_align): Move earlier.
18036 (def_cfa_1, reg_save): Use it.
18038 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
18040 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
18041 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
18042 (ix86_handle_option): Handle OPT_mcrc32.
18043 (ix86_target_string): Add -mcrc32.
18044 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
18046 * config/i386/i386.h (TARGET_CRC32): New.
18048 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
18049 (sse4_2_crc32di): Likewise.
18051 * config/i386/i386.opt (mcrc32): New.
18053 * doc/invoke.texi: Document -mcrc32.
18055 2009-06-11 Richard Henderson <rth@redhat.com>
18057 * common.opt (gdwarf-): Accept a version number.
18058 * doc/invoke.texi (gdwarf-): Update docs.
18059 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
18060 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
18061 version level, and record it.
18063 * dwarf2.h (DW_CIE_VERSION): Remove.
18064 * dwarf2out.c (DWARF_VERSION): Remove.
18065 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
18066 (output_call_frame_info): Use CIE version 3 for dwarf3,
18067 or if the return register column is out of range for version 1.
18068 (dwarf_stack_op_name): Add all dwarf3 values.
18069 (DEBUG_PUBTYPES_SECTION): New.
18070 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
18071 encoding change for dwarf3.
18072 (output_die) [dw_val_class_die_ref]: Likewise.
18073 (output_compilation_unit_header): Emit correct version for dwarf3.
18074 (output_line_info): Likewise.
18075 (output_pubnames): Update for DWARF_VERSION removal.
18076 (output_aranges): Likewise.
18077 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
18078 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
18079 (dwarf2out_finish): Likewise.
18081 2009-06-11 David Daney <ddaney@caviumnetworks.com>
18083 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
18086 2009-06-11 David Daney <ddaney@caviumnetworks.com>
18089 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
18090 * builtins.c (expand_builtin_unreachable): New function.
18091 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
18092 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
18093 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
18095 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
18096 searching for missing barriers.
18098 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18100 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
18101 when -fprofile-generate* was passed.
18102 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
18104 2009-06-11 Anthony Green <green@moxielogic.com>
18106 * config/moxie/moxie.md: Define length attribute for all instructions.
18108 (*b<cond:code>): Support limited branch ranges for new PC-relative
18109 branch instructions.
18110 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
18112 2009-06-11 Jakub Jelinek <jakub@redhat.com>
18114 * config/i386/i386.c (min_insn_size): Use get_attr_length
18115 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
18116 For __asm return 0.
18118 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
18119 instead of emit_insn_before.
18121 2009-06-10 Ian Lance Taylor <iant@google.com>
18124 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
18127 2009-06-10 Revital Eres <eres@il.ibm.com>
18129 * passes.c (init_optimization_passes): Reschedule
18130 predictive-commoning pass before complete unroll pass.
18132 2009-06-10 Martin Jambor <mjambor@suse.cz>
18134 * cgraph.c (cgraph_node_can_be_local_p): New function.
18135 (cgraph_make_node_local): New function.
18136 * cgraph.h (cgraph_node_can_be_local_p): Declare.
18137 (cgraph_make_node_local): Declare.
18139 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
18141 * tree.h (tree_base): Add packed_flag and user_align fields.
18142 Decrease size of spare field.
18143 (TYPE_USER_ALIGN): Use user_align from tree_base.
18144 (DECL_USER_ALIGN): Likewise.
18145 (TYPE_PACKED): Use packed_flag from tree_base.
18146 (DECL_PACKED): Likewise.
18147 (tree_type): Delete packed_flag and user_align fields. Widen
18148 precision field. Widen mode field and shuffle fields to align
18149 mode on an 8-bit boundary.
18150 (tree_decl_common): Delete decl_flag_1 and user_align fields.
18151 Renumber decl_flag_* fields. Fix comments. Widen
18152 decl_common_unused field.
18153 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
18154 (DECL_EXTERNAL): Likewise.
18155 (DECL_BIT_FIELD): Likewise.
18156 (DECL_NONADDRESSABLE_P): Likewise.
18157 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
18158 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
18160 2009-06-10 Ian Lance Taylor <iant@google.com>
18162 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
18163 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
18164 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
18165 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
18166 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
18167 DEF_VEC_ALLOC_FUNC_P.
18168 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
18169 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
18170 DEF_VEC_ALLOC_FUNC_O.
18171 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
18172 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
18173 DEF_VEC_ALLOC_FUNC_I.
18174 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
18175 (vec_stack_p_reserve_exact_1): Declare.
18176 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
18177 (vec_stack_free): Declare.
18178 (VEC_stack_alloc): Define.
18179 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
18180 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
18181 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
18182 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
18184 (stack_vecs): New static variable.
18185 (vec_stack_p_reserve_exact_1): New function.
18186 (vec_stack_o_reserve_1): New static function.
18187 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
18188 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
18189 (vec_stack_free): New function.
18190 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
18191 (VEC_df_ref_stack_alloc): Define.
18192 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
18193 DEF_VEC_ALLOC_P_STACK.
18194 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
18195 (struct df_collection_rec): Change _vec fields to VEC. Remove
18197 (df_free_collection_rec): Adjust for new fields.
18198 (df_insn_rescan): Use new df_collection_rec fields.
18199 (df_notes_rescan, df_canonize_collection_rec): Likewise.
18200 (df_ref_create_structure, df_ref_record): Likewise.
18201 (df_get_conditional_uses, df_get_call_refs): Likewise.
18202 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
18203 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
18204 (df_record_exit_block_uses, df_bb_verify): Likewise.
18205 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
18206 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
18207 Remove count parameter. Change return type to void. Change all
18209 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
18210 Remove count parameter. Change return type to void. Change all
18212 (df_install_refs): Change old_vec parameter to VEC. Remove count
18213 parameter. Change all callers.
18214 (df_install_mws): Change old_vec parameter to VEC. Remove count
18215 parameter. Change all callers.
18216 (df_refs_verify): Change new_rec parameter to VEC. Change call
18218 (df_mws_verify): Likewise.
18220 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
18222 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
18224 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
18226 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
18228 2009-06-10 Anthony Green <green@moxielogic.com>
18230 * config/moxie/crti.asm: New file.
18231 * config/moxie/crtn.asm: New file.
18232 * config/moxie/moxie.c: New file.
18233 * config/moxie/moxie.h: New file.
18234 * config/moxie/sfp-machine.h: New file.
18235 * config/moxie/moxie-protos.h: New file.
18236 * config/moxie/t-moxie: Created.
18237 * config/moxie/t-moxie-softfp: Created.
18238 * config/moxie/moxie.md: Created.
18239 * config/moxie/constraints.md: Created.
18240 * config.gcc: Add moxie support.
18241 * doc/md.texi (Machine Constraints): Add moxie constraints.
18242 * doc/contrib.texi (Contributors): Mention moxie port.
18243 * doc/install.texi (Specific): Mention the moxie port.
18245 2009-06-09 Ian Lance Taylor <iant@google.com>
18247 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
18248 compiling with C++.
18249 * optabs.c (optab_table): Only use designated initializers if
18250 HAVE_DESIGNATED_INITIALIZERS is defined.
18251 (convert_optab_table): Likewise.
18252 (init_optabs): Always call init_insn_codes if
18253 HAVE_DESIGNATED_INITIALIZERS is not defined.
18255 2009-06-09 Ian Lance Taylor <iant@google.com>
18257 * targhooks.c (default_builtin_vectorized_function): Change fn
18258 parameter to unsigned int.
18259 (default_builtin_vectorized_conversion): Change code parameter to
18261 (default_builtin_reciprocal): Change fn parameter to unsigned int.
18262 * targhooks.h: Update declarations.
18263 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
18264 parameter to unsigned int.
18266 * c-typeck.c (comptypes_check_enum_int): New static function.
18267 (comptypes_internal): Add enum_and_int_p parameter. Change all
18269 (comp_target_types): Add location parameter. Change all callers.
18270 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
18271 Change all callers.
18272 (function_types_compatible_p, type_lists_compatible_p): Likewise.
18273 (build_conditional_expr): Add colon_loc parameter. Change all
18275 (convert_for_assignment): Add location parameter. Change all callers.
18276 * c-parser.c (c_parser_conditional_expression): Pass location of
18277 colon to build_conditional_expr.
18278 * c-tree.h (build_conditional_expr): Update declaration.
18280 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
18282 * graphite.c: Revert previous patch.
18284 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
18287 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
18289 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
18291 * tree-ssa-loop-prefetch.c
18292 (loop_prefetch_arrays): Fixed a portability problem in printf format
18295 2009-06-09 Martin Jambor <mjambor@suse.cz>
18297 PR tree-optimization/40351
18298 * tree-sra.c (propagate_subacesses_accross_link): Check that a
18299 refrence to a potential artifical subaccess can be constructed.
18301 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
18303 * config/sh/sh-protos.h (sh_optimization_options): Declare.
18304 (sh_override_options): Likewise.
18305 * config/sh/sh.c: Include params.h.
18306 (sh_optimization_options): New.
18307 (sh_override_options): Likewise.
18308 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
18309 (OVERRIDE_OPTIONS): Use sh_override_options.
18311 2009-06-08 Jakub Jelinek <jakub@redhat.com>
18313 * dwarf2out.c (emit_cfa_remember): New variable.
18314 (add_fde_cfi): If emit_cfa_remember, recurse to add
18315 DW_CFA_remember_state first.
18316 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
18317 instead just set emit_cfa_remember.
18319 2009-06-08 Jan Hubicka <jh@suse.cz>
18322 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
18324 2009-06-08 Jan Hubicka <jh@suse.cz>
18326 PR middle-end/39834
18327 * cgraphunit.c (save_inline_function_body): Do not copy transform
18328 hooks for saved inline bodies.
18329 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
18330 for given function.
18332 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
18334 * jump.c (returnjump_p): Handle delayed branches. Add missing
18337 2009-06-08 Jan Hubicka <jh@suse.cz>
18339 PR middle-end/40102
18340 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
18341 original node might've been modified.
18342 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
18344 2009-06-08 Jakub Jelinek <jakub@redhat.com>
18346 * tree-object-size.c (addr_object_size): Add OSI argument.
18347 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
18348 (compute_builtin_object_size, expr_object_size): Adjust callers.
18349 (plus_stmt_object_size): Call addr_object_size instead of
18350 compute_builtin_object_size.
18352 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
18353 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
18355 * tree-ssa-loop-prefetch.c
18356 (gather_memory_references): Introduced a counter for the number of
18358 (anything_to_prefetch_p): Introduced a counter for the number of
18360 (is_loop_prefetching_profitable): New function with a cost model
18362 (loop_prefetch_arrays): Use the new cost model to determine if
18363 prefetching is profitable.
18364 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
18365 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
18366 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
18367 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
18368 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
18369 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
18371 2009-06-08 Michael Matz <matz@suse.de>
18374 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
18375 partitions use the same.
18376 (expand_one_var): Deal with DECL_RTL sometimes begin set also
18377 for basevars of SSA_NAMEs.
18378 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
18379 to not expand them twice.
18380 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
18383 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
18385 * common.opt (fcompare-debug=, fcompare-debug-second): New.
18386 (fdump-final-insns=, gtoggle): New.
18387 * doc/invoke.texi: Document them.
18388 * final.c (rest_of_clean_state): Dump final insn stream.
18389 * gcc.c (invoke_as): Hook in -fcompare-debug.
18390 (static_spec_functions): Add compare-debug-dump-opt,
18391 compare-debug-self-opt and compare-debug-auxbase-opt.
18392 (compare_debug, compare_debug_second, compare_debug_opt): New.
18393 (switches_debug_check, n_switches_debug_check): New.
18394 (debug_auxbase_opt, debug_check_temp_file): New.
18395 (process_command): Handle -fno-compare-debug, -fcompare-debug and
18397 (do_self_spec): Handle arguments after switches.
18398 (do_spec_1): Add .gk extension to temp file basenames for compare.
18399 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
18400 (cc1_options): Use it instead of normal auxbase computation for
18401 the second compare-debug compilation.
18402 (compare_files): New.
18403 (main): Set up and implement compare debug mode.
18404 (compare_debug_dump_opt_spec_function): New.
18405 (compare_debug_self_opt_spec_function): New.
18406 (compare_debug_auxbase_opt_spec_function): New.
18407 * toplev.c (process_options): Handle flag_gtoggle,
18408 flag_dump_final_insns.
18409 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
18410 during -fcompare-debug-second compilation.
18412 2009-06-07 Ian Lance Taylor <iant@google.com>
18414 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
18415 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
18417 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
18418 with no default node. Change warning with %H to warning_at.
18419 Don't clear warn_switch around case checking.
18420 * doc/invoke.texi (Warning Options): Clarify distinction between
18421 -Wswitch and -Wswitch-enum.
18423 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18425 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
18427 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18429 * gbl-ctors.h: Add header guard.
18431 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18433 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
18434 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
18435 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
18436 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
18437 prototypes for removed functions.
18438 (expressions_equal_p): Move to ...
18439 * tree-ssa-sccvn.h: ... here and ...
18440 * matrix-reorg.c: ... adjust includes.
18442 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18444 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
18446 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18448 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
18449 (finish_function): Remove erroneous whitespace.
18451 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18453 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
18454 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
18456 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18458 * errors.c (internal_error): Commentary typo fix.
18459 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
18460 * tree-ssa-pre.c: Ditto.
18462 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18464 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
18465 them is supposed to hold actual statements.
18467 2009-06-06 Ian Lance Taylor <iant@google.com>
18469 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
18470 empty statements can now have attributes.
18472 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
18474 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
18475 * config/mips/mips.md: Ditto.
18477 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
18479 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
18481 (__eabi_uconvert): Likewise.
18483 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
18485 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
18486 CFI_* definitions with IN_GCC.
18488 2009-06-05 David Edelsohn <edelsohn@gnu.org>
18490 * xcoffout.h (xcoffout_source_line): Update prototype.
18492 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18494 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
18495 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
18497 2009-06-05 Jakub Jelinek <jakub@redhat.com>
18499 PR middle-end/40340
18500 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
18501 inlined_function_outer_scope_p blocks for artificial inlines
18503 * tree.c (tree_nonartificial_location): Rewrite using
18504 block_nonartificial_location.
18506 2009-06-05 Revital Eres <eres@il.ibm.com>
18507 Leehod Baruch <leehod@il.ibm.com>
18509 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
18510 (expand_expr_real_1): Remove comment.
18511 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18512 Vectorize misaligned access when the target supports it.
18513 (vect_supportable_dr_alignment): Check for unaligned access support.
18514 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
18517 2009-06-05 Julian Brown <julian@codesourcery.com>
18519 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
18520 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
18522 2009-06-05 Richard Guenther <rguenther@suse.de>
18525 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
18526 as possibly unused.
18528 2009-06-05 Jakub Jelinek <jakub@redhat.com>
18530 * config/s390/s390.c (global_not_special_regno_p): New static inline.
18531 (save_gprs): Don't tell unwinder when a global register is saved.
18532 (s390_emit_epilogue): Emit needed epilogue unwind info.
18534 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
18536 * dwarf2out.c (deferred_asm_name): New.
18537 (add_name_and_src_coords_attributes): Defer creation of
18538 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
18540 (move_linkage_attr): New.
18541 (dwarf2out_finish): Revisit deferrals and emit attributes at the
18544 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
18546 * tree-nested.c (finalize_nesting_tree_1): Declare the
18547 frame_decl in the binding tree.
18549 2009-06-04 Cary Coutant <ccoutant@google.com>
18551 * basic-block.h (struct basic_block_def): Add discriminator field.
18552 * dbxout.c (dbxout_source_line): Add new parameter. Change all
18554 * debug.c (do_nothing_debug_hooks): Add additional entry.
18555 (debug_nothing_int_charstar_int): New function.
18556 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
18557 (debug_nothing_int_charstar_int): New declaration.
18558 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
18559 discriminator value in .loc directive.
18560 * final.c (last_discriminator): New variable.
18561 (discriminator): New variable.
18562 (final_start_function): Initialize above variables, pass current
18563 discriminator to debug hook.
18564 (notice_source_line): Check for discriminator change.
18565 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
18566 * sdbout.c (sdbout_source_line): New parameter.
18567 * tree-cfg.c (struct locus_discrim_map): New structure type.
18568 (discriminator_per_locus): New hash table.
18569 (build_gimple_cfg): Allocate and free discriminator hash table.
18570 (make_edges): Call assign_discriminator.
18571 (locus_map_hash): New function.
18572 (locus_map_eq): New function.
18573 (next_discriminator_for_locus): New function.
18574 (same_line_p): New function.
18575 (assign_discriminator): New function.
18576 (make_cond_expr_edges): Call assign_discriminator.
18577 (make_gimple_switch_edges): Likewise.
18578 (first_non_label_stmt): New function.
18579 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
18581 * xcoffout.c (xcoffout_source_line): Add new parameter.
18583 * configure.ac (gcc_cv_as_discriminator): New configury check for
18584 gas support for discriminator.
18585 * configure: Regenerate.
18586 * config.in: Regenerate.
18588 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18590 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
18591 val after checking for integers.
18593 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
18595 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
18597 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
18598 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
18599 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
18600 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
18601 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
18602 X64_SSE_REGPARM_MAX.
18603 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
18604 X64_SSE_REGPARM_MAX.
18606 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
18608 * gcc.c (report_times_to_file): New.
18609 (execute): Implement it.
18610 (process_command): Support -time=.
18611 * doc/invoke.texi: Document it.
18613 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
18615 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
18616 that have value exprs.
18618 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
18620 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
18621 declarations for constants until...
18622 (dw2_output_indirect_constant_1): ... this point.
18624 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
18627 * arm.md (arm_addsi3): Don't try to split an add with an
18628 eliminable register until after reload has completed.
18630 2009-06-03 Ian Lance Taylor <iant@google.com>
18632 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
18633 * genattrtab.c (write_length_unit_log): Likewise.
18634 * genchecksum.c (dosum): Likewise.
18635 * gengtype.c (write_rtx_next): Likewise.
18636 (finish_root_table, write_roots): Likewise.
18637 * gimple.c (gimple_ops_offset_): Likewise.
18638 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
18639 * config/arc/arc.c (arc_attribute_table): Likewise.
18640 * config/arm/arm.c (arm_attribute_table): Likewise.
18641 * config/avr/avr.c (avr_attribute_table): Likewise.
18642 * config/crx/crx.c (crx_attribute_table): Likewise.
18643 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
18644 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
18645 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
18646 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
18647 * config/sh/sh.c (sh_attribute_table): Likewise.
18648 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
18649 * config/spu/spu.c (spu_attribute_table): Likewise.
18650 * config/v850/v850.c (v850_attribute_table): Likewise.
18652 * config/alpha/alpha.c (vms_attribute_table): Make static.
18653 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
18654 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
18655 * config/mips/mips.c (mips_attribute_table): Likewise.
18657 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
18659 (cc1-checksum.o): Likewise.
18661 2009-06-03 Steve Ellcey <sje@cup.hp.com>
18663 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
18665 2009-06-03 Jakub Jelinek <jakub@redhat.com>
18667 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
18668 insn if it is changing sp. Use gen_add3_insn instead of
18669 conditionally gen_addsi3 and gen_adddi3.
18670 (offset_below_red_zone_p): New static inline function.
18671 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
18672 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
18673 * config/rs6000/ppc-asm.h: Include auto-host.h.
18674 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
18675 CFI_RESTORE): Define.
18676 * config/rs6000/crtresxgpr.asm: Add unwind info.
18677 * config/rs6000/crtresxfpr.asm: Likewise.
18678 * config/rs6000/crtresgpr.asm: Likewise.
18679 * config/rs6000/crtresfpr.asm: Likewise.
18680 * config/rs6000/crtsavgpr.asm: Likewise.
18681 * config/rs6000/crtsavfpr.asm: Likewise.
18683 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
18684 argument of DWARF2_FRAME_REG_OUT macros.
18686 2009-06-03 Julian Brown <julian@codesourcery.com>
18688 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
18689 words or less (including TImode) in core registers.
18691 2009-06-03 Richard Guenther <rguenther@suse.de>
18693 PR middle-end/40328
18694 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
18696 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
18698 * statistics.c (statistics_counter_event): Do not record event
18699 in pass dump if its number == -1.
18700 (curr_statistics_hash): Add assert that we never get passes
18701 with static number == -1.
18703 2009-06-03 Richard Guenther <rguenther@suse.de>
18704 Andrey Belevantsev <abel@ispras.ru>
18706 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
18707 non-BLKmode arrays addressable.
18709 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
18711 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
18712 * config/m68k/m68k.h: ... here.
18714 2009-06-03 Martin Jambor <mjambor@suse.cz>
18716 PR tree-optimization/40323
18717 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
18720 2009-06-03 Richard Guenther <rguenther@suse.de>
18722 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
18725 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
18727 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
18728 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
18729 JUMP_TABLE_DATA_P where applicable.
18730 * config/sh/sh.c: Ditto.
18731 * config/sh/sh.h: Ditto.
18732 * config/sh/sh.md: Ditto.
18733 * config/sh/symbian.c: Ditto.
18735 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
18737 * config/i386/driver-i386.c (describe_cache): Optimize
18738 concatenation of strings. Use snprintf instead of sprintf.
18739 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
18740 target when not compiling with GCC.
18742 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
18744 * config/sh/sh.c: Revert last change.
18745 (sh_expand_epilogue): Emit a blockage insn before the frame
18746 pointer adjustment unconditionally.
18748 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18750 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
18751 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
18752 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
18753 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
18754 to COLLECT_GCC_OPTIONS.
18756 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18758 * collect2.c (target_system_root): New variable.
18759 (main): Handle --sysroot=.
18760 (ignore_library): Strip the sysroot from the library path.
18762 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18764 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
18765 (collect2.o): Depend on collect2-aix.h.
18766 (collect2-aix.o): New rule.
18767 * collect2-aix.h: New file.
18768 * collect2-aix.c: Likewise.
18769 * collect2.c: Include collect2-aix.h. Don't undefine
18770 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
18771 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
18772 Use TARGET_AIX_VERSION instead of _AIX51.
18773 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
18774 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
18775 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
18776 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
18777 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
18779 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18781 * collect2.c (ignore_library): Avoid premature post-increment
18782 and null deference.
18784 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18786 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
18787 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
18788 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
18789 CROSS_DIRECTORY_STRUCTURE too.
18790 (LINK_LIBG_SPEC): Likewise.
18791 (LIB_SPEC): Add %R to sysroot paths.
18792 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
18793 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
18794 * config/rs6000/aix51.h: As for aix43.h.
18795 * config/rs6000/aix52.h: Likewise.
18796 * config/rs6000/aix53.h: Likewise.
18797 * config/rs6000/aix61.h: Likewise.
18798 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
18799 to the beginning of sysroot paths.
18801 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18803 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
18804 INSN_LISTs that are out of the REG_NOTE range.
18806 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18808 * loop-unroll.c (struct iv_to_split): Add pointer to next.
18809 (struct var_to_expand): Likewise.
18810 (struct opt_info): Add head and tail for linked lists of the above.
18811 (analyze_insn_to_expand_var): Initialize next.
18812 (analyze_iv_to_split_insn): Likewise.
18813 (analyze_insns_in_loop): Create linked lists.
18814 (allocate_basic_variable): Simplify for use without hash table.
18815 (insert_var_expansion_initialization): Likewise, make it type-safer.
18816 (combine_var_copies_in_loop_exit): Likewise.
18817 (apply_opt_in_copies): Walk lists rather than hash tables.
18818 (release_var_copies): Simplified and inlined by hand into...
18819 (free_opt_info): ... this function.
18821 2009-06-02 Richard Guenther <rguenther@suse.de>
18823 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
18826 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18828 * cfgexpand.c (gimple_expand_cfg): Discard the source location
18829 only for builtins that are not overridden.
18831 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18833 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
18836 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18838 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
18840 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18842 * combine.c (move_deaths): Compare LUIDs within the same BB only.
18844 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18846 * common.opt (fdump-unnumbered-links): New.
18847 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
18848 * print-rtl.c (flag_dump_unnumbered_links): New.
18849 (print_rtx): Test it.
18851 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
18853 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
18854 push/pop multiple to 8-byte alignment.
18856 2009-06-01 Jakub Jelinek <jakub@redhat.com>
18858 * config/i386/i386.c (queued_cfa_restores): New static variable.
18859 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
18861 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
18862 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
18863 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
18864 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
18865 note unconditionally.
18866 (ix86_emit_restore_regs_using_mov): Likewise.
18867 (ix86_emit_restore_sse_regs_using_mov): Likewise.
18868 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
18869 it through to ix86_emit_restore_reg_using_pop.
18870 (ix86_emit_leave): Add RED_OFFSET argument. Call
18871 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
18872 instead of adding REG_CFA_OFFSET note unconditionally.
18873 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
18874 the above functions. Call ix86_add_queued_cfa_restore_notes when
18877 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
18878 force output of the label even for dwarf2out_do_cfi_asm.
18879 (add_fde_cfi): If -g2 and above and cfi might change CFA,
18880 force creation of CFI label and chain DW_CFA_set_loc jumping to it
18881 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
18883 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
18884 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
18885 dwarf2out_cfi_label callers.
18886 * tree.h (dwarf2out_cfi_label): Adjust prototype.
18887 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
18888 Adjust dwarf2out_cfi_label callers.
18889 * config/vax/vax.c (vax_output_function_prologue): Likewise.
18891 * config/i386/i386.h (struct machine_cfa_state,
18892 struct machine_function): Guard with ifndef USED_FOR_TARGET
18893 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
18896 * emutls.c (__emutls_get_address): Change arr->size to mean number
18897 of allocated arr->data entries instead of # of slots + 1.
18899 PR middle-end/40316
18900 * recog.c (peep2_reinit_state): New function.
18901 (peephole2_init_state): Use it at the end of a basic block and also
18902 when seeing a RTX_FRAME_RELATED_P insn.
18904 2009-06-01 Steve Ellcey <sje@cup.hp.com>
18906 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
18907 fixuns_truncrfdi2): New.
18908 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
18909 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
18910 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
18911 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
18912 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
18913 *recip_approx): Remove.
18914 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
18915 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
18916 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
18918 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
18921 2009-06-01 Ian Lance Taylor <iant@google.com>
18923 * attribs.c (register_attribute): Use CONST_CAST.
18924 * collect2.c (main): Use CONST_CAST2.
18925 (scan_prog_file): Likewise.
18926 * gcc.c (process_command, main): Likewise.
18927 * toplev.c (toplev_main): Likewise.
18929 * c-typeck.c (handle_warn_cast_qual): New static function,
18930 partially broken out of build_c_cast.
18931 (build_c_cast): Call handle_warn_cast_qual.
18932 * doc/invoke.texi (Warning Options): Document new effect of
18935 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
18937 * diagnostic.c (diagnostic_build_prefix): Always print columns.
18938 (diagnostic_report_current_module): Print columns.
18939 * common.opt (flag_show_column): Enable by default.
18941 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
18943 * alias.c (find_base_term): Check for NULL term before returning.
18945 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
18947 Revert due to PR40320:
18948 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
18949 * calls.c (emit_library_call_value_1): Don't force_operand for move
18952 2009-06-01 Olivier Hainque <hainque@adacore.com>
18953 Eric Botcazou <ebotcazou@adacore.com>
18955 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
18956 to be processed as a bitfield for constructor output purposes.
18957 * output.h (initializer_constant_valid_for_bitfield_p): Declare
18959 * varasm.c (oc_local_state): New type, output_constructor
18960 local state to support communication with helpers.
18961 (oc_outer_state): New type, output_constructor outer state of
18962 relevance in recursive calls.
18963 (output_constructor_array_range): New output_constructor helper,
18964 extracted code for an array range element.
18965 (output_constructor_regular_field): New output_constructor helper,
18966 extracted code for an element that is not a bitfield.
18967 (output_constructor_bitfield): New output_constructor helper,
18968 extracted code for a bitfield element. Accept an OUTER state
18969 argument for recursive processing. Recurse on record or array
18970 CONSTRUCTOR values, possibly past noop conversions.
18971 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
18972 VALUE is a valid constant-valued expression for use in a static
18973 bit-field initializer.
18974 (output_constructor): Rework to use helpers. Accept and honor an
18975 OUTER state argument for recursive calls. Return total size. Be
18976 prepared for nested constructors initializing bitfields.
18977 (output_constant): Feed OUTER in calls to output_constructor.
18979 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
18981 * calls.c (emit_library_call_value_1): Don't force_operand for move
18984 2009-06-01 Nick Clifton <nickc@redhat.com>
18986 * doc/invoke.texi (IA-64 Options): Fix typo.
18988 2009-06-01 Ira Rosen <irar@il.ibm.com>
18990 PR tree-optimization/39129
18991 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
18993 (vect_do_peeling_for_loop_bound): Use
18994 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
18995 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
18996 (vect_loop_versioning): Likewise.
18997 (vect_create_cond_for_alias_checks): Fix indentation.
18998 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
19000 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
19001 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
19002 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
19003 "control flow in loop".
19004 (vect_estimate_min_profitable_iters): Use
19005 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
19006 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
19007 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
19008 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
19009 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
19010 statement belongs to a group of strided accesses with the exact code
19012 (vectorizable_load): Likewise.
19013 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
19014 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
19016 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
19018 * config/freebsd-stdint.h: New file.
19019 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
19020 Add freebsd-stdint.h to tm_file.
19022 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
19024 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
19025 (thumb2_extendhidi2): Likewise.
19027 2009-05-31 Ian Lance Taylor <iant@google.com>
19029 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
19031 2009-05-31 Ian Lance Taylor <iant@google.com>
19033 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
19034 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
19035 (ipa-reference.o): Depend upon gt-ipa-reference.h.
19037 2009-05-31 Jason Merrill <jason@redhat.com>
19039 * tree-pretty-print.c (print_call_name): Take the callee, not the
19040 call itself. Make non-static. Use dump_function_name for functions.
19041 (dump_generic_node): Adjust.
19042 * diagnostic.h: Declare print_call_name.
19043 * gimple-pretty-print.c (dump_gimple_call): Use it.
19045 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
19047 * config/sh/sh.md (ashldi3_std): New define_expand.
19050 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
19053 * config/sh/sh.c: Include debug.h.
19054 (sh_expand_epilogue): Emit a blockage insn before the frame
19055 pointer adjustment also when dwarf2out_do_frame returns true.
19057 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
19059 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
19060 (thumb2_extendqidi2): New pattern.
19062 2009-05-31 Ira Rosen <irar@il.ibm.com>
19064 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
19065 mark phis for renaming.
19066 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
19067 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
19068 Call mark_sym_for_renaming.
19069 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
19070 * tree-vect-loop.c (vect_transform_loop): Remove
19071 vect_memsyms_to_rename initialization and a call to
19072 mark_set_for_renaming.
19074 2009-05-31 Jakub Jelinek <jakub@redhat.com>
19076 PR middle-end/40304
19077 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
19078 frame related even if !set_cfa && style < 0.
19080 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
19082 * config/i386/mingw-tls.c: New file.
19083 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
19084 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
19085 defining _WIN32 but not __CYGWIN__.
19087 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19089 * configure.ac: Add MPC support.
19091 * config.in, configure: Regenerate.
19093 2009-05-29 Richard Henderson <rth@redhat.com>
19095 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
19096 NOTE_INSN_BASIC_BLOCK.
19097 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
19098 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
19099 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
19101 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
19103 (add_cfi): Disable check redefining cfa away from drap.
19104 (lookup_cfa_1): Add remember argument; handle remember/restore.
19105 (lookup_cfa): Pass remember argument.
19106 (cfa_remember): New.
19107 (compute_barrier_args_size_1): Remove sibcall check.
19108 (dwarf2out_frame_debug_def_cfa): New.
19109 (dwarf2out_frame_debug_adjust_cfa): New.
19110 (dwarf2out_frame_debug_cfa_offset): New.
19111 (dwarf2out_frame_debug_cfa_register): New.
19112 (dwarf2out_frame_debug_cfa_restore): New.
19113 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
19114 (dwarf2out_begin_epilogue): New.
19115 (dwarf2out_frame_debug_restore_state): New.
19116 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
19117 DW_CFA_restore_state.
19118 (output_cfi_directive): Likewise.
19119 (convert_cfa_to_fb_loc_list): Likewise.
19120 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
19121 * dwarf2out.h: Update.
19122 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
19123 (copy_insn_1): Early out for null.
19124 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
19125 and dwarf2out_frame_debug_restore_state.
19126 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
19127 (prologue_insn_hash, epilogue_insn_hash): New.
19128 (free_after_compilation): Adjust freeing accordingly.
19129 (record_insns): Create hash table if needed; push insns into
19130 hash instead of array.
19131 (maybe_copy_epilogue_insn): New.
19132 (contains): Search hash table instead of array.
19133 (sibcall_epilogue_contains): Remove.
19134 (thread_prologue_and_epilogue_insns): Split eh_return insns
19135 and mark them as epilogues.
19136 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
19137 scanning in terms of basic blocks.
19138 * insn-notes.def (CFA_RESTORE_STATE): New.
19139 * jump.c (returnjump_p_1): Accept EH_RETURN.
19140 (eh_returnjump_p_1, eh_returnjump_p): New.
19141 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
19142 CFA_REGISTER, CFA_RESTORE): New.
19143 * rtl.def (EH_RETURN): New.
19144 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
19146 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
19147 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
19149 * config/i386/i386.c (gen_push): Update cfa state.
19150 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
19151 add a CFA_ADJUST_CFA note.
19152 (ix86_dwarf_handle_frame_unspec): Remove.
19153 (ix86_expand_prologue): Update cfa state.
19154 (ix86_emit_restore_reg_using_pop): New.
19155 (ix86_emit_restore_regs_using_pop): New.
19156 (ix86_emit_leave): New.
19157 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
19158 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
19159 * config/i386/i386.h (struct machine_cfa_state): New.
19160 (ix86_cfa_state): New.
19161 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
19162 (eh_return_internal): Merge from eh_return_<mode>,
19163 use eh_return rtx, split w/ epilogue.
19165 2009-05-29 Ian Lance Taylor <iant@google.com>
19167 * builtins.c (validate_gimple_arglist): Don't use va_arg with
19169 * calls.c (emit_library_call_value_1): Likewise.
19171 * c-typeck.c (c_build_va_arg): New function.
19172 * c-tree.h (c_build_va_arg): Declare.
19173 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
19174 instead of build_va_arg.
19176 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
19178 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
19179 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
19180 (ptr_difference_cost): Use affine combinations to compute it.
19181 (difference_cost): Likewise.
19182 (get_computation_cost_at): Compute more accurate cost for addresses
19183 if the ratio is a multiplier allowed in addresses.
19184 For non-addresses, consider that an additional offset or symbol is
19187 2009-05-29 Jakub Jelinek <jakub@redhat.com>
19189 * config/i386/i386.c (ix86_decompose_address): Avoid useless
19190 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
19192 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
19193 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
19194 (prefix_rex): For UNIT_MMX don't imply the prefix by default
19196 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
19197 to 1 for TYPE_SSE{IADD1,CVT1}.
19198 (prefix_vex_imm8): Removed.
19199 (length_vex): Only pass 1 as second argument to
19200 ix86_attr_length_vex_default if prefix_extra is 0.
19201 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
19202 (length): For prefix vex computation use length_immediate
19203 attribute instead of prefix_vex_imm8.
19204 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
19205 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
19206 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
19207 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
19208 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
19209 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
19210 a space in between the operands.
19211 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
19212 if one operand is 0xff and the other one si, di, bp or sp.
19213 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
19214 other one si, di, bp or sp.
19215 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
19216 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
19217 type and mode attributes.
19218 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
19219 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
19220 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
19221 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
19222 prefix_data16 attribute iff MODE_DF.
19223 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
19224 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
19225 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
19226 constm128_operand in length_immediate computation.
19227 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
19228 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
19229 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
19230 length_immediate attribute to 1.
19231 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
19232 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
19233 for certain alternatives.
19234 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
19235 prefix_data16 attribute if MODE_V1DF.
19236 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
19237 length_immediate to 1.
19238 (set_got_rex64, set_rip_rex64): Remove length attribute, set
19239 length_address to 4, set mode attribute to MODE_DI.
19240 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
19241 (fxam<mode>2_i387): Set length attribute to 4.
19242 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
19243 *prefetch_3dnow_rex): Override length_address attribute.
19244 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
19246 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
19247 (constm128_operand): Removed.
19248 * config/i386/i386.c (memory_address_length): For
19249 disp && !index && !base in 64-bit mode account for SIB byte if
19250 print_operand_address can't optimize disp32 into disp32(%rip)
19251 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
19252 for fs: or gs: segment.
19253 (ix86_attr_length_immediate_default): When checking if shortform
19254 is possible, truncate immediate to the length of the non-shortened
19256 (ix86_attr_length_address_default): Ignore MEM_P operands
19258 (ix86_attr_length_vex_default): Only check for DImode on
19259 GENERAL_REG_P operands.
19260 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
19261 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
19262 (sse_cvttps2pi): Clear prefix_rep attribute.
19263 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
19265 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
19266 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
19267 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
19268 iff operand 2 is const_int_operand.
19269 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
19270 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
19271 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
19273 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
19275 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
19276 prefix_data16 attribute for movlpd and movhpd instructions.
19277 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
19278 length_immediate for shufpd instruction.
19279 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
19280 (avx_cmpp<avxmodesuffixf2c><mode>3,
19281 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
19282 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
19283 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
19284 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
19285 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
19286 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
19287 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
19288 prefix_data16 attribute for the first alternative to 1.
19289 (*avx_loadlps): Override length_immediate for the first alternative.
19290 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
19291 attributes for second alternative.
19292 (*vec_concatv2sf_sse4_1): Override length_immediate and
19293 prefix_data16 attributes for second alternative.
19294 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
19295 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
19296 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
19297 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
19298 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
19299 prefix_data16 and length_immediate to 1.
19300 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
19302 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
19303 prefix_extra attribute for variants that don't have 0f prefix alone.
19304 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
19305 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
19306 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
19307 *sse4_1_pextrd): Set length_immediate to 1.
19308 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
19309 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
19311 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
19312 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
19313 length_immediate to 1 for second alternative.
19314 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
19315 prefix_extra and length_immediate attributes for the first
19317 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
19319 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
19320 to 1 for the first and third alternative.
19321 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
19323 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
19325 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
19327 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
19328 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
19329 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
19330 *avx_psign<mode>3): Set prefix_extra attribute to 1.
19331 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
19332 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
19333 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
19334 ssse3_psign<mode>3): Override prefix_rex attribute.
19335 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
19336 (ssse3_palignrti): Override length_immediate to 1.
19337 (ssse3_palignrdi): Override length_immediate to 1, override
19338 prefix_rex attribute.
19339 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
19340 (sse4a_extrqi): Override length_immediate to 2.
19341 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
19342 (sse4a_insertq): Override prefix_data16 to 0.
19343 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
19344 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
19345 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
19346 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
19347 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
19348 and length_immediate to 1.
19349 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
19350 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
19351 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
19352 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
19353 and length_immediate to 1.
19354 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
19355 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
19356 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
19357 avx_ptest256): Override prefix_extra to 1.
19358 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
19359 Override prefix_data16 and length_immediate to 1.
19360 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
19361 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
19362 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
19363 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
19364 prefix_data16 to 0 and prefix_extra to 2.
19365 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
19366 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
19368 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
19369 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
19370 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
19371 and prefix_extra to 2.
19372 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
19373 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
19374 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
19375 avx_vpermilvar<mode>3,
19376 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
19377 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
19378 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
19379 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
19380 Override prefix_extra to 1.
19381 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
19382 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
19383 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
19384 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
19385 prefix_extra and length_immediate to 1.
19386 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
19388 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
19389 to 1 for the first alternative.
19390 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
19391 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
19393 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
19394 *movv2sf_internal_avx, *movv2sf_internal): Override
19395 prefix_rep attribute for certain alternatives.
19396 (*mov<mode>_internal): Override prefix_rep or prefix_data16
19397 attributes for certain alternatives.
19398 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
19399 attributes for certain alternatives.
19400 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
19401 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
19402 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
19403 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
19404 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
19405 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
19406 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
19407 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
19408 length_immediate to 1 if operand 2 is const_int_operand.
19409 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
19410 *vec_extractv2si_1): Set length_immediate attribute to 1.
19411 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
19412 using old 3DNOW insn rather than SSE/3DNOW_A.
19413 (mmx_emms, mmx_femms): Clear modrm attribute.
19415 2009-05-29 Martin Jambor <mjambor@suse.cz>
19417 * tree-sra.c: New implementation of SRA.
19419 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
19420 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
19421 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
19422 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
19423 (SRA_MAX_STRUCTURE_COUNT): Removed.
19424 (SRA_FIELD_STRUCTURE_RATIO): Removed.
19425 * doc/invoke.texi (sra-max-structure-size): Removed.
19426 (sra-field-structure-ratio): Removed.
19428 2009-05-29 Jakub Jelinek <jakub@redhat.com>
19430 PR middle-end/40291
19431 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
19434 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
19436 PR rtl-optimization/40101
19437 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
19438 seqno. Adjust comment.
19439 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
19440 inserting bookkeeping before a jump, the jump is not scheduled.
19441 When no positive seqno found, provide a value. Add comment.
19443 2009-05-29 Richard Guenther <rguenther@suse.de>
19445 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
19446 short-cutting on the first component.
19448 2009-05-29 Jakub Jelinek <jakub@redhat.com>
19450 PR middle-end/39958
19451 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
19452 for trees other than decls/types.
19454 2009-05-29 Richard Guenther <rguenther@suse.de>
19456 * tree-ssa-operands.c (get_expr_operands): Do not handle
19457 INDIRECT_REFs in the handled-component case. Remove
19458 unused get_ref_base_and_extent case.
19459 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
19460 tree_low_cst and host_integerp where possible.
19461 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
19462 codes for equivalence.
19463 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
19465 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
19467 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
19468 to tmake_file for i[34567]86-*-cygwin*.
19470 2009-05-29 Jakub Jelinek <jakub@redhat.com>
19473 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
19474 (altivec_categorize_keyword, init_vector_keywords,
19475 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
19478 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
19480 * tree.c (handle_dll_attribute): Check if node is
19481 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
19483 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
19485 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
19487 (thumb2_zero_extendqidi2): Likewise.
19489 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
19491 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
19492 instead of gen_movrt.
19493 * config/sh/sh.md (movrt): Remove.
19495 2009-05-28 Steve Ellcey <sje@cup.hp.com>
19497 * doc/invoke.texi (IA-64 Options):
19498 Add -msdata, -mfused-madd, -mno-inline-float-divide,
19499 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
19500 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
19501 -msched-prefer-non-control-spec-insns,
19502 -msched-stop-bits-after-every-cycle,
19503 -msched-count-spec-in-critical-path,
19504 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
19505 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
19506 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
19507 and -msched-spec-verbose.
19509 2009-05-28 Joseph Myers <joseph@codesourcery.com>
19511 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
19512 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
19514 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
19516 2009-05-28 Richard Guenther <rguenther@suse.de>
19518 * tree-ssa-alias.c (ao_ref_init): New function.
19519 (ao_ref_base): Likewise.
19520 (ao_ref_base_alias_set): Likewise.
19521 (ao_ref_alias_set): Likewise.
19522 (refs_may_alias_p_1): Change signature.
19523 (refs_may_alias_p): Adjust.
19524 (refs_anti_dependent_p): Likewise.
19525 (refs_output_dependent_p): Likewise.
19526 (call_may_clobber_ref_p_1): Change signature.
19527 (call_may_clobber_ref_p): Adjust.
19528 (stmt_may_clobber_ref_p_1): New function split out from ...
19529 (stmt_may_clobber_ref_p): ... here.
19530 (maybe_skip_until): Adjust signature.
19531 (get_continuation_for_phi): Likewise.
19532 (walk_non_aliased_vuses): Likewise.
19533 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
19534 (ao_ref_init): Declare.
19535 (ao_ref_base): Likewise.
19536 (ao_ref_alias_set): Likewise.
19537 (stmt_may_clobber_ref_p_1): Likewise.
19538 (walk_non_aliased_vuses): Adjust.
19539 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
19540 (get_ref_from_reference_ops): remove.
19541 (vn_reference_lookup_2): Adjust signature.
19542 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
19543 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
19544 (vn_reference_lookup): Adjust.
19545 (vn_reference_insert): Likewise.
19546 (vn_reference_insert_pieces): Adjust signature.
19547 (visit_reference_op_call): Adjust.
19548 * tree-ssa-pre.c (get_expr_type): Simplify.
19549 (phi_translate_1): Adjust.
19550 (compute_avail): Likewise.
19551 (translate_vuse_through_block): Do not re-build trees.
19552 (value_dies_in_block_x): Likewise.
19553 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
19555 (vn_reference_lookup_pieces): Adjust declaration.
19556 (vn_reference_insert_pieces): Likewise.
19558 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
19560 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
19561 with checking disabled.
19563 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
19567 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
19568 macro definition for support of three-operand format aligned
19569 .comm directive in assembler on cygwin/pe/mingw target OS.
19570 * configure: Regenerate.
19571 * config.h: Regenerate.
19573 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
19574 aligned form of .comm directive if -mpe-aligned-commons is in effect.
19575 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
19577 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
19578 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
19580 2009-05-28 Ira Rosen <irar@il.ibm.com>
19582 PR tree-optimization/40254
19583 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
19584 in analysis of basic blocks.
19586 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
19588 PR middle-end/33699
19589 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
19590 * target-def.h (TARGET_CONST_ANCHOR): New macro.
19591 (TARGET_INITIALIZER): Use it.
19592 * cse.c (CHEAPER): Move it up to the other macros.
19593 (insert): Rename this ...
19594 (insert_with_costs): ... to this. Add cost parameters. Update
19596 (insert): New function. Call insert_with_costs.
19597 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
19598 find_reg_offset_for_const, try_const_anchors): New functions.
19599 (cse_insn): Call try_const_anchors. Adjust cost of src_related
19600 when using a const-anchor. Call insert_const_anchors.
19601 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
19602 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
19604 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
19606 * tree-inline.c (remap_decls): Enable nonlocalized variables
19607 when not optimizing.
19609 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
19611 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
19612 Simplify other tests involving optimize.
19614 2009-05-27 Tom Tromey <tromey@redhat.com>
19616 * unwind-dw2.c (_Unwind_DebugHook): New function.
19617 (uw_install_context): Call _Unwind_DebugHook.
19619 2009-05-27 Tom Tromey <tromey@redhat.com>
19621 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
19623 2009-05-27 Ian Lance Taylor <iant@google.com>
19625 * Makefile.in (LINKER, LINKER_FLAGS): Define.
19626 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
19627 (ALL_LINKERFLAGS): Define.
19628 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
19629 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
19630 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
19631 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
19632 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
19633 $(LINKER_FOR_BUILD).
19634 (build/gcov-iov$(build_exeext)): Likewise.
19636 2009-05-27 Julian Brown <julian@codesourcery.com>
19638 * gcse.c (target.h): Include.
19639 (can_assign_to_reg_without_clobbers_p): Check that the target allows
19640 copy of argument to a pseudo register.
19642 2009-05-27 Diego Novillo <dnovillo@google.com>
19644 * tree-ssa-live.c (dump_scope_block): Document arguments.
19645 (dump_scope_blocks): Document.
19646 (debug_scope_blocks): New.
19647 * tree-flow.h (debug_scope_blocks): Declare.
19649 2009-05-21 Denis Chertykov <denisc@overta.ru>
19651 * doc/contrib.texi (Contributors): Add myself to the list.
19653 2009-05-27 Olivier Hainque <hainque@adacore.com>
19655 * expr.c (target_align): New function. Alignment the TARGET of an
19656 assignment may be assume to have.
19657 (highest_pow2_factor_for_target): Use it instead of relying on
19658 immediate tree attributes of TARGET, not necessarily honored when
19659 intermediate bitfields are involved.
19661 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
19664 * config/i386/driver-i386.c (host_detect_local_cpu): Support
19665 AVX, SSE4, AES, PCLMUL and POPCNT.
19667 2009-05-27 Diego Novillo <dnovillo@google.com>
19669 * tree-pretty-print.c (dump_location): New.
19670 (dump_generic_node): Call it.
19671 Factor code to handle BLOCK nodes ...
19672 (dump_block_node): ... here.
19674 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
19676 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
19678 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
19680 * gcc-plugin.h: Include config.h and system.h.
19681 (IN_GCC): Define if not defined.
19683 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
19685 PR middle-end/40249
19686 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
19689 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
19691 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
19693 * config/m32r/m32r.h: Ditto.
19694 * config/m32r/m32r.md: Ditto.
19695 * config/m32r/predicates.md: Ditto.
19697 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
19699 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
19701 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
19704 (Loading plugins): typo.
19705 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
19706 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
19707 (Interacting with the GCC Garbage Collector): Added new section.
19708 (Giving information about a plugin): Added new section for
19710 * ggc.h (ggc_register_root_tab): Added declaration.
19711 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
19712 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
19713 (register_callback): Improved comment in declaration.
19714 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
19715 (extra_root_vec) Added static variable for dynamic roots registration.
19716 (ggc_register_root_tab) Added new routine.
19717 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
19718 PLUGIN_GGC_MARKING event.
19719 * ggc-zone.c: Include plugin.h.
19720 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
19721 * ggc-page.c: Include plugin.h.
19722 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
19723 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
19724 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
19725 (register_callback): check lack of callbacks for
19726 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
19727 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
19728 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
19729 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
19730 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
19731 dependency on plugin.h.
19732 (plugin.o): Added dependency on ggc.h...
19734 2009-05-26 Richard Guenther <rguenther@suse.de>
19736 PR middle-end/40248
19738 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
19739 with mismatched comparison modes.
19741 * expr.c (expand_expr_real_1): Expand the operand of a
19742 VIEW_CONVERT_EXPR in its natural mode.
19744 2009-05-26 Ian Lance Taylor <iant@google.com>
19746 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
19747 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
19748 (ALL_COMPILERFLAGS): Define.
19749 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
19750 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
19751 (collect2$(exeext), collect2.o): Likewise.
19752 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
19753 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
19754 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
19755 (libbackend.o, intl.o, cppdefault.o): Likewise.
19756 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
19757 (build/%.o): Use $(COMPILER_FOR_BUILD).
19758 (build/gen%$(build_exeext)): Likewise.
19759 (build/gcov-iov$(build_exeext)): LIkewise.
19760 * config/t-darwin (darwin.o): Use $(COMPILER).
19761 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
19762 * config/t-sol2 (sol2-c.o): Likewise.
19763 (sol2.o): Likewise.
19764 * config/t-vxworks (vxworks.o): Likewise.
19765 * config/x-darwin (host-darwin.o): Likewise.
19766 * config/x-hpux (host-hpux.o): Likewise.
19767 * config/x-linux (host-linux.o): Likewise.
19768 * config/x-solaris (host-solaris.o): Likewise.
19769 * config/alpha/x-alpha (driver-alpha.o): Likewise.
19770 * config/arm/t-arm (arm-c.o): Likewise.
19771 * config/arm/t-pe (pe.o): Likewise.
19772 * config/arm/t-wince-pe (pe.o): Likewise.
19773 * config/i386/t-cygming (winnt.o): Likewise.
19774 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
19775 * config/i386/t-cygwin (cygwin1.o): Likewise.
19776 (cygwin2.o): Likewise.
19777 * config/i386/t-i386 (i386-c.o): Likewise.
19778 * config/i386/t-interix (winnt.o): Likewise.
19779 * config/i386/t-netware (netware.o): Likewise.
19780 * config/i386/t-nwld (nwld.o): Likewise.
19781 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
19782 * config/i386/x-i386 (driver-i386.o): Likewise.
19783 * config/i386/x-cygwin (host-cygwin.o): Likewise.
19784 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
19785 * config/ia64/t-ia64 (ia64-c.o): Likewise.
19786 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
19787 * config/mips/x-native (driver-native.o): Likewise.
19788 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
19789 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
19790 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
19791 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
19792 * config/score/t-score-elf (score7.o): Likewise.
19793 (score3.o): Likewise.
19794 * config/sh/t-sh (sh-c.o): Likewise.
19795 * config/sh/t-symbian (sh-c.o): Likewise.
19796 (symbian.o): Likewise.
19797 * config/spu/t-spu-elf (spu-c.o): Likewise.
19798 * config/v850/t-v850 (v850-c.o): Likewise.
19799 * config/v850/t-v850e (v850-c.o): Likewise.
19801 2009-05-26 Richard Guenther <rguenther@suse.de>
19803 PR tree-optimization/40122
19804 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
19805 VECTOR_CSTs if possible.
19806 (fold_gimple_assign): Likewise.
19808 2009-05-26 Richard Guenther <rguenther@suse.de>
19810 PR middle-end/40252
19811 * fold-const.c (fold_binary): Use the correct types for building
19814 2009-05-26 Richard Guenther <rguenther@suse.de>
19816 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
19817 redundant calls to merge_alias_info.
19818 (bump_vector_ptr): Likewise.
19819 * tree-ssa-copy.c (merge_alias_info): Remove.
19820 (replace_exp_1): Remove call to merge_alias_info.
19821 (propagate_tree_value): Likewise.
19822 (fini_copy_prop): Propagate points-to info.
19823 * tree-flow.h (merge_alias_info): Remove.
19825 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
19827 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
19829 2009-05-25 Jan Hubicka <jh@suse.cz>
19831 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
19832 * cgraph.h (struct inline_summary): New filed self_wize,
19833 size_inlining_benefit, self_time and time_inlining_benefit.
19834 (struct cgraph_global_info): Replace insns by time ans size fields.
19835 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
19836 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
19837 (ipcp_update_callgraph): Do not touch function bodies.
19838 * ipa-inline.c: Include except.h
19839 (MAX_TIME): New constant.
19840 (overall_insns): Remove.
19841 (leaf_node_p): New.
19842 (overall_size, max_benefit): New static variables.
19843 (cgraph_estimate_time_after_inlining): New function.
19844 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
19845 (cgraph_clone_inlined_nodes): Update size.
19846 (cgraph_mark_inline_edge): Update size.
19847 (cgraph_estimate_growth): Use size info.
19848 (cgraph_check_inline_limits): Check size.
19849 (cgraph_default_inline_p): Likewise.
19850 (cgraph_edge_badness): Compute badness based on benefit and size cost.
19851 (cgraph_decide_recursive_inlining): Check size.
19852 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
19854 (cgraph_decide_inlining): Likewise.
19855 (cgraph_decide_inlining_incrementally): Likewise; honor
19856 PARAM_EARLY_INLINING_INSNS.
19857 (likely_eliminated_by_inlining_p): New predicate.
19858 (estimate_function_body_sizes): New function.
19859 (compute_inline_parameters): Use it.
19860 * except.c (must_not_throw_labels): New function.
19861 * except.h (must_not_throw_labels): Declare.
19862 * tree-inline.c (init_inline_once): Kill inlining_weigths
19863 * tree-ssa-structalias.c: Avoid uninitialized warning.
19864 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
19865 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
19866 (PARAM_INLINE_CALL_COST): Remove.
19867 (PARAM_EARLY_INLINING_INSNS): New.
19869 2009-05-25 Richard Guenther <rguenther@suse.de>
19871 PR tree-optimization/36327
19872 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
19873 callback for reference translation or lookup at the point of may-defs.
19874 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
19875 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
19876 for union COMPONENT_REFs.
19877 (vn_reference_lookup_3): New callback. Lookup from memset
19878 and CONSTRUCTOR assignment, translate through struct copies.
19879 (vn_reference_lookup_pieces): Make sure to not free the
19880 passed operands array. Adjust walk_non_aliased_vuses call.
19881 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
19882 make sure we do not leak memory.
19884 2009-05-25 Richard Guenther <rguenther@suse.de>
19886 * tree-ssa-alias.h (dump_points_to_solution): Declare.
19887 * tree-inline.c (expand_call_inline): Reset the escaped and
19888 callused solutions.
19889 * tree-ssa-structalias.c (pass_build_ealias): New.
19890 * tree-pass.h (pass_build_ealias): Declare.
19891 * passes.c (init_optimization_passes): Add PTA during
19892 early optimizations.
19893 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
19894 and CALLUSED solutions.
19895 (dump_points_to_solution): New function, split out from ...
19896 (dump_points_to_info_for): ... here.
19897 * tree-parloops.c (parallelize_loops): Reset the escaped and
19898 callused solutions.
19900 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19903 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
19904 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
19906 2009-05-25 Ira Rosen <irar@il.ibm.com>
19908 PR tree-optimization/40238
19909 * tree-vect-stmts.c (vect_init_vector): Insert initialization
19910 statements after basic block's labels.
19911 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
19912 to free the allocated memory.
19914 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
19916 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
19917 return address with a USE.
19919 2009-05-24 Richard Guenther <rguenther@suse.de>
19921 PR middle-end/40233
19922 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
19923 array type from the main variant of the inner type.
19925 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19927 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
19928 definition to bool (from int) to un-break build.
19929 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
19931 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
19933 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
19934 discard_stmt_changes): Delete.
19935 * tree-ssa-operands.c (scb_stack): Delete.
19936 (init_ssa_operands): Do not initialize it.
19937 (fini_ssa_operands): Do not free it.
19938 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
19940 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
19941 update_stmt, remove the others. Fix comments.
19942 * tree-dfa.c (optimize_stack_restore): Likewise.
19943 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
19944 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
19945 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
19946 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
19948 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
19949 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
19950 (dom_opt_finalize_block): Likewise, adjusting access to
19952 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
19953 (stmts_to_rescan): Change item type to gimple.
19954 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
19956 2009-05-24 Ira Rosen <irar@il.ibm.com>
19958 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
19959 * tree-pass.h (pass_slp_vectorize): New pass.
19960 * params.h (SLP_MAX_INSNS_IN_BB): Define.
19961 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
19962 * tree-vectorizer.c (timevar.h): Include.
19963 (user_vect_verbosity_level): Declare.
19964 (vect_location): Fix comment.
19965 (vect_set_verbosity_level): Update user_vect_verbosity_level
19966 instead of vect_verbosity_level.
19967 (vect_set_dump_settings): Add an argument. Ignore user defined
19968 verbosity if dump flags require higher level of verbosity. Print to
19969 stderr only for loop vectorization.
19970 (vectorize_loops): Update call to vect_set_dump_settings.
19971 (execute_vect_slp): New function.
19972 (gate_vect_slp): Likewise.
19973 (struct gimple_opt_pass pass_slp_vectorize): New.
19974 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
19975 access its members.
19976 (vec_info_for_bb): New function.
19977 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
19978 (VECTORIZATION_ENABLED): New macro.
19979 (SLP_ENABLED, SLP_DISABLED): Likewise.
19980 (vect_is_simple_use): Add bb_vec_info argument.
19981 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
19982 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
19983 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
19984 vect_schedule_slp, vect_analyze_slp): Likewise.
19985 (vect_analyze_stmt): Add slp_tree argument.
19986 (find_bb_location): Declare.
19987 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
19988 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
19989 (vect_analyze_loop_operations, vect_analyze_loop,
19990 get_initial_def_for_induction, vect_create_epilog_for_reduction,
19991 vect_finalize_reduction, vectorizable_reduction,
19992 vectorizable_live_operation, vect_transform_loop): Likewise.
19993 * tree-data-ref.c (dr_analyze_innermost): Update comment,
19994 skip evolution analysis if analyzing a basic block.
19995 (dr_analyze_indices): Likewise.
19996 (initialize_data_dependence_relation): Skip the test whether the
19997 object is invariant for basic blocks.
19998 (compute_all_dependences): Skip dependence analysis for data
19999 references in basic blocks.
20000 (find_data_references_in_stmt): Don't fail in case of invariant
20001 access in basic block.
20002 (find_data_references_in_bb): New function.
20003 (find_data_references_in_loop): Move code to
20004 find_data_references_in_bb and add a call to it.
20005 (compute_data_dependences_for_bb): New function.
20006 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
20007 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
20009 (vect_analyze_data_ref_dependence): Check for interleaving in case of
20010 unknown dependence in basic block and fail in case of dependence in
20012 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
20013 dependence instances from either loop or basic block vectorization
20015 (vect_compute_data_ref_alignment): Check if it is loop vectorization
20016 before calling nested_in_vect_loop_p.
20017 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
20018 dependence instances from either loop or basic block vectorization
20020 (vect_verify_datarefs_alignment): Likewise.
20021 (vect_enhance_data_refs_alignment): Adjust function calls.
20022 (vect_analyze_data_refs_alignment): Likewise.
20023 (vect_analyze_group_access): Fix printing. Skip different checks if
20024 DR_STEP is 0. Keep strided stores either in loop or basic block
20025 vectorization data structure. Fix indentation.
20026 (vect_analyze_data_ref_access): Fix comments, allow zero step in
20028 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
20029 dependence instances from either loop or basic block vectorization
20031 (vect_analyze_data_refs): Update comment. Call
20032 compute_data_dependences_for_bb to analyze basic blocks.
20033 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
20034 case of loop vectorization. In case of basic block vectorization use
20035 data-ref itself as a base.
20036 (vect_create_data_ref_ptr): In case of basic block vectorization:
20037 don't advance the pointer, add new statements before the current
20038 statement. Adjust function calls.
20039 (vect_supportable_dr_alignment): Support only aligned accesses in
20040 basic block vectorization.
20041 * common.opt (ftree-slp-vectorize): New flag.
20042 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
20043 (vect_pattern_recog_1): Likewise.
20044 * tree-vect-stmts.c (process_use): Likewise.
20045 (vect_init_vector): Add new statements in the beginning of the basic
20046 block in case of basic block SLP.
20047 (vect_get_vec_def_for_operand): Adjust function calls.
20048 (vect_finish_stmt_generation): Likewise.
20049 (vectorizable_call): Add assert that it is loop vectorization, adjust
20051 (vectorizable_conversion, vectorizable_assignment): Likewise.
20052 (vectorizable_operation): In case of basic block SLP, take
20053 vectorization factor from statement's type and skip the relevance
20054 check. Adjust function calls.
20055 (vectorizable_type_demotion): Add assert that it is loop
20056 vectorization, adjust function calls.
20057 (vectorizable_type_promotion): Likewise.
20058 (vectorizable_store): Check for outer loop only in case of loop
20059 vectorization. Adjust function calls. For basic blocks, skip the
20060 relevance check and don't advance pointers.
20061 (vectorizable_load): Likewise.
20062 (vectorizable_condition): Add assert that it is loop vectorization,
20063 adjust function calls.
20064 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
20065 that it is not reduction, get vector type, call only supported
20066 functions, skip loop specific parts.
20067 (vect_transform_stmt): Check for outer loop only in case of loop
20069 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
20070 (vect_is_simple_use): Fix comment, add new argument, fix conditions
20071 for external definition.
20072 * passes.c (pass_slp_vectorize): New pass.
20073 * tree-vect-slp.c (find_bb_location): New function.
20074 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
20075 check for patterns only in loops.
20076 (vect_build_slp_tree): Add argument, adjust function calls, fail in
20077 case of multiple types in basic block SLP.
20078 (vect_mark_slp_stmts_relevant): New function.
20079 (vect_supported_load_permutation_p): Fix comment.
20080 (vect_analyze_slp_instance): Add argument. In case of basic block
20081 SLP, take vectorization factor from statement's type, check that
20082 unrolling factor is 1. Adjust function call. Save SLP instance in
20083 either loop or basic block vectorization structure. Return FALSE,
20085 (vect_analyze_slp): Add argument. Get strided stores groups from
20086 either loop or basic block vectorization structure. Return FALSE
20087 if basic block SLP failed.
20088 (new_bb_vec_info): New function.
20089 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
20090 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
20091 (vect_schedule_slp): Add argument. Get SLP instances from either
20092 loop or basic block vectorization structure. Set vectorization factor
20093 to be 1 for basic block SLP.
20094 (vect_slp_transform_bb): New function.
20095 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
20097 2009-05-23 Mark Mitchell <mark@codesourcery.com>
20099 * final.c (shorten_branches): Do not align labels for jump tables.
20100 (final_scan_insn): Use JUMP_TABLE_DATA_P.
20102 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
20104 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
20105 Remove outdated reference to flow.c and fix nits.
20106 * doc/gccint.texi: Tweak RTL description.
20107 * doc/rtl.texi: Likewise.
20109 2009-05-23 Denis Chertykov <chertykov@gmail.com>
20111 * config/avr/avr.c: Change my email address.
20112 * config/avr/avr.h: Likewise.
20113 * config/avr/avr.md: Likewise.
20114 * config/avr/avr-protos.h: Likewise.
20115 * config/avr/libgcc.S: Likewise.
20117 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
20119 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
20120 (spu_split_load, spu_split_store): Change return type to int.
20121 (spu_split_convert): Declare.
20122 * config/spu/predicates.md (spu_mem_operand): Remove.
20123 (spu_mov_operand): Update.
20124 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
20125 * config/spu/spu.c (regno_aligned_for_load): Remove.
20126 (reg_aligned_for_addr, spu_expand_load): Define.
20127 (spu_expand_extv): Reimplement and handle MEM.
20128 (spu_expand_insv): Handle MEM.
20129 (spu_sched_reorder): Handle insn's with length 0.
20130 (spu_legitimate_address_p): Reimplement.
20131 (store_with_one_insn_p): Return TRUE for any mode with size
20132 larger than 16 bytes.
20133 (address_needs_split): Define.
20134 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
20136 (spu_convert_move): Define.
20137 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
20138 (spu_split_store): Change all MEM's to TImode.
20139 (spu_init_expanders): Preallocate registers that correspond to
20140 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
20142 (spu_split_convert): Define.
20143 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
20144 (_move<mode>, _movdi, _movti): Update predicate and condition.
20145 (load, store): Change to define_split.
20146 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
20148 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
20149 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
20150 define_insn_and_split of lshr<mode>3.
20151 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
20152 (<v>ashr<mode>3_imm): Define.
20153 (extv, extzv, insv): Allow MEM operands.
20154 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
20155 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
20156 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
20157 (_spu_convert2): Change to define_insn_and_split and remove the
20158 corresponding define_peephole2.
20159 (stack_protect_set, stack_protect_test, stack_protect_test_si):
20160 Change predicates to memory_operand.
20162 2009-05-22 Mark Mitchell <mark@codesourcery.com>
20164 * config/arm/thumb2.md: Add 16-bit multiply instructions.
20166 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20168 PR tree-optimization/40219
20169 * tree.c (iterative_hash_expr): Make sure the builtin function is
20170 a normal builtin function and not a front end or back end builtin
20171 before indexing into the built_in_decls array.
20173 2009-05-22 Richard Guenther <rguenther@suse.de>
20175 PR middle-end/38964
20176 * alias.c (write_dependence_p): Do not use TBAA for answering
20177 anti-dependence or output-dependence.
20178 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
20179 (emit_pointer_definition): Remove.
20180 (emit_alias_warning): Likewise.
20181 (find_what_var_points_to): Remove TBAA pruning code.
20182 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
20184 (compute_points_to_sets): Remove code computing the set of
20185 dereferenced pointers.
20186 * tree-data-ref.c (dr_may_alias_p): Properly use the split
20187 oracle for querying anti and output dependencies.
20188 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
20189 if TBAA may be applied.
20190 (refs_anti_dependent_p): New function.
20191 (refs_output_dependent_p): Likewise.
20192 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
20193 (refs_output_dependent_p): Likewise.
20194 * doc/tree-ssa.texi (Memory model): New section.
20195 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
20196 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
20197 * cfgexpand.c (expand_gimple_basic_block): Do not handle
20198 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
20199 * expr.c (expand_expr_real_1): Likewise.
20200 * gimple-low.c (lower_stmt): Likewise.
20201 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
20202 (dump_gimple_cdt): Remove.
20203 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
20204 (gimple_size): Likewise.
20205 (walk_gimple_op): Likewise.
20206 (is_gimple_stmt): Likewise.
20207 (walk_stmt_load_store_addr_ops): Likewise.
20208 (gimple_build_cdt): Remove.
20209 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
20210 * gimple.h (gimple_cdt_new_type): Remove.
20211 (gimple_cdt_new_type_ptr): Likewise.
20212 (gimple_cdt_set_new_type): Likewise.
20213 (gimple_cdt_location): Likewise.
20214 (gimple_cdt_location_ptr): Likewise.
20215 (gimple_cdt_set_location): Likewise.
20216 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
20217 * tree-cfg.c (remove_useless_stmts_1): Do not handle
20218 GIMPLE_CHANGE_DYNAMIC_TYPE.
20219 (verify_types_in_gimple_stmt): Likewise.
20220 * tree-inline.c (estimate_num_insns): Likewise.
20221 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
20222 (copy_decl_to_var): Likewise.
20223 (copy_result_decl_to_var): Likewise.
20224 * tree-pretty-print.c (dump_generic_node): Do not handle
20225 CHANGE_DYNAMIC_TYPE_EXPR.
20226 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20227 * tree-ssa-operands.c (get_expr_operands): Likewise.
20228 * tree-ssa-structalias.c (struct variable_info): Remove
20229 no_tbaa_pruning member.
20230 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
20231 (unify_nodes): Do not copy it.
20232 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
20233 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
20234 (set_uids_in_ptset): Do not check it.
20235 (find_what_var_points_to): Likewise.
20236 (compute_tbaa_pruning): Remove.
20237 (compute_points_to_sets): Do not call it.
20238 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
20239 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
20240 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
20241 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
20242 (DECL_NO_TBAA_P): Likewise.
20243 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
20244 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
20245 (expand_omp_atomic_pipeline): Do not set it.
20246 * print-tree.c (print_node): Do not dump it.
20247 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
20250 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
20253 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
20256 2009-05-22 Mark Mitchell <mark@codesourcery.com>
20258 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
20261 2009-05-22 Ben Elliston <bje@au.ibm.com>
20263 * Makefile.in (bversion.h, s-bversion): New targets.
20264 (TOPLEV_H): Add bversion.h.
20265 * toplev.h: Include "bversion.h".
20266 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
20267 the __format__ attribute only if compiling with the same version
20268 of GCC as the sources (the "build version").
20270 2009-05-22 Ben Elliston <bje@au.ibm.com>
20272 * c-format.c (handle_format_attribute): Fix comment typo.
20274 2009-05-21 Steve Ellcey <sje@cup.hp.com>
20277 * config/ia64/ia64.opt (mfused-madd): New.
20278 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
20279 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
20280 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
20281 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
20282 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
20283 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
20284 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
20285 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
20286 instruction if !TARGET_FUSED_MADD.
20287 (fpma, fpms): Remove colon from name.
20289 2009-05-22 Richard Guenther <rguenther@suse.de>
20291 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
20292 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
20293 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
20295 (create_expression_by_pieces): Only convert if necessary.
20296 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
20297 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
20299 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
20301 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
20302 regular pattern from a template and rename it ...
20303 (*extzv_truncsi_exts): ... to this.
20305 2009-05-21 Richard Guenther <rguenther@suse.de>
20307 * cgraph.h (struct cgraph_node): Remove inline_decl member.
20308 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
20309 (cgraph_default_inline_p): Likewise.
20310 (cgraph_decide_inlining_incrementally): Likewise.
20312 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
20313 Uros Bizjak <ubizjak@gmail.com>
20315 * config/i386/cpuid.h (bit_MOVBE): New.
20317 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
20319 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
20320 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
20321 (ix86_handle_option): Handle OPT_mmovbe.
20322 (ix86_target_string): Add -mmovbe.
20323 (pta_flags): Add PTA_MOVBE.
20324 (processor_alias_table): Add PTA_MOVBE to "atom".
20325 (override_options): Handle PTA_MOVBE.
20327 * config/i386/i386.h (TARGET_MOVBE): New.
20329 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
20330 (*bswapsi_movbe): New.
20331 (*bswapdi_movbe): Likewise.
20332 (bswapdi2): Renamed to ...
20333 (*bswapdi_1): This.
20334 (bswapdi2): New expander.
20336 * config/i386/i386.opt (mmovbe): New.
20338 * doc/invoke.texi: Document -mmovbe.
20340 2009-05-21 Taras Glek <tglek@mozilla.com>
20342 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
20343 * gcc-plugin.h (plugin_init): Updated signature.
20344 * gcc-plugin.h (plugin_name_args): Moved to this header.
20345 * doc/plugins.texi (plugin_init): Updated documention to reflect
20347 * doc/plugins.texi (plugin_name_args): Added to documention.
20349 2009-05-21 Mark Mitchell <mark@codesourcery.com>
20351 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
20352 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
20354 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
20356 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
20357 JUMP_TABLE_DATA_P predicates where applicable.
20358 * config/i386/predicates.md: Ditto.
20359 * config/i386/sse.md: Ditto.
20361 2009-05-21 Jakub Jelinek <jakub@redhat.com>
20363 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
20364 operand2 -128 override length_immediate attribute to 1.
20365 * config/i386/predicates.md (constm128_operand): New predicate.
20367 * config/i386/i386.c (memory_address_length): Handle %r12
20368 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
20370 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
20371 mode look through optional ZERO_EXTEND and SUBREG.
20372 * config/i386/i386.md (R12_REG): New define_constant.
20373 (prefix_data16): For sse unit set also for MODE_TI insns.
20374 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
20375 insns set if operand 1 is ext_QIreg_operand.
20376 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
20377 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
20379 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
20380 mode from MODE_DI to MODE_SI.
20381 (movdi_1_rex64): Override modrm and length_immediate attributes
20382 only for movabs (TYPE_IMOV, alternative 2).
20383 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
20384 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
20385 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
20386 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
20387 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
20388 prefix_rex attribute if DImode.
20389 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
20390 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
20391 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
20392 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
20393 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
20394 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
20395 Likewise. For TYPE_IMOV clear length_immediate attribute.
20396 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
20397 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
20398 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
20399 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
20400 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
20401 or one operand TYPE_ISHIFT.
20402 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
20403 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
20404 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
20405 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
20406 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
20407 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
20408 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
20409 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
20410 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
20411 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
20412 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
20413 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
20414 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
20415 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
20416 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
20417 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
20418 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
20419 set mode attribute, don't override length attribute.
20420 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
20422 (return_internal_long): Set length attribute to 2 instead of 1.
20423 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
20424 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
20425 prefix_rex attribute.
20426 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
20428 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
20430 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20432 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
20434 2009-05-20 Ian Lance Taylor <iant@google.com>
20436 * tree.c (build_tree_list_vec_stat): New function.
20437 (ctor_to_vec): New function.
20438 (build_nt_call_vec): New function.
20439 (build_call_array): Change args to be a const pointer.
20440 (build_call_vec): New function.
20441 * tree.h (build_nt_call_vec): Declare.
20442 (build_tree_list_vec_stat): Declare.
20443 (build_tree_list_vec): Define.
20444 (build_call_array): Update declaration.
20445 (build_call_vec): Declare.
20446 (ctor_to_vec): Declare.
20447 * c-common.c (tree_vector_cache): New static variable.
20448 (make_tree_vector): New function.
20449 (release_tree_vector): New function.
20450 (make_tree_vector_single): New function.
20451 (make_tree_vector_copy): New function.
20452 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
20453 (make_tree_vector_single, make_tree_vector_copy): Declare.
20454 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
20455 (c_parser_expr_list): Don't manage cache here, instead call
20457 (c_parser_release_expr_list): Remove static function.
20458 (c_parser_vec_to_tree_list): Remove static function.
20459 (c_parser_attributes): Call build_tree_list_vec instead of
20460 c_parser_vec_to_tree_list. Call release_tree_vector instead of
20461 c_parser_release_expr_list.
20462 (c_parser_postfix_expression_after_primary): Likewise.
20463 (c_parser_objc_keywordexpr): Likewise.
20465 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
20467 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
20468 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
20469 TARGET_CONVERT_TO_TYPE.
20470 * hooks.c (hook_tree_const_tree_null): Define.
20471 * hooks.h (hook_tree_const_tree_null): Declare.
20472 * target.h (struct gcc_target): Add invalid_parameter_type,
20473 invalid_return_type, promoted_type, and convert_to_type fields.
20474 * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
20475 (TARGET_INVALID_RETURN_TYPE): Define.
20476 (TARGET_PROMOTED_TYPE): Define.
20477 (TARGET_CONVERT_TO_TYPE): Define.
20478 (TARGET_INITIALIZER): Update for new fields.
20479 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
20480 (grokparms): Check targetm.invalid_parameter_type.
20481 * c-typeck.c (default_conversion): Check targetm.promoted_type.
20482 * c-convert.c (convert): Check targetm.convert_to_type.
20484 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
20486 * config/mips/mips.md (*extenddi_truncate<mode>,
20487 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
20489 (*extendhi_truncateqi): New define_insn_and_sptit.
20491 2009-05-20 Jakub Jelinek <jakub@redhat.com>
20493 PR middle-end/40204
20494 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
20495 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
20497 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
20499 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
20500 the operand of VIEW_CONVERT_EXPR.
20502 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
20504 * config/i386/driver-i386.c (host_detect_local_cpu): Check
20505 extended family and model for Intel processors. Support Intel Atom.
20507 2009-05-20 Olivier Hainque <hainque@adacore.com>
20509 * gstab.h (stab_code_type): Define, to be used instead of the
20510 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
20512 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
20513 occurrences by stab_code_type.
20514 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
20516 2009-05-20 Martin Jambor <mjambor@suse.cz>
20518 * tree-flow.h (insert_edge_copies_seq): Undeclare.
20519 (sra_insert_before): Likewise.
20520 (sra_insert_after): Likewise.
20521 (sra_init_cache): Likewise.
20522 (sra_type_can_be_decomposed_p): Likewise.
20523 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
20524 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
20525 (sra_insert_before): Likewise.
20526 (sra_insert_after): Likewise.
20527 (sra_init_cache): Likewise.
20528 (insert_edge_copies_seq): Made static and moved upwards.
20530 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
20533 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
20535 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
20536 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
20539 2009-05-20 Richard Guenther <rguenther@suse.de>
20541 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
20542 with mismatched comparison modes.
20544 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20546 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
20547 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
20548 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
20549 with shifts for Thumb2.
20550 (orsi_notsi): New for orn.
20551 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
20552 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
20553 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
20554 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
20555 Don't invert remainder for IOR.
20557 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
20559 PR tree-optimization/40087
20560 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
20561 number_of_iterations_ne): Rename never_infinite argument.
20562 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
20563 number_of_iterations_le): Handle pointer-type ivs when
20564 exit_must_be_taken is false.
20565 (number_of_iterations_cond): Do not always assume that
20566 exit_must_be_taken if the control variable is a pointer.
20568 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
20570 * c-typeck.c (build_binary_op): Allow % on integal vectors.
20571 * doc/extend.texi (Vector Extension): Document that % is allowed too.
20573 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
20575 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
20576 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
20578 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
20581 * c.opt (Wlogical-op): Disabled by default.
20582 * c-opt (c_common_post_options): Do not enable Wlogical-op with
20584 * doc/invoke.texi (Wlogical-op): Likewise.
20586 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
20588 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
20590 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
20591 Propagate the type of the first operand.
20592 <ASSERT_EXPR>: Simplify.
20593 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
20594 Rewrite using the RHS code as discriminant.
20595 <NOP_EXPR>: Turn into CASE_CONVERT.
20596 <PLUS_EXPR>: Propagate the type of the first operand.
20598 2009-05-19 Steve Ellcey <sje@cup.hp.com>
20600 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
20601 (ia64_dconst_0_375): New.
20602 * config/ia64/ia64.c (ia64_override_options): Remove
20603 -minline-sqrt-min-latency warning.
20604 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
20605 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
20606 * config/ia64/ia64.md (*sqrt_approx): Remove.
20607 (sqrtsf2): Remove #if 0.
20608 (sqrtsf2_internal_thr): Rewrite and move to div.md.
20609 (sqrtdf): Remove assert.
20610 (sqrtdf2_internal_thr): Rewrite and move to div.md.
20611 (sqrtxf2): Remove #if 0.
20612 (sqrtxf2_internal_thr): Rewrite and move to div.md.
20613 * div.md (sqrt_approx_rf): New.
20614 (sqrtsf2_internal_thr): New implementation.
20615 (sqrtsf2_internal_lat): New.
20616 (sqrtdf2_internal_thr: New implementation.
20617 (sqrtxf2_internal): New implementation.
20619 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
20620 Hans-Peter Nilsson <hp@axis.com>
20622 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
20623 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
20624 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
20625 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
20626 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
20627 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
20628 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
20629 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
20630 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
20631 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
20632 * c-common.c: ...from here.
20634 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
20636 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
20638 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20640 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
20642 2009-05-19 Ben Elliston <bje@au.ibm.com>
20644 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
20645 assignments with memcpy calls.
20646 (add_fdes): Likewise.
20647 (binary_search_unencoded_fdes): Likewise.
20648 (linear_search_fdes): Eliminate type puns.
20650 2009-05-19 Richard Guenther <rguenther@suse.de>
20652 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
20653 not falsely claim to have propagated into all uses.
20655 2009-05-19 Ben Elliston <bje@au.ibm.com>
20657 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
20660 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
20662 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
20663 * config/sh/sh.c (sh_legitimate_address_p): Make static.
20664 (TARGET_LEGITIMATE_ADDRESS_P): New.
20665 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20666 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
20668 2009-05-18 Dodji Seketeli <dodji@redhat.com>
20671 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
20672 child of the containing namespace's DIE.
20674 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
20676 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
20677 *zero_extendhi_truncqi): Move after the zero_extend patterns.
20678 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
20681 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
20684 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
20685 gen_align with gen_pad.
20686 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
20687 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
20689 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
20690 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
20692 * config/i386/i386.md (align): Renamed to ...
20693 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
20694 ASM_OUTPUT_MAX_SKIP_PAD.
20696 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
20698 * config.gcc: Fix variable syntax.
20701 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
20702 before calling exact_log2.
20703 (output_iorsi3): Likewise.
20704 (output_xorsi3): Likewise.
20706 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
20708 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
20709 for the none zero constant operand except for EQ and NE
20710 comprisons even when the first operand is R0.
20712 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
20714 * config/s390/2064.md: Remove trailing whitespaces.
20715 * config/s390/2084.md: Likewise.
20716 * config/s390/constraints.md: Likewise.
20717 * config/s390/fixdfdi.h: Likewise.
20718 * config/s390/libgcc-glibc.ver: Likewise.
20719 * config/s390/s390-modes.def: Likewise.
20720 * config/s390/s390-protos.h: Likewise.
20721 * config/s390/s390.c: Likewise.
20722 * config/s390/s390.h: Likewise.
20723 * config/s390/s390.md: Likewise.
20724 * config/s390/tpf-unwind.h: Likewise.
20726 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
20728 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
20730 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
20733 * configure.ac (m68k-*-*): Check if binutils support TLS.
20734 * configure: Regenerate.
20735 * config/m68k/predicates.md (symbolic_operand): Extend comment.
20736 * config/m68k/constraints.md (Cu): New constraint.
20737 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
20738 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
20739 (movsi): Handle TLS symbols.
20740 (addsi3_5200): Handle XTLS symbols, indent.
20741 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
20742 (m68k_tls_reference_p): Declare.
20743 (m68k_legitimize_address): Declare.
20744 (m68k_unwrap_symbol): Declare.
20745 * config/m68k/m68k.opt (mxtls): New option.
20746 * config/m68k/m68k.c (ggc.h): Include.
20747 (m68k_output_dwarf_dtprel): Implement hook.
20748 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
20749 (m68k_expand_prologue): Load GOT pointer when function needs it.
20750 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
20751 (m68k_legitimate_constant_address_p): Same.
20752 (m68k_decompose_address): Handle TLS references.
20753 (m68k_get_gp): New static function.
20754 (enum m68k_reloc): New contants.
20755 (TLS_RELOC_P): New macro.
20756 (m68k_wrap_symbol): New static function.
20757 (m68k_unwrap_symbol): New function.
20758 (m68k_final_prescan_insn_1): New static function.
20759 (m68k_final_prescan_insn): New function.
20760 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
20762 (legitimize_pic_address): Handle TLS references..
20763 (m68k_tls_get_addr, m68k_get_tls_get_addr)
20764 (m68k_libcall_value_in_a0_p)
20765 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
20766 (m68k_call_m68k_read_tp): Helper variables and functions for ...
20767 (m68k_legitimize_tls_address): Handle TLS references.
20768 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
20770 (m68k_legitimize_address): Handle TLS symbols.
20771 (m68k_get_reloc_decoration): New static function.
20772 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
20774 (m68k_output_dwarf_dtprel): Implement hook.
20775 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
20776 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
20777 m68k_call_* routines.
20778 (sched_attr_op_type): Handle TLS symbols.
20779 (gt-m68k.h): Include.
20780 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
20781 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
20783 2009-05-18 Martin Jambor <mjambor@suse.cz>
20785 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
20786 (visit_store_addr_for_mod_analysis): New function.
20787 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
20788 (determine_cst_member_ptr): Use gimple_assign_single_p.
20789 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
20790 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
20791 operands. Don't check number of operands of a NOP_EXPR.
20793 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
20795 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
20797 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
20800 * c-common.c (warn_logical_operator): Don't warn if one of
20801 expression isn't always true or false.
20803 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
20805 * config/i386/biarch32.h: New file.
20806 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
20808 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
20810 * config/mips/mips.md (*zero_extend<mode>_trunchi,
20811 *zero_extend<mode>_truncqi): Merge these into ...
20812 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
20813 Name the pattern following this as *zero_extendhi_truncqi.
20815 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
20817 PR middle-end/39301
20818 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
20819 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
20820 (output_info): Make field HOST_WIDEST_INT.
20821 (print_statistics): Use HOST_WIDEST_INT_PRINT.
20822 (dump_bitmat_statistics): Same.
20824 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
20826 * config.gcc (use_gcc_stdint): Set to wrap.
20827 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
20828 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
20829 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
20830 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
20831 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
20832 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
20833 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
20834 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
20836 2009-05-16 Joseph Myers <joseph@codesourcery.com>
20838 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
20840 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
20841 Move definitions earlier.
20842 (OPT_ARCH64, OPT_ARCH32): Define.
20843 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
20846 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
20849 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
20852 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
20854 * arm.md (movdi2): Copy non-reg values to DImode registers.
20856 2009-05-16 Jakub Jelinek <jakub@redhat.com>
20859 * final.c (label_to_max_skip): New function.
20860 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
20861 CODE_LABEL_NUMBER <= max_labelno.
20862 * output.h (label_to_max_skip): New prototype.
20863 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
20864 (ix86_avoid_jump_mispredicts): ... this. Don't define if
20865 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
20866 Handle CODE_LABELs with >= 16 byte alignment or with
20867 max_skip == (1 << align) - 1.
20868 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
20869 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
20872 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
20873 .p2align 3 if MAX_SKIP is smaller than 7.
20874 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20876 2009-05-15 Ian Lance Taylor <iant@google.com>
20878 * alias.c (struct alias_set_entry_d): Rename from struct
20879 alias_set_entry. Change all uses.
20880 * except.c (struct call_site_record_d): Rename from struct
20881 call_site_record. Change all uses.
20882 * except.h (struct eh_region_d): Rename from struct eh_region.
20884 * gcse.c (struct hash_table_d): Rename from struct hash_table.
20886 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
20887 ivtype_map_elt. Change all uses.
20888 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
20890 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
20891 * graphite.h (struct name_tree_d): Rename from struct name_tree.
20893 (struct sese_d): Rename from struct sese. Change all uses.
20894 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
20895 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
20896 * optabs.h (struct optab_d): Rename from struct optab. Change all
20898 (struct convert_optab_d): Rename from struct convert_optab.
20900 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
20901 ipa_opt_pass. Change all uses.
20902 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
20905 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
20906 defined as a typedef.
20907 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
20910 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
20913 * fold-const.c (make_range,build_range_check,merge_ranges): Move
20915 (merge_ranges): Returns bool.
20916 * tree.h (make_range): .. to here.
20917 (build_range_check): Likewise.
20918 (merge_ranges): Likewise. Renamed from merge_ranges.
20919 * c-typeck.c (parser_build_binary_op): Update calls to
20920 warn_logical_operator.
20921 * c-common.c (warn_logical_operator): Add new warning.
20922 * c-common.h (warn_logical_operator): Update declaration.
20924 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
20926 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
20928 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20930 * doc/install.texi: Document MPC requirements, flags etc.
20932 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
20933 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
20934 Evaluate constant arguments.
20935 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
20936 (fold_builtin_1): Likewise, also evaluate constant arguments.
20937 Remove superfluous break.
20938 (do_mpc_ckconv): New.
20939 * real.h: Include mpc.h.
20940 * toplev.c (print_version): Output MPC version info if available.
20942 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
20944 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
20946 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
20948 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
20951 2009-05-15 Jan Hubicka <jh@suse.cz>
20953 * doc/invoke.texi (max-early-inliner-iterations): New flag.
20954 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
20955 (try_inline): Fix return value.
20956 (cgraph_decide_inlining_incrementally): Honor new value.
20957 (cgraph_early_inlining): Handle indirect inlining.
20958 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
20960 2009-05-15 Jan Hubicka <jh@suse.cz>
20962 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
20963 * cgraphunit.c (cgraph_finalize_function): Set it.
20964 (cgraph_expand_function): Use it.
20966 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
20968 * real.c (encode_ieee_half): Define.
20969 (decode_ieee_half): Define.
20970 (ieee_half_format): Define.
20971 (arm_half_format): Define.
20972 * real.h (ieee_half_format): Declare.
20973 (arm_half_format): Declare.
20975 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
20977 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
20978 swapped, and reversed optabs exist before trying to use them.
20980 2009-05-15 Paul Brook <paul@codesourcery.com>
20981 Sandra Loosemore <sandra@codesourcery.com>
20983 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
20984 loads. Allow PRE_DEC.
20985 (output_move_neon): Handle PRE_DEC.
20986 (arm_print_operand): Add 'A' for neon structure loads.
20987 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
20988 * config/arm/neon.md (neon_mov): Update comment.
20989 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
20991 (Um): New constraint.
20993 2009-05-15 Jan Hubicka <jh@suse.cz>
20995 Revert the following patch until testsuite fallout is fixed:
20996 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
20997 * cgraph.h (struct inline_summary): New filed self_wize,
20998 size_inlining_benefit, self_time and time_inlining_benefit.
20999 (struct cgraph_global_info): Replace insns by time ans size fields.
21000 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21001 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21002 (ipcp_update_callgraph): Do not touch function bodies.
21003 * ipa-inline.c: Include except.h
21004 (MAX_TIME): New constant.
21005 (overall_insns): Remove
21006 (overall_size, max_benefit): New static variables.
21007 (cgraph_estimate_time_after_inlining): New function.
21008 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21009 (cgraph_clone_inlined_nodes): Update size.
21010 (cgraph_mark_inline_edge): Update size.
21011 (cgraph_estimate_growth): Use size info.
21012 (cgraph_check_inline_limits): Check size.
21013 (cgraph_default_inline_p): Likewise.
21014 (cgraph_edge_badness): Compute badness based on benefit and size cost.
21015 (cgraph_decide_recursive_inlining): Check size.
21016 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21018 (cgraph_decide_inlining): Likewise.
21019 (cgraph_decide_inlining_incrementally): Likewise; honor
21020 PARAM_EARLY_INLINING_INSNS.
21021 (likely_eliminated_by_inlining_p): New predicate.
21022 (estimate_function_body_sizes): New function.
21023 (compute_inline_parameters): Use it.
21024 * except.c (must_not_throw_labels): New function.
21025 * except.h (must_not_throw_labels): Declare.
21026 * tree-inline.c (init_inline_once): Kill inlining_weigths
21027 * tree-ssa-structalias.c: Avoid uninitialized warning.
21028 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21029 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21030 (PARAM_INLINE_CALL_COST): Remove.
21031 (PARAM_EARLY_INLINING_INSNS): New.
21033 2009-05-15 Richard Guenther <rguenther@suse.de>
21035 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
21036 not TODO_update_ssa.
21038 2009-05-15 Richard Guenther <rguenther@suse.de>
21040 PR tree-optimization/39999
21041 * gimple.h (gimple_expr_type): Use the expression type looking
21042 through useless conversions.
21043 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
21044 (vn_nary_op_insert_stmt): Likewise.
21045 (simplify_binary_expression): Likewise.
21047 2009-05-15 Richard Guenther <rguenther@suse.de>
21049 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
21050 New options, enabled by default.
21051 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
21053 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
21054 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
21055 * tree-ssa-structalias.c (gate_tree_pta): New function.
21056 (pass_build_alias): Use it.
21058 2009-05-15 Joseph Myers <joseph@codesourcery.com>
21060 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
21061 recurse on an invariant address if a conversion from a pointer
21062 type to a wider integer type is involved.
21064 2009-05-15 Jan Hubicka <jh@suse.cz>
21066 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21067 * cgraph.h (struct inline_summary): New filed self_wize,
21068 size_inlining_benefit, self_time and time_inlining_benefit.
21069 (struct cgraph_global_info): Replace insns by time ans size fields.
21070 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21071 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21072 (ipcp_update_callgraph): Do not touch function bodies.
21073 * ipa-inline.c: Include except.h
21074 (MAX_TIME): New constant.
21075 (overall_insns): Remove
21076 (overall_size, max_benefit): New static variables.
21077 (cgraph_estimate_time_after_inlining): New function.
21078 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21079 (cgraph_clone_inlined_nodes): Update size.
21080 (cgraph_mark_inline_edge): Update size.
21081 (cgraph_estimate_growth): Use size info.
21082 (cgraph_check_inline_limits): Check size.
21083 (cgraph_default_inline_p): Likewise.
21084 (cgraph_edge_badness): Compute badness based on benefit and size cost.
21085 (cgraph_decide_recursive_inlining): Check size.
21086 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21088 (cgraph_decide_inlining): Likewise.
21089 (cgraph_decide_inlining_incrementally): Likewise; honor
21090 PARAM_EARLY_INLINING_INSNS.
21091 (likely_eliminated_by_inlining_p): New predicate.
21092 (estimate_function_body_sizes): New function.
21093 (compute_inline_parameters): Use it.
21094 * except.c (must_not_throw_labels): New function.
21095 * except.h (must_not_throw_labels): Declare.
21096 * tree-inline.c (init_inline_once): Kill inlining_weigths
21097 * tree-ssa-structalias.c: Avoid uninitialized warning.
21098 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21099 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21100 (PARAM_INLINE_CALL_COST): Remove.
21101 (PARAM_EARLY_INLINING_INSNS): New.
21102 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
21103 (inline-call-cost): Remove.
21104 (early-inlining-insns): New.
21106 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
21108 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
21110 (print_int_cst_bounds_in_octal_p): Likewise.
21111 (dbxout_type): Adjust calls to above functions. Be prepared to deal
21113 * dwarf2out.c (base_type_die): Likewise.
21114 (is_subrange_type): Delete.
21115 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
21116 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
21117 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
21118 if the destination type is boolean.
21119 (build_range_check): Do not special-case subtypes.
21120 (fold_sign_changed_comparison): Likewise.
21121 (fold_unary): Likewise.
21122 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
21123 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
21124 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
21125 * tree.c (subrange_type_for_debug_p): New predicate based on the
21126 former is_subrange_type.
21127 * tree.h (subrange_type_for_debug_p): Declare.
21128 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
21129 (convert_affine_scev): Remove call to above function.
21130 (chrec_convert_aggressive): Likewise.
21131 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
21132 false for conversions involving subtypes.
21133 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
21134 (vrp_val_min): Likewise.
21135 (needs_overflow_infinity): Likewise.
21136 (extract_range_from_unary_expr): Likewise.
21138 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
21140 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
21141 * config/frv/frv.c: Likewise.
21142 * config/s390/s390.c: Likewise.
21143 * config/sparc/sparc.h: Likewise.
21144 * config/i386/i386.h: Likewise.
21145 * config/i386/i386.c: Likewise.
21146 * config/crx/crx.c: Likewise.
21147 * config/m68hc11/m68hc11.h: Likewise.
21148 * config/iq2000/iq2000.c: Likewise.
21149 * config/mn10300/mn10300.h: Likewise.
21150 * config/mn10300/mn10300.c: Likewise.
21151 * config/m68k/m68k.c: Likewise.
21152 * config/rs6000/rs6000.c: Likewise.
21153 * config/rs6000/xcoff.h: Likewise.
21154 * config/rs6000/linux64.h: Likewise.
21155 * config/rs6000/sysv4.h: Likewise.
21156 * config/score/score3.c: Likewise.
21157 * config/score/score7.c: Likewise.
21158 * config/score/score.c: Likewise.
21159 * config/arm/arm.md: Likewise.
21160 * config/mips/mips.c: Likewise.
21161 * config/mips/mips.md: Likewise.
21162 * config/bfin/bfin.h: Likewise.
21163 * config/pa/pa.c: Likewise.
21164 * config/pa/constraints.md: Likewise.
21166 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
21167 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
21168 * config/pdp11/pdp11.h: Use memory_address_p instead.
21170 2009-05-14 Ian Lance Taylor <iant@google.com>
21172 * passes.c (finish_optimization_passes): Change i to int.
21173 * plugin.c (plugins_active_p): Change event to int.
21174 (dump_active_plugins): Likewise.
21175 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
21177 * tree.c (tree_range_check_failed): Change c to unsigned int.
21178 (omp_clause_range_check_failed): Likewise.
21179 (build_common_builtin_nodes): Change mode to int. Add cast.
21180 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
21181 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
21183 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
21184 ++ or -- with a variable of enum type.
21186 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
21189 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
21191 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
21193 * store-motion.c: Do not include params.h
21194 * Makefile.in: Fix dependencies for various files.
21196 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
21198 * auto-inc-dec.c: Fix pass description, remove apparent
21199 accidental duplication.
21201 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
21203 PR middle-end/40147
21204 * ipa-utils.h (memory_identifier_string): Moved to ...
21205 * tree.h (memory_identifier_string): Here. Add GTY(()).
21207 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
21209 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
21210 in the former documentation of...
21211 (GO_IF_LEGITIMATE_ADDRESS): ... this.
21212 * ira-conflicts.c (get_dup_num): Use address_operand.
21213 * targhooks.c (default_legitimate_address_p): New.
21214 * targhooks.h (default_legitimate_address_p): New.
21215 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
21217 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
21218 * target.h (struct target): Add legitimate_address_p.
21219 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
21220 (TARGET_INITIALIZER): Include it.
21222 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21223 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
21224 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
21225 (TARGET_LEGITIMATE_ADDRESS_P): New.
21227 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21228 (REG_OK_STRICT_P): Delete.
21229 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
21230 (frv_legitimate_address_p_1): ... this.
21231 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
21232 (frv_legitimate_address_p_1): ... the renamed old
21233 frv_legitimate_address_p.
21234 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
21235 (TARGET_LEGITIMATE_ADDRESS_P): New.
21237 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21238 * config/s390/s390-protos.h (legitimate_address_p): Remove.
21239 * config/s390/s390.c (legitimate_address_p): Rename to...
21240 (s390_legitimate_address_p): ... this, make static.
21241 (legitimize_address): Adjust call.
21242 (TARGET_LEGITIMATE_ADDRESS_P): New.
21243 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
21245 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21246 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
21247 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
21248 (TARGET_LEGITIMATE_ADDRESS_P): New.
21250 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21251 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
21252 * config/spu/spu.c (spu_legitimate_address): Rename to...
21253 (spu_legitimate_address_p): ... this, make static.
21254 (TARGET_LEGITIMATE_ADDRESS_P): New.
21256 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21257 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
21258 * config/sparc/sparc.c (legitimate_address_p): Rename to...
21259 (sparc_legitimate_address_p): ... this, make static and return bool.
21260 (legitimize_address): Adjust call.
21261 (TARGET_LEGITIMATE_ADDRESS_P): New.
21263 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21264 * config/i386/i386-protos.h (legitimate_address_p): Remove.
21265 * config/i386/i386.c (legitimate_address_p): Rename to...
21266 (ix86_legitimate_address_p): ... this, make static.
21267 (constant_address_p): Move after it, adjust call.
21268 (TARGET_LEGITIMATE_ADDRESS_P): New.
21270 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21271 * config/avr/avr-protos.h (legitimate_address_p): Remove.
21272 * config/avr/avr.c (legitimate_address_p): Rename to...
21273 (avr_legitimate_address_p): ... this, make static.
21274 (legitimize_address): Adjust call.
21275 (TARGET_LEGITIMATE_ADDRESS_P): New.
21277 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21278 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
21279 * config/crx/crx.c (crx_legitimate_address_p): Make static.
21280 (TARGET_LEGITIMATE_ADDRESS_P): New.
21282 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21283 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
21284 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
21285 (TARGET_LEGITIMATE_ADDRESS_P): New.
21287 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21288 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
21290 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
21292 (TARGET_LEGITIMATE_ADDRESS_P): New.
21294 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21295 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
21297 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
21299 (m68hc11_legitimate_address_p): ... this, make static.
21300 (go_if_legitimate_address_internal): Rename to...
21301 (m68hc11_legitimate_address_p_1): ... this.
21302 (legitimize_address): Adjust call.
21303 (TARGET_LEGITIMATE_ADDRESS_P): New.
21305 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21306 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
21307 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
21308 (TARGET_LEGITIMATE_ADDRESS_P): New.
21310 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21311 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
21312 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
21313 (mn10300_legitimate_address_p): ... this, make static.
21314 (TARGET_LEGITIMATE_ADDRESS_P): New.
21316 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21317 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
21318 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
21319 (TARGET_LEGITIMATE_ADDRESS_P): New.
21321 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21322 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
21323 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
21324 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21325 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
21326 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
21327 (rs6000_legitimate_address_p): ... this, make static.
21328 (TARGET_LEGITIMATE_ADDRESS_P): New.
21329 (REG_MODE_OK_FOR_BASE_P): Delete.
21330 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
21332 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21333 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
21335 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
21336 static, adjust types.
21337 (TARGET_LEGITIMATE_ADDRESS_P): New.
21339 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21340 * config/score/score.c (score_address_p): Rename to...
21341 (score_legitimate_address_p): ... this.
21342 (TARGET_LEGITIMATE_ADDRESS_P): New.
21343 * config/score/score3.c (score3_address_p): Rename to...
21344 (score3_legitimate_address_p): ... this.
21345 * config/score/score7.c (score7_address_p): Rename to...
21346 (score7_legitimate_address_p): ... this.
21348 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
21349 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
21350 GO_IF_LEGITIMATE_ADDRESS): Delete.
21351 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
21352 thumb2_legitimate_address_p): Delete.
21353 (arm_legitimate_address_p): Rename to...
21354 (arm_legitimate_address_outer_p): ... this.
21355 * config/arm/constraints.md ("Uq"): Adjust call.
21356 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
21357 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
21359 (arm_legitimate_address_outer_p): ... this.
21360 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
21362 (TARGET_LEGITIMATE_ADDRESS_P): New.
21364 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21365 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
21366 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
21367 (TARGET_LEGITIMATE_ADDRESS_P): New.
21369 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21370 * config/vax/vax-protos.h (legitimate_address_p): Remove.
21371 * config/vax/vax.c (legitimate_address_p): Rename to...
21372 (vax_legitimate_address_p): ... this, make static.
21373 (TARGET_LEGITIMATE_ADDRESS_P): New.
21375 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21376 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
21377 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
21378 (TARGET_LEGITIMATE_ADDRESS_P): New.
21380 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21381 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
21382 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
21383 (mmix_legitimate_address_p): ... this, make static.
21384 (TARGET_LEGITIMATE_ADDRESS_P): New.
21386 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21387 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
21388 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
21389 (TARGET_LEGITIMATE_ADDRESS_P): New.
21391 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
21393 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
21394 of MODE_COMPLEX_INT.
21396 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21398 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
21399 LCT_NORMAL in function call.
21400 * mips-tdump.c (print_file_desc): Add cast to enum type.
21401 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
21402 (mark_stabs): Add casts to enum types.
21403 (parse_stabs_common): Add casts to enum types.
21405 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
21407 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
21408 Check for invalid values of LETTER.
21410 2009-05-13 Taras Glek <tglek@mozilla.com>
21412 * attribs.c (register_attribute): moved out attribute registration
21413 into register_attribute.
21414 * doc/plugins.texi: Documented register_attribute and
21416 * gcc-plugin.h: Added forward decl for register_attribute.
21417 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
21418 * plugin.c (register_callback, invoke_plugin_callbacks): Added
21419 PLUGIN_ATTRIBUTES boilerplate.
21421 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
21423 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
21424 values even in sentinel and empty entries.
21425 (ms_printf_flag_specs): Likewise.
21426 (ms_scanf_flag_specs): Likewise.
21427 (ms_strftime_flag_specs): Likewise.
21428 (ms_print_char_table): Likewise.
21429 (ms_scan_char_table): Likewise.
21430 (ms_time_char_table): Likewise.
21432 2009-05-13 Doug Kwan <dougkwan@google.com>
21434 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
21436 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
21438 * config/mips/mips.md (store): Add attributes for QI and HI.
21440 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
21441 (truncdi<mode>2): ... this new pattern.
21443 2009-05-13 Brad Hards <bradh@kde.org>
21445 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
21447 2009-05-14 Jakub Jelinek <jakub@redhat.com>
21448 Ben Elliston <bje@au.ibm.com>
21450 PR middle-end/40035
21451 * dse.c (check_mem_read_rtx): Guard against width == -1.
21453 2009-05-13 Michael Matz <matz@suse.de>
21455 PR middle-end/39976
21456 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
21457 (trivially_conflicts_p): New function.
21458 (insert_backedge_copies): Use it.
21460 2009-05-13 Janis Johnson <janis187@us.ibm.com>
21462 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
21463 (handle_stdc_pragma): Use new enum constant names.
21464 (handle_pragma_float_const_decimal64): Ditto.
21466 2009-05-13 Ian Lance Taylor <iant@google.com>
21468 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
21471 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
21473 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
21474 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
21476 * config/m68k/m68k.h (FL_UCLINUX): Define.
21478 2009-05-13 Jan Hubicka <jh@suse.cz>
21480 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
21482 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
21484 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
21485 unless -fschedule-insns is specified.
21487 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
21490 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
21491 TARGET_EXPAND_CBRANCHDI4.
21492 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
21493 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
21494 (cmpeqdi): Fix comment.
21496 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
21498 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
21499 (sh_legitimate_address_p): Likewise.
21500 * config/sh/sh.c (sh_legitimate_index_p): New.
21501 (sh_legitimate_address_p): Likewise.
21502 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
21503 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
21504 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
21505 (MAYBE_BASE_REGISTER_RTX_P): New macro.
21506 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
21507 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
21508 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
21509 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
21510 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
21512 2009-05-12 Jan Hubicka <jh@suse.cz>
21514 * tree-inline.c (estimate_operator_cost): Add operands;
21515 when division happens by constant, it is cheap.
21516 (estimate_num_insns): Loads and stores are not having cost of 0;
21517 EH magic stuff is cheap; when computing runtime cost of switch,
21518 use log2 base of amount of its cases; builtin_expect has cost of 0;
21519 compute cost for moving return value of call.
21520 (init_inline_once): Initialize time_based flags.
21521 * tree-inline.h (eni_weights_d): Add time_based flag.
21523 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
21525 * df-core.c: Update head documentation.
21527 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21530 * rs6000.c (rs6000_generate_compare): Use op1b instead of
21531 shadowing exisiting variable op1.
21533 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
21536 * config/i386/driver-i386.c (processor_signatures): New enum.
21537 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
21538 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
21539 processor signature to detect geode processor.
21541 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
21545 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
21547 * optabs.c (prepare_cmp_insn): Temporarily disable test that
21548 causes spurious differences between trunk and cond-optab branch.
21550 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
21552 * dojump.c (compare_from_rtx): Delete.
21553 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
21554 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
21555 if the comparison does not satisfy the predicate; test predicates for
21556 operands 2 and 3 of a cstore pattern. Don't try cstore optab
21557 further if one existing pattern fails.
21558 * expr.h (compare_from_rtx): Delete.
21559 (prepare_operand): Declare it.
21560 * optabs.c: Change "lib call" to "libcall" throughout.
21561 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
21562 HAVE_conditional_trap, emit_cmp_insn): Delete.
21563 (can_compare_p): Delete cmp_optab case.
21564 (prepare_float_lib_cmp): Return an rtx and a machine mode.
21565 Accept other parameters by value.
21566 (prepare_operand): Make non-static.
21567 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
21568 other parameters by value. Try to widen operands here based on
21569 an optab_methods argument and looking at cbranch_optab.
21570 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
21571 loop. Use cbranch_optab directly.
21572 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
21573 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
21575 (emit_conditional_move, emit_conditional_add): Inline what's needed
21576 of compare_from_rtx, using new prepare_cmp_insn for the rest.
21577 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
21578 with COMPARE. Move cmov_optab and cstore_optab above
21579 with cbranch_optab, move cmp_optab down with ucmp_optab,
21580 remove tst_otpab. Do not initialize trap_rtx.
21581 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
21582 for trap code. Do not check HAVE_conditional_trap. Use
21583 prepare_cmp_insn. Accept no predicate for operand 3.
21584 * optabs.h (OTI_cmp): Mark as used only for libcalls.
21585 (OTI_ctrap, ctrap_optab): New.
21586 (tst_optab): Delete.
21587 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
21588 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
21589 with lookup of ctrap_optab.
21590 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
21592 (ctrap_optab): New.
21594 * combine.c (combine_simplify_rtx, simplify_set): Do not
21595 special case comparing against zero for cc0 machines.
21596 * simplify-rtx.c (simplify_binary_operation_1): Never remove
21597 COMPARE on cc0 machines.
21598 (simplify_relational_operation): Return a new expression when
21599 a COMPARE could be removed.
21600 * final.c (final_scan_insn): Compare cc_status values
21601 against LHS of a (compare FOO (const_int 0)) cc0 source.
21602 Also check if cc_status.value is the full compare.
21604 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
21605 (cstoreMM4): Document.
21606 (conditional_trap): Document ctrapMM4 instead.
21607 (sync_compare_and_swapMM): Refer to cbranchcc4.
21608 (Dependent Patterns): Eliminate obsolete information referring to
21609 the old jump optimization phase.
21610 (Canonicalization): Include cbranchcc4 case, omit canonicalization
21611 of compares with 0 on cc0 machines.
21612 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
21613 avoiding references to cc0. Remove text about storing operands
21615 * doc/tm.texi (Condition Codes): Include blurb on different
21616 condition code representations, separate into subsections for
21617 CC0, MODE_CC and conditional execution.
21619 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
21620 alpha_emit_setcc): Accept operands and a machine mode.
21621 * config/alpha/alpha.c (alpha_emit_conditional_branch):
21622 Get code/op0/op1 from operands, use machine mode argument
21623 instead of alpha_compare.fp_p. Emit the branch here.
21624 (alpha_emit_setcc): Likewise, and return boolean.
21625 (alpha_emit_conditional_move): Likewise. Assert that
21626 cmp_op_mode == cmp_mode, and simplify accordingly.
21627 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
21628 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
21629 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
21631 (stack probe test): Use cbranchdi4.
21632 * config/alpha/predicates.md (alpha_cbranch_operator): New.
21634 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
21635 * config/arc/arc.h (movsicc, movsfcc): Use it.
21636 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
21637 (cbranchsi4, cstoresi4): New.
21638 (cmpsi, bCC and sCC expanders): Remove.
21640 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
21641 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
21642 * config/arm/predicates.md (arm_comparison_operator): Only include
21643 floating-point operators if there is a hardware floating-point unit.
21644 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
21645 deferring to cbranch_cc and cstore_cc respectively.
21646 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
21647 cbranch_cc, cstore_cc): New.
21648 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
21650 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
21652 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
21653 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
21655 (adjust_insn_length): Adjust calls.
21656 (avr_reorg): Handle (compare (foo) (const_int 0)).
21657 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
21658 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
21659 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
21660 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
21662 (cbranchqi4, cbranchhi4, cbranchsi4): New.
21663 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
21665 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
21666 (cbranchsi4, cstorebi4, cstoresi4): New.
21667 (movbisi): This insn is duplicate, split it to zero_extend.
21668 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
21669 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
21670 (bfin_optimize_loop): Use cbranch expander.
21671 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
21672 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
21673 (bfin_bimode_comparison_operator): ... this.
21674 (bfin_direct_comparison_operator): New.
21676 * config/cris/cris.c (cris_normal_notice_update_cc): Look
21677 inside (compare FOO (const_int 0)).
21678 (cris_rtx_costs): Handle ZERO_EXTRACT.
21679 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
21680 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
21681 (*tstdi_v32): Delete.
21682 (*cmpdi_non_v32): Add M alternative for operand 1.
21683 (cmpsi, cmp<mode>): Make private.
21684 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
21686 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
21688 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
21689 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
21690 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
21691 (cc_reg_operand): New.
21692 (any_cond): Delete.
21693 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
21694 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
21695 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
21696 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
21697 crx_expand_scond): Delete.
21699 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
21701 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
21702 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
21704 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
21705 cstoresi4, cstoresf4, cstoredf4): New.
21706 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
21707 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
21708 Receive the entire operands array.
21709 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
21710 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
21711 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
21712 Get test/op0/op1 from the operands array.
21713 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
21715 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
21716 (h8300_expand_store): New.
21717 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
21719 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
21720 (h8300_expand_store): New.
21721 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
21722 or do not try to produce (set (cc0) REG).
21723 (peepholes): Wrap arguments with COMPARE. Add a peephole to
21724 change a compare into a move to a scratch register. Disable some
21725 peepholes when comparing with zero.
21726 (tstsi, tsthi, tstsi, cmpqi): Make private.
21728 (bCC, sCC): Delete.
21729 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
21732 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
21733 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
21734 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
21735 (ix86_emit_i387_log1p): Use cbranchxf2.
21736 (ix86_expand_setcc): Return void.
21737 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
21738 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
21739 cmp<MODEF>, cmpcc): Remove.
21740 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
21741 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
21742 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
21743 (sCC and bCC expanders): Remove.
21744 (stack_protect_test): Use cbranchcc4.
21746 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
21748 (ia64_expand_compare): Accept three rtx by reference and return void.
21749 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
21750 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
21751 from *expr. Update *expr with the BImode comparison to do.
21752 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
21753 cmptf, bCC, sCC, conditional_trap): Delete.
21754 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
21755 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
21756 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
21757 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
21758 * config/ia64/predicates.md (ia64_cbranch_operator): New.
21760 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
21761 type of last argument.
21762 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
21763 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
21764 use machine mode argument instead of branch_type. Remove dead
21765 code for floating-point comparisons.
21766 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
21767 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
21769 (cbranchsi4, cstoresi4): New.
21770 * config/iq2000/predicates.md (reg_or_const_operand): New.
21772 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
21773 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
21774 (b<code>_op): Rewrite to...
21775 (bcc_op): ... this, using match_operator.
21776 (s<code>_op): Rewrite to...
21777 (scc_op): ... this, using match_operator.
21778 (s<code>_24_op): Rewrite to...
21779 (scc_op_24): ... this, using match_operator.
21780 (s<code>_<mode>): Rewrite to...
21781 (cstore<mode>4): ... this, using match_operator.
21782 (s<code>_<mode>_24): Rewrite to...
21783 (cstore<mode>4_24): ... this, using match_operator.
21784 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
21785 m32c_unpend_compare, m32c_expand_scc): Delete.
21786 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
21787 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
21788 (m32c_expand_movcc): Change NE to EQ if necessary.
21789 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
21791 * config/m32r/m32r-protos.h (gen_cond_store): New.
21792 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
21793 (gen_cond_store): New, from sCC patterns.
21794 (m32r_expand_block_move): Use cbranchsi4.
21795 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
21796 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
21797 (cbranchsi4, cstoresi4): New.
21799 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
21801 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
21802 (m68hc11_notice_update_cc): Look into a compare with 0.
21803 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
21805 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
21806 cmphi, cmpqi, bCC): Delete.
21807 (cbranchsi4, cbranchhi4, cbranchqi4): New.
21808 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
21809 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
21812 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
21813 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
21814 * config/m68k/constraints.md (H): New.
21815 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
21816 the define_insn below.
21817 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
21818 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
21819 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
21820 patterns): Wrap RHS with COMPARE.
21821 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
21822 (*cmpdi_internal): Name this pattern.
21823 (cmpdi): Change to define_insn.
21824 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
21825 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
21826 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
21828 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
21829 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
21830 (conditional_trap): Change to...
21831 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
21832 (*conditional_trap): Use the ordered_comparison_operator and
21833 const1_operand predicates.
21834 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
21835 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
21836 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
21837 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
21839 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
21840 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
21841 (mcore_gen_compare): New.
21842 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
21843 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
21844 (mcore_gen_compare): ... this.
21845 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
21846 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
21847 (stack probe pattern): Use cbranchsi4.
21849 * config/mips/predicates.md (mips_cstore_operator): New.
21850 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
21851 * config/mips/mips.md (any_cond): Delete.
21852 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
21854 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
21855 fixuns_truncsfdi2): Use cbranch patterns.
21856 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
21857 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
21858 Adjust call to mips_expand_conditional_branch.
21859 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
21861 * config/mips/mips-protos.h (mips_expand_conditional_branch,
21862 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
21863 * config/mips/mips.c (cmp_operands): Delete.
21864 (mips_emit_compare): Get comparison operands from *op0/*op1.
21865 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
21866 that it succeeds. Use op0/op1 instead of cmp_operands.
21867 (mips_expand_conditional_branch, mips_expand_conditional_move,
21868 mips_expand_conditional_trap): Likewise.
21869 (mips_block_move_loop): Use cbranch patterns.
21870 * config/mips/mips.h (cmp_operands): Delete.
21872 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
21873 (mmix_gen_compare_reg): Just return a register in the right CC mode.
21874 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
21875 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
21876 (*cmpcc_folded): Rename to...
21877 (*cmpdi_folded): this.
21878 (*cmpcc): Rename to...
21880 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
21883 (cbranchdf4): New. Handle invalid comparisons here.
21884 * config/mmix/predicates.md (float_comparison_operator): New.
21886 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
21887 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
21888 * config/mn10300/mn10300.md (tst): Delete.
21889 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
21890 Name these patterns and wrap RHS in a compare.
21891 (*cmpsi): Make this pattern private. Include tst.
21892 (*cmpsf): Make this pattern private.
21893 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
21894 (compare with zero peepholes): Likewise.
21896 (cbranchsi4, cbranchsf4): New.
21897 (casesi): Use cbranchsi4.
21899 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
21900 hppa_branch_type): Delete.
21901 (return_addr_rtx): Use cbranchsi4.
21902 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
21903 Emit CCFPmode comparison here.
21904 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
21905 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
21906 hppa_branch_type): Delete.
21907 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
21908 (movsicc, movdicc): Remove references to hppa_compare_op0,
21909 hppa_compare_op1 and compare_from_rtx.
21910 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
21911 (casesi): Use cbranchsi4.
21913 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
21914 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
21915 * config/pdp11/pdp11.md (register_or_const0_operand): New.
21916 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
21917 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
21919 (cbranchdf4, cbranchhi4, cbranchqi4): New.
21920 (*branch, *branch_inverted): New.
21922 * config/picochip/picochip.md (cbranchhi4): Use
21923 ordered_comparison_operator.
21924 (cmphi, bCC): Remove.
21926 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
21927 (trap_comparison_operator): Delete.
21928 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
21929 rs6000_emit_cbranch): Accept mode and operands.
21930 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
21931 rs6000_compare_fp_p): Delete.
21932 (rs6000_generate_compare): Accept mode and comparison. Extract code
21933 and op0/op1 from there. Replace references to rs6000_compare_op0
21934 and rs6000_compare_op1.
21935 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
21936 extract result from passed operands.
21937 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
21938 extract loc from passed operands.
21939 (rs6000_emit_cmove): Likewise.
21940 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
21941 rs6000_compare_fp_p): Delete.
21942 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
21943 (cbranch<GPR>4, cbranch<FP>4): New.
21944 (cstore<mode>4): New. Consolidate here all choices about when to use
21945 portable or specialized sCC sequences.
21946 (stack_protect_test): Use cbranchsi4.
21947 (conditional_trap): Replace with ctrap<GPR>4.
21948 (conditional trap insn): Replace trap_comparison_operator with
21949 ordered_comparison_operator.
21951 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
21952 (s390_emit_prologue): Use ctrap.
21953 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
21954 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
21955 New predicates replacing...
21956 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
21957 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
21958 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
21959 (add<mode>cc): Do not use s390_compare_op0/op1.
21960 (s<code>): Change to...
21961 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
21962 (seq): Change to...
21963 (cstorecc4): ... this. Handle EQ or NE equally.
21964 (*sne): Un-privatize for use in cstorecc4.
21965 (b<code>): Change to...
21966 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
21967 (conditional_trap): Replace with...
21968 (ctrap<GPR>4, ctrap<FP>4): ... these.
21969 (stack_protect): Use cbranchcc4.
21971 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
21972 * config/score/score-protos.h (score_gen_cmp): Delete.
21973 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
21974 (score_block_move-loop): Use cbranchsi4.
21975 * config/score/score.md (cbranchsi4): New.
21976 (cmpsi, bCC): Delete.
21977 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
21978 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
21979 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
21980 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
21981 * config/score/score3.h (score3_gen_cmp): Delete.
21982 * config/score/score7.h (score7_gen_cmp): Delete.
21984 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
21985 (sh_emit_scc_to_t): ... this. Return void.
21986 (from_compare): Rename to...
21987 (sh_emit_compare_and_branch): ... this.
21988 (sh_emit_compare_and_set): New.
21989 (sh_expand_t_scc): Accept operands.
21990 * config/sh/predicates.md (sh_float_comparison_operator): New.
21991 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
21992 (prepare_scc_operands): Rename to...
21993 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
21995 (sh_emit_cheap_store_flag): New.
21996 (sh_emit_set_t_insn): New.
21997 (from_compare): Rename to...
21998 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
21999 handling of TARGET_SH2E floating point to avoid recursive call.
22000 Generate branch here.
22001 (sh_emit_compare_and_set): New.
22002 (sh_expand_t_scc): Get op0/op1 from arguments.
22003 (sh_emit_cheap_store_flag): New.
22004 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
22006 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
22007 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
22008 (movsicc, movdicc): Do nothing when it recreated operands from
22009 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
22010 prepare_scc_operands (now sh_emit_scc_to_t).
22011 (udivdi3): Use cstoresi4.
22012 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
22013 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
22014 (cbranchint4_media, cbranchfp4_media): New.
22015 (casesi): Use cbranchdi4.
22016 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
22018 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
22019 (movnegt): Remove second operand.
22020 (cbranchsf4, cbranchdf4): New.
22021 (stack_protect): Use cbranchdi4/cbranchsi4.
22023 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
22024 (gen_compare_reg): Accept comparison, extract part of it to...
22025 (gen_compare_reg_1): ... this.
22026 (gen_compare_operator): Delete.
22027 (gen_v9_scc): Accept separate destination, comparison code and arms.
22028 Do not use sparc_compare_op0/sparc_compare_op1.
22029 (emit_scc_insn, emit_conditional_branch_insn): New.
22030 (emit_v9_brxx): Make static. Remove useless assertion.
22031 (sparc_emit_float_lib_cmp): Return RTL instead of calling
22033 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
22034 * config/sparc/sparc-protos.h (gen_compare_reg,
22035 sparc_emit_float_lib_cmp): Adjust prototype.
22036 (emit_scc_insn, emit_conditional_branch_insn): New.
22037 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
22038 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
22039 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
22040 iterators to the top.
22041 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
22042 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
22043 snedi_special_trunc): Delete.
22044 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
22045 and snedi_special_trunc.
22046 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
22047 cbranchdi4, cbranch<F:mode>4): New.
22048 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
22049 here. Use gen_compare_reg instead of gen_compare_operator.
22050 (conditional_trap): Replace with...
22051 (ctrapsi4, ctrapdi4): ... this.
22052 (stack_protect_test): Use cbranchcc4.
22054 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
22056 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
22057 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
22058 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
22059 from operands[0] or operands[3] depending on is_set.
22060 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
22061 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
22062 cmpdf, bCC), sCC: Remove.
22063 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
22064 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
22066 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
22067 spu_emit_branch_or_set.
22069 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
22071 * config/stormy16/stormy16.h (xstormy16_compare_op0,
22072 xstormy16_compare_op1): Delete.
22073 * config/stormy16/stormy16.c (xstormy16_compare_op0,
22074 xstormy16_compare_op1): Delete.
22075 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
22077 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
22078 (cmphi, cmpsi, bCC): Remove.
22080 * config/v850/v850.md (tstsi, cmpsi): Fold into...
22081 (*cmpsi): ... this one.
22082 (cbranchsi4, cstoresi4): New.
22083 (bCC expanders): Delete.
22084 (sCC insns): Fold into...
22085 (*setcc): ... this one.
22086 (casesi): Do not use gen_cmpsi and gen_bgtu.
22087 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
22088 (movsicc): Simplify.
22089 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
22091 * config/vax/vax-protos.h (cond_name): New.
22092 (vax_output_conditional_branch): Remove.
22093 * config/vax/vax.c (cond_name): New.
22094 (vax_output_conditional_branch): Remove.
22095 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
22096 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
22097 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
22098 (bit<VAXint>): Wrap source with (compare).
22099 (b<code> and following unnamed pattern): Rename to *branch and
22100 *branch_reversed. Change macroization to match_operator.
22101 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
22103 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
22104 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
22105 Change last argument to machine_mode.
22106 (xtensa_expand_scc): Add machine_mode argument.
22107 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
22108 (gen_conditional_move, xtensa_expand_conditional_branch,
22109 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
22110 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
22111 Adjust operand numbers.
22112 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
22114 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
22115 (cmpsi, cmpsf, b<code>, s<code>): Delete.
22116 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
22118 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
22120 * optabs.c (prepare_cmp_insn): Temporarily disable test that
22121 causes spurious differences between trunk and cond-optab branch.
22123 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
22126 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
22128 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
22130 * tree.c (iterative_hash_pointer): Delete.
22131 (iterative_hash_expr): Short-circuit handling of NULL pointer.
22132 Hash UIDs and versions of SSA names. Don't special-case built-in
22133 function declarations.
22135 2009-05-11 Ian Lance Taylor <iant@google.com>
22138 * graphite.c: Force -Wc++-compat to only be a warning before
22139 #including "cloog/cloog.h".
22141 2009-05-11 Martin Jambor <mjambor@suse.cz>
22143 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
22145 2009-05-11 Jan Hubicka <jh@suse.cz>
22147 * tree-ssa-loop-ivcanon.c: Include target.h
22148 (struct loop_size): new structure.
22149 (constant_after_peeling): New predicate.
22150 (tree_estimate_loop_size): New function.
22151 (estimated_unrolled_size): Rewrite for new estimates.
22152 (try_unroll_loop_completely): Use new estimates.
22153 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
22155 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
22157 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
22158 libcpp interface change.
22159 (spu_macro_to_expand): Likewise.
22161 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
22163 PR tree-optimization/40026
22164 * gimplify.c (gimplify_init_constructor): Change initial conditional
22165 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
22166 optimize_compound_literals_in_ctor.
22168 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
22170 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
22172 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
22174 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
22176 * tree-vect-data-refs.c (vect_analyze_group_access): Use
22177 HOST_WIDE_INT for gap.
22179 2009-05-11 Ira Rosen <irar@il.ibm.com>
22181 PR tree-optimization/40074
22182 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
22183 account in group size and step comparison.
22185 2009-05-11 Richard Guenther <rguenther@suse.de>
22187 * passes.c (init_optimization_passes): Strip now incorrect comment.
22188 (execute_function_todo): Do not set PROP_alias.
22189 * tree-pass.h (PROP_alias): Remove.
22190 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
22191 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
22192 * tree-nrv.c (pass_return_slot): Likewise.
22193 * tree-object-size.c (pass_object_sizes): Likewise.
22194 * tree-ssa-dom.c (pass_dominator): Likewise.
22195 (pass_phi_only_cprop): Likewise.
22196 * tree-ssa-dse.c (pass_dse): Likewise.
22197 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
22198 (pass_cselim): Likewise.
22199 * tree-ssa-pre.c (pass_pre): Likewise.
22200 (pass_fre): Likewise.
22201 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
22202 * tree-ssa-sink.c (pass_sink_code): Likewise.
22203 * tree-stdarg.c (pass_stdarg): Likewise.
22204 * tree-tailcall.c (pass_tail_calls): Likewise.
22205 * tree-vrp.c (pass_vrp): Likewise.
22207 2009-05-10 Ian Lance Taylor <iant@google.com>
22209 * basic-block.h (enum profile_status): Break out of struct
22210 control_flow_graph.
22211 * cgraph.h (struct inline_summary): Break out of struct
22213 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
22214 of struct cgraph_order_sort.
22215 * combine.c (enum undo_kind): New enum, broken out of struct undo.
22216 * cse.c (struct branch_path): Break out of struct
22217 cse_basic_block_data.
22218 * except.h (enum eh_region_type): Break out of struct eh_region.
22219 * gcc.c (enum add_del): Break out of struct modify_target.
22220 * genrecog.c (enum decision_type): Break out of struct decision_test.
22221 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
22223 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
22224 * regmove.c (enum match_use): New enum, broken out of struct match.
22225 * sched-int.h (enum post_call_group): New enum, broken out of
22227 (struct deps_reg): Break out of struct deps.
22228 * target.h (struct asm_int_op): Break out of struct gcc_target.
22229 * tree-eh.c (struct goto_queue_node): Break out of struct
22231 * tree-inline.h (enum copy_body_cge_which): Break out of
22233 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
22235 * c-decl.c (in_struct, struct_types): New static variables.
22236 (pushtag): Add loc parameter. Change all callers.
22237 (lookup_tag): Add ploc parameter. Change all callers.
22238 (check_compound_literal_type): New function.
22239 (parser_xref_tag): Add loc parameter. Change all callers. If
22240 -Wc++-compat, warn about struct/union/enum types defined within a
22242 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
22243 and loc parameters. Change all callers. Change error calls to
22244 error_at, using loc. For a redefinition, if the location of the
22245 original definition is known, report it. Set in_struct and
22246 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
22247 (finish_struct): Add new parameters enclosing_in_struct and
22248 enclosing_struct_types. Change all callers. Set
22249 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
22250 in the struct. If in a struct, add this struct to struct_types.
22251 (start_enum): Add loc parameter. Change all callers. Use
22252 error_at for errors, using loc. For a redefinition, if the
22253 location of the original definition is known, report it. If in a
22254 struct, add this enum type to struct_types. If -Wc++-compat warn
22255 if in sizeof, typeof, or alignof.
22256 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
22257 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
22258 (c_parser_enum_specifier): Get enum location for start_enum.
22259 (c_parser_struct_or_union_specifier): Get struct location for
22260 start_struct. Save in_struct and struct_types status between
22261 start_struct and finish_struct.
22262 (c_parser_cast_expression): Get location of cast.
22263 (c_parser_alignof_expression): Get location of type.
22264 (c_parser_postfix_expression): Likewise.
22265 (c_parser_postfix_expression_after_paren_type): Add type_loc
22266 parameter. Change all callers. Call check_compound_literal_type.
22267 Use type_loc for error about variable size type.
22268 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
22269 of an enum constant from an enum type defined in a struct or union.
22270 (c_cast_expr): Add loc parameter. Change all callers. If
22271 -Wc++-compat, warn about defining a type in a cast.
22272 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
22273 (start_enum, start_struct, finish_struct): Update declarations.
22274 (parser_xref_tag, c_cast_expr): Update declarations.
22275 (check_compound_literal_type): Declare.
22277 2009-05-11 Ben Elliston <bje@au.ibm.com>
22279 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
22280 for recent libcpp interface change.
22281 (rs6000_macro_to_expand): Likewise.
22283 2009-05-10 Michael Matz <matz@suse.de>
22286 * config/arm/arm.c (require_pic_register): Emit on entry edge,
22287 not at entry of function.
22289 2009-05-10 Richard Guenther <rguenther@suse.de>
22291 PR tree-optimization/40081
22293 * tree-sra.c (instantiate_element): Instantiate scalar replacements
22294 using the main variant of the element type. Do not fiddle with
22295 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
22297 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
22298 structs with volatile fields.
22300 2009-05-10 Jan Hubicka <jh@suse.cz>
22302 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
22303 (estimate_move_cost): Assert that it does not get called for
22305 (estimate_num_insns): Skip VOID types in argument handling.
22306 (optimize_inline_calls): Delete unreachable blocks and verify that
22307 callgraph is valid.
22309 2009-05-10 Jan Hubicka <jh@suse.cz>
22311 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
22312 * cgraph.c (cgraph_mark_address_taken_node): New function.
22313 (dump_cgraph_node): Dump new flag.
22314 * cgraph.h (struct cgraph_node): Add address_taken.
22315 (cgraph_mark_address_taken_node): New function.
22316 * ipa.c (cgraph_postorder): Prioritize functions with address taken
22317 since new direct calls can be born.
22319 2009-05-10 Joseph Myers <joseph@codesourcery.com>
22321 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
22322 tok->val.node.node.
22324 2009-05-10 Jan Hubicka <jh@suse.cz>
22326 PR middle-end/40084
22327 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
22329 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
22330 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
22331 * tree-inline.c (copy_bb): Set frequency correctly.
22332 (fold_marked_statements): Update call to
22333 cgraph_update_edges_for_call_stmt.
22335 2009-05-10 Joseph Myers <joseph@codesourcery.com>
22337 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
22338 identifiers in diagnostics.
22339 * config/arm/arm.c (arm_handle_fndecl_attribute,
22340 arm_handle_isr_attribute): Likewise.
22341 * config/avr/avr.c (avr_handle_progmem_attribute,
22342 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
22343 * config/bfin/bfin.c (handle_int_attribute,
22344 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
22345 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
22346 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
22348 * config/darwin.c (darwin_handle_kext_attribute,
22349 darwin_handle_weak_import_attribute): Likewise.
22350 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
22351 h8300_handle_eightbit_data_attribute,
22352 h8300_handle_tiny_data_attribute): Likewise.
22353 * config/i386/i386.c (ix86_handle_cconv_attribute,
22354 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
22355 * config/i386/winnt.c (ix86_handle_shared_attribute,
22356 ix86_handle_selectany_attribute): Likewise.
22357 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
22358 * config/m32c/m32c.c (function_vector_handler): Likewise.
22359 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
22360 m68hc11_handle_fntype_attribute): Likewise.
22361 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
22362 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
22363 * config/mips/mips.c (mips_insert_attributes,
22364 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
22365 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
22366 rs6000_handle_struct_attribute): Likewise.
22367 * config/sh/sh.c (sh_insert_attributes,
22368 sh_handle_resbank_handler_attribute,
22369 sh_handle_interrupt_handler_attribute,
22370 sh2a_handle_function_vector_handler_attribute,
22371 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
22373 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
22374 * config/spu/spu.c (spu_handle_fndecl_attribute,
22375 spu_handle_vector_attribute): Likewise.
22376 * config/stormy16/stormy16.c
22377 (xstormy16_handle_interrupt_attribute): Likewise.
22378 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
22379 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
22381 2009-05-10 Joseph Myers <joseph@codesourcery.com>
22383 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
22384 (pp_translate_identifiers): New.
22385 (pp_identifier): Only conditionally translate identifier to locale
22387 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
22388 (pp_base_tree_identifier): Only conditionally translate identifier
22389 to locale character set.
22390 * c-pretty-print.c (M_): Define.
22391 (pp_c_type_specifier, pp_c_primary_expression): Mark English
22392 fragments for conditional translation with M_.
22393 * tree-pretty-print.c (maybe_init_pretty_print): Disable
22394 identifier translation.
22396 2009-05-10 Richard Guenther <rguenther@suse.de>
22398 PR tree-optimization/40081
22399 * tree-sra.c (instantiate_element): Instantiate scalar replacements
22400 using the main variant of the element type. Do not fiddle with
22401 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
22403 2009-05-09 Jan Hubicka <jh@suse.cz>
22405 PR middle-end/40080
22406 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
22407 indirect calls; verify cgraph afterwards.
22409 2009-05-09 Jan Hubicka <jh@suse.cz>
22412 * ipa.c (update_inlined_to_pointer): New function.
22413 (cgraph_remove_unreachable_nodes): Use it.
22415 2009-05-09 Jan Hubicka <jh@suse.cz>
22417 * tree-eh.c (struct leh_state): Remove prev_try.
22418 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
22419 not track prev_try.
22420 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
22421 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
22422 remove_eh_handler_and_replace, foreach_reachable_handler,
22423 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
22424 * except.h (struct eh_region): Remove eh_region_u_cleanup.
22425 (gen_eh_region_cleanup): Update prototype.
22427 2009-05-09 Jan Hubicka <jh@suse.cz>
22429 PR middle-end/40043
22430 * except.c (copy_eh_region): Always set prev_try.
22431 (redirect_eh_edge_to_label): Find outer try.
22432 (foreach_reachable_handler): When looking for prev try
22433 handle case where previous try is not going to be taken.
22435 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
22437 PR tree-optimization/40049
22438 * tree-vect-stmts.c (vectorizable_operation): If the machine has
22439 only vector/vector shifts, convert the type of the constant to the
22440 appropriate type to avoid building incorrect trees, which
22441 eventually have problems with garbage collection.
22443 2009-05-08 Joseph Myers <joseph@codesourcery.com>
22445 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
22446 -1 for complex floating-point types if honoring signed zeros.
22448 2009-05-08 Jan Hubicka <jh@suse.cz>
22450 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
22451 argument; handle correctly when profile is absent.
22452 (build_cgraph_edges): Update.
22453 (rebuild_cgraph_edges): Update.
22454 * cgraph.c: Do not include varray.h.
22455 (cgraph_set_call_stmt_including_clones): New function.
22456 (cgraph_create_edge_including_clones): Likewise
22457 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
22458 (cgraph_update_edges_for_call_stmt): Handle clones.
22459 (cgraph_remove_node): Handle clone tree.
22460 (cgraph_remove_node_and_inline_clones): New function.
22461 (dump_cgraph_node): Dump clone tree.
22462 (cgraph_clone_node): Handle clone tree.
22463 (clone_function_name): Bring here from tree-inline.c.
22464 (cgraph_create_virtual_clone): New function.
22465 * cgraph.h (ipa_replace_map): Move here from ipa.h.
22466 (cgraph_clone_info): New function.
22467 (strut cgraph_node): Add clone_info and new clone tree pointers.
22468 (cgraph_remove_node_and_inline_clones,
22469 cgraph_set_call_stmt_including_clones,
22470 cgraph_create_edge_including_clones,
22471 cgraph_create_virtual_clone): Declare.
22472 (cgraph_function_versioning): Use VEC argument.
22473 (compute_call_stmt_bb_frequency): Update prototype.
22474 (cgraph_materialize_all_clones): New function.
22475 * ipa-cp.c (ipcp_update_cloned_node): Remove.
22476 (ipcp_create_replace_map): Update to VECtors.
22477 (ipcp_update_callgraph): Use virtual clones.
22478 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
22479 (ipcp_update_profiling): Do not update local profiling.
22480 (ipcp_insert_stage): Use VECtors and virtual clones.
22481 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
22482 (clone_of_p): New function.
22483 (cgraph_preserve_function_body_p): Use clone tree.
22484 (cgraph_optimize): Materialize clones.
22485 (cgraph_function_versioning): Update for VECtors.
22486 (save_inline_function_body): Use clone tree.
22487 (cgraph_materialize_clone): New function.
22488 (cgraph_materialize_all_clones): Likewise.
22489 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
22490 * ipa.c: Include gimple.h.
22491 (cgraph_remove_unreachable_nodes): Use clone tree.
22492 * ipa-prop.c (ipa_note_param_call): Update call to
22493 compute_call_stmt_bb_frequencycall.
22494 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
22495 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
22496 (copy_bb): Handle updating of clone tree; add new edge when new call
22498 (expand_call_inline): Be strict about every call having edge.
22499 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
22500 (delete_unreachable_blocks_update_callgraph): New function.
22501 (tree_function_versioning): Use VECtors; always remove unreachable
22502 blocks and fold conditionals.
22503 * tree-inline.h: Do not include varray.h.
22504 (tree_function_versioning): Remove.
22505 * Makefile.in (GTFILES): Remove tree-inline.c
22506 * passes.c (do_per_function): Do only functions having body.
22507 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
22510 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
22511 Andrew Morrow <acm@google.com>
22514 * c-common.c (c_common_attribute_table): Permit deprecated
22515 attribute to take an optional argument.
22516 (handle_deprecated_attribute): If the optional argument to
22517 __attribute__((deprecated)) is not a string ignore the attribute
22518 and emit a warning.
22520 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
22521 * c-typeck.c (build_component_ref): Likewise.
22522 (build_external_ref): Likewise.
22524 * toplev.c (warn_deprecated_use): Add an attribute argument.
22525 Emit the message associated with __attribute__((deprecated)).
22527 * toplev.h (warn_deprecated_use): Updated.
22529 * doc/extend.texi: Document new optional parameter to
22530 __attribute__((deprecated))
22532 2009-05-08 Michael Eager <eager@eagercon.com>
22534 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
22535 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
22537 2009-05-08 Richard Guenther <rguenther@suse.de>
22539 PR tree-optimization/40062
22540 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
22541 Avoid exponential behavior.
22543 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
22545 PR rtl-optimization/33928
22547 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
22548 process_uses, build_single_def_use_links): New.
22549 (update_df): Update use_def_ref.
22550 (forward_propagate_into): Use get_def_for_use instead of use-def
22552 (fwprop_init): Call build_single_def_use_links and let it initialize
22554 (fwprop_done): Free use_def_ref.
22555 (fwprop_addr): Eliminate duplicate call to df_set_flags.
22556 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
22557 df_rd_simulate_one_insn): New.
22558 (df_rd_bb_local_compute_process_def): Update head comment.
22559 (df_chain_create_bb): Use the new RD simulation functions.
22560 * df.h (df_rd_simulate_artificial_defs_at_top,
22561 df_rd_simulate_one_insn): New.
22562 * opts.c (decode_options): Enable fwprop at -O1.
22563 * doc/invoke.texi (-fforward-propagate): Document this.
22565 2009-05-08 Joseph Myers <joseph@codesourcery.com>
22568 * c-typeck.c (build_binary_op): Handle arithmetic between one real
22569 and one complex operand specially.
22570 * tree-complex.c (some_nonzerop): Do not identify a real value as
22571 zero if flag_signed_zeros.
22573 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
22575 PR rtl-optimization/33928
22576 * loop-invariant.c (record_use): Fix && vs. || mishap.
22578 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
22580 PR rtl-optimization/33928
22581 * loop-invariant.c (struct use): Add addr_use_p.
22582 (struct def): Add n_addr_uses.
22583 (struct invariant): Add cheap_address.
22584 (create_new_invariant): Set cheap_address.
22585 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
22586 (record_uses): Pass df_ref to record_use.
22587 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
22590 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
22592 * config/sh/sh.c: Do not include c-pragma.h.
22594 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
22596 * config/spu/spu.c: Remove include of c-common.h.
22598 2009-05-07 Janis Johnson <janis187@us.ibm.com>
22601 * c-common.h (mark_valid_location_for_stdc_pragma,
22602 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
22603 clear_float_const_decimal64, float_const_decimal64_p): New.
22604 * c.opt (Wunsuffixed-float-constants): New.
22605 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
22606 unsuffixed float constant, handle new warning.
22607 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
22608 * c-decl.c (c_scope): New flag float_const_decimal64.
22609 (set_float_const_decimal64, clear_float_const_decimal64,
22610 float_const_decimal64_p): New.
22611 (push_scope): Set new flag.
22612 * c-parser.c (c_parser_translation_unit): Mark when it's valid
22613 to use STDC pragmas.
22614 (c_parser_external_declaration): Ditto.
22615 (c_parser_compound_statement_nostart): Ditto.
22616 * c-pragma.c (valid_location_for_stdc_pragma,
22617 mark_valid_location_for_stdc_pragma,
22618 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
22619 handle_pragma_float_const_decimal64): New.
22620 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
22621 * cp/semantics.c (valid_location_for_stdc_pragma_p,
22622 set_float_const_decimal64, clear_float_const_decimal64,
22623 float_const_decimal64_p): New dummy functions.
22624 * doc/extend.texi (Decimal Float): Remove statement that the
22625 pragma, and suffix for double constants, are not supported.
22626 * doc/invoke.texi (Warning Options): List new option.
22627 (-Wunsuffixed-float-constants): New.
22629 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
22631 * config/i386/i386.c: Do not include c-common.h.
22633 2009-05-07 Mark Heffernan <meheff@google.com>
22635 * doc/invoke.texi (Debugging Options): Document change of debugging
22637 * opts.c (decode_options): Make dump_base_name relative to
22638 aux_base_name directory.
22640 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
22642 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
22643 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
22645 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
22647 * Makefile.in (install-plugin): Simplify a bit.
22649 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
22651 * Makefile.in (OBJS-common): Add regcprop.o.
22653 * timevar.def (TV_CPROP_REGISTERS): New.
22654 * regrename.c (regrename_optimize): Return 0.
22655 (rest_of_handle_regrename): Delete.
22656 (pass_rename_registers): Point to regrename_optimize.
22657 (struct value_data_entry, struct value_data,
22658 kill_value_one_regno, kill_value_regno, kill_value,
22659 set_value_regno, init_value_data, kill_clobbered_value,
22660 kill_set_value, kill_autoinc_value, copy_value,
22661 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
22662 replace_oldest_value_reg, replace_oldest_value_addr,
22663 replace_oldest_value_mem, copyprop_hardreg_forward_1,
22664 debug_value_data, validate_value_data): Move...
22665 * regcprop.c: ... here.
22666 (rest_of_handle_cprop): Delete.
22667 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
22669 2009-05-07 Jakub Jelinek <jakub@redhat.com>
22671 PR middle-end/40057
22672 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
22673 GEN_INT for 1 << bitnum.
22674 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
22675 build_int_cst_type.
22677 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
22679 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
22680 Remove wrong description of "nand" operation.
22682 2009-05-06 Richard Guenther <rguenther@suse.de>
22683 Adam Nemet <anemet@caviumnetworks.com>
22685 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
22686 comment. Add that if LHS is not a gimple register, then RHS1 has
22687 to be a single object (GIMPLE_SINGLE_RHS).
22689 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
22691 * expr.c (get_def_for_expr): Move it up in the file.
22692 (store_field): When expanding a bit-field store, look at the
22693 defining gimple stmt for the masking conversion.
22695 2009-05-06 Janis Johnson <janis187@us.ibm.com>
22697 PR middle-end/39986
22698 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
22699 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
22700 32-bit memcpy into long.
22702 2009-05-06 Jakub Jelinek <jakub@redhat.com>
22704 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
22705 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
22707 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
22708 instead of appending DW_OP_deref*.
22710 2009-05-06 Michael Matz <matz@suse.de>
22712 PR middle-end/40021
22713 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
22714 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
22716 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
22718 * Makefile.in (install-plugin): Fix srcdir handling.
22720 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
22722 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
22723 when processing for not_regs_needed bitmap.
22724 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
22725 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
22726 handling it for rhs.
22728 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
22730 * config/i386/i386.md (unnamed inc/dec peephole): Use
22731 optimize_insn_for_size_p instead of optimize_size.
22732 * config/i386/predicates.md (incdec_operand): Likewise.
22733 (aligned_operand): Likewise.
22734 * config/i386/sse.md (divv8sf3): Likewise.
22735 (sqrtv8sf2): Likewise.
22737 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
22739 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
22741 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
22743 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
22745 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
22746 ssemodesuffixf2c with avxmodesuffixf2c.
22748 2009-05-06 Joseph Myers <joseph@codesourcery.com>
22751 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
22753 2009-05-05 Jakub Jelinek <jakub@redhat.com>
22755 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
22756 (struct tree_base): Adjust spacing for 8 bit boundaries.
22757 (struct tree_decl_common): Add decl_by_reference_flag bit.
22758 (DECL_BY_REFERENCE): Adjust.
22759 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
22760 print DECL_BY_REFERENCE bit.
22761 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
22762 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
22763 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
22764 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
22767 PR middle-end/39666
22768 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
22769 range of the type, but default label is missing, add it with one
22770 of the existing labels instead of adding a new label for it.
22772 2009-05-05 Joseph Myers <joseph@codesourcery.com>
22776 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
22778 * Makefile.in (enable_plugin, plugin_includedir): New.
22779 (install): Depend on install-plugin.
22780 (PLUGIN_HEADERS): New.
22781 (install-plugin): New.
22782 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
22784 2009-05-05 Richard Guenther <rguenther@suse.de>
22786 PR tree-optimization/40022
22787 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
22789 (phivn_valid_p): Fix tuplification error, simplify.
22790 (phiprop_insert_phi): Add dumps.
22791 (propagate_with_phi): Simplify.
22793 2009-05-05 Richard Guenther <rguenther@suse.de>
22795 PR middle-end/40023
22796 * builtins.c (gimplify_va_arg_expr): Properly build the address.
22798 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
22800 * tree.h (strip_float_extensions): Remove duplicate declaration.
22801 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
22802 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
22803 block_ultimate_origin): Rearrange the declarations line to match the
22804 comment that indicates the .c file which the functions are defined.
22805 (dwarf2out_*, set_decl_rtl): Add comment.
22806 (get_base_address): Adjust comment.
22807 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
22808 declarations line and add comment.
22809 (is_builtin_name): Add blank after function name, for clarity.
22811 2009-05-04 Joseph Myers <joseph@codesourcery.com>
22813 * attribs.c (decl_attributes): Use %qE for identifiers in
22815 * cgraphunit.c (verify_cgraph_node): Translate function names to
22816 locale character set in diagnostics.
22817 * coverage.c (get_coverage_counts): Use %qE for identifiers in
22819 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
22820 Document that functions are named in UTF-8.
22821 * expr.c (expand_expr_real_1): Translate function names to locale
22822 character set in diagnostics.
22823 * gimplify.c (omp_notice_variable, omp_is_private,
22824 gimplify_scan_omp_clauses): Use %qE for identifiers in
22826 * langhooks.c (lhd_print_error_function): Translate function names
22827 to locale character set.
22828 * langhooks.h (decl_printable_name): Document that return value is
22829 in internal character set.
22830 * stmt.c: Include pretty-print.h
22831 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
22833 (resolve_operand_name_1): Translate named operand name to locale
22835 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
22837 * toplev.c (announce_function): Translate function names to locale
22839 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
22840 (default_tree_printer): Use pp_identifier or translate identifiers
22841 to locale character set. Mark "<anonymous>" for translation.
22842 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
22843 for identifiers in diagnostics.
22844 * tree.c (handle_dll_attribute): Use %qE for identifiers in
22846 * varasm.c (output_constructor): Use %qE for identifiers in
22849 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
22851 * configure.ac: use ` ` instead of $()
22852 * configure: Regenerate.
22854 2009-05-05 Ben Elliston <bje@au.ibm.com>
22856 * config/pa/linux-atomic.c: Eliminate conditional include of
22857 errno.h on non-LP64 systems to simplify build requirements.
22859 2009-05-04 Joseph Myers <joseph@codesourcery.com>
22861 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
22863 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
22864 and pass value to identifier_to_locale.
22865 (warn_variable_length_array): Make name a tree.
22866 (grokdeclarator): Separate diagnostic texts for named and unnamed
22867 declarators. Use %qE for named declarators.
22868 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
22870 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
22871 identifiers in diagnostics.
22872 * c-typeck.c (push_member_name, start_init): Pass identifiers to
22873 identifier_to_locale. Mark "anonymous" strings for translation.
22875 2009-05-04 Michael Eager <eager@eagercon.com>
22877 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
22878 address for DImode/DFmode only if double-precision FP regs.
22880 2009-05-04 Michael Eager <eager@eagercon.com>
22882 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
22883 TARGET_SINGLE_FLOAT check.
22885 2009-05-04 Michael Eager <eager@eagercon.com>
22887 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
22889 2009-05-04 Michael Eager <eager@eagercon.com>
22891 * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
22892 * config/rs6000/t-xilinx: New
22894 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
22896 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
22897 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
22898 * gcc/explow.c (memory_address): Use target hook.
22899 * gcc/targhooks.c (default_legitimize_address): New.
22900 * gcc/targhooks.h (default_legitimize_address): New.
22901 * gcc/target.h (legitimize_address): New.
22902 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
22903 (TARGET_INITIALIZER): Include it.
22904 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
22906 * config/bfin/bfin-protos.h (legitimize_address): Remove.
22907 * config/bfin/bfin.c (legitimize_address): Remove.
22908 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
22909 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
22911 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
22912 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
22914 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
22915 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
22916 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
22917 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
22918 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
22919 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
22920 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
22921 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
22922 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
22923 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
22924 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
22925 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
22926 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
22927 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
22928 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
22929 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
22930 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
22931 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
22932 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
22933 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
22934 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
22935 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
22936 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
22938 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
22939 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
22940 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
22941 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
22942 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
22943 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
22944 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
22945 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
22946 (thumb_legitimize_address): Delete.
22947 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
22948 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
22949 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
22950 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
22951 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
22952 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
22954 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
22957 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
22958 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
22959 * config/m32r/m32r.c (m32r_legitimize_address): New.
22960 * config/m68k/m68k.c (m68k_legitimize_address): New.
22961 * config/score/score.c (score_legitimize_address): Standardize.
22962 * config/score/score3.c (score3_legitimize_address): Standardize.
22963 * config/score/score3.h (score3_legitimize_address): Adjust.
22964 * config/score/score7.c (score7_legitimize_address): Standardize.
22965 * config/score/score7.h (score7_legitimize_address): Adjust.
22966 * config/sh/sh.c (sh_legitimize_address): New.
22967 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
22969 * gcc/config/s390/s390.c (legitimize_address): Rename to...
22970 (s390_legitimize_address): ... this.
22971 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
22972 (sparc_legitimize_address): ... this.
22973 * gcc/config/i386/i386.c (legitimize_address): Rename to...
22974 (ix86_legitimize_address): ... this.
22975 * gcc/config/avr/avr.c (legitimize_address): Rename to...
22976 (avr_legitimize_address): ... this.
22977 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
22978 (mn10300_legitimize_address): ... this.
22979 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
22980 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
22981 (alpha_expand_mov): Adjust call.
22983 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
22984 * config/spu/spu.c (spu_legitimize_address): Likewise.
22985 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
22986 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
22988 2009-05-04 Joseph Myers <joseph@codesourcery.com>
22990 * intl.c (locale_encoding, locale_utf8): New.
22991 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
22992 * intl.h (locale_encoding, locale_utf8): Declare.
22993 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
22994 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
22996 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
22998 (pp_tree_identifier): Define to call pp_base_tree_identifier.
22999 (pp_base_tree_identifier): Declare as function.
23000 (identifier_to_locale): Declare.
23001 * Makefile.in (pretty-print.o): Update dependencies.
23002 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
23004 2009-05-04 Richard Guenther <rguenther@suse.de>
23006 PR middle-end/40015
23007 * builtins.c (fold_builtin_memory_op): Do not decay to element
23008 type if the size matches the whole array.
23010 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
23012 * expmed.c (synth_mult): When trying out a shift, pass the result
23015 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
23017 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
23018 (shiftsub1_cost): New.
23019 (init_expmed): Compute shiftsub1_cost.
23020 (synth_mult): Optimize multiplications by constants of the form
23021 -(2^^m-1) for some constant positive integer m.
23023 2009-05-03 Richard Guenther <rguenther@suse.de>
23026 * c-typeck.c (array_to_pointer_conversion): Do not built
23027 ADDR_EXPRs of arrays of pointer-to-element type.
23028 * c-gimplify.c (c_gimplify_expr): Revert change fixing
23029 up wrong ADDR_EXPRs after-the-fact.
23030 * c-common.c (strict_aliasing_warning): Strip pointer
23031 conversions for obtaining the original type.
23032 * builtins.c (fold_builtin_memset): Handle array types.
23033 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
23036 2009-05-03 Richard Guenther <rguenther@suse.de>
23038 PR middle-end/23329
23039 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
23040 Do not lose casts from array types with unknown extent to array
23041 types with known extent.
23042 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
23043 alias set compatibility.
23045 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
23047 * flags.h (extra_warnings): Delete.
23048 * toplev.c (process_options): Handle Wuninitialized here.
23049 * opts.c (extra_warnings): Delete.
23050 (set_Wextra): Delete.
23051 (common_handle_option): -Wextra can be handled automatically.
23052 * c-opts.c (c_common_handle_option): Delete obsolete code.
23053 (c_common_post_options): Simplify comment.
23054 * common.opt (W): Add Var.
23056 (Wuninitialized): Initialize to -1.
23058 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
23059 Richard Guenther <rguenther@suse.de>
23061 * expr.c (get_def_for_expr): New function.
23062 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
23063 SSA rather than trees.
23064 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
23065 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
23067 2009-05-03 Joseph Myers <joseph@codesourcery.com>
23069 * c-common.c (reswords): Add _Imaginary.
23070 * c-common.c (enum rid): Add RID_IMAGINARY.
23072 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
23074 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
23075 Patch by Richard Guenther.
23077 2009-05-03 Anatoly Sokolov <aesok@post.ru>
23079 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
23080 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
23081 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
23082 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
23083 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
23084 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
23085 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
23086 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
23087 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
23088 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
23089 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
23090 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
23091 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
23092 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
23093 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
23094 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
23095 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
23096 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
23098 2009-05-02 Richard Guenther <rguenther@suse.de>
23100 PR tree-optimization/39940
23101 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
23104 2009-05-02 Richard Guenther <rguenther@suse.de>
23106 PR middle-end/40001
23107 * tree-ssa.c (execute_update_addresses_taken): Properly check
23108 if we can mark a variable DECL_GIMPLE_REG_P.
23109 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
23110 back to the end of the function.
23111 (is_gimple_reg_type): Remove complex type special casing.
23112 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
23115 2009-05-02 Ben Elliston <bje@au.ibm.com>
23117 * doc/collect2.texi (Collect2): Document search path behaviour
23118 when configured with --with-ld.
23120 2009-05-02 Jan Hubicka <jh@suse.cz>
23122 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
23123 parameter; update callers.
23124 (coalesce_cost_edge): EH edges are costier because they needs
23125 splitting even if not critical and even more costier when there are
23126 multiple EH predecestors.
23128 2009-05-02 Jan Hubicka <jh@suse.cz>
23130 * except.c (remove_eh_handler_and_replace): Handle updating after
23131 removing TRY blocks.
23133 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
23135 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
23137 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
23139 * varasm.c: Do not include c-pragma.h.
23140 * attribs.c: Do not incude c-common.h.
23142 2009-05-01 Michael Matz <matz@suse.de>
23144 * calls.c (initialize_argument_information): Handle SSA names like
23145 decls with a non MEM_P DECL_RTL.
23147 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
23149 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
23150 * ipa-utils.c: Likewise.
23151 * ipa-type-escape.c: Likewise.
23152 * cgraphunit.c Do not include c-common.h.
23153 * ipa-pure-const.c: Likewise.
23154 * tree-if-conv.c: Likewise.
23155 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
23156 * ipa-struct-reorg.c: Likewise.
23157 * tree-nomudflap.c: Likewise.
23158 * tree-ssa-structalias.c: Likewise.
23160 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
23162 * store-motion.c: Many cleanups to make this pass a first-class
23163 citizen instead of an appendix to gcse load motion. Add TODO list
23164 to make this pass faster/cleaner/better.
23166 (struct ls_expr): Post gcse.c-split cleanups.
23167 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
23168 "stores" field to "avail_stores".
23169 (pre_ldst_mems): Rename to store_motion_mems.
23170 (pre_ldst_table): Rename to store_motion_mems_table.
23171 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
23172 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
23173 (ldst_entry): Rename to st_expr_entry, update users.
23174 (free_ldst_entry): Rename to free_st_expr_entry, update users.
23175 (free_ldst_mems): Rename to free_store_motion_mems, update users.
23176 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
23178 (first_ls_expr): Rename to first_st_expr, update users.
23179 (next_ls_expr): Rename to next_st_expr, update users.
23180 (print_ldst_list): Rename to print_store_motion_mems. Print names of
23181 fields properly for store motion instead of names inherited from load
23183 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
23184 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
23187 (ae_kill): Rename to st_kill, update users.
23188 (ae_gen): Rename to st_avloc, update users.
23189 (transp): Rename to st_transp, update users.
23190 (pre_insert_map): Rename to st_insert_map, update users.
23191 (pre_delete_map): Rename to st_delete_map, update users.
23192 (insert_store, build_store_vectors, free_store_memory,
23193 one_store_motion_pass): Update for abovementioned changes.
23195 (gcse_subst_count, gcse_create_count): Remove.
23196 (one_store_motion_pass): New statistics counters "n_stores_deleted"
23197 and "n_stores_created", local variables.
23199 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
23202 (regvec, compute_store_table_current_insn): Remove.
23203 (reg_set_info, reg_clear_last_set): Remove.
23204 (compute_store_table): Use DF caches instead of local dataflow
23207 2009-05-01 Joseph Myers <joseph@codesourcery.com>
23209 * c-objc-common.c (c_tree_printer): Print identifiers with
23210 pp_identifier, not pp_string. Mark "({anonymous})" for
23212 * c-pretty-print.c (pp_c_ws_string): New.
23213 (pp_c_cv_qualifier, pp_c_type_specifier,
23214 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
23215 pp_c_storage_class_specifier, pp_c_function_specifier,
23216 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
23217 pp_c_primary_expression, pp_c_postfix_expression,
23218 pp_c_unary_expression, pp_c_shift_expression,
23219 pp_c_relational_expression, pp_c_equality_expression,
23220 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
23221 use pp_string and pp_c_ws_string in place of pp_identifier and
23222 pp_c_identifier for non-identifiers. Mark English strings for
23224 * c-pretty-print.h (pp_c_ws_string): Declare.
23226 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
23227 Roland McGrath <roland@redhat.com>
23229 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
23230 (ENABLE_LD_BUILDID): New configuration option.
23231 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
23232 (LINK_BUILDID_SPEC): New macro.
23233 (init_spec): If defined, prepend it between LINK_EH_SPEC and
23235 * doc/install.texi: Document --enable-linker-build-id option.
23236 * configure: Rebuild.
23237 * config.in: Rebuild.
23239 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
23241 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
23242 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
23243 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
23244 MIPS_GP_SAVE_AREA_SIZE.
23245 * config/mips/mips.c (struct mips_frame_info): Update comment
23246 before arg_pointer_offset and hard_frame_pointer_offset.
23247 (mips_compute_frame_info): Update diagram before function: to
23248 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
23249 indicate the position of frame_pointer_rtx with -fstack-protector and
23250 to show args_size. Don't allocate cprestore area for leaf functions
23251 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
23253 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
23255 2009-04-30 Michael Matz <matz@suse.de>
23257 PR tree-optimization/39955
23258 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
23260 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
23262 * ira.c (setup_cover_and_important_classes): Use safe macro
23263 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
23265 * genpreds.c (write_tm_preds_h): Output suitable definition of
23266 REG_CLASS_FOR_CONSTRAINT.
23268 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
23270 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
23272 * bitmap.c (bitmap_descriptor): Likewise.
23273 * ggc-common.c (loc_descriptor): Likewise.
23274 * varray.c (varray_descriptor): Likewise.
23275 * vec.c (vec_descriptor): Likewise.
23277 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
23279 * Makefile.in (dce.o): Add $(EXCEPT_H).
23280 * dce.c: Include except.h and delete redundant vector definitions.
23281 (deletable_insn_p): Return false for non-call insns that can throw
23284 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
23286 * gcse.c (ae_gen): Remove.
23287 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
23288 and make non-static function to make it available in store-motion.c.
23289 Update call sites with search-and-replace.
23290 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
23291 extract_mentioned_regs, extract_mentioned_regs_helper,
23292 find_moveable_store, compute_store_table, load_kills_store, find_loads,
23293 store_killed_in_insn, store_killed_after, store_killed_before,
23294 build_store_vectors, insert_insn_start_basic_block, insert-store,
23295 remove_reachable_equiv_notes, replace_store_insn, delete_store,
23296 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
23297 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
23298 * store-motion.c: ...new file. Also copy data structures from gcse.c
23299 and clean up to remove parts not used by store motion.
23300 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
23301 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
23303 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23306 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
23307 when optimizing for size.
23309 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
23311 * gcse.c (gcse_constant_p): Fix typo in last change.
23313 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
23315 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
23317 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
23319 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
23321 2009-04-29 James E. Wilson <wilson@codesourcery.com>
23323 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
23324 CONST_HIGH_PART result.
23326 2009-04-29 Anatoly Sokolov <aesok@post.ru>
23328 * config/avr/avr.c (initial_elimination_offset): Rename to
23329 avr_initial_elimination_offset.
23330 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
23331 change return type to bool.
23332 (avr_can_eliminate): New function.
23333 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
23334 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
23335 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
23336 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
23337 avr_initial_elimination_offset.
23338 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
23339 (avr_initial_elimination_offset): Define.
23341 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
23342 Steven Bosscher <steven@gcc.gnu.org>
23344 PR rtl-optimization/39938
23345 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
23346 * cfgrtl.c: Include insn-attr.h.
23347 (rest_of_pass_free_cfg): New function.
23348 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
23349 * resource.c (init_resource_info): Remove call to df_analyze.
23351 2009-04-29 Richard Guenther <rguenther@suse.de>
23354 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
23355 allow conversion to signed integers.
23357 2009-04-29 Richard Guenther <rguenther@suse.de>
23359 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
23360 shifts of floating point vectors if the shift amount is
23361 a constant multiple of the element size.
23363 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
23364 Michael Matz <matz@suse.de>
23366 PR middle-end/39927
23368 * tree-outof-ssa.c (emit_partition_copy): New function.
23369 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
23370 insert_part_to_rtx_on_edge): Perform the partition base var
23371 copy using emit_partition_copy.
23372 (insert_value_copy_on_edge): Convert constants to the right mode.
23373 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
23374 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
23376 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
23378 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
23379 scan backwards to try to find a constant to initialize it.
23381 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
23382 insn before the loop_end instruction, don't look past labels.
23384 2009-04-29 Richard Guenther <rguenther@suse.de>
23386 PR middle-end/39937
23387 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
23388 loose type conversions.
23389 (forward_propagate_addr_expr): Fix tuplification bug. Remove
23390 stmts only if there are no uses of its definition.
23392 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
23394 * config/bfin/bfin.h (splitting_loops): Declare.
23395 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
23396 Reorder bit definitions to be ascending.
23397 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
23398 * config/bfin/bfin.c (splitting_loops): New variable.
23399 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
23400 (struct loop_info): Remove members INIT and LOOP_INIT.
23401 (bfin_optimize_loop): Don't set them. Reorder the code that generates
23402 the LSETUP sequence. Allow LC to be loaded from any register, but
23403 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
23404 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
23406 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
23407 of reload_completed.
23410 * config/bfin/bfin.md (movsi_insn): Refine constraints.
23412 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
23414 * Makefile.in (PLUGIN_VERSION_H): New.
23415 (OBJS-common): Remove plugin-version.o.
23416 (plugin.o): Depend on (PLUGIN_VERSION_H).
23417 (plugin-version.o): Remove.
23418 * configure: Regenerate
23419 * configure.ac: Create plugin-version.h.
23420 * gcc-plugin.h (plugin_gcc_version): Remove.
23421 (plugin_default_version_check): Change signature.
23422 * plugin-version.c: Remove.
23423 * plugin.c: Include plugin-version.h.
23424 (str_plugin_gcc_version_name): Remove.
23425 (try_init_one_plugin): Pass gcc version to plugin_init.
23426 (plugin_default_version_check): Both gcc and plugin versions are now
23429 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
23431 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
23432 problematic last insns. Test for TYPE_CALL rather than CALL_P.
23433 Remove special case testing for last insn of inner loops. Don't fail
23434 if the loop ends with a jump, emit an extra nop instead.
23436 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
23437 DREGS rather than comparing directly. Remove code that tries to
23438 account for latencies.
23440 2009-04-29 Richard Guenther <rguenther@suse.de>
23442 PR tree-optimization/39941
23443 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
23444 eliminating an indirect call.
23446 2009-04-29 Richard Guenther <rguenther@suse.de>
23448 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
23449 parameter. Allow invariants as base if !require_lvalue.
23450 (verify_gimple_assign_single): Adjust.
23452 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
23454 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
23455 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
23456 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
23457 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
23458 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
23460 * config/bfin/bfin.c (bfin_expand_builtin,
23461 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
23463 2009-04-28 Richard Guenther <rguenther@suse.de>
23465 * tree-vect-loop.c (get_initial_def_for_induction): Use
23466 correct types for pointer increment.
23468 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23470 * toplev.c (print_version): Update GMP version string calculation.
23472 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
23474 PR rtl-optimization/39938
23475 * resource.c (init_resource_info): Add call to df_analyze.
23477 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
23479 * config/alpha/alpha.md (usegp): Cast the result of
23480 alpha_find_lo_sum_using_gp to enum attr_usegp.
23481 * config/alpha/alpha.c (override_options): Remove end-of-structure
23482 marker element from cpu_table. Use array size of cpu_table to handle
23483 -mcpu and -mtune options.
23484 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
23486 2009-04-28 Joseph Myers <joseph@codesourcery.com>
23488 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
23489 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
23490 tune_32 and tune_64.
23491 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
23492 support on PowerPC.
23493 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
23494 * config/rs6000/option-defaults.h: ... here. New file.
23495 (OPT_64, OPT_32): Define.
23496 (MASK_64BIT): Define to 0 if not already defined.
23497 (OPT_ARCH64, OPT_ARCH32): Define.
23498 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
23501 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23503 * config/arm/arm.c (arm_override_options): Emit error on using
23506 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
23508 PR rtl-optimization/39914
23509 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
23510 registers for allocnos created from user-defined variables only
23511 when not optimizing.
23513 2009-04-28 Richard Guenther <rguenther@suse.de>
23515 PR middle-end/39937
23516 * fold-const.c (fold_binary): Use distribute_real_division only
23519 2009-04-28 Steve Ellcey <sje@cup.hp.com>
23521 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
23522 add hpux-stdint.h to tm_file.
23523 (hppa[12]*-*-hpux11*): Ditto.
23524 (ia64*-*-hpux*): Ditto.
23525 * config/hpux-stdint.h: New.
23526 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
23527 __STDC_EXT__ for all compiles.
23528 * config/pa/pa-hpux.h: Ditto.
23529 * config/pa/pa-hpux10.h: Ditto.
23530 * config/pa/pa-hpux11.h: Ditto.
23532 2009-04-28 Catherine Moore <clm@codesourcery.com>
23534 * debug.h (set_name): Add comment.
23536 2009-04-28 Andrew Pinski <pinskia@gmail.com>
23539 * config/darwin.c (machopic_gen_offset): Check
23540 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
23541 * config/arm/arm.c (require_pic_register): Likewise.
23543 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
23545 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
23546 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
23547 m32c_promote_prototypes): Delete.
23549 2009-04-28 Michael Matz <matz@suse.de>
23551 PR middle-end/39922
23552 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
23555 2009-04-28 Richard Guenther <rguenther@suse.de>
23557 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
23559 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23561 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
23562 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
23563 * config/arm/arm-tune.md: Regenerate.
23565 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
23567 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
23568 block if there are complex incoming edges.
23569 (sel_merge_blocks): Remove useless assert.
23570 (sel_redirect_edge_and_branch): Check that edge was redirected.
23571 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
23572 (sel_find_rgns): Delete declaration.
23573 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
23574 the region when it is not a preheader.
23576 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
23579 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
23581 2009-04-28 Richard Guenther <rguenther@suse.de>
23583 * tree.h (SSA_NAME_VALUE): Remove.
23584 (struct tree_ssa_name): Remove value_handle member.
23585 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
23586 array for jump threading.
23587 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
23589 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
23590 * tree-flow.h (threadedge_initialize_values): Declare.
23591 (threadedge_finalize_values): Likewise.
23592 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
23593 (SSA_NAME_VALUE): Define.
23594 (threadedge_initialize_values): New function.
23595 (threadedge_finalize_values): Likewise.
23596 * tree-ssa-dom.c (ssa_name_values): New global variable.
23597 (SSA_NAME_VALUE): Define.
23598 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
23600 2009-04-28 Ira Rosen <irar@il.ibm.com>
23602 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
23603 Use REPORT_VECTORIZED_LOCATIONS instead
23604 REPORT_VECTORIZED_LOOPS.
23605 * tree-vectorizer.c (vect_verbosity_level): Make static.
23606 (vect_loop_location): Rename to vect_location.
23607 (vect_set_verbosity_level): Update comment.
23608 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
23610 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
23611 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
23612 instead REPORT_UNVECTORIZED_LOOPS.
23613 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
23614 and vect_loop_def to vect_external_def and vect_internal_def.
23615 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
23616 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
23617 REPORT_UNVECTORIZED_LOCATIONS.
23618 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
23619 and vect_used_in_loop and to vect_unused_in_scope and
23620 vect_used_in_scope.
23621 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
23622 (vect_verbosity_level): Remove declaration.
23623 (vect_analyze_operations): Likewise.
23624 (vect_analyze_stmt): Declare.
23625 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
23626 REPORT_UNVECTORIZED_LOCATIONS.
23627 (vect_get_loop_niters): Fix indentation.
23628 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
23629 (vect_analyze_loop_operations): New function.
23630 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
23631 vect_analyze_operations.
23632 (vect_is_simple_reduction): Use new names.
23633 (vectorizable_live_operation, vect_transform_loop): Likewise.
23634 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
23635 to specify whether the data references can be a part of interleaving
23637 (vect_analyze_data_ref_dependence): Use new names.
23638 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
23639 (vect_create_addr_base_for_vector_ref): Remove redundant code.
23640 * tree-vect-patterns.c (widened_name_p): Use new names.
23641 (vect_recog_dot_prod_pattern): Likewise.
23642 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
23643 (process_use, vect_mark_stmts_to_be_vectorized,
23644 vect_model_simple_cost, vect_model_store_cost,
23645 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
23646 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
23647 vectorizable_operation, vectorizable_type_demotion,
23648 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
23649 vectorizable_condition): Likewise.
23650 (vect_analyze_operations): Split into vect_analyze_loop_operations
23652 (vect_analyze_stmt): ... new function.
23653 (new_stmt_vec_info): Use new names.
23654 (vect_is_simple_use): Use new names and fix comment.
23655 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
23656 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
23658 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
23661 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
23662 and integer modes for x87 operands. Do not ICE for unsupported size,
23663 generate error instead. Generate error for unsupported operand types.
23664 ['z']: Do not handle HImode memory operands specially. Warning
23665 for floating-point operands. Fallthru to 'Z' for unsupported operand
23666 types. Do not ICE for unsupported size, generate error instead.
23667 (output_387_binary_op): Use %Z to output operands.
23668 (output_fp_compare): Ditto.
23669 (output_387_reg_move): Ditto.
23671 2009-04-28 Ben Elliston <bje@au.ibm.com>
23676 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23678 * builtins.c (c_strlen): Do not warn here.
23679 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
23680 * c-common.c (pointer_int_sum): Take an explicit location.
23681 Warn about offsets out of bounds.
23682 * c-common.h (pointer_int_sum): Adjust declaration.
23684 2009-04-27 Ian Lance Taylor <iant@google.com>
23686 * collect2.c (is_ctor_dtor): Change type of ret field in struct
23688 * dce.c (run_fast_df_dce): Change type of old_flags to int.
23689 * df-core.c (df_set_flags): Change return type to int. Change
23690 type of old_flags to int.
23691 (df_clear_flags): Likewise.
23692 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
23693 (df_get_conditional_uses): Likewise.
23694 * df.h (df_set_flags, df_clear_flags): Update declarations.
23695 * dwarf2out.c (struct indirect_string_node): Change type of form
23696 field to enum dwarf_form.
23697 (AT_string_form): Change return type to enum dwarf_form.
23698 * fixed-value.c (fixed_compare): Add cast to enum type.
23699 * fwprop.c (update_df): Change 0 to VOIDmode.
23700 * gensupport.c: Change 0 to UNKNOWN.
23701 * gimple.h (gimple_cond_code): Add cast to enum type.
23702 * haifa-sched.c (reemit_notes): Add cast to enum type.
23703 * hooks.c (hook_int_void_no_regs): Remove function.
23704 * hooks.h (hook_int_void_no_regs): Remove declaration.
23705 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
23706 * predict.c (combine_predictions_for_insn): Add casts to enum type.
23707 * real.c (real_arithmetic): Add cast to enum type.
23708 (real_compare): Likewise.
23709 * target.h (struct gcc_target): Change return type of
23710 branch_target_register_class to enum reg_class.
23711 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
23712 default_branch_target_register_class.
23713 * targhooks.c (default_branch_target_register_class): New function.
23714 * targhooks.h (default_branch_target_register_class): Declare.
23715 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
23716 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
23718 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
23720 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
23721 vect_uninitialized_def. Change 0 to ERROR_MARK.
23722 * tree-vect-stmts.c (supportable_widening_operation): Don't
23723 initialize icode1 and icode2.
23724 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
23725 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
23727 (cmn_err_flag_specs): Change 0 to STD_C89.
23728 (cmn_err_char_table): Likewise.
23729 * config/arm/arm.c (get_arm_condition_code): Change type of code
23730 to enum arm_cond_code.
23731 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
23732 (IWMMXT_BUILTIN2): Likewise.
23733 (neon_builtin_type_bits): Don't define typedef.
23734 (neon_builtin_datum): Change type of bits field to int.
23735 (arm_expand_neon_args): Add cast to enum type.
23736 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
23738 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
23739 casts to enum type.
23740 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
23742 * config/mips/mips.md (jal_macro): Return enum constant.
23743 (single_insn): Likewise.
23744 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
23746 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23747 casts to enum type.
23748 * config/s390/s390.c (s390_tune_flags): Change type to int.
23749 (s390_arch_flags): Likewise.
23750 (s390_handle_arch_option): Change flags field of struct pta to int.
23751 * config/s390/s390.h (s390_tune_flags): Update declaration.
23752 (s390_arch_flags): Likewise.
23753 * config/sh/sh.c (prepare_move_operands): Compare
23754 tls_symbolic_operand result with enum constant.
23755 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
23756 (sh_expand_prologue): Add cast to enum type.
23757 (sh_expand_epilogue): Likewise.
23758 (tls_symbolic_operand): Change return type to enum tls_model.
23759 (fpscr_set_from_mem): Add cast to enum type.
23760 (legitimize_pic_address): Compare tls_symbolic_operand result with
23762 (sh_target_reg_class): Change return type to enum reg_class.
23763 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
23765 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
23766 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
23767 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
23768 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
23769 (delayed_branch, tls_call_delay): Likewise.
23770 (eligible_for_sibcall_delay): Likewise.
23771 (eligible_for_return_delay): Likewise.
23772 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
23773 (spu_expand_builtin_1): Likewise.
23775 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
23776 for all types of conversions.
23777 (output_init_element): Issue -Wc++-compat warning if needed when
23778 initializing a bitfield with enum type.
23779 * c-parser.c (c_parser_expression): Set original_type to
23780 original_type of right hand operand of comma operator.
23782 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23784 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
23786 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
23787 * doc/cpp.texi (Standard Predefined Macros)
23788 (Implementation-defined behavior): Likewise.
23789 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
23790 * doc/gimple.texi (GIMPLE Exception Handling)
23791 (@code{GIMPLE_ASSIGN}): Likewise.
23792 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
23793 * doc/invoke.texi (Warning Options, Optimize Options)
23794 (AVR Options, Darwin Options): Likewise.
23795 (Optimize Options): Reformulate -fwhole-program description.
23796 * doc/loop.texi (Lambda): Likewise.
23797 * doc/md.texi (Output Template, Define Constraints)
23798 (Standard Names, Insn Splitting): Likewise.
23799 * doc/options.texi (Option properties): Likewise.
23800 * doc/passes.texi (Tree-SSA passes): Likewise.
23801 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
23802 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
23803 (File Names and DBX): Likewise.
23804 * doc/trouble.texi (Incompatibilities): Likewise.
23806 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
23808 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
23809 instruction is correct.
23811 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
23813 Allow non-constant arguments to conversion intrinsics.
23814 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
23815 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
23816 * spu.c (print_operand): Handle 'v' and 'w'.
23817 (exp2_immediate_p, spu_gen_exp2): Define.
23818 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
23819 spu_convtf_1): Update parameter descriptions.
23820 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
23821 * constraints.md ('v', 'w'): New.
23822 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
23824 (i2f, I2F): New define_mode_attr.
23825 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
23826 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
23827 fixuns_truncv4sfv4si2): Update to use mode attribute.
23828 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
23829 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
23830 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
23831 patterns for combine.
23833 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
23835 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
23836 (cprop, hoist, pre, store_motion): New debug counters.
23837 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
23838 is not an RTL pass anymore.
23839 (pass_profiling): Remove extern decl for pass removed in 2005.
23840 (pass_gcse, pass_jump_bypass): Remove.
23841 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
23842 to 0 for clean state.
23843 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
23844 * cse.c (gate_handle_cse_after_global_opts,
23845 rest_of_handle_cse_after_global_opts): New functions.
23846 (pass_cse_after_global_opts): New pass, does local CSE.
23847 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
23848 (TV_CPROP): New timevar.
23849 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
23850 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
23851 (gcse_main, recompute_all_luids): Remove.
23852 (compute_hash_table_work): Call max_reg_num instead of reading
23854 (cprop_jump): Don't set run_jump_opt_after_gcse.
23855 (constprop_register): Always allow to alter jumps.
23856 (cprop_insn): Likewise.
23857 (do_local_cprop): Likewise.
23858 (local_cprop_pass): Likewise. Return non-zero if something changed.
23859 (cprop): Remove function, fold interesting bits into one_cprop_pass.
23860 (find_implicit_sets): Add note about missed optimization opportunity.
23861 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
23862 pass_rtl_cprop execute function.
23863 Don't bother tracking the pass number, each pass gets its own dumpfile
23865 Always allow to alter jumpsand bypass jumps.
23866 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
23867 will just find no suitable set.
23868 (pre_edge_insert): Fix dumping, this function is for PRE only.
23869 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
23870 pass_rtl_pre execute function.
23871 (hoist_code): Return non-zero if something changed. Keep track of
23872 substitutions and insertions for statistics gathering similar to PRE.
23873 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
23874 called from the pass_rtl_hoist execute function. Show pass statistics.
23875 (compute_store_table): Use max_reg_num directly instead of using the
23876 formerly global max_gcse_regno.
23877 (build_store_vectors): Likewise.
23878 (replace_store_insn): Fix dumping.
23879 (store_motion): Rename to ...
23880 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
23881 pass, called from the pass_rtl_store_motion execute function. Keep
23882 track of substitutions and insertions for statistics gathering similar
23884 (bypass_jumps): Remove, fold interesting bits into ...
23885 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
23886 from the pass_rtl_cprop execute function.
23887 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
23888 pass_jump_bypass): Remove.
23889 (gate_handle_gcse, rest_of_handle_gcse): Remove.
23890 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
23891 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
23892 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
23893 (gate_rtl_store_motion, execute_rtl_store_motion,
23894 pass_rtl_store_motion): New.
23895 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
23896 make it clear that -fcse-skip-blocks is a no-op for backward compat.
23897 * passes.c (init_optimization_passes): Remove pass_gcse and
23898 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
23899 and cse_after_global_opts in place of pass_gcse. Schedule cprop
23900 instead of pass_jump_bypass.
23902 2009-04-27 Richard Guenther <rguenther@suse.de>
23904 PR middle-end/39928
23905 * gimplify.c (gimplify_expr): If we are required to create
23906 a temporary make sure it ends up as register.
23908 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
23911 * config/i386/i386.c (construct_container): Don't call
23912 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
23913 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
23915 2009-04-27 Michael Matz <matz@suse.de>
23917 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
23918 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
23919 * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
23920 (dump_replaceable_exprs): Take a bitmap.
23921 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
23923 (expand_gimple_basic_block): Likewise.
23924 * tree-ssa-ter.c (struct temp_expr_table_d): Make
23925 replaceable_expressions member a bitmap.
23926 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
23927 (mark_replaceable): Likewise.
23928 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
23929 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
23931 2009-04-27 Richard Guenther <rguenther@suse.de>
23933 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
23934 (verify_stmts): Dispatch to gimple/type verification code.
23935 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
23936 issue with call argument types.
23938 2009-04-27 Michael Matz <matz@suse.de>
23940 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
23941 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
23944 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
23945 Eric Botcazou <ebotcazou@adacore.com>
23947 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
23948 a label's basic block.
23949 (mark_target_live_regs): Tidy and rework obsolete comments.
23950 Change back DF problem to LIVE. If a label starts a basic block,
23951 assume that all registers that used to be live then still are.
23952 (init_resource_info): If a label starts a basic block, set its
23953 BLOCK_FOR_INSN accordingly.
23954 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
23956 2009-04-27 Richard Guenther <rguenther@suse.de>
23958 * tree-flow-inline.h (function_ann): Remove.
23959 (get_function_ann): Likewise.
23960 * tree-dfa.c (create_function_ann): Remove.
23961 * tree-flow.h (struct static_var_ann_d): Remove.
23962 (struct function_ann_d): Likewise.
23963 (union tree_ann_d): Remove fdecl member.
23964 (function_ann_t): Remove.
23965 (function_ann, get_function_ann, create_function_ann): Remove
23968 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
23970 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
23972 2009-04-27 Jan Hubicka <jh@suse.cz>
23974 * ipa-pure-const.c (struct funct_state_d): New fields
23975 state_previously_known, looping_previously_known; remove
23976 state_set_in_source.
23977 (analyze_function): Use new fields.
23978 (propagate): Avoid assumption that state_set_in_source imply
23981 * tree-ssa-loop-niter.c (finite_loop_p): New function.
23982 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
23983 * cfgloop.h (finite_loop_p): Declare.
23985 2009-04-26 Michael Matz <matz@suse.de>
23987 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
23989 2009-04-26 Michael Matz <matz@suse.de>
23991 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
23992 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
23993 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
23994 pass_mark_used_blocks): Remove.
23995 * tree-optimize.c (pass_free_datastructures,
23996 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
23997 * passes.c (init_optimization_passes): Don't call
23998 pass_mark_used_blocks, remove dead code.
24000 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
24002 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
24003 * tree-ssa-live.h (register_ssa_partition): Likewise.
24005 2009-04-26 Michael Matz <matz@suse.de>
24008 * builtins.c (fold_builtin_next_arg): Handle SSA names.
24009 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
24010 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
24012 (compare_pairs): Swap cost comparison.
24013 (coalesce_ssa_name): Don't use change_partition_var.
24014 * tree-nrv.c (struct nrv_data): Add modified member.
24015 (finalize_nrv_r): Set it.
24016 (tree_nrv): Use it to update statements.
24017 (pass_nrv): Require PROP_ssa.
24018 * tree-mudflap.c (mf_decl_cache_locals,
24019 mf_build_check_statement_for): Use make_rename_temp.
24020 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
24021 * alias.c (find_base_decl): Handle SSA names.
24022 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
24023 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
24024 * rtl.h (set_reg_attrs_for_parm): Declare.
24025 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
24026 to "optimized", remove unused locals at finish.
24027 (execute_free_datastructures): Make global, call
24028 delete_tree_cfg_annotations.
24029 (execute_free_cfg_annotations): Don't call
24030 delete_tree_cfg_annotations.
24032 * ssaexpand.h: New file.
24033 * expr.c (toplevel): Include ssaexpand.h.
24034 (expand_assignment): Handle SSA names the same as register variables.
24035 (expand_expr_real_1): Expand SSA names.
24036 * cfgexpand.c (toplevel): Include ssaexpand.h.
24037 (SA): New global variable.
24038 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
24039 (SSAVAR): New macro.
24040 (set_rtl): New helper function.
24041 (add_stack_var): Deal with SSA names, use set_rtl.
24042 (expand_one_stack_var_at): Likewise.
24043 (expand_one_stack_var): Deal with SSA names.
24044 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
24045 before unique numbers.
24046 (expand_stack_vars): Use set_rtl.
24047 (expand_one_var): Accept SSA names, add asserts for them, feed them
24048 to above subroutines.
24049 (expand_used_vars): Expand all partitions (without default defs),
24050 then only the local decls (ignoring those expanded already).
24051 (expand_gimple_cond): Remove edges when jumpif() expands an
24052 unconditional jump.
24053 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
24054 or remove abnormal edges. Ignore insns setting the LHS of a TERed
24056 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
24057 members of SA; deal with PARM_DECL partitions here; expand
24058 all PHI nodes, free tree datastructures and SA. Commit instructions
24059 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
24060 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
24061 info and statements at start, collect garbage at finish.
24062 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
24063 (VAR_ANN_PARTITION) Remove.
24064 (change_partition_var): Don't declare.
24065 (partition_to_var): Always return SSA names.
24066 (var_to_partition): Only accept SSA names.
24067 (register_ssa_partition): Only check argument.
24068 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
24070 (delete_var_map): Don't free it.
24071 (var_union): Only accept SSA names, simplify.
24072 (partition_view_init): Mark only useful SSA names as used.
24073 (partition_view_fini): Only deal with SSA names.
24074 (change_partition_var): Remove.
24075 (dump_var_map): Use ssa_name instead of partition_to_var member.
24076 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
24078 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
24079 (struct _elim_graph): New member const_dests; nodes member vector of
24081 (set_location_for_edge): New static helper.
24082 (create_temp): Remove.
24083 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
24084 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
24085 (new_elim_graph): Allocate const_dests member.
24086 (clean_elim_graph): Truncate const_dests member.
24087 (delete_elim_graph): Free const_dests member.
24088 (elim_graph_size): Adapt to new type of nodes member.
24089 (elim_graph_add_node): Likewise.
24090 (eliminate_name): Likewise.
24091 (eliminate_build): Don't take basic block argument, deal only with
24092 partition numbers, not variables.
24093 (get_temp_reg): New static helper.
24094 (elim_create): Use it, deal with RTL temporaries instead of trees.
24095 (eliminate_phi): Adjust all calls to new signature.
24096 (assign_vars, replace_use_variable, replace_def_variable): Remove.
24097 (rewrite_trees): Only do checking.
24098 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
24099 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
24100 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
24101 contains_tree_r, MAX_STMTS_IN_LATCH,
24102 process_single_block_loop_latch, analyze_edges_for_bb,
24103 perform_edge_inserts): Remove.
24104 (expand_phi_nodes): New global function.
24105 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
24106 functions, initialize new parameter, remember partitions having a
24108 (finish_out_of_ssa): New global function.
24109 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
24110 don't reset in_ssa_p here, don't disable TER when mudflap.
24111 (pass_del_ssa): Remove.
24112 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
24114 (execute_free_datastructures): Declare.
24115 * Makefile.in (SSAEXPAND_H): New variable.
24116 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
24117 * basic-block.h (commit_one_edge_insertion): Declare.
24118 * passes.c (init_optimization_passes): Move pass_nrv and
24119 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
24120 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
24121 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
24122 (redirect_branch_edge): Deal with super block when expanding, split
24123 out jump patching itself into ...
24124 (patch_jump_insn): ... here, new static helper.
24126 2009-04-26 Michael Matz <matz@suse.de>
24128 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
24129 beyond num_ssa_names.
24130 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
24131 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
24133 2009-04-26 Jakub Jelinek <jakub@redhat.com>
24135 PR inline-asm/39543
24136 * fwprop.c (forward_propagate_asm): New function.
24137 (forward_propagate_and_simplify): Propagate also into __asm, if it
24138 doesn't increase the number of referenced registers.
24141 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
24143 2009-04-26 Jakub Jelinek <jakub@redhat.com>
24145 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
24146 note_nonlocal_vla_type for nonlocal VLAs.
24147 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
24148 contains_remapped_vars, remap_vla_decls): New functions.
24149 (convert_nonlocal_reference_stmt): If not optimizing, call
24150 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
24151 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
24152 if it wasn't found in var_map.
24153 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
24154 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
24155 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
24157 * gimplify.c (nonlocal_vlas): New variable.
24158 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
24160 (gimplify_body): Create and destroy nonlocal_vlas.
24162 * dwarf2out.c (loc_descr_plus_const): New function.
24163 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
24164 mem_loc_descriptor, loc_descriptor_from_tree_1,
24165 descr_info_loc, gen_variable_die): Use it.
24167 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
24168 !TREE_STATIC VAR_DECLs.
24169 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
24170 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
24171 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
24172 DECL_BY_REFERENCE is valid.
24173 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
24174 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
24175 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
24176 Copy DECL_BY_REFERENCE.
24177 (struct nesting_copy_body_data): New type.
24178 (nesting_copy_decl): New function.
24179 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
24180 if they have variable length.
24182 2009-04-26 Michael Matz <matz@suse.de>
24184 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
24185 mark new temporaries for renaming.
24187 2009-04-26 Joseph Myers <joseph@codesourcery.com>
24190 * c-decl.c (global_bindings_p): Return negative value.
24191 (c_variable_size): New. Based on variable_size from
24193 (grokdeclarator): Call c_variable_size not variable_size.
24195 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
24197 * config/i386/i386.c (print_operand) ['z']: Fix typo.
24199 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
24201 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
24202 Redefine it to just use mingw/include.
24203 (ASM_SPEC): Rules for -m32 and -m64.
24204 (LINK_SPEC): Use Likewise.
24205 (SPEC_32): New define.
24206 (SPEC_64): Likewise.
24207 (SUB_LINK_SPEC): Likewise.
24208 (MULTILIB_DEFAULTS): New define.
24209 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
24210 Add multilib options.
24211 (MULTILIB_DIRNAMES): Likewise.
24212 (MULTILIB_OSDIRNAMES): Likewise.
24213 (LIBGCC): Likewise.
24214 (INSTALL_LIBGCC): Likewise.
24216 2009-04-26 Joseph Myers <joseph@codesourcery.com>
24219 * c-tree.h (enum c_inline_static_type): New.
24220 (record_inline_static): Declare.
24221 * c-decl.c (struct c_inline_static, c_inline_statics,
24222 record_inline_static, check_inline_statics): New.
24223 (pop_file_scope): Call check_inline_statics.
24224 (start_decl): Call record_inline_static instead of pedwarning
24225 directly for static in inline function.
24226 * c-typeck.c (build_external_ref): Call record_inline_static
24227 instead of pedwarning directly for static referenced in inline
24230 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
24232 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
24233 not new but only being rescanned.
24234 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
24235 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
24236 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
24237 record_set_info, compute_set, grealloc): Remove.
24238 (recompute_all_luids): New function.
24239 (gcse_main): Don't compute sets, and don't do related memory
24240 allocations/free-ing. If something changed before the end of the
24241 pass, update LUIDs using recompute_all_luids.
24242 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
24243 (free_gcse_mem): Don't free it either.
24244 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
24245 Use the df insn LUIDs.
24246 (load_killed_in_block): Likewise.
24247 (compute_hash_table_work): Don't compute reg_set_in_block.
24248 (compute_transp): Use DF_REG_DEF_CHAINs.
24249 (local_cprop_pass): Don't use compute_sets and related functions.
24250 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
24251 Use get_max_uid() instead of max_cuid.
24252 (insert_insn_end_basic_block, pre_insert_copy_insn,
24253 update_ld_motion_stores): Don't try to
24254 keep reg_set tables up to date.
24255 (pre_insert_copies): Use df insn LUIDs.
24256 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
24257 (reg_set_info): Don't use extra bitmap argument.
24258 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
24259 information to compute regs_set_in_block.
24260 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
24261 (bypass_jumps): Don't use compute_sets and friends.
24263 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24266 * opts.c (undocumented_msg): Do not leave blank even with
24269 2009-04-25 Joseph Myers <joseph@codesourcery.com>
24271 * c-decl.c (build_enumerator): Allow values folding to integer
24272 constants but not integer constant expressions with a pedwarn if
24275 2009-04-25 Joseph Myers <joseph@codesourcery.com>
24278 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
24279 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
24280 type is an integer constant.
24282 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
24285 * config/i386/i386.c (print_operand) ['z']: Revert handling of
24288 2009-04-25 Joseph Myers <joseph@codesourcery.com>
24291 * c-decl.c (grokdeclarator): Diagnose declarations of functions
24292 with variably modified return type and no storage class
24293 specifiers, except for the case of nested functions. Distinguish
24294 extern declarations of functions with variably modified return
24295 types from those of objects with variably modified types.
24297 2009-04-25 Jan Hubicka <jh@suse.cz>
24299 * tree.c (list_equal_p): New function.
24300 * tree.h (list_equal_p): Declare.
24301 * coretypes.h (edge_def, edge, const_edge, basic_block_def
24302 basic_block_def, basic_block, const_basic_block): New.
24303 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
24304 (redirect_eh_edge): New function.
24305 (make_eh_edge_update_phi): EH edges are not abnormal.
24306 * except.c: Include tree-flow.h.
24307 (list_match): New function.
24308 (eh_region_replaceable_by_p): New function.
24309 (replace_region): New function.
24310 (hash_type_list): New function.
24311 (hash_eh_region): New function.
24312 (eh_regions_equal_p): New function.
24313 (merge_peers): New function.
24314 (remove_unreachable_regions): Verify EH tree when checking;
24316 (copy_eh_region_1): New function.
24317 (copy_eh_region): New function.
24318 (push_reachable_handler): New function.
24319 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
24320 regions without label but with live RESX.
24321 * except.h (redirect_eh_edge_to_label): New.
24322 * tree-flow.h (redirect_eh_edge): New.
24323 * coretypes.h (edge_def, edge, const_edge, basic_block_def
24324 basic_block_def, basic_block, const_basic_block): Remove.
24325 * Makefile.in (except.o): Add dependency on tree-flow.h
24326 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
24327 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
24330 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
24333 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
24334 on the destination of memcpy.
24336 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
24338 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
24339 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
24340 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
24342 2009-04-25 Jan Hubicka <jh@suse.cz>
24344 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
24345 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
24346 to be reached by different label than left.
24347 (update_eh_edges): Update comment; remove edge_to_remove if possible
24348 and return true if suceeded.
24349 (cleanup_empty_eh): Accept sharing map; handle shared regions.
24350 (cleanup_eh): Compute sharing map.
24351 * except.c (remove_eh_handler_and_replace): Add argument if we should
24353 (remove_unreachable_regions): Update for label sharing.
24354 (label_to_region_map): Likewise.
24355 (get_next_region_sharing_label): New function.
24356 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
24358 (remove_eh_handler): Update.
24359 (remove_eh_region_and_replace_by_outer_of): New function.
24360 * except.h (struct eh_region): Add next_region_sharing_label.
24361 (remove_eh_region_and_replace_by_outer_of,
24362 get_next_region_sharing_label): Declare.
24363 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
24365 2009-04-25 Jan Hubicka <jh@suse.cz>
24367 * tree-cfg.c (split_critical_edges): Split also edges where we can't
24368 insert code even if they are not critical.
24370 2009-04-25 Jan Hubicka <jh@suse.cz>
24372 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
24373 (gimple_can_remove_branch_p): EH edges won't remove branch by
24375 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
24376 updating of non-abnormal EH edges.
24377 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
24378 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
24379 (split_critical_edges): Split also edges where emitting code on them
24380 will lead to splitting later.
24382 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
24383 H.J. Lu <hongjiu.lu@intel.com>
24386 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
24387 the configured assembler supports fildq and fistpq mnemonics.
24388 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
24389 * configure: Regenerated.
24390 * config.in: Ditto.
24392 * config/i386/i386.c (print_operand): Handle 'Z'.
24393 ['z']: Remove handling of special fild/fist suffixes.
24394 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
24395 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
24396 suffix of fild insn.
24397 (*floatsi<mode>2_vector_mixed): Ditto.
24398 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
24399 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
24400 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
24401 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
24402 * config/i386/gas.h (GAS_MNEMONICS): Remove.
24404 2009-04-25 Ben Elliston <bje@au.ibm.com>
24406 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
24407 the source of a set operation.
24409 2009-04-25 Anatoly Sokolov <aesok@post.ru>
24411 * target.h (struct gcc_target): Add case_values_threshold field.
24412 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
24413 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
24414 * targhooks.c (default_case_values_threshold): New function.
24415 * targhooks.h (default_case_values_threshold): Declare function.
24416 * stmt.c (expand_case): Use case_values_threshold target hook.
24417 * expr.h (case_values_threshold): Remove declartation.
24418 * expr.c (case_values_threshold): Remove function.
24419 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
24421 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
24422 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
24423 (avr_case_values_threshold): Declare as static.
24424 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
24426 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
24427 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
24428 (mn10300_case_values_threshold): New function.
24430 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
24432 * ira.c (setup_cover_and_important_classes): Add enum cast.
24434 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
24436 * genpreds.c (write_enum_constraint_num): Output definition of
24437 CONSTRAINT_NUM_DEFINED_P macro.
24438 * ira.c (setup_cover_and_important_classes): Use
24439 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
24441 2009-04-24 DJ Delorie <dj@redhat.com>
24443 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
24444 __SH2A_SINGLE_ONLY__ also.
24446 2009-04-24 Steve Ellcey <sje@cup.hp.com>
24448 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
24449 (movdf_internal): Ditto.
24450 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
24451 SFmode and DFmode constants.
24452 (ia64_print_operand): Add 'G' format for printing
24453 floating point constants.
24455 2009-04-24 Richard Guenther <rguenther@suse.de>
24457 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
24458 from unsigned additions.
24460 2009-04-24 Joseph Myers <joseph@codesourcery.com>
24462 * c-typeck.c (set_init_index): Allow array designators that are
24463 not integer constant expressions with a pedwarn if pedantic.
24465 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
24467 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
24468 zero if no overlap in nonzero bits between the operands.
24470 2009-04-24 Ian Lance Taylor <iant@google.com>
24472 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
24473 (record_dead_and_set_regs): Likewise.
24474 * df.h (struct df_mw_hardreg): Change flags field to int.
24475 (struct df_base_ref): Likewise.
24476 (struct df): Change changeable_flags field to int.
24477 * df-scan.c (df_defs_record): Change clobber_flags to int.
24478 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
24479 constants rather than #define macros.
24480 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
24481 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
24482 (enum dwarf_calling_convention): Likewise.
24483 (enum dwarf_line_number_x_ops): Likewise.
24484 (enum dwarf_call_frame_info): Likewise.
24485 (enum dwarf_source_language): Likewise.
24486 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
24487 (add_calling_convention_attribute): Likewise.
24488 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
24489 (combine_comparisons): Change compcode to int. Add cast to enum type.
24490 * genrecog.c (maybe_both_true_2): Change c to int.
24491 (write_switch): Likewise. Add cast to enum type.
24492 * gimplify.c (gimplify_omp_for): Handle return values from
24493 gimplify_expr using MIN rather than bitwise or.
24494 (gimplify_expr): Add cast to enum type.
24495 * ipa-prop.c (update_jump_functions_after_inlining): Change
24496 IPA_BOTTOM to IPA_JF_UNKNOWN.
24497 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
24498 Add casts to enum type.
24499 (setup_cover_and_important_classes): Change cl to int. Add casts
24501 (setup_class_translate): Change cl and mode to int.
24502 (ira_init_once): Change mode to int.
24503 (free_register_move_costs): Likewise.
24504 (setup_prohibited_mode_move_regs): Add casts to enum type.
24505 * langhooks.c (add_builtin_function_common): Rework assertion that
24506 value fits bitfield.
24507 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
24508 * omega.c (omega_do_elimination): Avoid math on enum types.
24509 * optabs.c (expand_vec_shift_expr): Remove casts to int.
24510 * opts.c (set_debug_level): Change 2 to enum constant. Use new
24511 int local to handle integral_argment value.
24512 * regmove.c (try_auto_increment): Change PUT_MODE to
24514 * reload.c (push_secondary_reload): Add casts to enum type.
24515 (secondary_reload_class, find_valid_class): Likewise.
24516 * reload1.c (emit_input_reload_insns): Likewise.
24517 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
24518 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
24519 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
24521 * tree.c (build_common_builtin_nodes): Add casts to enum type.
24522 * tree-complex.c (complex_lattice_t): Typedef to int rather than
24524 (expand_complex_libcall): Add casts to enum type.
24525 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
24526 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
24527 with ERROR_MARK, not NUM_TREE_CODES.
24528 (vect_create_epilog_for_reduction): Likewise.
24529 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
24530 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
24531 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
24533 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
24534 vect_unused_in_loop. Change 0 to loop_vect.
24535 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
24536 * var-tracking.c (get_init_value): Change return type to enum
24538 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
24539 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
24541 (arm_override_options): Add casts to enum type.
24542 (arm_emit_tls_decoration): Likewise.
24543 * config/i386/i386.c (ix86_function_specific_restore): Add casts
24545 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
24546 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
24547 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
24549 * config/s390/s390.c (code_for_builtin_64): Change to array of
24551 (code_for_builtin_31): Likewise.
24552 (s390_expand_builtin): Change code_for_builtin to enum insn_code
24554 * config/sparc/sparc.c (sparc_override_options): Change value
24555 field in struct code_model to enum cmodel. In initializer change
24556 0 to NULL and add cast to enum type.
24558 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
24559 Change all callers. Issue a -Wc++-compat warning using
24560 lhs_origtype if necessary.
24561 (convert_for_assignment): Issue -Wc++-compat warnings about
24562 invalid conversions to enum type on assignment.
24563 * c-common.h (build_modify_expr): Update declaration.
24565 2009-04-24 Nick Clifton <nickc@redhat.com>
24567 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
24568 (function_arg_advance): Likewise.
24569 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
24572 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
24574 * config/s390/constraints.md ('I', 'J'): Fix condition.
24576 2009-04-24 Diego Novillo <dnovillo@google.com>
24578 * gengtype-parse.c (parse_error): Add newline after message.
24580 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
24582 * config/i386/sse.md (avxmodesuffixs): Removed.
24583 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
24584 (*avx_pinsr<ssevecsize>): This.
24586 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
24588 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
24589 follow chains of regs with a single definition, and allow expressions
24590 that are function_invariant_p.
24591 (simple_rhs_p): Allow expressions that are function_invariant_p.
24593 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
24595 PR middle-end/39867
24596 * fold-const.c (fold_cond_expr_with_comparison): When folding
24597 > and >= to MAX, make sure the MAX uses the same type as the
24598 comparison's operands.
24600 2009-04-24 Nick Clifton <nickc@redhat.com>
24602 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
24603 addressing for DImode accesses.
24604 (frv_print_operand_address): Handle PLUS case.
24605 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
24607 2009-04-24 Jakub Jelinek <jakub@redhat.com>
24609 PR rtl-optimization/39794
24610 * alias.c (canon_true_dependence): Add x_addr argument.
24611 * rtl.h (canon_true_dependence): Adjust prototype.
24612 * cse.c (check_dependence): Adjust canon_true_dependence callers.
24613 * cselib.c (cselib_invalidate_mem): Likewise.
24614 * gcse.c (compute_transp): Likewise.
24615 * dse.c (scan_reads_nospill): Likewise.
24616 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
24617 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
24618 canon_base_addr of the group, plus optional offset.
24619 (struct group_info): Rename canon_base_mem to
24621 (get_group_info): Set canon_base_addr to canon_rtx of base, not
24622 canon_rtx of base_mem.
24624 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
24626 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
24627 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
24629 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24631 * config/spu/spu-builtins.h: Delete file.
24633 * config/spu/spu.h (enum spu_builtin_type): Move here from
24635 (struct spu_builtin_description): Likewise. Add GTY marker.
24636 Do not use enum spu_function_code or enum insn_code.
24637 (spu_builtins): Add extern declaration.
24639 * config/spu/spu.c: Do not include "spu-builtins.h".
24640 (enum spu_function_code, enum spu_builtin_type_index,
24641 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
24642 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
24643 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
24644 unsigned_V2DI_type_node): Move here from spu-builtins.h.
24645 (spu_builtin_types): Make static. Add GTY marker.
24646 (spu_builtins): Add extern declaration with GTY marker.
24647 Include "gt-spu.h".
24649 * config/spu/spu-c.c: Do not include "spu-builtins.h".
24650 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
24651 Check programmatically whether all parameters are scalar.
24653 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
24655 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
24657 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
24658 assignment from the constructor either if the target is volatile.
24660 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
24662 * config/arm/arm.md (insv): Do not share operands[0].
24664 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
24666 * config/vxlib-tls.c (active_tls_threads): Delete.
24667 (delete_hook_installed): New.
24668 (tls_delete_hook): Don't delete the delete hook.
24669 (tls_destructor): Delete it here.
24670 (__gthread_set_specific): Adjust installing the delete hook.
24671 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
24672 __gthread_leave_tsd_dtor_context.
24674 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
24676 * c-format.c (gcc_tdiag_char_table): Add support for %E.
24678 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
24680 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
24682 (alpha_rtx_costs): Ditto.
24683 (emit_unlikely_jump): Use add_reg_note.
24684 (emit_frame_store_1): Ditto.
24685 (alpha_expand_prologue): Ditto.
24686 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
24687 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
24689 2009-04-23 Nick Clifton <nickc@redhat.com>
24691 * config/v850/v850.md (epilogue): Remove suppressed code.
24692 (return): Rename to return_simple and remove test of frame size.
24693 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
24694 to gen_return_simple.
24696 2009-04-22 Jing Yu <jingyu@google.com>
24699 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
24701 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
24704 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
24705 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
24706 value is a VECTOR_CST, the element type is the element type of the
24709 2009-04-22 DJ Delorie <dj@redhat.com>
24711 * config/m32c/m32c.h: Update GTY annotations to new syntax.
24713 2009-04-22 Jakub Jelinek <jakub@redhat.com>
24715 * alias.c (find_base_term): Move around LO_SUM case, so that
24716 CONST falls through into PLUS/MINUS handling.
24719 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
24720 into 0, use omit_one_operand.
24722 2009-04-23 Ben Elliston <bje@au.ibm.com>
24724 * config/rs6000/linux-unwind.h (get_regs): Remove type
24725 puns. Change the type of `pc' to an array of unsigned ints and
24726 update all users. Constify frame24.
24728 2009-04-22 DJ Delorie <dj@redhat.com>
24730 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
24731 declarations before code.
24732 (current_function_special_page_vector): Likewise.
24733 (m32c_expand_insv): Silence a warning.
24735 2009-04-21 Taras Glek <tglek@mozilla.com>
24737 * alias.c: Update GTY annotations to new syntax.
24738 * basic-block.h: Likewise.
24739 * bitmap.h: Likewise.
24740 * c-common.h: Likewise.
24741 * c-decl.c: Likewise.
24742 * c-parser.c: Likewise.
24743 * c-pragma.c: Likewise.
24744 * c-tree.h: Likewise.
24745 * cfgloop.h: Likewise.
24746 * cgraph.h: Likewise.
24747 * config/alpha/alpha.c: Likewise.
24748 * config/arm/arm.h: Likewise.
24749 * config/avr/avr.h: Likewise.
24750 * config/bfin/bfin.c: Likewise.
24751 * config/cris/cris.c: Likewise.
24752 * config/darwin.c: Likewise.
24753 * config/frv/frv.c: Likewise.
24754 * config/i386/i386.c: Likewise.
24755 * config/i386/i386.h: Likewise.
24756 * config/i386/winnt.c: Likewise.
24757 * config/ia64/ia64.h: Likewise.
24758 * config/iq2000/iq2000.c: Likewise.
24759 * config/mips/mips.c: Likewise.
24760 * config/mmix/mmix.h: Likewise.
24761 * config/pa/pa.c: Likewise.
24762 * config/pa/pa.h: Likewise.
24763 * config/rs6000/rs6000.c: Likewise.
24764 * config/s390/s390.c: Likewise.
24765 * config/sparc/sparc.c: Likewise.
24766 * config/xtensa/xtensa.c: Likewise.
24767 * cselib.h: Likewise.
24768 * dbxout.c: Likewise.
24769 * dwarf2out.c: Likewise.
24770 * except.c: Likewise.
24771 * except.h: Likewise.
24772 * fixed-value.h: Likewise.
24773 * function.c: Likewise.
24774 * function.h: Likewise.
24775 * gimple.h: Likewise.
24776 * integrate.c: Likewise.
24777 * optabs.c: Likewise.
24778 * output.h: Likewise.
24779 * real.h: Likewise.
24781 * stringpool.c: Likewise.
24782 * tree-data-ref.c: Likewise.
24783 * tree-flow.h: Likewise.
24784 * tree-scalar-evolution.c: Likewise.
24785 * tree-ssa-address.c: Likewise.
24786 * tree-ssa-alias.h: Likewise.
24787 * tree-ssa-operands.h: Likewise.
24788 * tree.c: Likewise.
24789 * tree.h: Likewise.
24790 * varasm.c: Likewise.
24791 * varray.h: Likewise.
24793 * coretypes.h: Do not define GTY macro if it is already defined.
24794 * doc/gty.texi: Update GTY documentation to new syntax.
24795 * gengtype-lex.l: Enforce attribute-like syntax for GTY
24796 annotations on structs.
24797 * gengtype-parse.c: Likewise.
24799 2009-04-22 Mark Heffernan <meheff@google.com>
24801 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
24803 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
24805 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
24808 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
24810 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
24811 the same as a PLUS without a shift. Increase the cost of a
24814 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24816 * Makefile.in: Update dependencies.
24817 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
24818 * errors.h: Remove bogus comment about compatibility.
24819 (warning): Update declaration.
24820 * genautomata.c: Update all calls to warning.
24821 * gimple.c: Do not include errors.h. Include toplev.h.
24822 * tree-ssa-structalias.c: Do not include errors.h.
24823 * omega.c: Likewise.
24824 * tree-ssa-reassoc.c: Likewise.
24825 * config/spu/spu-c.c: Likewise.
24826 * config/spu/t-spu-elf: Update dependencies.
24828 2009-04-22 Richard Guenther <rguenther@suse.de>
24830 PR tree-optimization/39824
24831 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
24832 make sure the types are compatible.
24834 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24837 * c-common.c (c_parse_error): Take a token_flags parameter.
24838 Use token_type for the token type instead.
24839 Pass token_flags to cpp_type2name.
24840 * c-common.h (c_parse_error): Update declaration.
24841 * c-parser.c (c_parser_error): Pass 0 as token flags.
24843 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
24845 PR rtl-optimization/39580
24846 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
24848 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24850 * function.c (expand_function_end): Do not emit a jump to the "naked"
24851 return label for fall-through returns.
24852 * except.c (sjlj_emit_function_exit): Always place the call to the
24853 unregister function at the location installed by expand_function_end.
24855 2009-04-22 Richard Guenther <rguenther@suse.de>
24857 PR tree-optimization/39845
24858 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
24859 (gen_inbound_check): Likewise.
24861 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
24863 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
24865 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
24866 * config/vxlib.c (__gthread_once): Add race guard for PPC.
24868 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
24870 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
24871 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
24872 shift counts to avoid out-of-bounds array accesses.
24874 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
24876 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
24877 (Pmode): Move above.
24879 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
24881 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
24882 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
24883 GET_CODE macro. Use IN_RANGE macro where appropriate.
24884 * config/alpha/alpha.h: Ditto.
24885 * config/alpha/alpha.md: Ditto.
24886 * config/alpha/constraints.md: Ditto.
24887 * config/alpha/predicates.md: Ditto.
24889 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
24891 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
24892 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24893 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24894 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24895 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24896 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24897 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24898 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24899 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24900 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24901 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24902 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24903 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24904 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24905 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24906 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24907 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24908 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24909 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24910 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24911 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24912 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24913 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24914 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24915 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24916 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24917 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24919 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24921 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
24922 references from comments.
24923 * cfgbuild.c (count_basic_blocks): Delete.
24924 (find_basic_blocks_1): Delete.
24925 (find_basic_blocks): Delete.
24926 * except.c (finish_eh_generation): Make static. Move comment from
24927 except.h here. Remove find_basic_blocks references from comments.
24928 * except.h (finish_eh_generation): Delete.
24929 * basic-block.h (find_basic_blocks): Delete.
24930 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
24932 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
24934 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
24935 (sdbout_parms): Likewise.
24937 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
24939 * config/sh/sh.c (prepare_cbranch_operands): Use
24940 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
24941 (expand_cbranchdi4): Likewise.
24942 (from_compare): Add cast to enum type.
24943 (expand_cbranchsi4): Use add_reg_note.
24944 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
24945 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
24946 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
24947 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
24948 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
24949 instead of CODE_FOR_nothing.
24950 (cbranchdi4): Likewise. Fix the order of arguments for
24952 (push_fpscr): Use add_reg_note.
24953 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
24954 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
24956 2009-04-21 Joseph Myers <joseph@codesourcery.com>
24958 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
24959 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
24960 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
24961 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
24962 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
24963 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
24964 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
24965 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
24966 config/alpha/x-vms, config/arc/t-arc,
24967 config/arm/README-interworking, config/arm/arm-c.c,
24968 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
24969 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
24970 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
24971 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
24972 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
24973 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
24974 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
24975 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
24976 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
24977 config/cris/t-elfmulti, config/crx/t-crx,
24978 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
24979 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
24980 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
24981 config/h8300/t-h8300, config/i386/athlon.md,
24982 config/i386/darwin-libgcc.10.4.ver,
24983 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
24984 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
24985 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
24986 config/i386/t-linux64, config/i386/t-nwld,
24987 config/i386/t-rtems-i386, config/i386/t-sol2-10,
24988 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
24989 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
24990 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
24991 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
24992 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
24993 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
24994 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
24995 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
24996 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
24997 config/m68k/t-uclinux, config/mcore/t-mcore,
24998 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
24999 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
25000 config/mips/crtn.asm, config/mips/irix-crti.asm,
25001 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
25002 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
25003 config/mips/mips-fixed.md, config/mips/sb1.md,
25004 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
25005 config/mips/t-iris6, config/mips/t-isa3264,
25006 config/mips/t-libgcc-mips16, config/mips/t-linux64,
25007 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
25008 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
25009 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
25010 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
25011 config/mn10300/t-linux, config/mn10300/t-mn10300,
25012 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
25013 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
25014 config/picochip/libgccExtras/clzsi2.asm,
25015 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
25016 config/rs6000/darwin-libgcc.10.4.ver,
25017 config/rs6000/darwin-libgcc.10.5.ver,
25018 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
25019 config/rs6000/t-aix43, config/rs6000/t-aix52,
25020 config/rs6000/t-darwin, config/rs6000/t-fprules,
25021 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
25022 config/rs6000/t-lynx, config/rs6000/t-netbsd,
25023 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
25024 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
25025 config/rs6000/t-rtems, config/rs6000/t-spe,
25026 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
25027 config/score/t-score-elf, config/sh/divcost-analysis,
25028 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
25029 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
25030 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
25031 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
25032 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
25033 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
25034 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
25035 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
25036 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
25037 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
25038 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
25039 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
25040 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
25041 limitx.h, version.c, xcoff.h: Add copyright and license notices.
25042 * config/h8300/genmova.sh: Include copyright and license notices
25043 in generated output.
25044 * config/h8300/mova.md: Regenerate.
25045 * doc/install.texi2html: Include word "Copyright" in copyright
25046 notice and use name "Free Software Foundation, Inc.".
25047 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
25048 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
25049 ChangeLog-2007, ChangeLog-2008: Correct dates.
25051 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
25053 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
25054 NE_EXPR operations as well.
25055 * c-parser.c (c_parser_condition): Do not set location information on
25057 (c_parser_conditional_expression): Likewise.
25058 (c_parser_binary_expression): Set location information on operators.
25059 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
25060 TRUTH_NOT_EXPR has been folded.
25061 * fold-const.c (fold_truth_not_expr): Copy location information from
25062 the incoming expression to the outgoing one.
25063 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
25064 recursive calls on the LHS of the operator but pass that of the
25065 operator to recursive calls on the RHS of the operator. Set it
25067 (shortcut_cond_expr): Set the locus of the operator on the second
25068 COND_EXPR and that of the expression on the first in degenerate cases.
25069 Pass the locus of the expression to calls to shortcut_cond_r.
25070 Set the locus of the 'then' block on the associated jump, if any.
25071 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
25072 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
25073 expression to call to gimplify_boolean_expr.
25075 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
25077 * config.gcc: Add additional configuration for
25078 i686-w64-mingw* and x86_64-w64-mingw* triplet.
25079 * config/i386/mingw-w64.h: New mingw-w64 specific header.
25080 (CPP_SPEC): Redefine for allowing -municode option.
25081 (STARTFILE_SPEC): Likewise.
25082 * config/i386/t-mingw-w64: New.
25083 * config/i386/mingw-w64.opt: New.
25084 (municode): Add new target option.
25085 * doc/invoke.texi (municode): Add documentation for new option.
25087 2009-04-21 Ian Lance Taylor <iant@google.com>
25089 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25090 Correct test for number of arguments.
25091 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25093 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
25095 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
25096 argument of emit_library_call.
25098 2009-04-21 Richard Guenther <rguenther@suse.de>
25100 PR middle-end/39829
25101 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
25102 inside VIEW_CONVERT_EXPRs.
25104 2009-04-21 Martin Jambor <mjambor@suse.cz>
25106 * tree-switch-conversion.c (build_constructors): Split a long line.
25107 (constructor_contains_same_values_p): New function.
25108 (build_one_array): Create assigns of constants if possible, do not
25109 call mark_sym_for_renaming, call update_stmt.
25110 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
25111 make_rename_temp. Do not call mark_symbols_for_renaming, call
25113 (gen_def_assigns): Do not call mark_symbols_for_renaming or
25114 find_new_referenced_vars, call update_stmt.
25115 (gen_inbound_check): Use create_tmp_var and create ssa names manually
25116 instead of calling make_rename_temp. Do not call
25117 find_new_referenced_vars or mark_symbols_for_renaming, call
25120 2009-04-21 Richard Guenther <rguenther@suse.de>
25122 PR tree-optimization/39827
25123 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
25124 (tree_ssa_phiprop): Pass the correct array size.
25126 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
25128 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
25130 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
25133 * c-typeck.c (lvalue_p): Move declaration ...
25134 * c-common.h (lvalue_p): ... to here.
25135 * c-common.c (candidate_equal_p): New.
25136 (add_tlist): Use it.
25137 (merge_tlist): Use it.
25138 (warn_for_collisions_1): Likewise.
25139 (warning_candidate_p): Accept more candidates.
25140 (verify_tree): A warning candidate can be an expression. Use
25143 2009-04-21 Ben Elliston <bje@au.ibm.com>
25146 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
25147 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
25148 options. Remove -mcall-solaris documentation.
25150 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25153 * doc/invoke.texi (-Wlong-long): Update description.
25154 * c-lex (interpret_integer): Only warn if there was no previous
25155 overflow and -Wlong-long is enabled.
25156 * c-decl.c (declspecs_add_type): Drop redundant flags.
25157 * c.opt (Wlong-long): Init to -1.
25158 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
25159 and front-end warn_long_long. Wlong-long only depends on other
25160 flags if it is uninitialized.
25161 * c-parser.c (disable_extension_diagnostics): warn_long_long is
25162 the same for CPP and FE.
25163 (restore_extension_diagnostics): Likewise.
25165 2009-04-20 Ian Lance Taylor <iant@google.com>
25167 Fix enum conversions which are invalid in C++:
25168 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
25169 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
25170 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
25171 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
25172 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
25173 (dbxout_parms): Likewise.
25174 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
25175 (df_clear_flags): Likewise.
25176 * df-problems.c (df_rd_bb_local_compute_process_def): Change
25177 top_flag parameter to int.
25178 (df_chain_create_bb_process_use): Likewise.
25179 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
25181 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
25182 (df_ref_create_structure, df_def_record_1): Likewise.
25183 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
25184 (df_notes_rescan): Change 0 to VOIDmode in function call.
25185 (df_get_call_refs, df_insn_refs_collect): Likewise.
25186 (df_bb_regs_collect): Likewise.
25187 (df_entry_block_defs_collect): Likewise.
25188 (df_exit_block_uses_collect): Likewise.
25189 * df.h: Update declarations.
25190 * double-int.c (double_int_divmod): Add cast to enum type.
25191 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
25192 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
25193 (based_loc_descr): Likewise.
25194 (loc_descriptor_from_tree_1): Change first_op and second_op to
25195 enum dwarf_location_atom. Add cast to enum type.
25196 * expmed.c (init_expmed): Change 0 to SET in function call.
25197 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
25198 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
25199 (do_store_flag): Likewise.
25200 * fixed-value.h (struct fixed_value): Change mode to enum
25202 * function.c (assign_parms): Change 0 to VOIDmode in function call.
25203 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
25205 (insert_insn_decl, insert_decl, insert_state): Likewise.
25206 (automata_list_finish): Likewise.
25207 * genrecog.c (process_define_predicate): Add cast to enum type.
25208 * gensupport.c (init_predicate_table): Add cast to enum type.
25209 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
25211 (gimple_build_call_1, gimple_build_label): Likewise.
25212 (gimple_build_goto, gimple_build_asm_1): Likewise.
25213 (gimple_build_switch_1, gimple_build_cdt): Likewise.
25214 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
25215 (enum fallback): Rename from enum fallback_t.
25216 (fallback_t): Typedef as int.
25217 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
25218 GSI_SAME_STMT in function call.
25219 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
25221 (setup_reg_class_relations): Likewise.
25222 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
25223 (setup_prohibited_class_mode_regs): Add cast to enum type.
25224 (setup_prohibited_mode_move_regs): Likewise.
25225 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
25226 (record_address_regs): Change i to enum reg_class.
25227 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
25228 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
25229 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
25230 (GET_MODE_2XWIDER_MODE): Likewise.
25231 (GET_CLASS_NARROWEST_MODE): Likewise.
25232 * omp-low.c (expand_omp_for): Add cast to enum type.
25233 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
25234 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
25235 * postreload.c (reload_cse_simplify_operands): Change rclass local
25237 * predict.c (combine_predictions_for_insn): Change best_predictor
25238 and predictor to enum br_predictor.
25239 (combine_predictions_for_bb): Likewise.
25240 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
25241 use SET_PREDICT_EXPR_OUTCOME.
25242 * real.c (real_arithmetic): Change icode to code in function call.
25243 * reginfo.c (init_move_cost): Add casts to enum type.
25244 (init_reg_sets_1, init_fake_stack_mems): Likewise.
25245 * regmove.c (regclass_compatible_p): Change class0 and class1 to
25247 * reload.c (find_valid_class): Add casts to enum type.
25248 (push_reload): Change 0 to NO_REGS in function call.
25249 (find_reloads): Change this_alternative to array of enum
25250 reg_class. Remove some now-unnecessary casts.
25251 (make_memloc): Change 0 to VOIDmode in function call.
25252 * reload1.c (reload): Change 0 to VOIDmode in function call.
25253 (eliminate_regs_1, elimination_effects): Likewise.
25254 (eliminate_regs_in_insn): Likewise.
25255 (emit_input_reload_insns): Add cast to enum type.
25256 (delete_output_reload): Change 0 to VOIDmode in function call.
25257 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
25258 to enum type in function call.
25259 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
25260 (SET_PREDICT_EXPR_OUTCOME): Define.
25261 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
25262 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
25263 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
25264 (dump_function): Likewise.
25265 * tree-dump.h: Update declarations.
25266 * tree-pass.h: Update declarations.
25267 * varasm.c (assemble_integer): Change mclass to enum mode_class.
25268 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
25270 (arm_rtx_costs_1): Correct parenthesization.
25271 (arm_rtx_costs): Add casts to enum type.
25272 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
25273 (vfp_emit_fstmd): Use add_rg_note.
25274 (emit_multi_reg_push, emit_sfm): Likewise.
25275 (thumb_set_frame_pointer): Likewise.
25276 (arm_expand_prologue): Likewise.
25277 (arm_regno_class): Change return type to enum reg_class.
25278 (thumb1_expand_prologue): Use add_reg_note.
25279 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
25280 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
25282 * config/arm/gentune.sh: Add cast to enum type.
25283 * config/arm/arm-tune.md: Rebuild.
25284 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
25285 (ix86_split_fp_branch, predict_jump): Likewise.
25286 (ix86_expand_multi_arg_builtin): Change sub_code from enum
25287 insn_code to enum rtx_code.
25288 (ix86_builtin_vectorized_function): Add cast to enum type.
25289 * config/i386/i386.md (truncdfsf2): Change slot to enum
25291 (truncxf<mode>2, isinf<mode>2): Likewise.
25292 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
25294 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
25295 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
25296 (insert_bundle_state): Change 1 to INSERT in function call.
25297 (ia64_add_bundle_selector_before): Likewise.
25298 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
25299 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
25300 (restore_stack_nonlocal): Likewise.
25301 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
25303 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
25305 (mips_rtx_costs): Likewise.
25306 (mips_override_options): Add casts to enum type.
25307 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
25309 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
25310 (store_reg, set_reg_plus_d): Likewise.
25311 (hppa_expand_prologue, hppa_profile_hook): Likewise.
25312 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25314 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
25316 (emit_unlikely_jump): Use add_reg_note.
25317 (rs6000_emit_allocate_stack): Likewise.
25318 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
25319 (output_toc): Change 1 to INSERT in function call.
25320 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
25321 (rs6000_initialize_trampoline): Likewise.
25322 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
25324 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
25325 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
25326 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
25327 (save_gprs): Use add_reg_note.
25328 (s390_emit_prologue): Likewise.
25329 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25330 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
25331 (sparc_fold_builtin): Add cast to enum type.
25332 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
25334 (spu_expand_prologue): Use add_reg_note.
25335 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
25337 2009-04-20 Ian Lance Taylor <iant@google.com>
25339 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
25340 (c_parser_postfix_expression_after_primary): Get VEC for list of
25341 arguments. Get original types of arguments. Call
25342 build_function_call_vec.
25343 (cached_expr_list_1, cached_expr_list_2): New static variables.
25344 (c_parser_expr_list): Change return type to VEC *. Add
25345 p_orig_types parameter. Change all callers.
25346 (c_parser_release_expr): New static function.
25347 (c_parser_vec_to_tree_list): New static function.
25348 * c-typeck.c (build_function_call): Rewrite to build a VEC and
25349 call build_function_call_vec.
25350 (build_function_call_vec): New function, based on old
25351 build_function_call.
25352 (convert_arguments): Remove nargs and argarray parameters. Change
25353 values to a VEC. Add origtypes parameter.
25354 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
25355 (convert_for_assignment): Add origtype parameter. Change all
25356 callers. If warn_cxx_compat, check for conversion to an enum
25357 type when calling a function.
25358 (store_init_value): Add origtype parameter. Change all callers.
25359 (digest_init): Likewise.
25360 (struct init_node): Add origtype field.
25361 (add_pending_init): Add origtype parameter. Change all callers.
25362 (output_init_element): Likewise.
25363 (output_pending_init_elements): Pass origtype from init_node to
25364 output_init_element.
25365 (process_init_element): Pass origtype from c_expr to
25366 output_init_element.
25367 (c_finish_return): Add origtype parameter. Change all callers.
25368 * c-common.c (sync_resolve_size): Change params to VEC *. Change
25370 (sync_resolve_params): Likewise.
25371 (sync_resolve_return): Change params to first_param. Change caller.
25372 (resolve_overloaded_builtins): Change params to VEC *. Change
25373 callers. Save first parameter around call to build_function_call_vec.
25374 * c-decl.c (finish_decl): Add origtype parameter. Change all
25375 callers. Call build_function_call_vec rather than
25376 build_function_call for cleanup.
25377 * c-tree.h: Update declarations.
25378 * c-common.h: Update declarations.
25379 * stub-objc.c (objc_rewrite_function_call): Change parameter from
25380 params to first_param.
25381 * target.h (struct gcc_target): Change resolve_overloaded_builtin
25382 params parameter from tree to void *.
25383 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25384 Change arglist parameter to have type void *, and to be a pointer
25386 * config/rs6000/rs6000-protos.h
25387 (altivec_resolve_overloaded_builtin): Update declaration.
25388 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
25389 fnargs parameter to have type void *, and to be a pointer to a
25390 VEC. Call build_function_call_vec instead of
25391 build_function_call.
25392 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
25394 2009-04-20 Joey Ye <joey.ye@intel.com>
25395 Xuepeng Guo <xuepeng.guo@intel.com>
25396 H.J. Lu <hongjiu.lu@intel.com>
25398 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
25400 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
25401 (IX86_LEA_PRIORITY): Likewise.
25402 (distance_non_agu_define): New function.
25403 (distance_agu_use): Likewise.
25404 (ix86_lea_for_add_ok): Likewise.
25405 (ix86_dep_by_shift_count): Likewise.
25407 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
25408 should split for LEA.
25410 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
25412 (ix86_dep_by_shift_count): Likewise.
25414 2009-04-20 Richard Guenther <rguenther@suse.de>
25416 * expr.c (handled_component_p): Move ...
25417 * tree.h (handled_component_p): ... here.
25418 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
25419 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
25420 and REALPART_EXPR to be in one group.
25422 2009-04-20 Richard Guenther <rguenther@suse.de>
25424 * basic-block.h (get_all_dominated_blocks): Declare.
25425 * dominance.c (get_all_dominated_blocks): New function.
25426 * tree-cfg.c (get_all_dominated_blocks): Remove.
25427 (remove_edge_and_dominated_blocks): Adjust.
25428 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
25429 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
25430 instead of recursing.
25432 2009-04-20 Doug Kwan <dougkwan@google.com>
25434 * cgraph.h (cgraph_node_ptr): New type for vector functions.
25435 (struct cgraph_node_set_def): New type.
25436 (cgraph_node_set) New type. Also declare vector functions.
25437 (struct cgraph_node_set_element_def): New type.
25438 (cgraph_node_set_element): Ditto.
25439 (cgraph_node_set_iterator): New iterator type.
25440 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
25441 cgraph_node_set_remove, dump_cgraph_node_set,
25442 debug_cgraph_node_set): New prototypes.
25443 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
25444 cgraph_node_set_size): New inlines.
25445 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
25446 including cgraph.h.
25447 (struct ipa_opt_pass): Add struct cgraph_node_set_def
25448 argument to function 'write_summary'.
25449 * ipa.c: Include ggc.h.
25450 (hash_cgraph_node_set_element,
25451 eq_cgraph_node_set_element, cgraph_node_set_new,
25452 cgraph_node_set_add, cgraph_node_set_remove,
25453 cgraph_node_set_find, dump_cgraph_node_set,
25454 debug_cgraph_node_set): New functions.
25455 * Makefile.in (ipa.o): Add dependency on GGC_H.
25457 2009-04-20 Ira Rosen <irar@il.ibm.com>
25459 PR tree-optimization/39675
25460 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
25461 check of the return code of vect_schedule_slp. Check that
25462 stmt_vec_info still exists for the statement, before checking its
25463 vectorization type.
25465 2009-04-20 Michael Matz <matz@suse.de>
25467 * Makefile.in (generated_files): Take out $(simple_generated_c).
25469 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
25471 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
25472 (UINTPTR_TYPE): Likewise.
25474 2009-04-19 Joseph Myers <joseph@codesourcery.com>
25477 * c-typeck.c (digest_init): Check for initializing an array with a
25480 2009-04-19 Joseph Myers <joseph@codesourcery.com>
25483 * c-semantics.c (pop_stmt_list): Propagate
25484 STATEMENT_LIST_HAS_LABEL to parent statement list.
25486 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
25488 * config/mips/mips.h (mips_tune_attr): New macro.
25489 * config/mips/mips.md (cpu): Use it.
25491 2009-04-19 Joseph Myers <joseph@codesourcery.com>
25494 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
25497 2009-04-19 Diego Novillo <dnovillo@google.com>
25499 * toplev.c (compile_file): Move call to coverage_finish ...
25500 * cgraphunit.c (ipa_passes): ... here.
25501 Call cgraph_process_new_functions.
25502 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
25503 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
25505 2009-04-19 Jan Hubicka <jh@suse.cz>
25507 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
25509 (dump_cgraph_node): Dump can throw external flag.
25510 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
25512 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
25516 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
25517 * common.opt (Wlogical-op): Move from here...
25518 * c.opt (Wlogical-op): ... to here.
25519 * c-typeck.c (parser_build_binary_op): Update call to
25520 warn_logical_operator.
25521 * c-opts.c (c_common_post_options): Enable warn_logical_op with
25523 * c-common.c (warn_logical_op): Update.
25524 * c-common.h (warn_logical_op): Update declaration.
25526 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
25528 * tree.c (protected_set_expr_location): Fix formatting.
25530 2009-04-18 Joseph Myers <joseph@codesourcery.com>
25533 * c-typeck.c (readonly_warning): new.
25534 (build_unary_op, build_modify_expr): Use readonly_warning for
25535 storing into something readonly but not const-qualified.
25537 2009-04-18 Joseph Myers <joseph@codesourcery.com>
25540 * c-typeck.c (build_unary_op): Check for taking address of
25541 expression of type void.
25543 2009-04-18 Joseph Myers <joseph@codesourcery.com>
25546 * c-typeck.c (build_function_call): Check for calling a function
25547 with qualified void return types. Call require_complete_type when
25550 2009-04-18 Jan Hubicka <jh@suse.cz>
25552 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
25554 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
25555 can_throw_external flag.
25556 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
25557 * ipa-pure-const.c (ignore_edge): New function.
25558 (propagate): Compute order for NOTHROW computation; set NOTHROWs
25559 only over can_throw_external edges.
25560 (local_pure_const): Add nothrow flag.
25561 * ipa-utils.c (searchc): Add ignore_edge callback.
25562 (ipa_utils_reduced_inorder): Add ignore_edge callback.
25563 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
25564 (set_nothrow_function_flags): Update cgraph.
25565 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
25567 2009-04-18 Richard Guenther <rguenther@suse.de>
25569 PR middle-end/39804
25570 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
25571 (fold_stmt): ... this and ...
25572 (fold_stmt_inplace): ... this.
25573 (fold_stmt_1): Fold references in calls and asms.
25574 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
25576 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
25578 * tree-vrp.c (ssa_name_nonzero_p): Remove.
25579 * tree.h: Remove the prototype for ssa_name_nonzero_p.
25581 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
25583 * tree.c (function_args_count): Remove.
25584 * tree.h: Remove the prototype for function_args_count.
25586 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
25588 * tree-iterator.c (expr_only): Remove.
25589 * tree.h: Remove the prototype for expr_only.
25591 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
25593 * reginfo.c (cannot_change_mode_set_regs): Remove.
25594 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
25596 2009-04-08 Anatoly Sokolov <aesok@post.ru>
25598 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
25599 whether operands 0 and 1 overlaps.
25601 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
25603 PR middle-end/36902
25604 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
25605 pointer. Use warning_at instead of warning.
25606 (search_for_addr_array): Likewise.
25607 (check_array_bounds): Likewise.
25608 (check_all_array_refs): Check that the incoming edge is not in the
25609 list of edges to be removed.
25610 (check_all_array_refs): Avoid the temporal pointer.
25611 (vrp_visit_cond_stmt): Fix typo.
25612 (simplify_switch_using_ranges): Handle the case where the switch
25613 index is an integer constant.
25615 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
25617 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
25619 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
25621 * doc/extend.texi, doc/invoke.texi: Fix typos.
25623 2009-04-17 Cary Coutant <ccoutant@google.com>
25625 * tree-flow-inline.h (get_lineno): Fix inverted test.
25627 2009-04-17 Diego Novillo <dnovillo@google.com>
25629 * tree-ssa-pre.c (create_expression_by_pieces): Remove
25630 assertion for AVAIL_OUT.
25632 2009-04-17 Mike Frysinger <vapier@gentoo.org>
25635 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
25636 * config/sh/linux-atomic.asm: Likewise.
25638 2009-04-17 Diego Novillo <dnovillo@google.com>
25640 * except.c (debug_eh_tree): New.
25641 (struct eh_region, struct eh_status): Move ...
25642 * except.h: ... here.
25643 (add_type_for_runtime): Declare extern.
25644 (lookup_type_for_runtime): Likewise.
25645 (debug_eh_tree): Declare.
25646 * Makefile.in (GTFILES): List except.h before except.c
25648 2009-04-17 Diego Novillo <dnovillo@google.com>
25650 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
25651 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
25652 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
25653 (find_vars_r): ... here.
25654 * tree-flow.h (find_referenced_vars_in): Declare.
25655 * tree-ssa-pre.c (create_expression_by_pieces): Assert
25656 that AVAIL_OUT exists for BLOCK.
25657 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
25658 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
25659 (tree-parloops.o): Likewise.
25661 2009-04-17 Simon Baldwin <simonb@google.com>
25663 * toplev.c (default_tree_printer): Add handling for %E format.
25665 2009-04-17 Diego Novillo <dnovillo@google.com>
25667 * tree-pretty-print.c (dump_generic_node): Add break after
25668 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
25669 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
25670 FUNCTION_TYPE together. Call print_struct_decl when printing
25671 structures and TDF_SLIM is not given.
25672 (print_struct_decl): Fix logic for detecting recursion.
25674 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
25677 * gcc.c (create_at_file): New.
25678 (compile_input_file_p): New.
25679 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
25680 * main.c (main): Update call to toplev_main.
25681 * toplev.c (toplev_main): Change signature. Call expandargv.
25682 * toplev.h (toplev_main): Change signature.
25684 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
25686 * dwarf2out.c (field_byte_offset): Use the type size as the field size
25687 if the latter is not constant.
25689 2009-04-17 David Edelsohn <edelsohn@gnu.org>
25691 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
25693 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
25695 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
25696 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
25698 2009-04-17 Richard Guenther <rguenther@suse.de>
25700 * tree-ssa-structalias.c (get_constraint_for_component_ref):
25701 Handle component references view-converting an invariant address.
25703 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
25705 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
25706 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
25707 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
25708 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
25709 Use @deftypevr rather than @deftypevar.
25711 2009-04-17 Richard Guenther <rguenther@suse.de>
25713 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
25714 (get_prop_source_stmt): Likewise.
25715 (can_propagate_from): Likewise.
25717 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
25719 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
25720 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
25721 (--with-multilib-list): Add default value.
25722 * configure: Regenerate.
25723 * Makefile.in (TM_ENDIAN_CONFIG): Define.
25724 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
25725 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
25726 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
25727 Don't add default cpu to multilib list unnecessarily, but do enable
25728 the relevant compiler option..
25729 Add support for --with-multilib-list=<blank> and
25730 --with-multilib-list=!<somelib> to supress unwanted multilibs.
25731 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
25732 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
25733 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
25734 TM_MULTILIB_CONFIG.
25735 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
25736 (MULTILIB_OSDIRNAMES): New variable.
25737 * config/sh/t-1e: Delete file.
25738 * config/sh/t-mlib-sh1: Delete file.
25739 * config/sh/t-mlib-sh2: Delete file.
25740 * config/sh/t-mlib-sh2a: Delete file.
25741 * config/sh/t-mlib-sh2a-nofpu: Delete file.
25742 * config/sh/t-mlib-sh2a-single: Delete file.
25743 * config/sh/t-mlib-sh2a-single-only: Delete file.
25744 * config/sh/t-mlib-sh2e: Delete file.
25745 * config/sh/t-mlib-sh3e: Delete file.
25746 * config/sh/t-mlib-sh4: Delete file.
25747 * config/sh/t-mlib-sh4-nofpu: Delete file.
25748 * config/sh/t-mlib-sh4-single: Delete file.
25749 * config/sh/t-mlib-sh4-single-only: Delete file.
25750 * config/sh/t-mlib-sh4a: Delete file.
25751 * config/sh/t-mlib-sh4a-nofpu: Delete file.
25752 * config/sh/t-mlib-sh4a-single: Delete file.
25753 * config/sh/t-mlib-sh4a-single-only: Delete file.
25754 * config/sh/t-mlib-sh4al: Delete file.
25755 * config/sh/t-mlib-sh5-32media: Delete file.
25756 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
25757 * config/sh/t-mlib-sh5-64media: Delete file.
25758 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
25759 * config/sh/t-mlib-sh5-compact: Delete file.
25760 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
25761 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
25762 * doc/install.texi (Options specification): Add
25763 --with-multilib-list and --with-endian.
25765 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
25767 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
25769 (OBJS-common): Add plugin-version.o.
25770 (plugin-version.o): New.
25771 * gcc-plugin.h (plugin_gcc_version): New.
25772 (plugin_default_version_check): New.
25773 (plugin_init_func, plugin_init): Add version argument.
25774 * plugin-version.c: New.
25775 * plugin.c (str_plugin_gcc_version_name): New.
25776 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
25777 pass it to the init function.
25778 (plugin_default_version_check): New.
25780 2009-04-17 Richard Guenther <rguenther@suse.de>
25782 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
25783 for decl-vs-decl disambiguation.
25785 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
25787 * config/s390/s390.h (s390_tune_attr): New macro definition.
25788 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
25790 2009-04-17 Richard Guenther <rguenther@suse.de>
25792 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
25793 (fold_stmt_r): Likewise.
25794 (maybe_fold_reference): New function.
25795 (fold_gimple_assign): Handle cases fold_stmt_r did.
25796 (fold_stmt): Do not use fold_stmt_r.
25797 (fold_stmt_inplace): Likewise.
25799 2009-04-17 Richard Guenther <rguenther@suse.de>
25801 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
25802 (record_equivalences_from_stmt): Remove useless checks and
25804 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
25805 the type is already suitable.
25807 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
25809 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
25811 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
25813 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
25814 (CMPtype): Define as __gcc_CMPtype.
25816 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
25818 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
25819 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
25821 2009-04-17 Richard Guenther <rguenther@suse.de>
25823 PR tree-optimization/39746
25824 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
25825 special-casing for builtins and static variable use/def.
25826 (call_may_clobber_ref_p_1): Likewise.
25828 2009-04-16 Ian Lance Taylor <iant@google.com>
25830 * df.h: Include "timevar.h".
25831 (struct df_problem): Change tv_id field to timevar_id_t.
25832 * tree-pass.h: Include "timevar.h".
25833 (struct opt_pass): Change tv_id field to timevar_id_t.
25834 * timevar.h (timevar_id_t): Define TV_NONE.
25835 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
25836 TV_NONE rather than tv_id != 0.
25837 (execute_one_pass): Likewise.
25838 * Makefile.in (DF_H): Add $(TIMEVAR_H).
25839 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
25840 dependencies to $(TREE_PASS_H).
25841 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
25843 (pass_branch_target_load_optimize2): Likewise.
25844 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
25845 (pass_outof_cfg_layout_mode): Likewise.
25846 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
25847 (pass_rebuild_cgraph_edges): Likewise.
25848 (pass_remove_cgraph_callee_edges): Likewise.
25849 * df-core.c (pass_df_initialize_opt): Likewise.
25850 (pass_df_initialize_no_opt): Likewise.
25851 (pass_df_finish): Likewise.
25852 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
25853 * except.c (pass_set_nothrow_function_flags): Likewise.
25854 (pass_convert_to_eh_region_ranges): Likewise.
25855 * final.c (pass_compute_alignments): Likewise.
25856 * function.c (pass_instantiate_virtual_regs): Likewise.
25857 (pass_init_function): Likewise.
25858 (pass_leaf_regs): Likewise.
25859 (pass_match_asm_constraints): Likewise.
25860 * gimple-low.c (pass_lower_cf): Likewise.
25861 (pass_mark_used_blocks): Likewise.
25862 * init-regs.c (pass_initialize_regs): Likewise.
25863 * integrate.c (pass_initial_value_sets): Likewise.
25864 * ira.c (pass_ira): Likewise.
25865 * jump.c (pass_cleanup_barriers): Likewise.
25866 * omp-low.c (pass_expand_omp): Likewise.
25867 (pass_lower_omp): Likewise.
25868 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
25869 * recog.c (pass_split_all_insns): Likewise.
25870 (pass_split_after_reload): Likewise.
25871 (pass_split_before_regstack): Likewise.
25872 (pass_split_before_sched2): Likewise.
25873 (pass_split_for_shorten_branches): Likewise.
25874 * reginfo.c (pass_reginfo_init): Likewise.
25875 (pass_subregs_of_mode_init): Likewise.
25876 (pass_subregs_of_mode_finish): Likewise.
25877 * passes.c (pass_postreload): Likewise.
25878 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
25879 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
25880 (pass_warn_function_return): Likewise.
25881 (pass_warn_function_noreturn): Likewise.
25882 * tree-complex.c (pass_lower_complex): Likewise.
25883 (pass_lower_complex_O0): Likewise.
25884 * tree-if-conv.c (pass_if_conversion): Likewise.
25885 * tree-into-ssa.c (pass_build_ssa): Likewise.
25886 * tree-mudflap.c (pass_mudflap_1): Likewise.
25887 (pass_mudflap_2): Likewise.
25888 * tree-nomudflap.c (pass_mudflap_1): Likewise.
25889 (pass_mudflap_2): Likewise.
25890 * tree-nrv.c (pass_return_slot): Likewise.
25891 * tree-object-size.c (pass_object_sizes): Likewise.
25892 * tree-optimize.c (pass_all_optimizations): Likewise.
25893 (pass_early_local_passes): Likewise.
25894 (pass_all_early_optimizations): Likewise.
25895 (pass_cleanup_cfg): Likewise.
25896 (pass_cleanup_cfg_post_optimizing): Likewise.
25897 (pass_free_datastructures): Likewise.
25898 (pass_free_cfg_annotations): Likewise.
25899 (pass_fixup_cfg): Likewise.
25900 (pass_init_datastructures): Likewise.
25901 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
25902 (pass_late_warn_uninitialized): Likewise.
25903 (pass_update_address_taken): Likewise.
25904 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
25905 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
25906 (pass_cse_sincos): Likewise.
25907 (pass_convert_to_rsqrt): Likewise.
25908 * tree-ssa-structalias.c (pass_build_alias): Likewise.
25909 * tree-stdarg.c (pass_stdarg): Likewise.
25910 * tree-tailcall.c (pass_tail_recursion): Likewise.
25911 (pass_tail_calls): Likewise.
25912 * tree-vect-generic.c (pass_lower_vector): Likewise.
25913 (pass_lower_vector_ssa): Likewise.
25914 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
25916 2009-04-16 Joseph Myers <joseph@codesourcery.com>
25918 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
25920 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
25922 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
25923 logical and signext.
25925 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
25928 * config/sh/predicates.md (arith_operand): Check if the operand
25929 of TRUNCATE is a REG.
25931 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25933 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
25934 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
25936 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25938 * tree-iterator.c (tsi_split_statement_list_after,
25939 tsi_split_statement_list_before): Remove.
25940 * tree-iterator.h: Remove the prototypes for
25941 tsi_split_statement_list_after and tsi_split_statement_list_before.
25943 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25945 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
25946 * tree-ssa-propagate.h: Remove the prototype for
25947 stmt_makes_single_load.
25949 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25951 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
25952 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
25954 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25956 * tree-iterator.c (EXPR_LAST_BODY): Remove.
25958 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25960 * except.c (eh_region_outer_p): Remove.
25961 * except.h: Remove the prototype for eh_region_outer_p.
25963 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25965 * function.c (current_function_assembler_name): Remove.
25966 * function.h: Remove the prototype for
25967 current_function_assembler_name.
25969 2009-04-16 Ian Lance Taylor <iant@google.com>
25971 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
25972 (add_reg_note): Call alloc_reg_note.
25973 * rtl.h (alloc_reg_note): Declare.
25974 * combine.c (try_combine): Use alloc_reg_note.
25975 (recog_for_combine, move_deaths): Likewise.
25976 (distribute_notes): Use alloc_reg_note and add_reg_note.
25977 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
25978 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
25979 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
25981 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
25983 PR rtl-optimization/39762
25984 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
25985 ira_may_move_out_cost): Add comments about way of their usage.
25986 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
25988 * ira-conflicts.c (process_regs_for_copy): Use function
25989 ira_get_register_move_cost instead of global
25990 ira_register_move_cost.
25992 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
25993 color_pass, move_spill_restore, update_curr_costs): Ditto.
25995 * ira-lives.c (process_single_reg_class_operands): Ditto.
25997 * ira-emit.c (emit_move_list): Ditto.
25999 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
26000 (record_reg_classes): Ditto. Use functions
26001 ira_get_register_move_cost and ira_get_may_move_cost instead of
26002 global vars ira_register_move_cost, ira_may_move_out_cost and
26003 ira_may_move_in_cost.
26004 (record_address_regs): Don't call ira_init_register_move_cost.
26005 Use function ira_get_may_move_cost instead of global
26006 ira_may_move_in_cost.
26007 (process_bb_node_for_hard_reg_moves): Use function
26008 ira_get_register_move_cost instead of global ira_register_move_cost.
26009 (ira_costs): Don't call ira_init_register_move_cost.
26011 2009-04-16 Richard Guenther <rguenther@suse.de>
26013 * tree-cfg.c (verify_gimple_assign_binary):
26014 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
26015 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
26016 (create_general_new_stmt): Note that this function is broken.
26018 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
26020 * common.opt (fhelp): Add Var(help_flag).
26021 * gcc-plugin.h (plugin_info): Add help.
26022 * plugin.c (plugin_name_args): Add help.
26023 (register_plugin_info): Set plugin->help.
26024 (print_help_one_plugin): New.
26025 (print_plugins_help): New.
26026 * plugin.h (print_plugins_help): New.
26027 * toplev.c (toplev_main): Call print_plugins_help if needed.
26029 2009-04-16 Richard Guenther <rguenther@suse.de>
26031 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
26032 (gimple_ior_addresses_taken_1): New function.
26033 (gimple_ior_addresses_taken): Likewise.
26034 * gimple.h (struct gimple_statement_with_ops_base): Remove
26035 addresses_taken member.
26036 (gimple_ior_addresses_taken): Declare.
26037 (gimple_addresses_taken, gimple_addresses_taken_ptr,
26038 gimple_set_addresses_taken): Remove.
26039 * ipa-reference.c (mark_address): New function.
26040 (scan_stmt_for_static_refs): Use it for marking addresses taken.
26041 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
26042 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
26043 (gimple_add_to_addresses_taken): Remove.
26044 (get_tmr_operands): Call mark_address_taken.
26045 (get_asm_expr_operands): Likewise.
26046 (get_expr_operands): Likewise.
26047 (build_ssa_operands): Do not clear the addresses_taken bitmap.
26048 (free_stmt_operands): Do not free it.
26049 * tree-ssa.c (delete_tree_ssa): Likewise.
26050 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
26052 2009-04-16 Richard Guenther <rguenther@suse.de>
26054 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
26055 (walk_stmt_load_store_ops): Likewise.
26056 * gimple.c (get_base_loadstore): New function.
26057 (walk_stmt_load_store_addr_ops): Likewise.
26058 (walk_stmt_load_store_ops): Likewise.
26059 * ipa-pure-const.c (check_op): Simplify.
26060 (check_load, check_store): New functions.
26061 (check_stmt): Use walk_stmt_load_store_ops.
26062 * ipa-reference.c (mark_load): Adjust signature.
26063 (mark_store): Likewise.
26064 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
26066 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
26068 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
26069 (plugin_info): New.
26070 * opts.c (common_handle_option): Don't call print_version.
26071 * plugin.c (plugin_name_args): Add version.
26072 (register_plugin_info): New.
26073 (register_callback): Handle PLUGIN_INFO.
26074 (try_init_one_plugin): New.
26075 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
26077 (finalize_one_plugin): New.
26078 (finalize_plugins): New.
26079 (print_one_plugin): New.
26080 (print_plugins_versions): New.
26081 * plugin.h (print_plugins_versions): New.
26082 (finalize_plugins): New.
26083 * toplev.c (compile_file): Don't call initialize_plugins.
26084 (print_version): Call print_plugins_versions.
26085 (toplev_main): Call initialize_plugins. Print version if needed.
26086 Call finalize_plugins.
26088 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
26090 * common.opt (fversion): New.
26091 * gcc.c (print_version): New.
26092 (process_command): Don't print the version. Just set print_version.
26093 (main): Print version. Call subprocesses if print_version and
26094 verbose_flag are set.
26095 * opts.c (common_handle_option): Handle OPT_fversion.
26097 2009-04-16 Richard Guenther <rguenther@suse.de>
26098 Ira Rosen <irar@il.ibm.com>
26100 PR tree-optimization/39698
26101 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
26102 type of the reduction variable. Only generate the def if
26105 * omp-low.c (expand_omp_for_generic): When converting to a pointer
26106 make sure to first convert to an integer of the same precision.
26107 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
26108 the type of the evolution correctly in computing the new
26109 induction variable base.
26111 2009-04-16 Richard Guenther <rguenther@suse.de>
26113 PR middle-end/39625
26114 * tree-cfg.c (make_blocks): Split statements with to-be
26115 abnormal SSA names on the lhs.
26117 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
26119 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
26120 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
26121 * c-typeck.c (really_start_incremental_init): Likewise.
26122 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
26123 (TARGET_INITIALIZER): Remove it.
26124 * target.h (struct target): Remove vector_opaque_p.
26125 * tree.c (build_opaque_vector_type): New.
26126 * tree.h (TYPE_VECTOR_OPAQUE): New.
26127 (build_opaque_vector_type): Declare.
26128 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
26129 * config/rs6000/rs6000.c (build_opaque_vector_type,
26130 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
26131 (rs6000_init_builtins): Use build_opaque_vector_type for
26132 opaque_V4SI_type_node.
26134 2009-04-15 Catherine Moore <clm@codesourcery.com>
26136 * debug.h (set_name): Declare.
26137 * dwarf2out.c (dwarf2out_set_name): Declare.
26138 (dwarf2_debug_hooks): Add set_name.
26139 (find_AT_string): New.
26140 (add_AT_string): Call find_AT_string.
26141 (dwarf2out_set_name): New.
26142 * cp/decl.c (grokdeclarator): Call set_name.
26143 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
26144 * debug.c (do_nothing_debug_hooks): Likewise.
26145 * dbxout.c (dbx_debug_hooks): Likewise.
26146 * sdbout.c (sdb_debug_hooks): Likewise.
26148 2009-04-15 Michael Eager <eager@eagercon.com>
26150 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
26151 reg for single-precision FPU.
26152 * config/rs6000/rs6000.md (movsi_internal1): Only for
26153 !TARGET_SINGLE_FPU.
26154 (movsi_internal1_single): New. Add pattern to move SI values to/from
26155 single-precision FP regs.
26157 2009-04-15 Richard Guenther <rguenther@suse.de>
26159 * omp-low.c (lower_rec_input_clauses): Build correct address
26161 (expand_omp_for_generic): Fix multiplication type.
26162 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
26163 (generate_memset_zero): Fix types.
26164 * tree-profile.c (prepare_instrumented_value): Correctly
26167 2009-04-15 Ian Lance Taylor <iant@google.com>
26169 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
26170 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
26171 for -Wall and for -Wc++-compat.
26172 (c_common_post_options): For C++, set warn_enum_compare if not
26174 * c-tree.h (struct c_expr): Add field original_type.
26175 (build_external_ref): Update declaration.
26176 * c-parser.c (c_parser_braced_init): Set original_type.
26177 (c_parser_initelt): Likewise.
26178 (c_parser_expr_no_commas): Likewise.
26179 (c_parser_conditional_expression): Likewise.
26180 (c_parser_cast_expression): Likewise.
26181 (c_parser_unary_expression): Likewise. Pull setting of
26182 original_code to top of function.
26183 (c_parser_sizeof_expression): Set original_type.
26184 (c_parser_alignof_expression): Likewise.
26185 (c_parser_postfix_expression): Likewise. Pull setting of
26186 original_code to top of function.
26187 (c_parser_postfix_expression_after_paren_type): Set original_type.
26188 (c_parser_postfix_expression_after_primary): Likewise.
26189 (c_parser_expression): Likewise.
26190 * c-typeck.c (build_external_ref): Add type parameter. Change all
26192 (c_expr_sizeof_expr): Set original_type field.
26193 (parser_build_unary_op): Likewise.
26194 (parser_build_binary_op): Likewise. Optionally warn about
26195 comparisons of enums of different types.
26196 (digest_init): Set original_type field.
26197 (really_start_incremental_init): Likewise.
26198 (push_init_level, pop_init_level): Likewise.
26199 * doc/invoke.texi (Warning Options): -Wenum-compare now
26202 2009-04-15 Richard Guenther <rguenther@suse.de>
26204 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
26205 out a necessary conversion.
26206 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
26207 names we didn't value number.
26208 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
26210 2009-04-15 Richard Guenther <rguenther@suse.de>
26212 PR tree-optimization/39764
26213 * tree-ssa-ccp.c (get_value): Canonicalize value with
26214 canonicalize_float_value.
26216 2009-04-15 Jan Hubicka <jh@suse.cz>
26218 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
26219 Wrong version of patch.
26221 2009-04-15 Jan Hubicka <jh@suse.cz>
26223 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
26225 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
26227 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
26228 our distinct integral and vector types.
26230 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
26232 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
26233 * init.c (build_vtbl_address): Remove call to assemble_external.
26235 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
26237 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
26238 output for other floating point modes.
26240 2009-04-14 Diego Novillo <dnovillo@google.com>
26242 * diagnostic.c (diagnostic_report_diagnostic): Do not
26243 warn about loaded plugins for DK_ERROR and DK_WARNING.
26244 * c-decl.c (declspecs_add_type): Move call to
26245 invoke_plugin_callbacks ...
26246 * c-parser.c (c_parser_declspecs): ... here.
26247 * plugin.c (dump_active_plugins): Tidy output.
26249 2009-04-14 Diego Novillo <dnovillo@google.com>
26250 Le-Chun Wu <lcwu@google.com>
26252 * configure.ac: Add --enable-plugin support.
26253 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
26254 * Makefile.in (PLUGIN_H): Define.
26255 Export ENABLE_PLUGIN and GMPINC to site.exp.
26256 Add PLUGINLIBS to link command.
26257 Add/modify dependencies for plugin.o and files including plugin.h.
26259 * config.in: Regenerate.
26261 * opts.c (common_handle_option): Handle OPT_fplugin_ and
26264 2009-04-14 Le-Chun Wu <lcwu@google.com>
26266 * tree-pass.h (register_one_dump_file): Add a prototype for
26267 register_one_dump_file.
26268 * toplev.c (compile_file): Call initialize_plugins.
26269 (do_compile): Call invoke_plugin_callbacks.
26270 (toplev_main): Call invoke_plugin_callbacks.
26271 * common.opt: Add -fplugin= and -fplugin-arg-.
26272 * gcc-plugin.h: New public header file for plugins to include.
26273 * plugin.c: New source file.
26274 * plugin.h: New internal header file.
26275 * passes.c (register_one_dump_file): Make it external.
26277 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
26279 2009-04-14 Diego Novillo <dnovillo@google.com>
26281 * doc/plugins.texi: New.
26282 * doc/gccint.texi: Add reference to Plugins chapter.
26283 * doc/invoke.texi: Document -fplugin and -fplugin-arg
26284 * diagnostic.c (diagnostic_report_diagnostic): Warn about
26285 loaded plugins, if any.
26286 * timevar.def (TV_PLUGIN_INIT): Define.
26287 (TV_PLUGIN_RUN): Define.
26288 * plugin.c: Include timevar.h
26289 (plugins_active_p): New.
26290 (dump_active_plugins): New.
26291 (debug_active_plugins): New.
26293 2009-04-14 Joseph Myers <joseph@codesourcery.com>
26295 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
26297 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
26299 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
26301 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
26302 the same as a minus without a shift.
26304 2009-04-14 Nick Clifton <nickc@redhat.com>
26306 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
26307 comparisons with small integers will always produce a short
26310 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
26313 2008-12-19 Diego Novillo <dnovillo@google.com>
26315 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
26317 2009-04-14 Richard Guenther <rguenther@suse.de>
26319 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
26321 (verify_gimple_assign_binary): Likewise. Handle shifts and
26323 (verify_gimple_phi): Print the mismatched argument position.
26324 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26326 (vect_update_init_of_dr): Likewise.
26327 * matrix-reorg.c (transform_access_sites): Do what the
26329 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
26331 2009-04-13 Michael Eager <eager@eagercon.com>
26333 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
26334 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
26335 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
26336 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
26337 remove duplicate config
26339 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
26341 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
26342 file_name:line_number type locator of the call site.
26344 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
26346 * genautomata.c: Put blank after comma.
26347 (automaton_decls): New.
26348 (struct unit_usage): Add comments to member next.
26349 (store_alt_unit_usage): Keep the list ordered.
26350 (unit_present_on_list_p, equal_alternatives_p): New.
26351 (check_regexp_units_distribution): Check units distribution
26352 correctness correctly.
26353 (main): Don't write automata if error is found. Return correct
26356 * config/m68k/cf.md (cfv4_ds): Remove.
26357 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
26358 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
26360 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
26361 power4-load-ext, power4-store, power4-store-update,
26362 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
26363 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
26364 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
26365 power4-sqrt, power4-isync): Modify reservation to make correct
26366 unit distribution to automata.
26368 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
26369 power5-store-update, power5-two, power5-three, power5-lmul,
26370 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
26372 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
26374 * except.c (pass_set_nothrow_function_flags): Set name and add
26376 (set_nothrow_function_flags): Mention in the dump file when
26377 changing a function to nothrow.
26379 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
26382 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
26383 instead of unsigned long.
26385 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26387 * config/arm/arm.c (return_used_this_function): Remove.
26388 (arm_output_function_prologue): Remove use of
26389 return_used_this_function.
26390 (output_return_instruction): Replace use of
26391 return_used_this_function
26392 by cfun->machine->return_used_this_function.
26393 (arm_output_epilogue): Likewise.
26394 (arm_output_function_epilogue): Likewise.
26395 (thumb_unexpanded_epilogue): Likewise.
26396 * config/arm/arm.h (struct machine_function):
26397 New member return_used_this_function.
26399 2009-04-12 Mark Mitchell <mark@codesourcery.com>
26401 * doc/install.texi: Correct description of default directory for
26402 --with-gxx-include-dir.
26404 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
26406 * fold-const.c (build_range_check): Properly deal with enumeral and
26407 boolean base types.
26409 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
26411 * doc/invoke.texi (max_gcse_passes): Remove documentation.
26412 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
26413 * params.h (MAX_GCSE_PASSES): Remove.
26414 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
26415 in sequence. Remove ability to run multiple passes.
26416 (bypass_jumps): Report run as third CPROP pass.
26418 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
26420 PR middle-end/39651
26421 * except.c (can_throw_external): Look at each insn in a SEQUENCE
26422 when deciding whether the whole SEQUENCE can throw.
26424 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
26427 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
26428 offseted label references.
26430 2009-04-11 Jan Hubicka <jh@suse.cz>
26432 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
26434 2009-04-11 Richard Guenther <rguenther@suse.de>
26436 PR middle-end/39732
26437 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
26438 return variables as TREE_ADDRESSABLE.
26440 2009-04-11 Richard Guenther <rguenther@suse.de>
26442 PR tree-optimization/39713
26443 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
26444 reference trees have SSA_NAME operands.
26446 2009-04-11 Richard Guenther <rguenther@suse.de>
26449 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
26450 address expressions.
26452 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
26454 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
26455 match changes in Cygwin 1.7
26456 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
26457 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
26459 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
26461 PR tree-optimization/39701
26462 * doc/invoke.texi (Optimization Options): Document change in
26463 meaning and initialization of -fdelete-null-pointer-checks.
26465 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
26467 PR middle-end/39701
26468 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
26470 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
26473 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
26475 2009-04-10 Chao-ying Fu <fu@mips.com>
26477 * doc/tm.texi (Instruction Output): Document
26478 TARGET_ASM_FINAL_POSTSCAN_INSN.
26479 * target.h (final_postscan_insn): New field in asm_out.
26480 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
26481 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
26482 * final.c (final_scan_insn): Call
26483 targetm.asm_out.final_postscan_insn after outputting
26484 an asm macro and a normal instruction.
26486 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
26487 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
26488 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
26489 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
26490 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
26492 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
26494 PR middle-end/39701
26495 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
26496 variables as non-NULL even with -fdelete-null-pointer-checks.
26498 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
26500 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
26502 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
26505 * config/i386/i386.c (classify_argument): Handle SCmode with
26506 (bit_offset % 64) != 0.
26508 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
26510 * doc/invoke.texi (Optimize Options): Add cross-reference to
26511 -Q --help=optimizers examples.
26513 2009-04-10 Ben Elliston <bje@au.ibm.com>
26516 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
26517 regalign for the reg == fpr and TDmode case.
26519 2009-04-09 David Ayers <ayers@fsfe.org>
26522 * objc/objc-act.c (warn_with_method): Remove helper function.
26523 (check_duplicates): Call warning and inform directly.
26524 (really_start_method): Likewise.
26526 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
26528 * expmed.c (expand_divmod): Always use a comparison for a division
26529 by a large unsigned integer.
26531 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
26532 for things others than variables or functions as nonzero.
26534 2009-04-09 Nick Clifton <nickc@redhat.com>
26536 * unwind-compat.c: Change copyright header to refer to version
26537 3 of the GNU General Public License with version 3.1 of the
26538 GCC Runtime Library Exception and to point readers at the
26539 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
26540 * config/alpha/crtfastmath.c: Likewise.
26541 * config/alpha/linux-unwind.h: Likewise.
26542 * config/alpha/qrnnd.asm: Likewise.
26543 * config/alpha/vms-crt0-64.c: Likewise.
26544 * config/alpha/vms-crt0.c: Likewise.
26545 * config/alpha/vms-dwarf2.asm: Likewise.
26546 * config/alpha/vms-dwarf2eh.asm: Likewise.
26547 * config/alpha/vms-psxcrt0-64.c: Likewise.
26548 * config/alpha/vms-psxcrt0.c: Likewise.
26549 * config/alpha/vms_tramp.asm: Likewise.
26550 * config/arc/initfini.c: Likewise.
26551 * config/arc/lib1funcs.asm: Likewise.
26552 * config/arm/bpabi-v6m.S: Likewise.
26553 * config/arm/bpabi.S: Likewise.
26554 * config/arm/bpabi.c: Likewise.
26555 * config/arm/crti.asm: Likewise.
26556 * config/arm/crtn.asm: Likewise.
26557 * config/arm/ieee754-df.S: Likewise.
26558 * config/arm/ieee754-sf.S: Likewise.
26559 * config/arm/lib1funcs.asm: Likewise.
26560 * config/arm/libunwind.S: Likewise.
26561 * config/arm/linux-atomic.c: Likewise.
26562 * config/arm/mmintrin.h: Likewise.
26563 * config/arm/pr-support.c: Likewise.
26564 * config/arm/unaligned-funcs.c: Likewise.
26565 * config/arm/unwind-arm.c: Likewise.
26566 * config/arm/unwind-arm.h: Likewise.
26567 * config/avr/libgcc.S: Likewise.
26568 * config/bfin/crti.s: Likewise.
26569 * config/bfin/crtlibid.s: Likewise.
26570 * config/bfin/crtn.s: Likewise.
26571 * config/bfin/lib1funcs.asm: Likewise.
26572 * config/bfin/linux-unwind.h: Likewise.
26573 * config/cris/arit.c: Likewise.
26574 * config/cris/cris_abi_symbol.c: Likewise.
26575 * config/darwin-64.c: Likewise.
26576 * config/darwin-crt2.c: Likewise.
26577 * config/darwin-crt3.c: Likewise.
26578 * config/darwin.h: Likewise.
26579 * config/dbxelf.h: Likewise.
26580 * config/dfp-bit.c: Likewise.
26581 * config/dfp-bit.h: Likewise.
26582 * config/elfos.h: Likewise.
26583 * config/fixed-bit.c: Likewise.
26584 * config/fixed-bit.h: Likewise.
26585 * config/fp-bit.c: Likewise.
26586 * config/fp-bit.h: Likewise.
26587 * config/fr30/crti.asm: Likewise.
26588 * config/fr30/crtn.asm: Likewise.
26589 * config/fr30/lib1funcs.asm: Likewise.
26590 * config/freebsd-spec.h: Likewise.
26591 * config/frv/cmovd.c: Likewise.
26592 * config/frv/cmovh.c: Likewise.
26593 * config/frv/cmovw.c: Likewise.
26594 * config/frv/frvbegin.c: Likewise.
26595 * config/frv/frvend.c: Likewise.
26596 * config/frv/lib1funcs.asm: Likewise.
26597 * config/glibc-stdint.h: Likewise.
26598 * config/h8300/clzhi2.c: Likewise.
26599 * config/h8300/crti.asm: Likewise.
26600 * config/h8300/crtn.asm: Likewise.
26601 * config/h8300/ctzhi2.c: Likewise.
26602 * config/h8300/fixunssfsi.c: Likewise.
26603 * config/h8300/lib1funcs.asm: Likewise.
26604 * config/h8300/parityhi2.c: Likewise.
26605 * config/h8300/popcounthi2.c: Likewise.
26606 * config/i386/ammintrin.h: Likewise.
26607 * config/i386/att.h: Likewise.
26608 * config/i386/avxintrin.h: Likewise.
26609 * config/i386/biarch64.h: Likewise.
26610 * config/i386/bmmintrin.h: Likewise.
26611 * config/i386/cpuid.h: Likewise.
26612 * config/i386/cross-stdarg.h: Likewise.
26613 * config/i386/crtfastmath.c: Likewise.
26614 * config/i386/crtprec.c: Likewise.
26615 * config/i386/cygming-crtbegin.c: Likewise.
26616 * config/i386/cygming-crtend.c: Likewise.
26617 * config/i386/cygwin.asm: Likewise.
26618 * config/i386/emmintrin.h: Likewise.
26619 * config/i386/gmm_malloc.h: Likewise.
26620 * config/i386/gthr-win32.c: Likewise.
26621 * config/i386/i386.h: Likewise.
26622 * config/i386/immintrin.h: Likewise.
26623 * config/i386/linux-unwind.h: Likewise.
26624 * config/i386/linux64.h: Likewise.
26625 * config/i386/mm3dnow.h: Likewise.
26626 * config/i386/mmintrin-common.h: Likewise.
26627 * config/i386/mmintrin.h: Likewise.
26628 * config/i386/nmmintrin.h: Likewise.
26629 * config/i386/pmm_malloc.h: Likewise.
26630 * config/i386/pmmintrin.h: Likewise.
26631 * config/i386/smmintrin.h: Likewise.
26632 * config/i386/sol2-c1.asm: Likewise.
26633 * config/i386/sol2-ci.asm: Likewise.
26634 * config/i386/sol2-cn.asm: Likewise.
26635 * config/i386/sol2-gc1.asm: Likewise.
26636 * config/i386/tmmintrin.h: Likewise.
26637 * config/i386/unix.h: Likewise.
26638 * config/i386/w32-unwind.h: Likewise.
26639 * config/i386/wmmintrin.h: Likewise.
26640 * config/i386/x86-64.h: Likewise.
26641 * config/i386/x86intrin.h: Likewise.
26642 * config/i386/xmmintrin.h: Likewise.
26643 * config/ia64/crtbegin.asm: Likewise.
26644 * config/ia64/crtend.asm: Likewise.
26645 * config/ia64/crtfastmath.c: Likewise.
26646 * config/ia64/crti.asm: Likewise.
26647 * config/ia64/crtn.asm: Likewise.
26648 * config/ia64/fde-glibc.c: Likewise.
26649 * config/ia64/lib1funcs.asm: Likewise.
26650 * config/ia64/linux-unwind.h: Likewise.
26651 * config/ia64/quadlib.c: Likewise.
26652 * config/ia64/unwind-ia64.c: Likewise.
26653 * config/linux.h: Likewise.
26654 * config/m32c/m32c-lib1.S: Likewise.
26655 * config/m32c/m32c-lib2-trapv.c: Likewise.
26656 * config/m32c/m32c-lib2.c: Likewise.
26657 * config/m32r/initfini.c: Likewise.
26658 * config/m68hc11/larith.asm: Likewise.
26659 * config/m68hc11/m68hc11-crt0.S: Likewise.
26660 * config/m68k/cf.md: Likewise.
26661 * config/m68k/crti.s: Likewise.
26662 * config/m68k/crtn.s: Likewise.
26663 * config/m68k/lb1sf68.asm: Likewise.
26664 * config/m68k/linux-unwind.h: Likewise.
26665 * config/mcore/crti.asm: Likewise.
26666 * config/mcore/crtn.asm: Likewise.
26667 * config/mcore/lib1.asm: Likewise.
26668 * config/mips/linux-unwind.h: Likewise.
26669 * config/mips/loongson.h: Likewise.
26670 * config/mips/mips16.S: Likewise.
26671 * config/mmix/crti.asm: Likewise.
26672 * config/mmix/crtn.asm: Likewise.
26673 * config/pa/fptr.c: Likewise.
26674 * config/pa/hpux-unwind.h: Likewise.
26675 * config/pa/lib2funcs.asm: Likewise.
26676 * config/pa/linux-atomic.c: Likewise.
26677 * config/pa/linux-unwind.h: Likewise.
26678 * config/pa/milli64.S: Likewise.
26679 * config/pa/quadlib.c: Likewise.
26680 * config/pa/stublib.c: Likewise.
26681 * config/picochip/libgccExtras/adddi3.asm: Likewise.
26682 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
26683 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
26684 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
26685 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
26686 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
26687 * config/picochip/libgccExtras/divmod15.asm: Likewise.
26688 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
26689 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
26690 * config/picochip/libgccExtras/longjmp.asm: Likewise.
26691 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
26692 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
26693 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
26694 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
26695 * config/picochip/libgccExtras/setjmp.asm: Likewise.
26696 * config/picochip/libgccExtras/subdi3.asm: Likewise.
26697 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
26698 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
26699 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
26700 * config/rs6000/750cl.h: Likewise.
26701 * config/rs6000/altivec.h: Likewise.
26702 * config/rs6000/biarch64.h: Likewise.
26703 * config/rs6000/crtresfpr.asm: Likewise.
26704 * config/rs6000/crtresgpr.asm: Likewise.
26705 * config/rs6000/crtresxfpr.asm: Likewise.
26706 * config/rs6000/crtresxgpr.asm: Likewise.
26707 * config/rs6000/crtsavfpr.asm: Likewise.
26708 * config/rs6000/crtsavgpr.asm: Likewise.
26709 * config/rs6000/darwin-asm.h: Likewise.
26710 * config/rs6000/darwin-fallback.c: Likewise.
26711 * config/rs6000/darwin-fpsave.asm: Likewise.
26712 * config/rs6000/darwin-ldouble.c: Likewise.
26713 * config/rs6000/darwin-tramp.asm: Likewise.
26714 * config/rs6000/darwin-unwind.h: Likewise.
26715 * config/rs6000/darwin-vecsave.asm: Likewise.
26716 * config/rs6000/darwin-world.asm: Likewise.
26717 * config/rs6000/e500crtres32gpr.asm: Likewise.
26718 * config/rs6000/e500crtres64gpr.asm: Likewise.
26719 * config/rs6000/e500crtres64gprctr.asm: Likewise.
26720 * config/rs6000/e500crtrest32gpr.asm: Likewise.
26721 * config/rs6000/e500crtrest64gpr.asm: Likewise.
26722 * config/rs6000/e500crtresx32gpr.asm: Likewise.
26723 * config/rs6000/e500crtresx64gpr.asm: Likewise.
26724 * config/rs6000/e500crtsav32gpr.asm: Likewise.
26725 * config/rs6000/e500crtsav64gpr.asm: Likewise.
26726 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
26727 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
26728 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
26729 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
26730 * config/rs6000/eabi-ci.asm: Likewise.
26731 * config/rs6000/eabi-cn.asm: Likewise.
26732 * config/rs6000/eabi.asm: Likewise.
26733 * config/rs6000/linux-unwind.h: Likewise.
26734 * config/rs6000/linux64.h: Likewise.
26735 * config/rs6000/paired.h: Likewise.
26736 * config/rs6000/paired.md: Likewise.
26737 * config/rs6000/ppc64-fp.c: Likewise.
26738 * config/rs6000/ppu_intrinsics.h: Likewise.
26739 * config/rs6000/rs6000.h: Likewise.
26740 * config/rs6000/si2vmx.h: Likewise.
26741 * config/rs6000/sol-ci.asm: Likewise.
26742 * config/rs6000/sol-cn.asm: Likewise.
26743 * config/rs6000/spe.h: Likewise.
26744 * config/rs6000/spu2vmx.h: Likewise.
26745 * config/rs6000/sysv4.h: Likewise.
26746 * config/rs6000/tramp.asm: Likewise.
26747 * config/rs6000/vec_types.h: Likewise.
26748 * config/s390/linux-unwind.h: Likewise.
26749 * config/s390/tpf-unwind.h: Likewise.
26750 * config/score/crti.asm: Likewise.
26751 * config/score/crtn.asm: Likewise.
26752 * config/sh/crt1.asm: Likewise.
26753 * config/sh/crti.asm: Likewise.
26754 * config/sh/crtn.asm: Likewise.
26755 * config/sh/divtab-sh4-300.c: Likewise.
26756 * config/sh/divtab-sh4.c: Likewise.
26757 * config/sh/divtab.c: Likewise.
26758 * config/sh/lib1funcs-4-300.asm: Likewise.
26759 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
26760 * config/sh/lib1funcs.asm: Likewise.
26761 * config/sh/lib1funcs.h: Likewise.
26762 * config/sh/linux-atomic.asm: Likewise.
26763 * config/sh/linux-unwind.h: Likewise.
26764 * config/sh/shmedia.h: Likewise.
26765 * config/sh/sshmedia.h: Likewise.
26766 * config/sh/ushmedia.h: Likewise.
26767 * config/sparc/crtfastmath.c: Likewise.
26768 * config/sparc/linux-unwind.h: Likewise.
26769 * config/sparc/sol2-c1.asm: Likewise.
26770 * config/sparc/sol2-ci.asm: Likewise.
26771 * config/sparc/sol2-cn.asm: Likewise.
26772 * config/spu/divmodti4.c: Likewise.
26773 * config/spu/divv2df3.c: Likewise.
26774 * config/spu/float_disf.c: Likewise.
26775 * config/spu/float_unsdidf.c: Likewise.
26776 * config/spu/float_unsdisf.c: Likewise.
26777 * config/spu/float_unssidf.c: Likewise.
26778 * config/spu/mfc_multi_tag_release.c: Likewise.
26779 * config/spu/mfc_multi_tag_reserve.c: Likewise.
26780 * config/spu/mfc_tag_release.c: Likewise.
26781 * config/spu/mfc_tag_reserve.c: Likewise.
26782 * config/spu/mfc_tag_table.c: Likewise.
26783 * config/spu/multi3.c: Likewise.
26784 * config/spu/spu_internals.h: Likewise.
26785 * config/spu/spu_intrinsics.h: Likewise.
26786 * config/spu/spu_mfcio.h: Likewise.
26787 * config/spu/vec_types.h: Likewise.
26788 * config/spu/vmx2spu.h: Likewise.
26789 * config/stormy16/stormy16-lib2.c: Likewise.
26790 * config/svr4.h: Likewise.
26791 * config/sync.c: Likewise.
26792 * config/v850/lib1funcs.asm: Likewise.
26793 * config/vxlib-tls.c: Likewise.
26794 * config/vxlib.c: Likewise.
26795 * config/vxworks-dummy.h: Likewise.
26796 * config/xtensa/crti.asm: Likewise.
26797 * config/xtensa/crtn.asm: Likewise.
26798 * config/xtensa/ieee754-df.S: Likewise.
26799 * config/xtensa/ieee754-sf.S: Likewise.
26800 * config/xtensa/lib1funcs.asm: Likewise.
26801 * config/xtensa/lib2funcs.S: Likewise.
26802 * config/xtensa/linux-unwind.h: Likewise.
26803 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
26804 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
26805 * coretypes.h: Likewise.
26806 * crtstuff.c: Likewise.
26807 * defaults.h: Likewise.
26808 * dwarf2.h: Likewise.
26809 * emutls.c: Likewise.
26810 * gbl-ctors.h: Likewise.
26811 * gcov-io.h: Likewise.
26812 * ginclude/float.h: Likewise.
26813 * ginclude/iso646.h: Likewise.
26814 * ginclude/stdarg.h: Likewise.
26815 * ginclude/stdbool.h: Likewise.
26816 * ginclude/stddef.h: Likewise.
26817 * ginclude/stdfix.h: Likewise.
26818 * ginclude/stdint-gcc.h: Likewise.
26819 * ginclude/tgmath.h: Likewise.
26820 * gthr-aix.h: Likewise.
26821 * gthr-dce.h: Likewise.
26822 * gthr-gnat.c: Likewise.
26823 * gthr-gnat.h: Likewise.
26824 * gthr-lynx.h: Likewise.
26825 * gthr-mipssde.h: Likewise.
26826 * gthr-nks.h: Likewise.
26827 * gthr-posix.c: Likewise.
26828 * gthr-posix.h: Likewise.
26829 * gthr-posix95.h: Likewise.
26830 * gthr-rtems.h: Likewise.
26831 * gthr-single.h: Likewise.
26832 * gthr-solaris.h: Likewise.
26833 * gthr-tpf.h: Likewise.
26834 * gthr-vxworks.h: Likewise.
26835 * gthr-win32.h: Likewise.
26836 * gthr.h: Likewise.
26837 * libgcc2.c: Likewise.
26838 * libgcc2.h: Likewise.
26839 * libgcov.c: Likewise.
26840 * tsystem.h: Likewise.
26841 * typeclass.h: Likewise.
26842 * unwind-c.c: Likewise.
26843 * unwind-compat.h: Likewise.
26844 * unwind-dw2-fde-compat.c: Likewise.
26845 * unwind-dw2-fde-darwin.c: Likewise.
26846 * unwind-dw2-fde-glibc.c: Likewise.
26847 * unwind-dw2-fde.c: Likewise.
26848 * unwind-dw2-fde.h: Likewise.
26849 * unwind-dw2.c: Likewise.
26850 * unwind-dw2.h: Likewise.
26851 * unwind-generic.h: Likewise.
26852 * unwind-pe.h: Likewise.
26853 * unwind-sjlj.c: Likewise.
26854 * unwind.inc: Likewise.
26855 * config/arm/neon-gen.ml: Change generated copyright header to
26856 refer to version 3 of the GNU General Public License with
26857 version 3.1 of the GCC Runtime Library Exception and to point
26858 readers at the COPYING3 and COPYING3.RUNTIME files and the
26859 FSF's license web page.
26860 * config/arm/arm_neon.h: Regenerate.
26862 2009-04-09 Jakub Jelinek <jakub@redhat.com>
26864 * config/cris/cris.md: Change copyright header to refer to version
26865 3 of the GNU General Public License.
26866 * doc/install.texi2html: Change copyright header to refer to version
26867 3 of the GNU General Public License and to point readers at the
26868 COPYING3 file and the FSF's license web page.
26869 * config/vax/linux.h: Likewise.
26871 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
26873 * config/i386/i386.md (cmpcc): New.
26874 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
26875 (sync_compare_and_swap_cc*): Delete.
26877 * config/s390/s390.c (s390_compare_emitted): Remove.
26878 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
26879 s390_compare_emitted used to be handled. Assert that modes match.
26880 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
26881 refer to sync_compare_and_swap_ccsi.
26882 * config/s390/s390.h (s390_compare_emitted): Remove.
26883 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
26884 instead of s390_compare_emitted.
26885 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
26886 instead of s390_compare_emitted.
26887 * config/s390/s390.md (cmpcc): New.
26888 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
26889 CC_REGNUM, do not pretend it's set.
26890 (sync_compare_and_swap_cc*): Delete.
26891 * config/s390/predicates.md (cc_reg_operand): New.
26893 * expr.c (sync_compare_and_swap_cc): Delete.
26894 * optabs.h (sync_compare_and_swap_cc): Delete.
26895 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
26896 is being used with can_compare_p.
26897 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
26898 (find_cc_set): New.
26899 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
26900 look for a MODE_CC set instead. Use emit_store_flag.
26901 (expand_compare_and_swap_loop): Likewise, with some additional
26902 complication to avoid a force_reg when useless. Use
26903 emit_cmp_and_jump_insns.
26904 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
26905 * doc/md.texi (sync_compare_and_swap_cc): Merge with
26906 sync_compare_and_swap documentation.
26908 2009-04-09 Jan Hubicka <jh@suse.cz>
26910 * except.c (find_prev_try): Break out from ....
26911 (duplicate_eh_regions): ... here; properly update prev_try pointers
26912 when duplication part of tree.
26913 (dump_eh_tree): Improve dumping.
26914 (verify_eh_region): New.
26915 (verify_eh_tree): Use it.
26917 2009-04-06 Richard Guenther <rguenther@suse.de>
26919 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
26920 &ARRAY addresses by adjusting their types and prepending
26922 * tree-cfg.c (verify_gimple_assign_single): Verify that
26923 addresses are correct.
26925 2009-04-09 Richard Guenther <rguenther@suse.de>
26927 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
26928 indices into an array reference if possible.
26929 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
26930 Fold POINTER_PLUS_EXPR statements with invariant address.
26932 2009-04-09 Alan Modra <amodra@bigpond.net.au>
26935 * config.gcc (powerpc64-*-linux*): Always build biarch.
26937 2009-04-09 Joseph Myers <joseph@codesourcery.com>
26940 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
26941 it and pedwarn if this results in an INTEGER_CST.
26943 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26945 * doc/install.texi: Update minimum GMP version. Remove obsolete
26946 text in MPFR section.
26948 2009-04-08 Jakub Jelinek <jakub@redhat.com>
26950 * dwarf2out.c (class_scope_p): New static inline.
26951 (class_or_namespace_scope_p): Use it.
26952 (gen_variable_die): Use DW_TAG_member tag for static data member
26953 declarations instead of DW_TAG_variable.
26955 PR middle-end/39573
26956 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
26959 2009-04-08 Richard Guenther <rguenther@suse.de>
26961 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
26962 valueize random data.
26964 2009-04-08 David Edelsohn <edelsohn@gnu.org>
26966 * config.gcc (aix tm_file): Add aix-stdint.h.
26967 (aix tm clause use_gcc_stdint): Set to wrap.
26968 * config/rs6000/aix-stdint.h: New file.
26970 2009-04-08 Richard Guenther <rguenther@suse.de>
26972 PR middle-end/36291
26973 * tree-dfa.c (add_referenced_var): Do not recurse into
26974 global initializers.
26975 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
26977 (fold_const_aggregate_ref): Likewise.
26979 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
26981 * recog.c (ordered_comparison_operator): New.
26982 * gensupport.c (std_preds): Add it.
26983 * doc/md.texi (Machine-Independent Predicates): Document it.
26985 2009-04-08 Jan Hubicka <jh@suse.cz>
26987 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
26988 * function.h (rtl_eh): Remove exception_handler_label_map.
26989 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
26990 remove_exception_handler_label, for_each_eh_label_1): Remove.
26991 (rtl_remove_unreachable_regions): Remove.
26992 (convert_from_eh_region_ranges): Do not remove unreachable regions.
26993 (find_exception_handler_labels): Don't build the hashtable.
26994 (maybe_remove_eh_handler): Remove.
26995 (for_each_eh_label): Rewrite to walk the tree.
26996 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
26997 * except.h (maybe_remove_eh_handler): Remove.
26998 * passes.c (init_optimization_passes): Schedule second EH cleanup
27000 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
27001 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
27003 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
27005 * genoutput.c (validate_optab_operands): New.
27006 (gen_insn, gen_expand): Call it.
27008 * genflags.c (gen_insn): Detect misused iterators.
27009 (main): Pass line_no to gen_insn, exit with status 1 on error.
27011 * genextract.c (line_no): Make global.
27012 (VEC_safe_set_locstr): Change assertion to error message.
27013 (main): Exit with status 1 on error.
27015 2009-04-08 Joseph Myers <joseph@codesourcery.com>
27019 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
27020 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
27021 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
27022 * c-convert.c (convert): Do not call fold on results of conversion
27023 functions when the result is a C_MAYBE_CONST_EXPR.
27024 * c-parser.c (c_parser_postfix_expression): Do not fold condition
27025 of __builtin_choose_expr.
27026 * c-typeck.c (remove_c_maybe_const_expr): New.
27027 (build_unary_op, build_conditional_expr, build_compound_expr,
27028 build_binary_op, c_objc_common_truthvalue_conversion): Call
27029 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
27032 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
27034 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
27035 CODE to produce a new one. Add a prototype to use fold_convert_const
27037 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
27040 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
27041 mix declarations and code.
27043 2009-04-08 Ben Elliston <bje@au.ibm.com>
27045 * gcc.c: Replace `CC' with `GCC' throughout.
27047 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
27049 * doc/invoke.texi: Document Atom support.
27051 2009-04-07 Jason Merrill <jason@redhat.com>
27054 * c-common.h, c-common.c: Add flag_pretty_templates.
27055 * c-opts.c (c_common_handle_option): Set it.
27056 * c.opt: Add -fno-pretty-templates.
27057 * doc/invoke.texi (C++ Dialect Options): Likewise.
27059 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
27061 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
27062 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
27063 (ia64_expand_builtin): Likewise.
27065 2009-04-07 Martin Jambor <mjambor@suse.cz>
27067 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
27068 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
27069 ADDR_EXPRS are include too.
27071 2009-04-07 Richard Guenther <rguenther@suse.de>
27073 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
27074 decls are only used if passes as parameters or if they are
27075 local statics and the call is not to a builtin.
27076 (call_may_clobber_ref_p_1): Likewise.
27078 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
27080 * expr.c (do_store_flag): Remove last argument. Simplify code
27081 to avoid duplication of tests already done by can_compare_p.
27082 (expand_expr_real_1): Adjust caller.
27084 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
27086 * optabs.c (can_compare_p): Test the predicate of a
27087 cbranch and cstore pattern.
27089 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
27091 * expr.c (convert_move): Use emit_store_flag instead of
27094 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
27096 * config/i386/i386.c (ix86_compare_emitted): Remove.
27097 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
27098 ix86_compare_op0 like ix86_compare_emitted used to be handled.
27099 * config/i386/i386.h (ix86_compare_emitted): Remove.
27100 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
27101 instead of ix86_compare_emitted.
27102 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
27104 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
27106 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
27107 Add t-sysroot-suffix to tmake_file.
27108 * config/print-sysroot-suffix.sh: New file.
27109 * config/t-sysroot-suffix: New file.
27111 2009-04-07 Ben Elliston <bje@au.ibm.com>
27113 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
27114 as the latter produces a warning when the target does not support
27117 2009-04-07 Ben Elliston <bje@au.ibm.com>
27119 * dfp.c: Replace type punning assignments with memcpy throughout.
27120 * Makefile.in (dfp.o-warn): Remove.
27122 2009-04-07 Alan Modra <amodra@bigpond.net.au>
27125 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
27126 Include soft-fp/t-softfp after rs6000/t-linux64.
27128 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
27130 * stor-layout.c (set_sizetype): Use the full precision of their
27131 machine mode for bitsize types.
27133 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
27135 * config/i386/i386.md: Revert 2 accidental checkins.
27137 2009-04-06 Joey Ye <joey.ye@intel.com>
27138 Xuepeng Guo <xuepeng.guo@intel.com>
27139 H.J. Lu <hongjiu.lu@intel.com>
27141 Atom pipeline model, tuning and insn selection.
27142 * config.gcc (atom): Add atom config options and target.
27144 * config/i386/atom.md: New.
27146 * config/i386/i386.c (atom_cost): New cost.
27147 (m_ATOM): New macro flag.
27148 (initial_ix86_tune_features): Set m_ATOM.
27149 (x86_accumulate_outgoing_args): Likewise.
27150 (x86_arch_always_fancy_math_387): Likewise.
27151 (processor_target): Add Atom cost.
27152 (cpu_names): Add Atom cpu name.
27153 (override_options): Set Atom ISA.
27154 (ix86_issue_rate): New case PROCESSOR_ATOM.
27155 (ix86_adjust_cost): Likewise.
27157 * config/i386/i386.h (TARGET_ATOM): New target macro.
27158 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
27159 (TARGET_OPT_AGU): New target option.
27160 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
27161 (processor_type): Add PROCESSOR_ATOM.
27163 * config/i386/i386.md (cpu): Add new value "atom".
27164 (use_carry, movu): New attr.
27165 (atom.md): Include atom.md.
27166 (adddi3_carry_rex64): Set attr "use_carry".
27167 (addqi3_carry): Likewise.
27168 (addhi3_carry): Likewise.
27169 (addsi3_carry): Likewise.
27170 (*addsi3_carry_zext): Likewise.
27171 (subdi3_carry_rex64): Likewise.
27172 (subqi3_carry): Likewise.
27173 (subhi3_carry): Likewise.
27174 (subsi3_carry): Likewise.
27175 (x86_movdicc_0_m1_rex64): Likewise.
27176 (*x86_movdicc_0_m1_se): Likewise.
27177 (x86_movsicc_0_m1): Likewise.
27178 (*x86_movsicc_0_m1_se): Likewise.
27179 (*adddi_1_rex64): Emit add insn as much as possible.
27180 (*addsi_1): Likewise.
27181 (return_internal): Set atom_unit.
27182 (return_internal_long): Likewise.
27183 (return_pop_internal): Likewise.
27184 (*rcpsf2_sse): Set atom_sse_attr attr.
27185 (*qrt<mode>2_sse): Likewise.
27186 (*prefetch_sse): Likewise.
27188 * config/i386/i386-c.c (ix86_target_macros_internal): New case
27190 (ix86_target_macros_internal): Likewise.
27192 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
27193 (*prefetch_sse_rex): Likewise.
27194 (sse_rcpv4sf2): Likewise.
27195 (sse_vmrcpv4sf2): Likewise.
27196 (sse_sqrtv4sf2): Likewise.
27197 (<sse>_vmsqrt<mode>2): Likewise.
27198 (sse_ldmxcsr): Likewise.
27199 (sse_stmxcsr): Likewise.
27200 (*sse_sfence): Likewise.
27201 (sse2_clflush): Likewise.
27202 (*sse2_mfence): Likewise.
27203 (*sse2_lfence): Likewise.
27204 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
27205 (<sse>_movup<ssemodesuffixf2c>): Likewise.
27206 (avx_movdqu<avxmodesuffix>): Likewise.
27207 (avx_lddqu<avxmodesuffix>): Likewise.
27208 (sse2_movntv2di): Change attr "type" to "ssemov".
27209 (sse2_movntsi): Likewise.
27210 (rsqrtv8sf2): Change attr "type" to "sseadd".
27211 (sse3_addsubv2df3): Set attr "atom_unit".
27212 (sse3_h<plusminus_insn>v4sf3): Likewise.
27213 (*sse2_pmaddwd): Likewise.
27214 (*vec_extractv2di_1_rex64): Likewise.
27215 (*vec_extractv2di_1_avx): Likewise.
27216 (sse2_psadbw): Likewise.
27217 (ssse3_phaddwv8hi3): Likewise.
27218 (ssse3_phaddwv4hi3): Likewise.
27219 (ssse3_phadddv4si3): Likewise.
27220 (ssse3_phadddv2si3): Likewise.
27221 (ssse3_phaddswv8hi3): Likewise.
27222 (ssse3_phaddswv4hi3): Likewise.
27223 (ssse3_phsubwv8hi3): Likewise.
27224 (ssse3_phsubwv4hi3): Likewise.
27225 (ssse3_phsubdv4si3): Likewise.
27226 (ssse3_phsubdv2si3): Likewise.
27227 (ssse3_phsubswv8hi3): Likewise.
27228 (ssse3_phsubswv4hi3): Likewise.
27229 (ssse3_pmaddubsw128): Likewise.
27230 (sse3_pmaddubsw: Likewise.
27231 (ssse3_palignrti): Likewise.
27232 (ssse3_palignrdi): Likewise.
27234 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
27236 * doc/install.texi (Specific): Fix two cross-references to MinGW.
27238 2009-04-06 Richard Guenther <rguenther@suse.de>
27240 PR tree-optimization/28868
27241 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
27242 of which PHI results we inserted.
27243 (insert_into_preds_of_block): Record inserted PHIs.
27244 (eliminate): Eliminate redundant PHI nodes.
27245 (init_pre): Init inserted_phi_names.
27247 2009-04-06 Richard Guenther <rguenther@suse.de>
27249 PR tree-optimization/39643
27250 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
27251 IMAGPART_EXPRs of complex constants.
27252 (execute_fold_all_builtins): If we folded a call queue
27253 TODO_update_address_taken.
27255 2009-04-06 Jan Hubicka <jh@suse.cz>
27257 PR middle-end/39659
27258 * except.c (remove_unreachable_regions): Propagate may_contain_throw
27261 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
27263 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
27265 (ic_invalidate_array): Likewise.
27267 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
27269 * calls.c (emit_library_call_value_1): Fix a problem with parameter
27270 alignment for library calls.
27272 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
27274 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
27275 (mingw32 tm clause use_gcc_stdint): Set to wrap.
27276 * config/i386/mingw-stdint.h: New file.
27278 2009-04-05 Richard Guenther <rguenther@suse.de>
27280 PR tree-optimization/39648
27281 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
27282 our &A vs. &A[0] IL deficiencies.
27284 2009-04-04 Jan Hubicka <jh@suse.cz>
27286 * except.c (sjlj_find_directly_reachable_regions): Be ready for
27287 removed toplevel regions.
27288 (sjlj_mark_call_sites): Likewise.
27290 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
27292 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
27293 (cygwin tm clause use_gcc_stdint): Set to wrap.
27294 * config/i386/cygwin-stdint.h: New file.
27296 2009-04-04 Richard Guenther <rguenther@suse.de>
27298 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
27299 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
27300 single-argument PHIs if we are in loop-closed SSA form.
27301 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
27302 for the pre-condition.
27303 (slpeel_tree_peel_loop_to_edge): Likewise.
27304 (vect_build_loop_niters): Take an optional sequence to append stmts.
27305 (vect_generate_tmps_on_preheader): Likewise.
27306 (vect_do_peeling_for_loop_bound): Take extra guards for the
27308 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
27309 the cost model check.
27310 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
27311 guards if we are going to peel. Do not apply versioning in that case.
27312 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
27313 (vect_do_peeling_for_loop_bound): Likewise.
27314 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
27315 loop bound only record extra pre-conditions, do not apply loop
27318 2009-04-04 Richard Guenther <rguenther@suse.de>
27320 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
27323 2009-04-04 Jan Hubicka <jh@suse.cz>
27325 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
27326 last_basic_block for size of bb->index indexed array.
27327 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
27328 compute_out, link_btr_uses, build_btr_def_use_webs,
27329 build_btr_def_use_webs, migrate_btr_defs): Likewise.
27331 2009-04-04 Jan Hubicka <jh@suse.cz>
27333 * except.c (remove_eh_handler_and_replace): Break out from ...
27334 (remove_eh_handler): ... here.
27335 (bring_to_root): New function.
27336 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
27337 handled ones, bring others to root of tree.
27339 2009-04-04 Jan Hubicka <jh@suse.cz>
27341 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
27342 (all_phis_safe_to_merge): New function.
27343 (update_info): New structure.
27344 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
27345 (cleanup_empty_eh): Update SSA if possible.
27347 2009-04-04 Richard Guenther <rguenther@suse.de>
27349 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
27350 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
27351 (append_vuse): Likewise.
27353 2009-04-04 Jakub Jelinek <jakub@redhat.com>
27355 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
27356 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
27357 instead of REG_UNSAVED for DW_CFA_undefined.
27358 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
27359 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
27362 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
27365 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
27367 2009-04-04 Richard Guenther <rguenther@suse.de>
27369 PR tree-optimization/8781
27370 PR tree-optimization/37892
27371 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
27372 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
27373 (valueize_refs): Call it for *& valueizations.
27374 (shared_reference_ops_from_ref): Rename to ...
27375 (valueize_shared_reference_ops_from_ref): ... this and valueize.
27376 (shared_reference_ops_from_call): Rename to ...
27377 (valueize_shared_reference_ops_from_call): ... this and valueize.
27378 (vn_reference_lookup): Update.
27379 (visit_reference_op_call): Likewise.
27380 * tree-ssa-pre.c (phi_translate_1): Fold *&.
27381 (eliminate): Value-replace the call address in call statements.
27383 2009-04-04 Richard Guenther <rguenther@suse.de>
27385 PR tree-optimization/39636
27386 * tree-ssa-forwprop.c
27387 (forward_propagate_addr_into_variable_array_index): Check for
27388 GIMPLE_ASSIGN before accessing the rhs code.
27390 2009-04-03 Jason Merrill <jason@redhat.com>
27392 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
27394 2009-04-03 Steve Ellcey <sje@cup.hp.com>
27396 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
27397 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
27398 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
27399 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
27400 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
27401 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
27402 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
27403 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
27404 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
27405 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
27406 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
27407 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
27408 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
27409 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
27410 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
27411 Use fr_reg_or_fp01_operand instead of fr_register_operand
27413 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
27414 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
27415 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
27417 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
27419 PR rtl-optimization/39607
27420 PR rtl-optimization/39631
27424 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
27425 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
27426 instead of DF_LR_OUT.
27427 * ira-lives.c (process_bb_node_lives): Ditto.
27428 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
27429 instead of DF_LR_{OUT,IN}.
27430 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
27431 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
27433 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
27435 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
27436 (execute_lower_omp): Always run but take the short way out if -fopenmp
27438 (gate_lower_omp): Remove, forcing the pass manager to always run the
27439 pass and always set PROP_gimple_lomp.
27440 (pass_lower_omp): Remove gate function.
27441 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
27442 PROP_trees. Instead, require it.
27443 * ipa-cp.c (pass_ipa_cp): Likewise.
27444 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
27445 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
27446 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
27447 and PROP_gimple_leh.
27449 2009-04-03 Richard Guenther <rguenther@suse.de>
27451 PR middle-end/13146
27452 PR tree-optimization/23940
27453 PR tree-optimization/33237
27454 PR middle-end/33974
27455 PR middle-end/34093
27456 PR tree-optimization/36201
27457 PR tree-optimization/36230
27458 PR tree-optimization/38049
27459 PR tree-optimization/38207
27460 PR tree-optimization/38230
27461 PR tree-optimization/38301
27462 PR tree-optimization/38585
27463 PR middle-end/38895
27464 PR tree-optimization/38985
27465 PR tree-optimization/39299
27466 * tree-ssa-structalias.h: Remove.
27467 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
27468 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
27469 (struct vuse_element_d): Remove.
27470 (struct vuse_vec_d): Likewise.
27471 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
27472 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
27473 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
27474 VUSE_ELEMENT_VAR): Likewise.
27475 (struct voptype_d): Likewise.
27476 (NUM_VOP_FREE_BUCKETS): Likewise.
27477 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
27478 (struct stmt_operands_d): Remove.
27479 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
27480 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
27481 VDEF_NUM, VDEF_VECT): Likewise.
27482 (copy_virtual_operands): Remove.
27483 (operand_build_cmp): Likewise.
27484 (create_ssa_artificial_load_stmt): Likewise.
27485 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
27486 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
27487 vuse_index and mayuse_index members. Pack and move done and iter_type
27488 members to the front.
27489 (SSA_OP_VMAYUSE): Remove.
27490 (SSA_OP_VIRTUAL_USES): Adjust.
27491 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
27492 (unlink_stmt_vdef): Declare.
27493 (add_to_addressable_set): Remove.
27494 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
27495 (vrp_visit_stmt): Likewise.
27496 * doc/tree-ssa.texi (Alias analysis): Update.
27497 * doc/invoke.texi (max-aliased-vops): Remove docs.
27498 (avg-aliased-vops): Likewise.
27499 * tree-into-ssa.c (syms_to_rename): Remove.
27500 (need_to_update_vops_p): Likewise.
27501 (need_to_initialize_update_ssa_p): Rename to ...
27502 (update_ssa_initialized_fn): ... this. Track function we are
27504 (symbol_marked_for_renaming): Simplify.
27505 (add_new_name_mapping): Do not set need_to_update_vops_p.
27506 (dump_currdefs): Use SYMS_TO_RENAME.
27507 (rewrite_update_stmt): Always walk all uses/defs.
27508 (dump_update_ssa): Adjust.
27509 (init_update_ssa): Take function argument. Track what we are
27511 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
27512 (create_new_def_for): Initialize for cfun, assert we are initialized
27514 (mark_sym_for_renaming): Simplify.
27515 (mark_set_for_renaming): Do not initialize update-ssa.
27516 (need_ssa_update_p): Simplify. Take function argument.
27517 (name_mappings_registered_p): Assert we ask for the correct function.
27518 (name_registered_for_update_p): Likewise.
27519 (ssa_names_to_replace): Likewise.
27520 (release_ssa_name_after_update_ssa): Likewise.
27521 (update_ssa): Likewise. Use SYMS_TO_RENAME.
27522 (dump_decl_set): Do not print a newline.
27523 (debug_decl_set): Do it here.
27524 (dump_update_ssa): And here.
27525 * tree-ssa-loop-im.c (move_computations): Adjust.
27526 (movement_possibility): Likewise.
27527 (determine_max_movement): Likewise.
27528 (gather_mem_refs_stmt): Likewise.
27529 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
27530 or NAME_MEMORY_TAG.
27531 * tree-complex.c (update_all_vops): Remove.
27532 (expand_complex_move): Adjust.
27533 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
27534 Simplify test for memory referencing statement. Exclude
27535 non-invariant ADDR_EXPRs.
27536 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
27537 * tree-loop-distribution.c (generate_memset_zero): Adjust.
27538 (rdg_flag_uses): Likewise.
27539 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
27541 (tree_optimize_tail_calls_1): Also split the
27542 edge from the entry block if we have degenerate PHI nodes in
27543 the first basic block.
27544 * tree.c (init_ttree): Remove memory-tag related code.
27545 (tree_code_size): Likewise.
27546 (tree_node_structure): Likewise.
27547 (build7_stat): Re-write to be build6_stat.
27548 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
27549 (SSA_VAR_P): Adjust.
27550 (struct tree_memory_tag): Remove.
27551 (struct tree_memory_partition_tag): Likewise.
27552 (union tree_node): Adjust.
27553 (build7): Re-write to be build6.
27554 * tree-pass.h (pass_reset_cc_flags): Remove.
27555 (TODO_update_address_taken): New flag.
27556 (pass_simple_dse): Remove.
27557 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
27558 * params.h (MAX_ALIASED_VOPS): Remove.
27559 (AVG_ALIASED_VOPS): Likewise.
27560 * omp-low.c (expand_omp_taskreg): Update SSA form.
27561 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
27562 aliases the lhs in a copy stmt.
27563 * tree-ssa-dse.c (struct address_walk_data): Remove.
27564 (memory_ssa_name_same): Likewise.
27565 (memory_address_same): Likewise.
27566 (get_kill_of_stmt_lhs): Likewise.
27567 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
27568 unused stores. Look through PHI nodes into post-dominated regions.
27569 (dse_optimize_stmt): Simplify. Properly remove stores.
27570 (tree_ssa_dse): Compute dominators.
27571 (execute_simple_dse): Remove.
27572 (pass_simple_dse): Likewise.
27573 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
27574 gimple_loaded_syms and gimple_stored_syms computation.
27575 * toplev.c (dump_memory_report): Dump alias and pta stats.
27576 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
27577 (vn_reference_eq): Likewise.
27578 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
27579 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
27580 valueize_vuses): Remove.
27581 (get_def_ref_stmt_vuses): Simplify. Rename to ...
27582 (get_def_ref_stmt_vuse): ... this.
27583 (vn_reference_lookup_2): New function.
27584 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
27585 walking equivalent vuses. Simplify.
27586 (vn_reference_lookup): Likewise.
27587 (vn_reference_insert): Likewise.
27588 (vn_reference_insert_pieces): Likewise.
27589 (visit_reference_op_call): Simplify.
27590 (visit_reference_op_load): Likewise.
27591 (visit_reference_op_store): Likewise.
27592 (init_scc_vn): Remove shared_lookup_vuses initialization.
27593 (free_scc_vn): Remove shared_lookup_vuses freeing.
27594 (sort_vuses, sort_vuses_heap): Remove.
27595 (get_ref_from_reference_ops): Export.
27596 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
27597 vector with single vuse pointer.
27598 (vn_reference_lookup_pieces, vn_reference_lookup,
27599 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
27600 (shared_vuses_from_stmt): Remove.
27601 (get_ref_from_reference_ops): Declare.
27602 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
27603 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
27604 memory-tag related code.
27605 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
27606 (likely_value): Add comment, skip static-chain of call statements.
27607 (surely_varying_stmt_p): Adjust.
27608 (gimplify_and_update_call_from_tree): Likewise.
27609 (execute_fold_all_builtins): Do not rebuild alias info.
27610 (gimplify_and_update_call_from_tree): Properly update VOPs.
27611 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
27612 (copy_ref_info): Remove memory-tag related code.
27613 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
27614 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
27615 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
27617 * tree-ssa-dom.c (gimple_p): Remove typedef.
27618 (eliminate_redundant_computations): Adjust.
27619 (record_equivalences_from_stmt): Likewise.
27620 (avail_expr_hash): Likewise.
27621 (avail_expr_eq): Likewise.
27622 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
27623 (stmt_makes_single_load): Likewise.
27624 (stmt_makes_single_store): Likewise.
27625 * tree-ssa-alias.c: Rewrite completely.
27626 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
27627 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
27628 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
27629 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
27630 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
27631 Remove public functions.
27632 (pass_reset_cc_flags): Remove.
27633 (pass_build_alias): Move ...
27634 * tree-ssa-structalias.c (pass_build_alias): ... here.
27635 * tree-ssa-alias.c (may_be_aliased): Move ...
27636 * tree-flow-inline.h (may_be_aliased): ... here.
27637 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
27638 count_uses_and_derefs): Move ...
27639 * gimple.c: ... here.
27640 * gimple.h (count_uses_and_derefs): Declare.
27641 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
27642 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
27643 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
27644 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
27645 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
27646 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
27647 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
27649 * tree-dfa.c (refs_may_alias_p): Move ...
27650 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
27651 * tree-ssa-alias.h: New file.
27652 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
27653 (statement_sink_location): Likewise.
27654 * opts.c (decode_options): Do not adjust max-aliased-vops or
27655 avg-aliased-vops values.
27656 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
27657 (TV_CALL_CLOBBER): Likewise.
27658 (TV_FLOW_SENSITIVE): Likewise.
27659 (TV_FLOW_INSENSITIVE): Likewise.
27660 (TV_MEMORY_PARTITIONING): Likewise.
27661 (TV_ALIAS_STMT_WALK): New timevar.
27662 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
27663 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
27664 (get_address_description): Remove memory-tag related code.
27665 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
27666 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
27667 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
27668 and immediate uses in statements. Document.
27669 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
27670 (dump_symbols): Remove.
27671 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
27672 * alias.c (get_deref_alias_set): New function split out from ...
27673 (get_alias_set): ... here.
27674 * alias.h (get_deref_alias_set): Declare.
27675 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
27676 type parameter. Remove restrict pointer handling. Create a
27677 ref-all pointer in case type-based alias sets do not conflict.
27678 (vect_analyze_data_refs): Remove SMT related code.
27679 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
27680 (vectorizable_load): Likewise.
27681 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
27682 (DR_SYMBOL_TAG, DR_VOPS): Remove.
27683 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
27684 Ignore vops and SMTs.
27685 (dr_analyze_alias): Likewise..
27686 (free_data_ref): Likewise.
27687 (create_data_ref): Likewise.
27688 (analyze_all_data_dependences): Likewise.
27689 (get_references_in_stmt): Adjust.
27690 * tree-flow-inline.h (gimple_aliases_computed_p,
27691 gimple_addressable_vars, gimple_call_clobbered_vars,
27692 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
27693 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
27694 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
27695 gimple_mem_ref_stats): Remove.
27696 (gimple_vop): New function.
27697 (op_iter_next_use): Remove vuses and mayuses cases.
27698 (op_iter_next_def): Remove vdefs case.
27699 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
27700 (clear_and_done_ssa_iter): Do not set removed fields.
27701 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
27702 Assert we are not iterating over vuses or vdefs if not also
27703 iterating over uses or defs.
27704 (op_iter_init_use): Likewise.
27705 (op_iter_init_def): Likewise.
27706 (op_iter_next_vdef): Remove.
27707 (op_iter_next_mustdef): Likewise.
27708 (op_iter_init_vdef): Likewise.
27709 (compare_ssa_operands_equal): Likewise.
27710 (link_use_stmts_after): Handle vuse operand.
27711 (is_call_used): Use is_call_clobbered.
27712 (is_call_clobbered): Global variables are always call clobbered,
27713 query the call-clobbers bitmap.
27714 (mark_call_clobbered): Ignore global variables.
27715 (clear_call_clobbered): Likewise.
27716 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
27717 virtual operands sanity check.
27718 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
27720 (TARGET_MEM_REF): Remove TMR_TAG operand.
27721 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
27722 Remove call-clobber related code.
27723 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
27724 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
27725 partitions or escape reason.
27726 (get_single_def_stmt, get_single_def_stmt_from_phi,
27727 get_single_def_stmt_with_phi): Remove.
27728 (dump_referenced_vars): Tidy.
27729 (get_ref_base_and_extent): Allow bare decls.
27730 (collect_dfa_stats): Adjust.
27731 * graphite.c (rename_variables_in_stmt): Adjust.
27732 (graphite_copy_stmts_from_block): Likewise.
27733 (translate_clast): Likewise.
27734 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
27736 (translate_vuse_through_block): Use the oracle.
27737 (phi_translate_1): Adjust.
27738 (value_dies_in_block_x): Use the oracle. Cache the outcome
27740 (valid_in_sets): Check if the VUSE for
27741 a REFERENCE is available.
27742 (eliminate): Do not remove stmts during elimination,
27743 instead queue and remove them afterwards.
27744 (do_pre): Do not rebuild alias info.
27745 (pass_pre): Run TODO_rebuild_alias before PRE.
27746 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
27747 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
27748 (mark_all_v_defs_stmt): Remove.
27749 (mark_all_v_defs_seq): Adjust.
27750 (sra_replace): Likewise.
27751 (scalarize_use): Likewise.
27752 (scalarize_copy): Likewise.
27753 (scalarize_init): Likewise.
27754 (scalarize_ldst): Likewise.
27755 (todoflags): Remove.
27756 (tree_sra): Do not rebuild alias info.
27757 (tree_sra_early): Adjust.
27758 (pass_sra): Run TODO_update_address_taken before SRA.
27759 * tree-predcom.c (set_alias_info): Remove.
27760 (prepare_initializers_chain): Do not call it.
27761 (mark_virtual_ops_for_renaming): Adjust.
27762 (mark_virtual_ops_for_renaming_list): Remove.
27763 (initialize_root_vars): Adjust.
27764 (initialize_root_vars_lm): Likewise.
27765 (prepare_initializers_chain): Likewise.
27766 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
27767 (may_propagate_copy_into_stmt): Likewise.
27768 (merge_alias_info): Do nothing for now.
27769 (propagate_tree_value_into_stmt): Adjust.
27770 (stmt_may_generate_copy): Likewise.
27771 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
27772 not mark symbols for renaming.
27773 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
27774 with the same statement, make sure to update the new pointed-to one.
27775 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
27776 call statements, do not mark symbols for renaming.
27777 (mark_operand_necessary): Dump something.
27778 (ref_may_be_aliased): New function.
27779 (mark_aliased_reaching_defs_necessary_1): New helper function.
27780 (mark_aliased_reaching_defs_necessary): Likewise.
27781 (mark_all_reaching_defs_necessary_1): Likewise.
27782 (mark_all_reaching_defs_necessary): Likewise.
27783 (propagate_necessity): Do not process virtual PHIs. For
27784 non-aliased loads mark all reaching definitions as necessary.
27785 For aliased loads and stores mark the immediate dominating
27786 aliased clobbers as necessary.
27787 (visited): New global static.
27788 (perform_tree_ssa_dce): Free visited bitmap after propagating
27790 (remove_dead_phis): Perform simple dead virtual PHI removal.
27791 (remove_dead_stmt): Properly unlink virtual operands when
27793 (eliminate_unnecessary_stmts): Schedule PHI removal after
27795 * tree-ssa-ter.c (is_replaceable_p): Adjust.
27796 (process_replaceable): Likewise.
27797 (find_replaceable_in_bb): Likewise.
27798 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
27799 based on the single gimple vop.
27800 (verify_flow_insensitive_alias_info): Remove.
27801 (verify_flow_sensitive_alias_info): Likewise.
27802 (verify_call_clobbering): Likewise.
27803 (verify_memory_partitions): Likewise.
27804 (verify_alias_info): Likewise.
27805 (verify_ssa): Adjust..
27806 (execute_update_addresses_taken): Export. Update SSA
27807 manually. Optimize only when optimizing. Use a local bitmap.
27808 (pass_update_address_taken): Remove TODO_update_ssa, add
27810 (pass_update_address_taken): Just use TODO_update_address_taken.
27811 (init_tree_ssa): Do not initialize addressable_vars.
27812 (verify_ssa): Verify new VUSE / VDEF properties.
27813 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
27814 Do not call verify_alias_info.
27815 (delete_tree_ssa): Clear the VUSE, VDEF operands.
27816 Do not free the loaded and stored syms bitmaps. Reset the escaped
27817 and callused solutions. Do not free addressable_vars.
27818 Remove memory-tag related code.
27819 (warn_uninitialized_var): Aliases are always available.
27820 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
27821 * lambda-code.c (can_put_in_inner_loop): Adjust.
27822 (can_put_after_inner_loop): Likewise.
27823 (perfect_nestify): Likewise.
27824 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
27825 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
27826 (vectorizable_conversion): Do not mark symbols for renaming.
27827 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
27828 (expand_call_inline): Unlink the calls virtual operands before
27830 (tree_function_versioning): Do not call update_ssa if we are not
27831 updating clones. Simplify.
27832 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
27833 (propagate_with_phi): Likewise..
27834 * tree-outof-ssa.c (create_temp): Remove memory tag and call
27835 clobber code. Assert we are not aliased or global.
27836 * tree-flow.h: Include tree-ssa-alias.h
27837 (enum escape_type): Remove.
27838 (struct mem_sym_stats_d): Likewise.
27839 (struct mem_ref_stats_d): Likewise.
27840 (struct gimple_df): Add vop member. Remove global_var,
27841 call_clobbered_vars, call_used_vars, addressable_vars,
27842 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
27843 escaped and callused members.
27844 (struct ptr_info_def): Remove all members, add points-to solution
27846 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
27847 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
27848 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
27849 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
27850 (tree-ssa-alias.o): Likewise.
27851 (toplev.o): Add tree-ssa-alias.h
27852 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
27853 * gimple.c (gimple_set_bb): Fix off-by-one error.
27854 (is_gimple_reg): Do not handle memory tags.
27855 (gimple_copy): Also copy virtual operands.
27856 Delay updating the statement. Do not reset loaded and stored syms.
27857 (gimple_set_stored_syms): Remove.
27858 (gimple_set_loaded_syms): Likewise.
27859 (gimple_call_copy_skip_args): Copy the virtual operands
27860 and mark the new statement modified.
27861 * tree-ssa-structalias.c (may_alias_p): Remove.
27862 (set_uids_in_ptset): Take the alias set to prune with as
27863 parameter. Fold in the alias test of may_alias_p.
27864 (compute_points_to_sets): Compute whether a ptr is dereferenced
27865 in a local sbitmap.
27866 (process_constraint): Deal with &ANYTHING on the lhs, reject all
27867 other ADDRESSOF constraints on the lhs.
27868 (get_constraint_for_component_ref): Assert that we don't get
27869 ADDRESSOF constraints from the base of the reference.
27870 Properly generate UNKNOWN_OFFSET for DEREF if needed.
27871 (struct variable_info): Remove collapsed_to member.
27872 (get_varinfo_fc): Remove.
27873 (new_var_info): Do not set collapsed_to.
27874 (dump_constraint): Do not follow cycles.
27875 (dump_constraint_graph): Likewise.
27876 (build_pred_graph): Likewise.
27877 (build_succ_graph): Likewise.
27878 (rewrite_constraints): Likewise.
27879 (do_simple_structure_copy): Remove.
27880 (do_rhs_deref_structure_copy): Remove.
27881 (do_lhs_deref_structure_copy): Remove.
27882 (collapse_rest_of_var): Remove.
27883 (do_structure_copy): Re-implement.
27884 (pta_stats): New global variable.
27885 (dump_pta_stats): New function.
27886 (struct constraint_expr): Make offset signed.
27887 (UNKNOWN_OFFSET): Define special value.
27888 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
27889 (solution_set_expand): New helper function split out from ...
27890 (do_sd_constraint): ... here.
27891 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
27892 (do_ds_constraint): Likewise.
27893 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
27894 and CALLUSED = *CALLUSED.
27895 (set_union_with_increment): Make inc argument signed.
27896 (type_safe): Remove.
27897 (get_constraint_for_ptr_offset): Handle unknown and negative
27899 (first_vi_for_offset): Handle offsets before start. Bail
27900 out early for offsets beyond the variable extent.
27901 (first_or_preceding_vi_for_offset): New function.
27902 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
27903 Together with ESCAPED = *ESCAPED this properly computes reachability.
27904 (find_what_var_points_to): New function.
27905 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
27906 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
27907 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
27908 pt_solutions_intersect): New functions.
27909 (compute_call_used_vars): Remove.
27910 (compute_may_aliases): New main entry into PTA computation.
27911 * gimple.h (gimple_p): New typedef.
27912 (struct gimple_statement_base): Remove references_memory_p.
27913 (struct gimple_statement_with_memory_ops_base): Remove
27914 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
27916 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
27917 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
27918 gimple_set_references_memory): Remove.
27919 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
27920 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
27922 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
27923 (verify_expr): Allow RESULT_DECL.
27924 (gimple_duplicate_bb): Do not copy virtual operands.
27925 (gimple_duplicate_sese_region): Adjust.
27926 (gimple_duplicate_sese_tail): Likewise.
27927 (mark_virtual_ops_in_region): Remove.
27928 (move_sese_region_to_fn): Do not call it.
27929 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
27930 and pass_simple_dse.
27931 (execute_function_todo): Handle TODO_update_address_taken,
27932 call execute_update_addresses_taken for TODO_rebuild_alias.
27933 (execute_todo): Adjust.
27934 (execute_one_pass): Init dump files early.
27935 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
27937 (create_general_new_stmt): Clear vops.
27938 * tree-ssa-reassoc.c (get_rank): Adjust.
27939 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
27940 symbols for renaming.
27941 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
27942 (PARAM_AVG_ALIASED_VOPS): Likewise.
27943 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
27944 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
27945 * tree-ssa-operands.c: Simplify for new virtual operand representation.
27946 (operand_build_cmp, copy_virtual_operands,
27947 create_ssa_artificial_load_stmt, add_to_addressable_set,
27948 gimple_add_to_addresses_taken): Remove public functions.
27949 (unlink_stmt_vdef): New function.
27951 2009-04-03 Alan Modra <amodra@bigpond.net.au>
27953 * config.gcc (powerpc-*-linux*): Merge variants.
27955 2009-04-02 Chao-ying Fu <fu@mips.com>
27956 James Grosbach <james.grosbach@microchip.com>
27958 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
27959 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
27961 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
27962 keep_interrupts_masked_p, use_debug_exception_return_p.
27963 (mips_attribute_table): Add interrupt, use_shadow_register_set,
27964 keep_interrupts_masked, use_debug_exception_return.
27965 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
27966 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
27968 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
27969 (mips_print_operand): Process COP0 registers to print $0 .. $31
27970 correctly for GAS to process.
27971 (mips_interrupt_extra_call_saved_reg_p): New function.
27972 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
27974 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
27975 (mips_compute_frame_info): Add supports for interrupt context that
27976 includes doubleword accumulators and COP0 registers.
27977 (mips_for_each_saved_acc): New function.
27978 (mips_for_each_saved_gpr_and_fpr): Change the function name from
27979 mips_for_each_saved_reg.
27980 (mips_save_reg): Save accumulators.
27981 (mips_kernel_reg_p): A new for_each_rtx callback.
27982 (mips_expand_prologue): Support interrupt handlers.
27983 (mips_restore_reg): Restore accumulators.
27984 (mips_expand_epilogue): Support interrupt handlers.
27985 (mips_can_use_return_insn): Return false for interrupt handlers.
27986 (mips_epilogue_uses): New function.
27987 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
27988 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
27989 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
27990 cop0_move): New instructions.
27991 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
27992 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
27994 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
27996 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
27997 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
27998 interrupt handlers, we use K0 as the temporary register.
27999 (EPILOGUE_USES): Change to a function call.
28000 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
28001 handlers, we use K0 as the temporary register.
28003 * doc/extend.texi (Function Attributes): Document interrupt,
28004 use_shadow_register_set, keep_interrupts_masked,
28005 use_debug_exception_return for MIPS attributes.
28007 2009-04-03 Alan Modra <amodra@bigpond.net.au>
28009 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
28010 Remove a number of t-files from tmake_file.
28011 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
28012 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
28013 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
28014 target_prototype, not TARGET_PROTOTYPE.
28015 (LINK_OS_GNU_SPEC): Define.
28016 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
28017 and darwin-ldoubdle.c.
28019 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28022 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
28023 (cpp_options): Ditto.
28024 (default_compilers): Ditto.
28025 (display_help): Ditto.
28026 (process_command): Ditto.
28027 (do_spec_1): Ditto.
28028 (set_input): Use lbasename instead of duplicate code.
28029 (save_temps_prefix): New static for -save-temps=obj.
28030 (save_temps_length): Ditto.
28032 * doc/invoke.texi (-save-temps=obj): Document new variant to
28033 -save-temps switch.
28035 2009-04-02 Jeff Law <law@redhat.com>
28037 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
28040 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
28042 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
28043 * configure: Regenerated.
28045 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
28047 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
28048 share the argument list.
28050 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
28054 2009-02-12 Diego Novillo <dnovillo@google.com>
28056 * varpool.c (debug_varpool): New.
28057 * cgraph.h (debug_varpool): Declare.
28059 2009-04-02 Jan Hubicka <jh@suse.cz>
28061 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
28064 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
28066 * config/i386/i386.c (ix86_abi): Move initialization to ...
28067 (override_options): Here.
28069 2009-04-02 Christian Bruel <christian.bruel@st.com>
28071 * config/sh/sh.c (sh_dwarf_register_span): New function.
28072 (TARGET_DWARF_REGISTER_SPAN): Define.
28073 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
28075 2009-04-02 Ira Rosen <irar@il.ibm.com>
28077 PR tree-optimization/39595
28078 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
28079 interleaved loads group is not greater than the SLP group size.
28081 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
28083 * builtins.c (is_builtin_name): New.
28084 (called_as_built_in): Use is_builtin_name.
28085 * tree.h (is_builtin_name): New.
28086 * varasm.c (incorporeal_function_p): Use is_builtin_name
28088 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
28090 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
28092 2009-04-02 Dodji Seketeli <dodji@redhat.com>
28095 * c-decl.c (clone_underlying_type): Move this ...
28096 * c-common.c (set_underlying_type): ... here.
28097 Also, make sure the function properly sets TYPE_STUB_DECL() on
28098 the newly created typedef variant type.
28099 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
28100 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
28103 2009-04-02 Richard Guenther <rguenther@suse.de>
28105 PR tree-optimization/37221
28106 * tree-flow.h (degenerate_phi_result): Declare.
28107 * tree-ssa-dom.c (degenerate_phi_result): Export.
28108 * tree-scalar-evolution.c (analyze_initial_condition): If
28109 the initial condition is defined by a degenerate PHI node
28110 use the degenerate value.
28112 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
28114 PR rtl-optimization/39588
28115 * combine.c (merge_outer_ops): Do not set the constant when this
28117 (simplify_shift_const_1): Do not modify it either in this case.
28119 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
28121 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
28122 tuning is deprecated if -mtune value is set to an Itanium1 variant.
28124 2009-04-01 Janis Johnson <janis187@us.ibm.com>
28127 * c-lex.c (interpret_float): Default (no suffix) is double.
28129 2009-04-1 Xinliang David Li <davidxl@google.com>
28131 * config/i386/i386.c (legitimate_constant_p): Recognize
28132 all one vector constant.
28134 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
28136 * config/vax/vax.c: Add #includes to silence warnings.
28137 Change #include order to silence two warnings.
28139 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
28141 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
28142 (ASM_SPEC): Pass -k to the assembler for PIC code.
28144 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
28146 * config.gcc: Add vax-*-linux* to the switch.
28147 * config/vax/linux.h: New file. (TARGET_VERSION,
28148 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
28150 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
28152 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
28153 Use predicate macros instead of GET_CODE() == foo.
28154 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
28155 ashlsi3, rotrsi3, <unnamed>): Likewise.
28157 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
28159 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
28160 jbbccihi, jbbccisi): Remova trailing whitespace.
28161 * config/vax/constraints.md: Likewise.
28162 * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
28163 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
28164 * config/vax/predicates.md: Likewise.
28165 * config/vax/vax.c (print_operand_address, vax_output_int_move,
28166 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
28167 * config/vax/vax.h: Likewise.
28168 * config/vax/vax.md (nonlocal_goto): Likewise.
28170 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
28172 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
28173 (indirectable_address_p, adjacent_operands_p): Add spaces around
28175 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
28177 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
28179 * config/vax/vax.c (legitimate_constant_address_p,
28180 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
28181 index_term_p, reg_plus_index_p, legitimate_address_p,
28182 vax_mode_dependent_address_p): Update comments to match functions
28183 modified by the recent int->bool conversion.
28185 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
28187 * config/vax/builtins.md: Update copyright message.
28188 * config/vax/constraints.md: Likewise.
28189 * config/vax/netbsd-elf.h: Likewise.
28190 * config/vax/predicates.md: Likewise.
28191 * config/vax/vax-protos.h: Likewise.
28192 * config/vax/vax.c: Likewise.
28193 * config/vax/vax.h: Likewise.
28194 * config/vax/vax.md: Likewise.
28195 * config/vax/vax.opt: Likewise.
28197 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
28199 * config/vax/builtins.md (ffssi2, ffssi2_internal,
28200 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
28201 * config/vax/constraints.md (B, R): Likewise.
28202 * config/vax/predicates.md (external_memory_operand,
28203 nonimmediate_addsub_di_operand): Likewise.
28204 * config/vax/vax.c (vax_output_int_add): Likewise.
28205 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
28206 untyped_call): Likewise.
28208 2009-04-01 Matt Thomas <matt@3am-software.com>
28210 * config/vax/predicates.md: New file.
28211 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
28212 external_const_operand, nonsymbolic_operand, external_memory_operand,
28213 indirect_memory_operand, indexed_memory_operand,
28214 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
28215 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
28217 * config/vax/constraints.md: New file.
28218 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
28220 * config/vax/builtins.md: New file.
28221 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
28222 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
28224 * config/vax/vax.opt (mqmath): Add option.
28225 * config/vax/vax.md (isfx): Extend with DI.
28226 (VAXintQH, VAXintQHSD): Define.
28227 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
28228 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
28229 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
28230 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
28231 (movdi): Update constraints and use vax_output_int_move().
28232 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
28233 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
28234 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
28235 nonlocal_goto): New.
28236 (mov<mode>): Extend accepted operand types.
28237 (subdi3_old): Rename from subdi3, change update constraints and use
28238 a new implementation.
28239 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
28240 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
28241 MOVE_RATIO, CLEAR_RATIO): Define.
28242 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
28243 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
28244 (PRINT_OPERAND): Redefine using a function instead of inlined code.
28245 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
28246 (split_quadword_operands): Make static and really allow variable
28248 (print_operand_address): Update for PIC generation.
28249 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
28250 indexable_address_p, fixup_mathdi_operand,
28251 vax_expand_addsub_di_operands, adjacent_operands_p): New.
28252 (vax_float_literal, legitimate_constant_p,
28253 indirectable_constant_address_p, index_term_p,
28254 reg_plus_index_p): Return bool instead of int.
28255 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
28257 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
28259 (vax_output_conditional_branch): Indent.
28260 (legitimate_constant_address_p, indirectable_constant_address_p,
28261 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
28262 vax_mode_dependent_address_p): Return bool instead of int, update for
28264 * config/vax/vax-protos.h (legitimate_constant_address_p,
28265 legitimate_constant_p, legitimate_address_p,
28266 vax_mode_dependent_address_p): Change declaration to bool.
28267 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
28268 vax_expand_addsub_di_operands, vax_output_int_subtract,
28269 vax_output_movmemsi): Declare.
28270 (split_quadword_operands, vax_float_literal): Delete declaration.
28271 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
28272 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
28273 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
28274 ASM_OUTPUT_DWARF_PCREL): Define.
28275 (ASM_SPEC): Change definition to allow PIC generation.
28277 2009-04-01 Steve Ellcey <sje@cup.hp.com>
28279 * doc/sourcebuild.texi: Update front-end requirements.
28281 2009-04-01 Jakub Jelinek <jakub@redhat.com>
28284 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
28285 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
28286 (booldi3_internal3): Use boolean_or_operator instead of
28289 2009-04-01 Joseph Myers <joseph@codesourcery.com>
28292 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
28293 declarator whose size is not an integer constant expression but
28294 folds to an integer constant, then treat it as a constant
28297 2009-04-01 Richard Guenther <rguenther@suse.de>
28299 * fold-const.c (fold_plusminus_mult_expr): Do not fold
28300 i * 4 + 2 to (i * 2 + 1) * 2.
28302 2009-04-01 Jakub Jelinek <jakub@redhat.com>
28305 * c-parser.c (c_parser_asm_statement): Skip until close paren and
28306 return if c_parser_asm_string_literal returned NULL.
28308 2009-04-01 Nick Clifton <nickc@redhat.com>
28310 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
28312 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
28313 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
28314 other typedefs to avoid conflicts with libgcc2.c. Define labels
28315 to gain 16-bit bit-manipulation functions from libgcc2.c and then
28317 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
28318 to gain 16-bit trapping arithmetic functions from libgcc2.c and
28321 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
28323 * varasm.c (default_function_rodata_section): Declare DOT as
28326 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
28327 Andrey Galkin <agalkin@hypercom.com>
28330 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
28331 Make object_name unique for each process.
28333 2009-04-01 Jakub Jelinek <jakub@redhat.com>
28336 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
28337 addressable variables in the parallel that could go out of scope while
28338 running queued tasks.
28340 2009-04-01 Anatoly Sokolov <aesok@post.ru>
28342 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
28343 (CASE_VALUES_THRESHOLD): Redefine.
28344 * config/avr/avr.c (avr_override_options): Remove initialization of
28345 avr_case_values_threshold variable.
28346 (avr_case_values_threshold): Remove variable. Add new function.
28347 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
28348 * config/avr/avr.opt (mno-tablejump): Remove option.
28349 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
28351 2009-04-01 DJ Delorie <dj@redhat.com>
28353 * varasm.c (default_function_rodata_section): Don't assume
28354 anything about where the first '.' in the section name is.
28356 2009-04-01 Alan Modra <amodra@bigpond.net.au>
28358 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
28359 rs6000_emit_stack_tie.
28361 2009-03-31 Ian Lance Taylor <iant@google.com>
28363 * tree-eh.c (tree_remove_unreachable_handlers): Compare
28364 gimple_code with GIMPLE_RESX, not RESX.
28366 2009-03-31 Joseph Myers <joseph@codesourcery.com>
28368 * c-common.c (c_get_ident): New.
28369 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
28371 2009-04-01 Ben Elliston <bje@au.ibm.com>
28373 * config/rs6000/sysv4.opt (msdata): Improve option description.
28375 2009-03-31 Steve Ellcey <sje@cup.hp.com>
28377 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
28378 (divdf3_internal_lat): Remove.
28379 (divxf3_internal_lat): Remove.
28380 (divxf3_internal_thr): Remove.
28381 (divxf): Use divxf3_internal.
28382 * config/ia64/div.md (divsf3_internal_lat): New.
28383 (divdf3_internal_lat): New.
28384 (divxf3_internal): New.
28386 2009-03-31 Joseph Myers <joseph@codesourcery.com>
28389 * Makefile.in (USE_GCC_STDINT): Define.
28390 (stmp-int-hdrs): Install stdint.h if applicable.
28391 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
28393 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
28394 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
28395 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
28396 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
28397 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
28398 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
28399 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
28400 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
28401 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
28402 (c_common_nodes_and_builtins): Initialize
28403 underlying_wchar_type_node. Do not initialize
28404 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
28405 nodes for new types.
28406 (c_stddef_cpp_builtins): Define macros for new types.
28407 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
28409 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
28410 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
28411 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
28412 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
28413 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
28414 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
28415 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
28416 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
28417 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
28418 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
28419 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
28420 int16_type_node, int32_type_node, int64_type_node,
28421 uint8_type_node, uint16_type_node, c_uint32_type_node,
28422 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
28423 int_least32_type_node, int_least64_type_node,
28424 uint_least8_type_node, uint_least16_type_node,
28425 uint_least32_type_node, uint_least64_type_node,
28426 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
28427 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
28428 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
28429 uintptr_type_node): Define.
28430 * c-cppbuiltin.c (builtin_define_constants,
28431 builtin_define_type_minmax): New.
28432 (builtin_define_stdint_macros): Define more macros.
28433 (c_cpp_builtins): Define more limit macros.
28434 (type_suffix): New.
28435 (builtin_define_type_max): Define in terms of
28436 builtin_define_type_minmax. Remove is_long parameter. All
28438 * config.gcc (use_gcc_stdint): Define.
28439 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
28440 Add newlib-stdint.h for generic targets.
28441 * config/glibc-stdint.h, config/newlib-stdint.h,
28442 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
28443 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
28444 * config/score/score.h (UINTPTR_TYPE): Define.
28445 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
28446 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
28447 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
28448 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
28449 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
28450 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
28451 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
28452 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
28453 * config/spu/spu.h (STDINT_LONG32): Define.
28454 * configure.ac (use_gcc_stdint): Substitute.
28455 * configure: Regenerate.
28456 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
28457 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
28458 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
28459 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
28460 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
28461 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
28462 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
28463 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
28464 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
28465 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
28466 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
28467 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
28468 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
28469 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
28470 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
28471 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
28472 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
28473 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
28474 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
28475 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
28476 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
28477 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
28478 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
28479 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
28480 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
28481 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
28482 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
28483 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
28484 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
28486 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
28488 * loop-iv.c (suitable_set_for_replacement): Renamed from
28489 simplify_using_assignment; changed to return bool and to accept new
28490 args DEST and SRC. Return true iff we find a source/destination pair
28491 that can be used to make a replacement, and fill SRC and DEST if so.
28492 Remove arg ALTERED. Don't deal with altered regs here. All callers
28494 (simplify_using_initial_values): Deal with altered regs here and track
28495 more precisely the effect they have on the validity of our expression.
28497 * loop-iv.c (simplify_using_condition): A condition of the form
28498 (EQ REG CONST) can be used to simply make a substitution.
28499 (simplify_using_initial_values): Keep track of conditions we have seen
28500 and keep using them to simplify new expressions, while applying the
28501 same substitutions to them as to the expression.
28503 * simplify-rtx.c (simplify_relational_operation_1): Simplify
28504 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
28507 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
28508 changed. Use this when trying to improve the upper bound.
28509 Generate the comparison by using simplify_gen_relational.
28511 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
28513 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
28515 (simplify_using_assignment, simplify_using_initial_values): Call
28516 replace_in_expr to make replacements. Call replace_single_def_regs
28517 once on the initial version of the expression.
28519 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28522 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
28524 2009-03-31 Richard Guenther <rguenther@suse.de>
28526 PR middle-end/31029
28527 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
28528 equality comparisons. Fold C - X CMP X if C % 2 == 1.
28530 2009-03-31 Richard Guenther <rguenther@suse.de>
28532 * tree.h (div_if_zero_remainder): Declare.
28533 * fold-const.c (div_if_zero_remainder): Export.
28534 * tree-ssa-forwprop.c
28535 (forward_propagate_addr_into_variable_array_index): Handle
28536 constant array index addition outside of the variable index.
28538 2009-03-31 Joseph Myers <joseph@codesourcery.com>
28541 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
28542 define_splits, floatunssi<mode>2): Require x87 conversions from
28543 DImode to be permitted.
28545 2009-03-31 Joseph Myers <joseph@codesourcery.com>
28547 PR preprocessor/15638
28548 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
28550 2009-03-31 Richard Guenther <rguenther@suse.de>
28552 PR middle-end/23401
28553 PR middle-end/27810
28554 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
28555 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
28556 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
28557 a separate statement.
28558 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
28559 (lookup_tmp_var): Likewise.
28560 (is_gimple_formal_tmp_or_call_rhs): Remove.
28561 (is_gimple_reg_or_call_rhs): Rename to ...
28562 (is_gimple_reg_rhs_or_call): ... this.
28563 (is_gimple_mem_or_call_rhs): Rename to ...
28564 (is_gimple_mem_rhs_or_call): ... this.
28565 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
28566 DECL_GIMPLE_REG_P only if is_formal is true.
28567 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
28568 for non-proper post-modify expression gimplification.
28569 (gimplify_self_mod_expr): For post-modify expressions gimplify
28570 the lvalue to a minimal lvalue.
28571 (rhs_predicate_for): Remove formal temp case.
28572 (gimplify_modify_expr_rhs): Likewise.
28573 (gimplify_addr_expr): Use is_gimple_reg.
28574 (gimplify_expr): Remove formal temp cases.
28575 (gimple_regimplify_operands): Likewise.
28576 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
28577 and FILTER_EXPR like constants.
28578 * gimple.c (walk_gimple_op): Fix val_only initialization, use
28580 (is_gimple_formal_tmp_rhs): Remove.
28581 (is_gimple_reg_rhs): Remove special casing.
28582 (is_gimple_mem_rhs): Fix.
28583 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
28584 (is_gimple_formal_tmp_var): Remove.
28585 (is_gimple_formal_tmp_reg): Likewise.
28586 (is_gimple_min_lval): Allow invariant component ref parts.
28587 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
28588 is_gimple_formal_tmp_reg): Remove declarations.
28589 * tree-cfg.c (verify_expr): Verify that variables with address
28590 taken do not have DECL_GIMPLE_REG_P set.
28591 * tree-mudflap.c (mf_build_check_statement_for): Use
28592 force_gimple_operand instead of gimplify_expr.
28594 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
28596 * modulo-sched.c (sms_schedule_by_order): Pass the actual
28597 schedulable rows to compute_split_row.
28599 2009-03-31 Ben Elliston <bje@au.ibm.com>
28602 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
28605 2009-03-31 Alan Modra <amodra@bigpond.net.au>
28607 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
28608 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
28609 * configure: Regenerate.
28610 * config.in: Regenerate.
28611 * config/rs6000/rs6000.opt (mtls-markers): Add.
28612 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
28613 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
28614 (tls_ld_aix, tls_ld_sysv): Likewise.
28615 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
28616 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
28618 2009-03-31 Alan Modra <amodra@bigpond.net.au>
28620 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
28622 2009-03-30 Jan Hubicka <jh@suse.cz>
28624 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
28626 (tree_remove_unreachable_handlers): Cleanup EH predecestor
28627 detection and label handling.
28629 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
28631 * ira-int.h (ira_allocno): Rename left_conflicts_num to
28632 left_conflicts_size.
28633 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
28634 ALLOCNO_LEFT_CONFLICTS_SIZE.
28636 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
28637 remove_allocno_from_bucket_and_push,
28638 allocno_spill_priority_compare, push_allocnos_to_stack,
28639 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
28640 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
28641 (setup_allocno_left_conflicts_num): Ditto. Rename to
28642 setup_allocno_left_conflicts_size.
28643 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
28644 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
28645 setup_allocno_left_conflicts_size instead of
28646 setup_allocno_left_conflicts_num.
28648 * ira-build.c (ira_create_allocno): Use
28649 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
28650 ALLOCNO_LEFT_CONFLICTS_NUM.
28652 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
28654 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
28655 instead of DF_LR_OUT.
28657 * ira-lives.c (process_bb_node_lives): Ditto.
28659 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
28660 instead of DF_LR_{OUT,IN}.
28662 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
28664 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
28666 2009-03-30 Jan Hubicka <jh@suse.cz>
28668 * except.c (label_to_region_map): Fix thinko.
28670 2009-03-30 Steve Ellcey <sje@cup.hp.com>
28672 PR middle-end/38237
28673 * tree.h (tree_find_value): New declaration.
28674 * tree.c (tree_find_value): New function.
28675 * varasm.c (assemble_external): Avoid duplicate entries on lists.
28677 2009-03-30 Jakub Jelinek <jakub@redhat.com>
28680 * c-decl.c (struct c_binding): Add locus field.
28681 (bind): Add locus argument, set locus field from it.
28682 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
28683 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
28684 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
28685 implicitly_declare, undeclared_variable, lookup_label,
28686 declare_label, c_make_fname_decl, c_builtin_function,
28687 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
28690 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
28693 * config/i386/i386.c (classify_argument): Check total size of
28696 2009-03-30 Martin Jambor <mjambor@suse.cz>
28698 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
28699 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
28700 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
28703 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
28704 seen_variable_array_ref while also traversing a union.
28706 * tree-inline.c (optimize_inline_calls): Do not call
28707 cgraph_node_remove_callees.
28708 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
28709 (pass_remove_cgraph_callee_edges): New variable.
28710 * passes.c (init_optimization_passes): Add
28711 pass_remove_cgraph_callee_edges after early inlining and before all
28712 late intraprocedural passes.
28714 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
28716 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
28718 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
28719 Fix typos in names.
28721 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
28723 * combine.c (simplify_comparison): Use have_insn_for.
28724 * dojump.c (do_jump): Likewise.
28726 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
28728 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
28729 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
28730 sparc_compare_op0 like sparc_compare_emitted used to be handled.
28731 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
28732 instead of sparc_compare_emitted.
28733 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
28734 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
28735 instead of sparc_compare_emitted.
28737 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
28739 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
28740 enter/exit cfglayout mode.
28741 (pass_partition_block): Require it.
28742 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
28743 (combine_instructions): Track basic blocks instead of labels.
28744 (update_cfg_for_uncondjump): New.
28745 (try_combine): Use it. Update jumps after rescanning.
28746 (pass_combine): Require PROP_cfglayout.
28747 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
28749 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
28751 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
28752 Provide/destroy PROP_cfglayout respectively.
28753 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
28754 * tree-pass.h (PROP_cfglayout): New.
28756 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
28758 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
28759 fold_convert_const_fixed_from_fixed,
28760 fold_convert_const_fixed_from_int,
28761 fold_convert_const_fixed_from_real, fold_negate_const): Do not
28762 set TREE_CONSTANT_OVERFLOW.
28763 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
28764 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
28766 2009-03-30 Ira Rosen <irar@il.ibm.com>
28768 * tree-vect-loop-manip.c: New file.
28769 * tree-vectorizer.c: Update documentation and included files.
28770 (vect_loop_location): Make extern.
28771 (rename_use_op): Move to tree-vect-loop-manip.c
28772 (rename_variables_in_bb, rename_variables_in_loop,
28773 slpeel_update_phis_for_duplicate_loop,
28774 slpeel_update_phi_nodes_for_guard1,
28775 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
28776 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
28777 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
28778 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
28779 find_loop_location): Likewise.
28780 (new_stmt_vec_info): Move to tree-vect-stmts.c.
28781 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
28782 get_vectype_for_scalar_type, vect_is_simple_use,
28783 supportable_widening_operation, supportable_narrowing_operation):
28785 (bb_in_loop_p): Move to tree-vect-loop.c.
28786 (new_loop_vec_info, destroy_loop_vec_info,
28787 reduction_code_for_scalar_code, report_vect_op,
28788 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
28789 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
28790 (vect_supportable_dr_alignment): Likewise.
28791 * tree-vectorizer.h (tree-data-ref.h): Include.
28792 (vect_loop_location): Declare.
28793 Reorganize function declarations according to the new file structure.
28794 * tree-vect-loop.c: New file.
28795 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
28796 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
28797 * tree-vect-data-refs.c: New file.
28798 * tree-vect-patterns.c (timevar.h): Don't include.
28799 * tree-vect-stmts.c: New file.
28800 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
28801 tree-vect-slp.c, tree-vect-loop.c.
28802 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
28803 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
28804 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
28805 (tree-vect-analyze.o): Remove.
28806 (tree-vect-transform.o): Likewise.
28807 (tree-vect-data-refs.o): Add rule.
28808 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
28809 tree-vect-slp.o): Likewise.
28810 (tree-vect-patterns.o): Remove redundant dependencies.
28811 (tree-vectorizer.o): Likewise.
28812 * tree-vect-slp.c: New file.
28814 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28816 * optc-gen.awk: Warn if an option flag has multiple different
28819 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
28821 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
28822 -floop-block): Document dependences on PPL, CLooG and Graphite.
28824 2009-03-30 Joseph Myers <joseph@codesourcery.com>
28826 PR rtl-optimization/323
28827 * c-common.c (c_fully_fold, convert_and_check,
28828 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
28829 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
28830 * c-common.def (EXCESS_PRECISION_EXPR): New.
28831 * c-cppbuiltin.c (builtin_define_float_constants): Define
28832 constants with enough digits for long double.
28833 * c-lex.c (interpret_float): Interpret constant with excess
28834 precision where appropriate.
28835 * c-opts.c (c_common_post_options): Set
28836 flag_excess_precision_cmdline. Give an error for
28837 -fexcess-precision=standard for C++ for processors where the
28838 option is significant.
28839 * c-parser.c (c_parser_conditional_expression): Handle excess
28840 precision in condition.
28841 * c-typeck.c (convert_arguments): Handle arguments with excess
28843 (build_unary_op): Move excess precision outside operation.
28844 (build_conditional_expr): Likewise.
28845 (build_compound_expr): Likewise.
28846 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
28847 (build_modify_expr): Handle excess precision in RHS.
28848 (convert_for_assignment): Handle excess precision in converted
28850 (digest_init, output_init_element, process_init_element): Handle
28851 excess precision in initializer.
28852 (c_finish_return): Handle excess precision in return value.
28853 (build_binary_op): Handle excess precision in operands and add
28854 excess precision as needed for operation.
28855 * common.opt (-fexcess-precision=): New option.
28856 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
28857 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
28858 For standard excess precision, output explicit conversion to and
28859 truncation from XFmode.
28860 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
28861 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
28862 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
28863 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
28864 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
28865 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
28866 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
28867 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
28868 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
28869 define_splits, sqrt<mode>2): Disable where appropriate for
28870 standard excess precision.
28871 * convert.c (convert_to_real): Do not shorten arithmetic to type
28872 for which excess precision would be used.
28873 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
28874 * doc/invoke.texi (-fexcess-precision=): Document option.
28875 (-mfpmath=): Correct index entry.
28876 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
28877 flag_excess_precision): New.
28878 * langhooks.c (lhd_post_options): Set
28879 flag_excess_precision_cmdline.
28880 * opts.c (common_handle_option): Handle -fexcess-precision=.
28881 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
28882 init_excess_precision): New.
28883 (lang_dependent_init_target): Call init_excess_precision.
28884 * tree.c (excess_precision_type): New.
28885 * tree.h (excess_precision_type): Declare.
28887 2009-03-30 Joseph Myers <joseph@codesourcery.com>
28890 * c-typeck.c (build_component_ref): Do not copy qualifiers from
28891 non-lvalue to component.
28893 2009-03-29 Joseph Myers <joseph@codesourcery.com>
28895 PR preprocessor/34695
28896 * Makefile.in (c-opts.o): Depend on c-tree.h.
28897 * c-common.c: Move down include of diagnostic.h.
28898 (done_lexing, c_cpp_error): New.
28899 * c-common.h (done_lexing): Declare.
28900 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
28902 * c-opts.c: Include c-tree.h.
28903 (c_common_init_options): Set preprocessor error callback.
28904 (c_common_handle_option): Do not set preprocessor
28905 inhibit_warnings, warnings_are_errors, warn_system_headers,
28906 pedantic_errors or inhibit_warnings flags.
28907 (c_common_post_options): Do not check cpp_errors (parse_in).
28908 (c_common_finish): Do not output dependencies if there were
28909 errors. Do not check return value of cpp_finish.
28910 * c-ppoutput.c (pp_file_change): Set input_location.
28911 * c-tree.h (c_cpp_error): Declare.
28912 * diagnostic.c (diagnostic_set_info_translated): Also initialize
28914 (diagnostic_build_prefix): Check override_column.
28915 * diagnostic.h (diagnostic_info): Add override_column field.
28916 (diagnostic_override_column): Define.
28918 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
28920 * c-common.c (c_expand_expr, c_staticp): Remove.
28921 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
28922 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
28923 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
28924 * c-gimplify.c (gimplify_compound_literal_expr,
28925 optimize_compound_literals_in_ctor): Remove.
28926 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
28927 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
28928 * c-semantics.c (emit_local_var): Remove.
28930 * langhooks-def.h (lhd_expand_expr): Remove.
28931 * langhooks.c (lhd_expand_expr): Remove.
28932 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
28934 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
28935 handling from c-semantics.c; don't call into langhook.
28936 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
28937 * gimplify.c (gimplify_compound_literal_expr,
28938 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
28939 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
28940 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
28941 as was done in c-gimplify.c.
28942 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
28943 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
28944 Move from c-common.h.
28945 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
28947 * tree.c (staticp): Do not call langhook.
28948 * langhooks.c (lhd_staticp): Delete.
28949 * langhooks-def.h (lhd_staticp): Delete prototype.
28950 (LANG_HOOKS_STATICP): Delete.
28951 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
28953 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
28954 instead of DECL_STMTs.
28956 2009-03-29 Joseph Myers <joseph@codesourcery.com>
28964 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
28966 (fold_call_expr): Return a NOP_EXPR from folding rather than the
28967 contained expression.
28968 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
28969 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
28970 conditional expressions for C.
28971 (decl_constant_value_for_optimization): Move from
28972 decl_constant_value_for_broken_optimization in c-typeck.c. Check
28973 whether optimizing and that the expression is a VAR_DECL not of
28974 array type instead of doing such checks in the caller. Do not
28975 check pedantic. Call gcc_unreachable for C++.
28976 * c-common.def (C_MAYBE_CONST_EXPR): New.
28977 * c-common.h (c_fully_fold, c_save_expr,
28978 decl_constant_value_for_optimization): New prototypes.
28979 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
28980 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
28981 EXPR_INT_CONST_OPERANDS): Define.
28982 * c-convert.c (convert): Strip nops from expression.
28983 * c-decl.c (groktypename): Take extra parameters expr and
28984 expr_const_operands. Update call to grokdeclarator.
28985 (start_decl): Update call to grokdeclarator. Add statement for
28986 expressions used in type of decl.
28987 (grokparm): Update call to grokdeclarator.
28988 (push_parm_decl): Update call to grokdeclarator.
28989 (build_compound_literal): Add parameter non_const and build a
28990 C_MAYBE_COSNT_EXPR if applicable.
28991 (grokdeclarator): Take extra parameters expr and
28992 expr_const_operands. Track expressions used in declaration
28993 specifiers and declarators. Fold array sizes and track whether
28994 they are constant expressions and whether they are integer
28995 constant expressions.
28996 (parser_xref_tag): Set expr and expr_const_operands fields in
28998 (grokfield): Update call to grokdeclarator.
28999 (start_function): Update call to grokdeclarator.
29000 (build_null_declspecs): Set expr and expr_const_operands fields in
29002 (declspecs_add_type): Handle expressions in typeof specifiers.
29003 * c-parser.c (c_parser_declspecs): Set expr and
29004 expr_const_operands fields for declaration specifiers.
29005 (c_parser_enum_specifier): Likewise.
29006 (c_parser_struct_or_union_specifier): Likewise.
29007 (c_parser_typeof_specifier): Likewise. Update call to
29008 groktypename. Fold expression as needed. Return expressions with
29009 type instead of adding statements.
29010 (c_parser_attributes): Update calls to c_parser_expr_list.
29011 (c_parser_statement_after_labels): Fold expression before passing
29012 to objc_build_throw_stmt.
29013 (c_parser_condition): Fold expression.
29014 (c_parser_asm_operands): Fold expression.
29015 (c_parser_conditional_expression): Use c_save_expr. Update call
29016 to build_conditional_expr.
29017 (c_parser_alignof_expression): Update call to groktypename.
29018 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
29019 original_code. Fold expression argument of va_arg. Create
29020 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
29021 argument to va_arg. Update calls to groktypename. Fold array
29022 index for offsetof. Verify that first argument to
29023 __builtin_choose_expr has integer type.
29024 (c_parser_postfix_expression_after_paren_type): Update calls to
29025 groktypename and build_compound_literal. Handle expressions with
29026 side effects in type name.
29027 (c_parser_postfix_expression_after_primary): Update call to
29028 c_parser_expr_list. Set original_code for calls to
29029 __builtin_constant_p.
29030 (c_parser_expr_list): Take extra parameter fold_p. Fold
29031 expressions if requested.
29032 (c_parser_objc_type_name): Update call to groktypename.
29033 (c_parser_objc_synchronized_statement): Fold expression.
29034 (c_parser_objc_receiver): Fold expression.
29035 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
29036 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
29037 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
29038 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
29039 (struct c_typespec): Add elements expr and expr_const_operands.
29040 (struct c_declspecs): Add elements expr and expr_const_operands.
29041 (groktypename, build_conditional_expr, build_compound_literal):
29043 (in_late_binary_op): Declare.
29044 * c-typeck.c (note_integer_operands): New function.
29045 (in_late_binary_op): New variable.
29046 (decl_constant_value_for_broken_optimization): Move to c-common.c
29047 and rename to decl_constant_value_for_optimization.
29048 (default_function_array_conversion): Do not strip nops.
29049 (default_conversion): Do not call
29050 decl_constant_value_for_broken_optimization.
29051 (build_array_ref): Do not fold result.
29052 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
29053 result when operand is a VLA.
29054 (c_expr_sizeof_type): Update call to groktypename. Handle
29055 expressions included in type name. Use C_MAYBE_CONST_EXPR for
29056 result when operand names a VLA type.
29057 (build_function_call): Update call to build_compound_literal.
29058 Only fold result for calls to __builtin_* functions. Strip
29059 NOP_EXPR from INTEGER_CST returned from such functions. Fold
29060 the function designator.
29061 (convert_arguments): Fold arguments. Update call to
29062 convert_for_assignment.
29063 (build_unary_op): Handle increment and decrement of
29064 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
29065 decrement earlier. Fold operand of increment and decrement.
29066 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
29067 built for integer operand. Wrap returns that are INTEGER_CSTs
29068 without being integer constant expressions or that have integer
29069 constant operands without being INTEGER_CSTs.
29070 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
29071 (build_conditional_expr): Add operand ifexp_bcp. Track whether
29072 result is an integer constant expression or can be used in
29073 unevaluated parts of one and avoid folding and wrap as
29074 appropriate. Fold operands before possibly doing -Wsign-compare
29076 (build_compound_expr): Wrap result for C99 if operands can be used
29077 in integer constant expressions.
29078 (build_c_cast): Update call to digest_init. Do not ignore
29079 overflow from casting floating-point constants to integers. Wrap
29080 results that could be confused with integer constant expressions,
29081 null pointer constants or floating-point constants.
29082 (c_cast_expr): Update call to groktypename. Handle expressions
29083 included in type name.
29084 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
29085 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
29086 Update calls to convert_for_assignment.
29087 (convert_for_assignment): Take new parameter
29088 null_pointer_constant. Do not strip nops or call
29089 decl_constant_value_for_broken_optimization. Set
29090 in_late_binary_op for conversions to boolean.
29091 (store_init_value): Update call to digest_init.
29092 (digest_init): Take new parameter null_pointer_constant. Do not
29093 call decl_constant_value_for_broken_optimization. pedwarn for
29094 initializers not constant expressions. Update calls to
29095 convert_for_assignment.
29096 (constructor_nonconst): New.
29097 (struct constructor_stack): Add nonconst element.
29098 (really_start_incremental_init, push_init_level, pop_init_level):
29099 Handle constructor_nonconst and nonconst element.
29100 (set_init_index): Call constant_expression_warning for array
29102 (output_init_element): Fold value. Set constructor_nonconst as
29103 applicable. pedwarn for initializers not constant expressions.
29104 Update call to digest_init. Call constant_expression_warning
29105 where constant initializers are required.
29106 (process_init_element): Use c_save_expr.
29107 (c_finish_goto_ptr): Fold expression.
29108 (c_finish_return): Fold return value. Update call to
29109 convert_for_assignment.
29110 (c_start_case): Fold switch expression.
29111 (c_process_expr_stmt): Fold expression.
29112 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
29113 ensure statement expression is not evaluated in constant expression.
29114 (build_binary_op): Track whether results are integer constant
29115 expressions or may occur in such, disable folding and wrap results
29116 as applicable. Fold operands for -Wsign-compare warnings unless
29118 (c_objc_common_truthvalue_conversion): Handle results folded to
29119 integer constants that are not integer constant expressions.
29120 * doc/extend.texi: Document when typeof operands are evaluated,
29121 that condition of __builtin_choose_expr is an integer constant
29122 expression, and more about use of __builtin_constant_p in
29125 2009-03-29 Richard Guenther <rguenther@suse.de>
29127 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
29128 propagate addresses of array references.
29130 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
29132 * regmove.c (perhaps_ends_bb_p): Remove.
29133 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
29134 from INSN and check that the main loop stays within that basic block.
29135 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
29136 (regmove_forward_pass): Split out from regmove_optimize. Use
29137 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
29138 (regmove_backward_pass): Split out from regmove_optimize. Use
29139 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
29140 (regmove_optimize): Simplify.
29142 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
29145 * config/i386/i386.c (classify_argument): Ignore flexible array
29146 member in struct and warn ABI change.
29148 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
29150 * config/i386/i386-protos.h (ix86_agi_dependent): New.
29152 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
29153 (ix86_adjust_cost): Updated.
29155 2009-03-29 Jan Hubicka <jh@suse.cz>
29157 PR middle-end/28850
29158 * tree-pass.h (pass_cleanup_eh): New function.
29159 (remove_unreachable_regions): Break code handling RTL
29160 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
29161 that can not be reached by runtime.
29162 (can_be_reached_by_runtime): New function.
29163 (label_to_region_map): New function.
29164 (num_eh_regions): New function.
29165 (rtl_remove_unreachable_regions): New function.
29166 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
29167 (remove_eh_region): New function.
29168 * except.h: Include sbitmap and vecprim.
29169 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
29170 num_eh_regions): Declare.
29171 * passes.c (init_optimization_passes): Schedule cleanup_eh.
29172 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
29173 * tree-eh.c (tree_remove_unreachable_handlers): New function.
29174 (tree_empty_eh_handler_p): New function.
29175 (cleanup_empty_eh): New function.
29176 (cleanup_eh): New function.
29177 (pass_cleanup_eh): New function.
29179 2009-03-29 Jan Hubicka <jh@suse.cz>
29181 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
29182 for removed regions.
29184 2009-03-29 Jan Hubicka <jh@suse.cz>
29186 * except.c (dump_eh_tree): Dump all datastructures.
29188 2009-03-29 Jan Hubicka <jh@suse.cz>
29190 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
29191 (duplicate_eh_regions_1): Likewise.
29192 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
29193 vector; call EH verification.
29194 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
29195 Be ready for region being removed.
29197 2009-03-29 Jan Hubicka <jh@suse.cz>
29199 * bitmap.c (bitmap_last_set_bit): New function.
29200 * bitmap.h (bitmap_last_set_bit): Declare.
29202 2009-03-29 David Ayers <ayers@fsfe.org>
29205 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
29206 by calling objc_compare_types and surpress warnings about
29207 incompatible C pointers that are compatible ObjC pointers.
29209 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
29211 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
29212 call initialize_inline_failed.
29213 (initialize_inline_failed): Move it from here ...
29214 * cgraph.c (initialize_inline_failed): ... to here.
29215 (cgraph_create_edge): Call initialize_inline_failed rather than
29216 setting inline_failed directly.
29218 2009-03-29 Ben Elliston <bje@au.ibm.com>
29221 * sysv4.opt (msdata): Improve comment.
29222 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
29223 * sysv4.h (SVR4_ASM_SPEC): Likewise.
29225 2009-03-29 Ben Elliston <bje@au.ibm.com>
29228 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
29229 load and store attributes.
29231 2009-03-29 Ben Elliston <bje@au.ibm.com>
29233 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
29234 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
29235 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
29236 * doc/extend.texi (X86 Built-in Functions): Add index entries for
29237 __builtin_infq and __builtin_huge_valq.
29239 2009-03-28 Anatoly Sokolov <aesok@post.ru>
29241 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
29243 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
29244 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
29246 2009-03-28 Xinliang David Li <davidxl@google.com>
29248 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
29249 (do_dbg_cnt): New function.
29251 2009-03-28 Jan Hubicka <jh@suse.cz>
29253 Merge from pretty-ipa:
29255 2009-03-27 Jan Hubicka <jh@suse.cz>
29257 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
29258 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
29259 * passes.c (function_called_by_processed_nodes_p): New.
29260 * ipa-pure-const.c (check_call): Fix handling of operands.
29261 (analyze_function): Dump debug output for skipped bodies.
29262 (local_pure_const): Use function_called_by_processed_nodes_p.
29263 * dwarf2out.c (reference_to_unused): Use output.
29264 * passes.c (do_per_function_toporder): Likewise.
29266 2008-11-12 Jan Hubicka <jh@suse.cz>
29268 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
29269 * ipa-pure-const.c (funct_state_d): Add can throw field; make
29270 state_set_in_source enum
29271 (check_decl): Ignore memory tags; do not set fake looping flags;
29273 (check_operand, check_tree, check_rhs_var, check_lhs_var,
29274 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
29275 (check_call, analyze_function): Rewrite.
29277 (add_new_function): Update call of analyze_function.
29278 (generate_summary): Add call of analyze_function.
29279 (propagate): Propagate can_throw; handle state_set_in_source correctly.
29280 (local_pure_const): New function.
29281 (pass_local_pure_const): New pass.
29282 * ipa-inline.c (inline_transform): Set after_inlining.
29283 * tree-eh.c (stmt_can_throw_external): New.
29284 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
29285 work with aliasing built.
29286 * tree-flow.h (stmt_can_throw_external): New.
29287 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
29288 and local pure/const pass in early and late optimization queue.
29290 2009-03-28 Martin Jambor <mjambor@suse.cz>
29292 * fold-const.c (get_pointer_modulus_and_residue): New parameter
29294 (fold_binary): Allow function decl aligment consideration is the
29295 second argument is integer constant one.
29296 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
29297 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
29298 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
29300 2009-03-28 Jan Hubicka <jh@suse.cz>
29302 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
29303 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
29304 * function.h (rtl_data): Add nothrow flag.
29305 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
29306 set DECL_NOTHROW for AVAILABLE functions.
29308 2009-03-28 Jakub Jelinek <jakub@redhat.com>
29310 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
29311 following vector keyword has expansion starting with pixel or bool
29312 keyword, expand vector to __vector and pixel or bool to __pixel or
29316 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
29317 warn_if_disallowed_function_p): Removed.
29318 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
29319 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
29320 warning_if_disallowed_function_p.
29321 * flags.h (warn_if_disallowed_function_p,
29322 warn_disallowed_functions): Removed.
29323 * common.opt (Wdisallowed-function-list=): Removed.
29324 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
29326 2009-03-28 Richard Guenther <rguenther@suse.de>
29328 PR tree-optimization/38723
29329 * tree-ssa-pre.c (compute_avail): Add all default definitions to
29332 2009-03-28 Jan Hubicka <jh@suse.cz>
29334 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
29335 test introduced by my previous patch.
29337 2009-03-28 Richard Guenther <rguenther@suse.de>
29339 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
29340 the PHIs value undefined.
29342 2009-03-28 Jan Hubicka <jh@suse.cz>
29344 * tree-pass.h (pass_fixup_cfg): New pass.
29345 * ipa-inline.c (inline_transform): Set
29346 always_inline_functions_inlined/after_inlining.
29347 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
29348 (pass_fixup_cfg): New pass.
29349 * passes.c (init_optimization_passes): Add fixup_cfg.
29351 2009-03-28 Richard Guenther <rguenther@suse.de>
29353 PR tree-optimization/38458
29354 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
29355 argument use the arguments copy-of value.
29357 2009-03-28 Richard Guenther <rguenther@suse.de>
29359 PR tree-optimization/38180
29360 * tree-ssa-ccp.c (get_default_value): Simplify.
29361 (likely_value): Likewise.
29362 (surely_varying_stmt_p): Properly handle VOP case.
29363 (ccp_initialize): Likewise.
29364 (ccp_fold): Handle propagating through *&.
29365 (fold_const_aggregate_ref): Also handle decls.
29367 2009-03-28 Jan Hubicka <jh@suse.cz>
29369 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
29370 * cgraph.h (cgraph_node): Likewise.
29371 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
29372 (cgraph_reset_node): Use process flag.
29373 (cgraph_mark_functions_to_output): Likewise.
29374 (cgraph_expand_function): Likewise.
29375 (cgraph_expand_all_functions): Likewise.
29376 (cgraph_output_in_order): Likewise.
29377 * dwarf2out.c (reference_to_unused): Likewise.
29378 * passes.c do_per_function_toporder): Likewise.
29380 2009-03-28 Jan Hubicka <jh@suse.cz>
29382 Bring from lto-branch:
29384 2008-09-03 Doug Kwan <dougkwan@google.com>
29386 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
29387 enums instead of reason strings.
29388 * cgraph.c (cgraph_create_edge): Same.
29389 (cgraph_inline_failed_string): New function.
29390 * cgraph.h (cgraph_inline_failed_t): New enum type.
29391 (cgraph_inline_failed_string): New prototype.
29392 (struct cgraph_edge): Change type of INLINED_FAILED from constant
29393 char pointer to cgraph_inline_failed_t.
29394 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
29395 (cgraph_default_inline_p): Ditto.
29396 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
29397 to cgraph_inline_failed_t pointer.
29398 * cif-code.def: New file.
29399 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
29401 (cgraph_check_inline_limits): Change type of REASON to pointer to
29402 cgraph_inline_failed_t. Replace reason strings with enums.
29403 (cgraph_default_inline_p): Ditto.
29404 (cgraph_recursive_inlining_p): Ditto.
29405 (update_caller_keys): Change type of FAILED_REASON to
29406 cgraph_inline_failed_t.
29407 (cgraph_set_inline_failed): Change type of REASON to pointer to
29408 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
29409 convert enums to strings for text output.
29410 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
29411 to be of type cgraph_inline_failed_t. Replace reason strings with
29412 enums. Call cgraph_inline_failed_string to covert enums
29413 to strings for text output.
29414 (cgraph_decide_inlining): Replace reason strings with enums.
29415 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
29416 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
29418 * tree-inline.c (expand_call_inline): Change type of REASON
29419 to cgraph_inline_failed_t. Replace reason strings with enums.
29420 Call cgraph_inline_failed_string for text output.
29421 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
29424 2009-03-28 Jan Hubicka <jh@suse.cz>
29426 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
29427 cgraph_clone_node): Remove master clone handling.
29428 (cgraph_is_master_clone, cgraph_master_clone): Remove.
29429 * cgraph.h (master_clone): Remove.
29430 (cgraph_is_master_clone, cgraph_master_clone): Remove.
29431 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
29432 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
29434 2009-03-28 Jan Hubicka <jh@suse.cz>
29436 * cgraph.c (cgraph_function_body_availability): Functions declared
29437 inline are always safe to assume that it is not going to be replaced.
29439 2009-03-28 Richard Guenther <rguenther@suse.de>
29441 PR tree-optimization/38513
29442 * tree-ssa-pre.c (eliminate): Remove redundant stores.
29443 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
29444 EXC_PTR_EXPR and FILTER_EXPR.
29445 (get_ref_from_reference_ops): Likewise.
29447 2009-03-28 Richard Guenther <rguenther@suse.de>
29449 PR tree-optimization/38968
29450 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
29451 Use FLOOR_MOD_EXPR to compute misalignment.
29453 2009-03-28 Richard Guenther <rguenther@suse.de>
29455 PR tree-optimization/37795
29456 * tree.h (combine_comparisons): Declare.
29457 * fold-const.c (combine_comparisons): Export.
29458 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
29460 (ifcombine_iforif): Use combine_comparisons.
29462 2009-03-28 Jan Hubicka <jh@suse.cz>
29464 * tree-eh.c (inlinable_call_p): New function.
29465 (make_eh_edges): Use it.
29466 (verify_eh_edges): Use it.
29467 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
29468 * except.c (reachable_next_level): Add inlinable_function argument
29469 (sjlj_find_directly_reachable_regions): Update.
29470 (add_reachable_handler): Do not set saw_any_handlers.
29471 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
29472 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
29473 Add new inlinable call parameter.
29474 (can_throw_internal, can_throw_external): Update.
29475 * except.h (can_throw_internal_1, can_throw_external_1,
29476 foreach_reachable_handler): Update declaration.
29478 2009-03-28 Joseph Myers <joseph@codesourcery.com>
29480 * config/arm/t-arm-coff, config/h8300/coff.h,
29481 config/i386/i386-aout.h, config/i386/i386-coff.h,
29482 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
29483 config/pdp11/2bsd.h, config/rs6000/aix41.h,
29484 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
29485 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
29486 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
29487 sys-types.h: Remove.
29488 * Makefile.in: Remove protoize and fixproto support and references
29490 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
29491 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
29493 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
29494 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
29495 unprotoize$(exeext).
29496 (rest.encap): Don't depend on $(STMP_FIXPROTO)
29497 (.PHONY): Don't depend on proto.
29498 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
29499 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
29500 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
29501 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
29502 build/gen-protos.o, build/scan.o, xsys-protos.h,
29503 build/fix-header$(build_exeext), build/fix-header.o,
29504 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
29505 stmp-install-fixproto): Remove.
29506 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
29507 SYSCALLS.c or fixproto files.
29508 (install-common): Don't install protoize.
29509 (install-headers-tar, install-headers-cpio, install-headers-cp):
29510 Don't depend on $(STMP_FIXPROTO).
29511 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
29512 install fixproto files or write out fixproto settings.
29513 (uninstall): Don't uninstall protoize.
29514 * config.gcc (use_fixproto): Remove.
29515 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
29516 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
29517 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
29518 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
29519 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
29520 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
29521 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
29522 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
29523 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
29524 * config/t-vxworks (STMP_FIXPROTO): Remove.
29525 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
29526 STMP_FIXPROTO): Remove.
29527 * config.in, configure: Regenerate.
29528 * crtstuff.c (gid_t, uid_t): Don't undefine.
29529 * doc/install.texi: Change m68k-coff to m68k-elf in example.
29530 (arm-*-coff, arm-*-aout: Remove target entries.
29531 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
29532 Remove mention of AIX 4.1.
29533 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
29534 * doc/invoke.texi (Running Protoize): Remove.
29535 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
29536 (Protoize Caveats): Remove.
29537 * tsystem.h: Update comments on headers assumed to exist.
29539 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
29541 * genautomata.c: Add a new year to the copyright. Add a new
29543 (struct insn_reserv_decl): Add comments for member bypass_list.
29544 (find_bypass): Remove.
29545 (insert_bypass): New.
29546 (process_decls): Use insert_bypass.
29547 (output_internal_insn_latency_func): Output all bypasses with the
29548 same input insn in one switch case.
29550 * rtl.def (define_bypass): Describe bypass choice.
29551 * doc/md.texi (define_bypass): Ditto.
29553 2009-03-27 Richard Guenther <rguenther@suse.de>
29555 * gimplify.c (mark_addressable): Export.
29556 * tree-flow.h (mark_addressable): Declare.
29557 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
29558 * tree-ssa.c (verify_phi_args): Verify that address taken
29559 variables have TREE_ADDRESSABLE set.
29561 2009-03-27 Richard Guenther <rguenther@suse.de>
29563 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
29564 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
29565 Do not mark decls TREE_ADDRESSABLE.
29566 (build_fold_addr_expr): Adjust.
29567 (fold_addr_expr): Remove.
29568 (fold_unary): Use build_fold_addr_expr.
29569 (fold_comparison): Likewise.
29570 (split_address_to_core_and_offset): Likewise.
29571 * coverage.c (tree_coverage_counter_addr): Mark the array decl
29573 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
29574 (gimplify_modify_expr_to_memcpy): Mark source and destination
29576 * omp-low.c (create_omp_child_function): Mark the object decl
29578 (lower_rec_input_clauses): Mark the var we take the address of
29580 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
29582 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
29584 PR middle-end/39315
29585 * cfgexpand.c (expand_one_stack_var_at): Change alignment
29586 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
29588 2009-03-27 Richard Guenther <rguenther@suse.de>
29590 PR tree-optimization/39120
29591 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
29593 (handle_lhs_call): Process return constraints. Add escape
29594 constraints if necessary.
29595 (handle_const_call): Fill out return constraints. Make nested
29596 case more precise. Avoid consttmp if possible.
29597 (handle_pure_call): Fill out return constraints. Avoid
29598 callused if possible.
29599 (find_func_aliases): Simplify call handling.
29601 2009-03-27 Richard Guenther <rguenther@suse.de>
29603 PR tree-optimization/39120
29604 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
29605 as a representative.
29606 (solve_graph): Do propagate CALLUSED.
29607 (handle_pure_call): Use a scalar constraint from CALLUSED for
29609 (find_what_p_points_to): CALLUSED shall not appear in poins-to
29612 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
29615 * c-common.c (handle_aligned_attribute): Properly check alignment
29616 overflow. Use (1U << i) instead of (1 << i).
29618 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
29620 * expr.h (get_mem_align_offset): Updated.
29622 * tree.h (tree_decl_common): Change align to "unsigned int" and
29623 move it before pointer_alias_set.
29625 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
29626 Jakub Jelinek <jakub@redhat.com>
29629 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
29630 gr_register_operand with gr_reg_or_0_operand.
29631 (cmpxchg_rel_di): Likewise.
29632 (sync_lock_test_and_set<mode>): Likewise.
29634 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
29636 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
29637 (true_regnum): Likewise.
29639 * rtlanal.c (subreg_info): Moved to ...
29640 * rtl.h (subreg_info): Here. New.
29641 (subreg_get_info): New.
29643 * rtlanal.c (subreg_get_info): Make it extern.
29645 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
29648 * config/i386/i386.c (ix86_abi): New.
29649 (override_options): Handle -mabi=.
29650 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
29651 (ix86_call_abi_override): Likewise.
29652 (init_cumulative_args): Likewise.
29653 (function_arg_advance): Likewise.
29654 (function_arg_64): Likewise.
29655 (function_arg): Likewise.
29656 (ix86_pass_by_reference): Likewise.
29657 (ix86_function_value_regno_p): Likewise.
29658 (ix86_build_builtin_va_list_abi): Likewise.
29659 (setup_incoming_varargs_64): Likewise.
29660 (is_va_list_char_pointer): Likewise.
29661 (ix86_init_machine_status): Likewise.
29662 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
29663 (ix86_function_type_abi): Return enum calling_abi. Rewrite
29664 for 64bit. Replace DEFAULT_ABI with ix86_abi.
29665 (ix86_function_abi): Make it static and return enum calling_abi.
29666 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
29668 (ix86_fn_abi_va_list): Updated.
29670 * config/i386/i386.h (ix86_abi): New.
29671 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
29672 (CONDITIONAL_REGISTER_USAGE): Likewise.
29673 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
29674 (machine_function): Likewise.
29676 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
29678 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
29679 (STACK_BOUNDARY): Likewise.
29680 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
29682 * config/i386/i386.opt (mabi=): New.
29684 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
29685 return enum calling_abi.
29686 (ix86_function_type_abi): Likewise.
29687 (ix86_function_abi): Removed.
29689 * doc/invoke.texi: Document -mabi= option for x86.
29691 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29693 * builtins.c (real_dconstp): Delete.
29694 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
29696 2009-03-27 Dodji Seketeli <dodji@redhat.com>
29697 Jakub Jelinek <jakub@redhat.com>
29700 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
29701 (gen_subprogram_die): When a function is explicit, generate the
29702 DW_AT_explicit attribute.
29703 * langhooks.h (struct lang_hooks_for_decls): Add
29704 function_decl_explicit_p langhook.
29705 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
29706 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
29708 2009-03-27 Jakub Jelinek <jakub@redhat.com>
29710 * builtins.c (fold_builtin_memory_op): Optimize memmove
29711 into memcpy if we can prove source and destination don't overlap.
29713 * tree-inline.c: Include gt-tree-inline.h.
29714 (clone_fn_id_num): New variable.
29715 (clone_function_name): New function.
29716 (tree_function_versioning): Use it.
29717 * Makefile.in (GTFILES): Add tree-inline.c.
29719 2009-03-27 Mark Mitchell <mark@codesourcery.com>
29721 * BASE-VER: Change to 4.5.0.
29723 2009-03-27 Xinliang David Li <davidxl@google.com>
29725 PR tree-optimization/39557
29726 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
29728 2009-03-27 Xinliang David Li <davidxl@google.com>
29730 PR tree-optimization/39548
29731 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
29734 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
29736 * c-common.c (pointer_int_sum): Use %wd on return from
29739 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
29741 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
29742 on return from tree_low_cst.
29744 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
29747 * ginclude/stdarg.h (va_copy): Define also for
29748 __GXX_EXPERIMENTAL_CXX0X__.
29750 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29753 * builtins.h (c_strlen): Do not warn here.
29754 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
29755 * c-common.c (pointer_int_sum): Take an explicit location.
29756 Warn about offsets out of bounds.
29757 * c-common.h (pointer_int_sum): Adjust declaration.
29759 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29761 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
29764 2009-03-26 Jakub Jelinek <jakub@redhat.com>
29767 * opts.c (warn_if_disallowed_function_p): Don't assume
29768 get_callee_fndecl must return non-NULL.
29770 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
29772 PR rtl-optimization/39522
29773 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
29774 when reg_reloaded_valid is set.
29776 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29778 * config/spu/divv2df3.c: New file.
29779 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
29780 (DPBIT_FUNCS): Filter out _div_df.
29782 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
29784 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
29785 a jump insn, count that jump in the distance to the loop start.
29787 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
29790 * config/sh/sh.c (calc_live_regs): Fix condition for global
29791 registers except PIC_OFFSET_TABLE_REGNUM.
29793 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
29796 * doc/invoke.texi (-mconsole): New.
29798 (-mno-cygwin): New.
29800 (-mnop-fun-dllimport): New.
29804 (sub section "i386 and x86-64 Windows Options"): New.
29806 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
29808 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
29809 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
29811 2009-03-25 Richard Guenther <rguenther@suse.de>
29813 PR middle-end/39497
29814 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
29817 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
29819 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
29820 neither of haifa/selective schedulers are working.
29822 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29824 * doc/invoke.texi (Debugging Options): Fix description of
29825 -fno-merge-debug-strings.
29827 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
29829 * config/cris/libgcc.ver: New version-script.
29830 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
29832 * configure.ac <GAS features, nop mnemonic>: Add pattern
29833 crisv32-*-* for "nop".
29834 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
29835 * configure: Regenerate.
29837 2009-03-24 Ira Rosen <irar@il.ibm.com>
29839 PR tree-optimization/39529
29840 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
29841 mark_sym_for_renaming for the tag copied to the new vector
29844 2009-03-24 Arthur Loiret <aloiret@debian.org>
29846 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
29847 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
29848 EXTRA_SPEC_FUNCTIONS.
29849 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
29850 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
29851 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
29852 -march and -mtune options.
29854 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
29856 * config/m68k/t-rtems: Add m5329 multilib.
29858 2009-03-24 Dodji Seketeli <dodji@redhat.com>
29859 Jakub Jelinek <jakub@redhat.com>
29862 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
29865 2009-03-23 Jakub Jelinek <jakub@redhat.com>
29868 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
29869 instead of c_parser_expression_conv, if original_code isn't one of the
29870 4 allowed comparison codes, fail.
29872 2009-03-23 Richard Guenther <rguenther@suse.de>
29874 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
29875 * tree.h (struct tree_type): Likewise.
29876 * reload.h (struct insn_chain): Likewise.
29877 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
29878 * function.h (struct function): Likewise.
29879 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
29881 2009-03-23 Jakub Jelinek <jakub@redhat.com>
29883 PR tree-optimization/39516
29884 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
29886 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
29888 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
29889 should be set true if BITS_PER_WORD of target is bigger than 32
29891 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
29893 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
29894 Translate -B-options to -rpath-link. Correct existing
29895 rpath-link and conditionalize on !nostdlib.
29897 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29899 * doc/extend.texi (Function Attributes, Variable Attributes):
29901 * doc/invoke.texi (Debugging Options, Optimize Options)
29902 (i386 and x86-64 Options, MCore Options): Likewise.
29904 2009-03-20 Jakub Jelinek <jakub@redhat.com>
29907 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
29908 it for block local namespace aliases.
29909 (gen_decl_die): Pass context_die to gen_namespace_die.
29911 2009-03-19 Jakub Jelinek <jakub@redhat.com>
29914 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
29915 minimum or maximum value.
29917 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
29919 * reginfo.c (globalize_reg): Recompute derived reg sets.
29921 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
29924 * libgcc2.c (mprotect): Do not use signed arguments for
29925 VirtualProtect, use DWORD arguments. Also fix the 'may
29926 be used uninitialized' warning for the np variable.
29928 2009-03-19 Jakub Jelinek <jakub@redhat.com>
29931 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
29932 functions using regparm calling conventions when not optimizing.
29933 (ix86_function_sseregparm): Similarly for sseregparm calling
29936 2009-03-19 Li Feng <nemokingdom@gmail.com>
29938 PR middle-end/39500
29939 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
29940 dependence if the first conflict is after niter iterations.
29942 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
29944 PR middle-end/38609
29945 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
29946 functions with dynamic stack-pointer adjustments.
29948 2009-03-19 Ben Elliston <bje@au.ibm.com>
29950 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
29951 option; change to -msdata=data.
29953 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29955 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
29958 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
29961 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
29963 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
29965 * doc/invoke.texi (Code Gen Options): Expand discussion of
29968 2009-03-18 Jakub Jelinek <jakub@redhat.com>
29970 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
29971 * matrix-reorg.c (struct matrix_info): Likewise.
29972 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
29973 * rtl.h (struct mem_attrs): Likewise.
29974 * df.h (struct df): Likewise.
29975 * tree-data-ref.h (struct data_dependence_relation): Likewise.
29976 * ira-int.h (struct ira_allocno): Likewise.
29977 * df-scan.c (struct df_collection_rec): Likewise.
29978 * ira.c (struct equivalence): Likewise.
29979 * function.c (struct temp_slot): Likewise.
29980 * cfgloop.h (struct loop): Likewise.
29983 * function.c (use_register_for_decl): When not optimizing, disregard
29984 register keyword for variables with types containing methods.
29986 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
29988 PR middle-end/39447
29989 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
29990 (is_simple_operand): Call contains_component_ref_p before calling data
29991 reference analysis that would fail on COMPONENT_REFs.
29993 * tree-vrp.c (search_for_addr_array): Fix formatting.
29995 2009-03-18 Richard Guenther <rguenther@suse.de>
29997 * tree-vect-transform.c (vect_loop_versioning): Fold the
29998 generated comparisons.
29999 * tree-vectorizer.c (set_prologue_iterations): Likewise.
30000 (slpeel_tree_peel_loop_to_edge): Likewise.
30002 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30004 PR middle-end/37805
30005 * opts.c (print_specific_help): In addition to `undocumented',
30006 accept `separate' and `joined' flags if passed alone. Describe
30007 output by the first matched one of those.
30008 (common_handle_option): Skip over empty strings.
30009 * gcc.c (display_help): Fix help string for `--help='.
30010 * doc/invoke.texi (Option Summary, Overall Options): With
30011 `--help=', classes and qualifiers can both be repeated, but
30012 only the latter can be negated. One should not pass only
30013 negated qualifiers. Fix markup and examples.
30016 2008-10-14 Jakub Jelinek <jakub@redhat.com>
30017 PR middle-end/37805
30018 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
30019 and -fhelp=separate.
30021 2009-03-17 Jing Yu <jingyu@google.com>
30023 PR middle-end/39378
30024 * function.h (struct rtl_data): Move is_thunk from here...
30025 (struct function): ...to here.
30026 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
30027 * varasm.c (assemble_start_function): Change is_thunk from crtl to
30029 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
30031 (alpha_does_function_need_gp, alpha_start_function): Likewise.
30032 (alpha_output_function_end_prologue): Likewise.
30033 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
30034 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
30035 (rs6000_output_function_epilogue): Likewise.
30036 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
30038 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
30041 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
30042 from different units in a single alternative.
30043 (*truncdfsf_i387): Ditto.
30044 (*truncxfsf2_mixed): Ditto.
30045 (*truncxfdf2_mixed): Ditto.
30047 2009-03-17 Jakub Jelinek <jakub@redhat.com>
30049 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
30050 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
30053 * tree-ssa-live.c (remove_unused_locals): Don't remove local
30054 unused non-artificial variables when not optimizing.
30057 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
30058 DW_TAG_imported_module even if decl is IMPORTED_DECL with
30059 NAMESPACE_DECL in its DECL_INITIAL.
30061 PR middle-end/39443
30062 * optabs.c (set_user_assembler_libfunc): New function.
30063 * expr.h (set_user_assembler_libfunc): New prototype.
30064 * c-common.c: Include libfuncs.h.
30065 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
30066 for memcmp, memset, memcpy, memmove and abort.
30067 * Makefile.in (c-common.o): Depend on libfuncs.h.
30070 * dwarf2out.c (gen_inlined_enumeration_type_die,
30071 gen_inlined_structure_type_die, gen_inlined_union_type_die,
30072 gen_tagged_type_instantiation_die): Removed.
30073 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
30076 2009-03-17 Janis Johnson <janis187@us.ibm.com>
30079 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
30081 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
30082 (check-parallel-%): Ditto.
30083 (check-consistency): Ditto.
30085 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
30087 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
30088 local variable rhs by NULL_TREE.
30090 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
30093 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
30095 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
30098 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
30100 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
30103 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
30104 for ms->sysv ABI calls only in 64bit mode.
30106 * config/i386/i386.md (untyped_call): Support 32bit.
30108 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
30110 * doc/extend.texi: Replace x86_65 with x86_64.
30112 2009-03-16 Jakub Jelinek <jakub@redhat.com>
30114 PR tree-optimization/39455
30115 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
30116 mismatches for POINTER_TYPE_P (type).
30117 (number_of_iterations_le): Likewise.
30119 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
30121 * config/picochip/picochip.c: Removed profiling support.
30122 * config/picochip/picochip.md: Removed profiling instruction.
30123 * config/picochip/picochip.h: Removed profiling builtin.
30125 2009-03-16 Joseph Myers <joseph@codesourcery.com>
30127 * doc/install.texi (--with-host-libstdcxx): Document.
30129 2009-03-14 Anatoly Sokolov <aesok@post.ru>
30132 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
30133 generate a warning if the function name does not begin with
30134 "__vector" and the function has either the 'signal' or 'interrupt'
30135 attribute, from here to ...
30136 (avr_declare_function_name): ...here. New function.
30137 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
30138 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
30140 2009-03-14 Jakub Jelinek <jakub@redhat.com>
30143 * cse.c (fold_rtx): Don't modify original const_arg1 when
30144 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
30145 separate variable instead.
30146 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
30147 from out of range shift counts.
30148 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
30150 2009-03-13 Catherine Moore <clm@codesourcery.com>
30152 * config/i386/x-mingw32 (host-mingw32.o): Replace
30153 diagnostic.h with $(DIAGNOSTIC_H).
30155 2009-03-12 Jakub Jelinek <jakub@redhat.com>
30158 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
30160 * config/i386/sync.md (sync_compare_and_swap<mode>,
30161 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
30162 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
30164 (sync_double_compare_and_swapdi_pic,
30165 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
30166 cmpxchg8b_pic_memory_operand instead of just memory_operand.
30168 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
30171 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
30173 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
30176 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
30177 (avx_addsubv4df3): Likewise.
30178 (*avx_addsubv4sf3): Likewise.
30179 (sse3_addsubv4sf3): Likewise.
30181 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
30184 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
30186 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
30189 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
30190 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
30191 registers for allocnos created from user-defined variables.
30193 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30196 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
30197 of non-integer mode as well.
30199 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
30201 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
30202 for functions for which the parameter types are unknown.
30204 2009-03-11 Jakub Jelinek <jakub@redhat.com>
30207 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
30208 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
30209 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
30210 * config/i386/i386.c (ix86_local_alignment): For
30211 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
30212 long long variables on the stack to avoid dynamic realignment.
30213 Allow the first argument to be a decl rather than type.
30214 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
30216 2009-03-11 Nick Clifton <nickc@redhat.com>
30219 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
30221 Add description to mno-lsim option.
30222 * config/mcore/mcore.h: Remove comment about deprecated m4align
30224 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
30225 * doc/invoke.texi: Add description of mno-lsim and
30226 mstack-increment options.
30228 * config/fr30/fr30.opt: Document the -mno-lsim option.
30229 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
30230 and -mno-lsim options.
30232 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30234 * fold-const.c (fold_comparison): Only call fold_inf_compare
30235 if the mode supports infinities.
30237 2009-03-11 Jason Merrill <jason@redhat.com>
30240 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
30241 end already did. Notice GIMPLE_CALL modifications of the result.
30242 Don't copy debug information from an ignored decl or a decl from
30245 2009-03-10 Richard Guenther <rguenther@suse.de>
30246 Nathan Froyd <froydnj@codesourcery.com>
30248 PR middle-end/37850
30249 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
30250 (__divMODE3): Likewise.
30252 2009-03-09 Jakub Jelinek <jakub@redhat.com>
30254 PR tree-optimization/39394
30255 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
30256 DECL_SIZE_UNIT of variable length FIELD_DECLs.
30258 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30260 * recog.c (verfiy_changes): Disallow renaming of hard regs in
30261 inline asms for register asm ("") declarations.
30263 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
30265 * fold-const.c (fold_unary): Fix comment.
30267 2009-03-07 Jan Hubicka <jh@suse.cz>
30270 * tree-inline.c (setup_one_parameter): Do replacement of const
30271 argument by constant in SSA form.
30273 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30275 PR middle-end/38028
30276 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
30277 determine alignment passed to assign_stack_local.
30278 (assign_parms_unsplit_complex): Likewise.
30279 * except.c (sjlj_build_landing_pads): Likewise.
30281 2009-03-06 Jakub Jelinek <jakub@redhat.com>
30283 PR middle-end/39360
30284 * tree-flow.h (add_referenced_var): Return bool instead of void.
30285 * tree-dfa.c (add_referenced_var): Return result of
30286 referenced_var_check_and_insert call.
30287 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
30288 of referenced_var_check_and_insert.
30291 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
30292 (gen_variable_die): Emit DW_AT_location on abstract static variable's
30293 DIE, don't emit it if abstract origin already has it.
30294 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
30295 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
30297 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30299 * genpreds.c (needs_variable): Fix parentheses at variable name
30301 (write_tm_constrs_h): Indent generated code.
30303 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30305 * doc/extend.texi (Function Attributes): Add documentation
30306 for isr attributes.
30308 2009-03-06 Jakub Jelinek <jakub@redhat.com>
30311 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
30312 take locus from its DECL_SOURCE_LOCATION instead of input_location.
30314 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
30316 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
30319 2009-03-05 Jakub Jelinek <jakub@redhat.com>
30322 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
30323 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
30325 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
30327 * config/i386/i386.md (R8_REG, R9_REG): New constants.
30328 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
30329 constants instead of magic numbers.
30330 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
30332 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
30333 (x86_64_ms_abi_int_parameter_registers): Ditto.
30334 (x86_64_int_return_registers): Ditto.
30335 (ix86_maybe_switch_abi): Ditto.
30336 (ix86_expand_call): Ditto for clobbered_registers array.
30337 (ix86_hard_regno_mode_ok): Ditto.
30338 (x86_extended_QIreg_mentioned_p): Ditto.
30340 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
30342 PR tree-optimization/39349
30343 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
30345 * combine.c (gen_lowpart_for_combine): Use omode when generating
30348 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
30350 PR rtl-optimization/39235
30351 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
30353 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
30355 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
30357 2009-03-04 Richard Guenther <rguenther@suse.de>
30359 PR tree-optimization/39362
30360 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
30361 that occur in abnormal PHIs should be varying.
30363 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
30365 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
30367 (simple_iv): Take loop as an argument instead of statement.
30368 * tree-scalar-evolution.h (simple_iv): Declaration changed.
30369 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
30371 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
30373 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
30374 * matrix-reorg.c (analyze_transpose): Ditto.
30375 * tree-data-ref.c (dr_analyze_innermost): Ditto.
30376 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
30377 * tree-predcom.c (ref_at_iteration): Ditto.
30378 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
30380 2009-03-04 Richard Guenther <rguenther@suse.de>
30382 PR tree-optimization/39358
30383 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
30384 escaped_id and callused_id.
30385 (solve_graph): Likewise.
30387 2009-03-04 Richard Guenther <rguenther@suse.de>
30389 PR tree-optimization/39339
30390 * tree-sra.c (try_instantiate_multiple_fields): Make it
30391 no longer ICE on the above.
30393 2009-03-03 Joseph Myers <joseph@codesourcery.com>
30395 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
30396 that fits within Pmode.
30398 2009-03-03 Steve Ellcey <sje@cup.hp.com>
30400 PR middle-end/10109
30401 * tm.texi (LIBCALL_VALUE): Update description.
30403 2009-03-03 Steve Ellcey <sje@cup.hp.com>
30405 PR middle-end/34443
30406 * doc/extend.texi (section): Update description.
30408 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
30410 PR middle-end/39345
30411 * tree-inline.c (remapped_type): New.
30412 (can_be_nonlocal): Call remapped_type instead of remap_type.
30414 2009-03-03 Jakub Jelinek <jakub@redhat.com>
30417 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
30418 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
30420 2009-03-03 Richard Guenther <rguenther@suse.de>
30422 PR middle-end/39272
30423 * tree.c (tree_nonartificial_location): New function.
30424 * tree.h (tree_nonartificial_location): Declare.
30425 * builtins.c (expand_builtin_memory_chk): Provide location
30426 of the call location for artificial function pieces.
30427 (maybe_emit_chk_warning): Likewise.
30428 (maybe_emit_sprintf_chk_warning): Likewise.
30429 (maybe_emit_free_warning): Likewise.
30430 * expr.c (expand_expr_real_1): Likewise.
30432 2009-03-03 Jakub Jelinek <jakub@redhat.com>
30434 PR tree-optimization/39343
30435 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
30436 COMPONENT_REF t has ARRAY_TYPE.
30438 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
30440 PR middle-end/39335
30441 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
30442 when the type precision of the induction variable should be
30443 larger than the type precision of nit.
30444 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
30445 * graphite.c (graphite_loop_normal_form): Same.
30446 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
30448 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
30450 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
30451 (*call_1_rex64_ms_sysv): Use named constants instead of magic
30452 numbers to describe clobbered registers.
30453 (*call_value_0_rex64_ms_sysv): Ditto.
30454 * config/i386/mmx.md (mmx_emms): Ditto.
30455 (mmx_femms): Ditto.
30457 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
30459 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
30462 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30464 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
30465 (spu_section_type_flags): New function.
30467 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
30469 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
30470 reg_class_contents of FLOAT_REGS into a temporary.
30472 2009-03-02 Richard Guenther <rguenther@suse.de>
30473 Ira Rosen <irar@il.ibm.com>
30475 PR tree-optimization/39318
30476 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
30477 information to the vectorized statement.
30479 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
30481 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
30482 variable. Use defined names instead of magic constants for REX SSE
30485 2009-03-01 Richard Guenther <rguenther@suse.de>
30487 PR tree-optimization/39331
30488 * omp-low.c (lower_send_shared_vars): Do not receive new
30489 values for the reference of DECL_BY_REFERENCE parms or results.
30491 2009-03-01 Jan Hubicka <jh@suse.cz>
30494 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
30495 BLOCK_NONLOCALIZED_VAR): New macros.
30496 (tree_block): Add nonlocalized_vars.
30497 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
30498 gen_decl_die): Add origin argument. Allow generation of die with
30499 origin at hand only.
30500 (gen_member_die, gen_type_die_with_usage, force_decl_die,
30501 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
30503 (gen_block_die): Fix checking for unused blocks.
30504 (process_scope_var): Break out from .... ; work with origins only.
30505 (decls_for_scope) ... here; process nonlocalized list.
30506 (dwarf2out_ignore_block): Look for nonlocalized vars.
30507 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
30509 (dump_scope_block): Dump them.
30510 * tree-inline.c (remap_decls): Handle nonlocalized vars.
30511 (remap_block): Likewise.
30512 (can_be_nonlocal): New predicate.
30513 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
30515 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30517 * configure: Regenerate.
30519 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30521 * optc-gen.awk: No need to duplicate option flags twice.
30522 Reuse help texts for duplicate options which do not have any.
30524 * gcc.c (display_help): Document --version.
30526 * gcc.c (main): If print_help_list and verbose_flag, ensure
30527 driver output comes before subprocess output.
30529 * optc-gen.awk: Assign all remaining fields to help string,
30530 space-separated, for multi-line help in *.opt.
30532 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
30533 -Wno-pedantic-ms-format is for MinGW targets only.
30535 * doc/options.texi (Option file format): Fix bad indentation,
30536 restoring dropped sentence.
30538 2009-02-28 Jan Hubicka <jh@suse.cz>
30540 * tree-inline.c (tree_function_versioning): Output debug info.
30542 2009-02-28 Jan Hubicka <jh@suse.cz>
30545 * tree-inline.c (setup_one_parameter): Do not copy propagate
30546 arguments when not optimizing.
30548 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
30551 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
30552 (avx_addsubv4df3): Likewise.
30553 (*avx_addsubv4sf3): Likewise.
30554 (sse3_addsubv4sf3): Likewise.
30555 (*avx_addsubv2df3): Likewise.
30556 (sse3_addsubv2df3): Likewise.
30557 (avx_unpckhps256): Correct item selectors.
30558 (avx_unpcklps256): Likewise.
30559 (avx_unpckhpd256): Likewise.
30560 (avx_unpcklpd256): Likewise.
30562 2009-02-28 Jan Hubicka <jh@suse.cz>
30564 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
30566 (copy_arguments_for_versioning): If var is declared don't declare it.
30567 (tree_function_versioning): First setup substitutions and then copy
30570 2009-02-27 Jan Hubicka <jh@suse.cz>
30573 * cgraph.h (varpool_output_debug_info): Remove.
30574 * cgraphunit.c (varpool_output_debug_info): Remove.
30575 * dwarf2out.c (deferred_locations_struct): New struct
30576 (deferred_locations): New type.
30577 (deferred_locations_list): New static var.
30578 (deffer_location): New function.
30579 (gen_variable_die): Use it.
30580 (decls_for_scope): Output info on local static vars.
30581 (dwarf2out_finish): Process deferred locations.
30582 * varpool.c (varpool_output_debug_info): Remove.
30584 2009-02-27 Jan Hubicka <jh@suse.cz>
30587 * tree.h (TREE_PROTECTED): Fix comment.
30588 (BLOCK_HANDLER_BLOCK): Remove.
30589 (struct tree_block): Remove handler_block add body_block.
30590 (inlined_function_outer_scope_p): New.
30591 (is_body_block): Remove.
30592 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
30593 * dwarf2out.c (is_inlined_entry_point): Remove.
30594 (add_high_low_attributes): Use inlined_function_outer_scope_p.
30595 (gen_block_die): Use is_inlined_entry_point check. Remove body block
30597 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
30598 * gimplify.c (gimplify_expr): Gimplify body blocks.
30599 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
30600 block with multiple subblocks.
30601 (dump_scope_block): Prettier output; dump more flags and info.
30602 (dump_scope_blocks): New.
30603 (remove_unused_locals): Use dump_scope_blocks.
30604 * tree-flow.h (dump_scope_blocks): Declare.
30605 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
30606 * stmt.c (is_body_block): Remove.
30607 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
30608 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
30610 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
30612 PR middle-end/39308
30613 * graphite.c (graphite_loop_normal_form): Do not call
30614 number_of_iterations_exit from a gcc_assert.
30616 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30618 * config/s390/s390.c (s390_swap_cmp): Look for conditional
30619 jumps if COND is NULL.
30620 (find_cond_jump): New function.
30621 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
30622 * config/s390/s390.md: Remove z10_cobra attribute value.
30624 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
30626 * config/alpha/alpha.h (alpha_expand_mov): Return false if
30627 force_const_mem returns NULL_RTX.
30629 2009-02-26 Jan Hubicka <jh@suse.cz>
30632 * cgraph.h (varpool_output_debug_info): Remove.
30633 * cgraphunit.c (varpool_output_debug_info): Remove.
30634 * dwarf2out.c (deferred_locations_struct): New struct
30635 (deferred_locations): New type.
30636 (deferred_locations_list): New static var.
30637 (deffer_location): New function.
30638 (gen_variable_die): Use it.
30639 (decls_for_scope): Output info on local static vars.
30640 (dwarf2out_finish): Process deferred locations.
30641 * varpool.c (varpool_output_debug_info): Remove.
30643 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
30645 PR rtl-optimization/39241
30646 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
30647 to subreg_offset_representable_p.
30649 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
30651 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
30652 execute function prototype. Get f and nregs from max_reg_num
30653 and get_insns. Remove the first backward pass as it's dead,
30654 guard the forward pass by flag_expensive_optimizations.
30655 (rest_of_handle_regmove): Delete.
30656 (pass_regmove): Replace it with regmove_optimize.
30658 2009-02-25 Martin Jambor <mjambor@suse.cz>
30660 PR tree-optimization/39259
30661 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
30662 calls_alloca function flags.
30663 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
30664 calls are detected.
30666 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
30668 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
30669 flags_set_1_rtx, flags_set_1_set): Delete.
30670 (regmove_optimize): Do not call mark_flags_life_zones.
30672 2009-02-24 Julian Brown <julian@codesourcery.com>
30675 * config/arm/arm.c (require_pic_register): Only set
30676 cfun->machine->pic_reg once per function.
30678 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
30680 * doc/invoke.texi (Link Options): Document an easier way to pass
30681 options that take arguments to the GNU linker using -Xlinker and -Wl.
30683 2009-02-24 Steve Ellcey <sje@cup.hp.com>
30686 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
30688 2009-02-24 Richard Guenther <rguenther@suse.de>
30691 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
30693 2009-02-24 Richard Guenther <rguenther@suse.de>
30694 Zdenek Dvorak <ook@ucw.cz>
30696 PR tree-optimization/39233
30697 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
30698 from converting them to a generic type.
30700 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
30702 PR tree-optimization/39260
30703 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
30704 contains a condition with a real type.
30705 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
30707 2009-02-23 Jason Merrill <jason@redhat.com>
30710 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
30711 narrowing_initializer_constant_valid_p.
30712 (narrowing_initializer_constant_valid_p): Don't return
30713 null_pointer_node for adding a pointer to itself.
30715 2009-02-23 Jan Hubicka <jh@suse.cz>
30718 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
30721 2009-02-23 Jan Hubicka <jh@suse.cz>
30723 PR tree-optimization/37709
30724 * tree.c (block_ultimate_origin): Move here from dwarf2out.
30725 * tree.h (block_ultimate_origin): Declare.
30726 * dwarf2out.c (block_ultimate_origin): Move to tree.c
30727 * tree-ssa-live.c (remove_unused_scope_block_p):
30728 Eliminate blocks containig no instructions nor live variables nor
30730 (dump_scope_block): New function.
30731 (remove_unused_locals): Enable removal of dead blocks by default;
30732 enable dumping at TDF_DETAILS.
30734 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
30736 * config/i386/i386.c (classify_argument): Don't allow COImode
30738 (function_arg_advance_32): Don't allow OImode.
30739 (function_arg_32): Likewise.
30740 (function_value_32): Likewise.
30741 (return_in_memory_32): Likewise.
30742 (function_arg_64): Remove OImode comment.
30744 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
30747 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
30748 ix86_expand_vector_set for V4DImode in 64bit mode only.
30749 (ix86_expand_vector_init_one_var): Likewise.
30751 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
30753 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
30755 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
30758 * loop-iv.c: Revert last change.
30759 * emit-rtl.c: Likewise.
30761 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
30764 * config/i386/i386.c (type_natural_mode): Remove an extra
30765 space in the warning message.
30766 (function_value_32): Handle 32-byte vector modes.
30767 (return_in_memory_32): Likewise.
30769 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
30771 * loop-iv.c (truncate_value): New function.
30772 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
30774 (lowpart_subreg): Move to...
30775 * emit-rtl.c: ...here.
30777 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
30779 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
30780 accidental and undocumented change at revision 140860.
30782 2009-02-21 Joseph Myers <joseph@codesourcery.com>
30784 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
30785 take gimple_seq * arguments.
30786 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
30787 types_compatible_p langhook.
30789 2009-02-20 Mark Mitchell <mark@codesourcery.com>
30790 Joseph Myers <joseph@codesourcery.com>
30792 * config/arm/arm.c (arm_builtin_va_list): New function.
30793 (arm_expand_builtin_va_start): Likewise.
30794 (arm_gimplify_va_arg_expr): Likewise.
30795 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
30796 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
30797 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
30798 (va_list_type): New variable.
30799 (arm_mangle_type): Mangle va_list_type appropriately.
30801 2009-02-20 Jakub Jelinek <jakub@redhat.com>
30803 PR middle-end/39157
30804 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
30805 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
30806 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
30807 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
30808 parameter to 1000 for -O1 by default.
30809 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
30811 * loop-invariant.c: Include params.h.
30812 (move_loop_invariants): Don't call move_single_loop_invariants on
30815 2009-02-20 Jaka Mocnik <jaka@xlab.si>
30817 * calls.c (emit_library_call_value_1): Use slot_offset instead of
30818 offset when calculating bounds for indexing stack_usage_map. Fixes
30819 a buffer overflow with certain target setups.
30821 2009-02-20 Jakub Jelinek <jakub@redhat.com>
30824 * calls.c (expand_call): Clear try_tail_call if caller and callee
30825 disagree in promotion of function return value.
30827 2009-02-19 Jakub Jelinek <jakub@redhat.com>
30830 * c-common.c (c_determine_visibility): If visibility changed and
30831 DECL_RTL has been already set, call make_decl_rtl to update symbol
30834 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
30837 * varasm.c (assemble_variable): Don't check DECL_NAME when
30838 globalizing a variable.
30840 2009-02-19 Joseph Myers <joseph@codesourcery.com>
30843 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
30844 expression before any __builtin_trap call.
30845 * c-typeck.c (build_function_call): Convert and check function
30846 arguments before generating a call to a trap. Evaluate the
30847 function arguments before the trap.
30849 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
30852 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
30853 (UNSPEC_FXAM_MEM): New unspec.
30854 (fxam<mode>2_i387_with_temp): New insn and split pattern.
30855 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
30856 memory using fxam<mode>2_i387_with_temp to remove excess precision.
30858 2009-02-19 Richard Guenther <rguenther@suse.de>
30860 PR tree-optimization/39207
30861 PR tree-optimization/39074
30862 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
30863 storedanything_tree): New.
30864 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
30865 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
30866 (build_succ_graph): Add edges from STOREDANYTHING to all
30868 (init_base_vars): Initialize STOREDANYTHING.
30869 (compute_points_to_sets): Free substitution info after
30870 building the succ graph.
30871 (ipa_pta_execute): Likewise.
30873 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
30875 (do_ds_constraint): Do not add to special var or non-pointer
30877 (type_could_have_pointers): Split out from ...
30878 (could_have_pointers): ... here. For arrays use the element type.
30879 (create_variable_info_for): Initialize may_have_pointers.
30880 (new_var_info): Likewise.
30881 (handle_lhs_call): Make the HEAP variable unknown-sized.
30882 (intra_create_variable_infos): Use a type with pointers for
30883 PARM_NOALIAS, make it unknown-sized.
30885 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
30888 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
30890 2009-02-18 Jason Merrill <jason@redhat.com>
30893 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
30894 value if DECL_EXTERNAL.
30895 * tree-sra.c (sra_walk_gimple_assign): Likewise.
30896 * target.h (gcc_target::binds_local_p): Clarify "module".
30897 * tree.h (TREE_PUBLIC): Clarify "module".
30899 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
30902 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
30903 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
30905 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
30908 * c.opt (Wabi): Support C and ObjC.
30911 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
30913 * config/i386/i386.c (classify_argument): Warn once about the ABI
30914 change when passing union with long double.
30916 * doc/invoke.texi: Update -Wabi for warning psABI changes.
30918 2009-02-18 Joseph Myers <joseph@codesourcery.com>
30921 * c-parser.c (c_parser_compound_statement): Always enter and leave
30924 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30927 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
30929 2009-02-18 Jakub Jelinek <jakub@redhat.com>
30931 PR tree-optimization/36922
30932 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
30933 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
30936 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
30938 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
30941 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
30943 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
30945 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
30947 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
30950 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
30951 Richard Sandiford <rdsandiford@googlemail.com>
30953 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
30954 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
30955 (loongson_biadd): ...this.
30957 2009-02-17 Richard Guenther <rguenther@suse.de>
30959 PR tree-optimization/39202
30960 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
30961 a var make sure to follow existing collapses.
30963 2009-02-17 Richard Guenther <rguenther@suse.de>
30965 PR middle-end/39214
30966 * langhooks.c (lhd_print_error_function): Check for NULL block.
30968 2009-02-17 Richard Guenther <rguenther@suse.de>
30970 PR tree-optimization/39204
30971 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
30974 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
30976 * config/soft-fp/double.h: Update from glibc CVS.
30978 2009-02-17 Richard Guenther <rguenther@suse.de>
30980 PR tree-optimization/39207
30981 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
30982 strict-aliasing warnings for pointers pointing to NULL.
30984 2009-02-16 Joseph Myers <joseph@codesourcery.com>
30987 * c-parser.c (c_parser_braced_init): Call pop_init_level when
30988 skipping until next close brace.
30990 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
30993 * config/i386/i386.c (ix86_expand_push): Set memory alignment
30994 to function argument boundary.
30996 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
30998 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
30999 in the lea_add. Reload eventually constraints it properly.
31000 * config/picochip/constraints.md: Remove the target constraint
31001 "b", since it is not needed anymore.
31003 2009-02-16 Jakub Jelinek <jakub@redhat.com>
31005 * gthr-dce.h: Uglify function parameter and local variable names.
31006 * gthr-gnat.h: Likewise.
31007 * gthr-mipssde.h: Likewise.
31008 * gthr-nks.h: Likewise.
31009 * gthr-posix95.h: Likewise.
31010 * gthr-posix.h: Likewise.
31011 * gthr-rtems.h: Likewise.
31012 * gthr-single.h: Likewise.
31013 * gthr-solaris.h: Likewise.
31014 * gthr-tpf.h: Likewise.
31015 * gthr-vxworks.h: Likewise.
31016 * gthr-win32.h: Likewise.
31018 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
31021 * config/i386/i386.md: Restrict the new peephole2 to move
31022 between MMX/SSE registers.
31024 2009-02-15 Richard Guenther <rguenther@suse.de>
31027 2009-02-13 Richard Guenther <rguenther@suse.de>
31029 * configure.ac: Enable LFS.
31030 * configure: Re-generate.
31031 * config.in: Likewise.
31033 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31035 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
31036 spu_srqwbyte, spu_srqwbytebc): Define.
31037 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
31038 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
31039 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
31040 "shrqby_<mode>"): New insn-and-split patterns.
31041 * config/spu/spu.c (expand_builtin_args): Determine and return
31042 number of operands using spu_builtin_description data.
31043 (spu_expand_builtin_1): Use it.
31045 2009-02-13 Steve Ellcey <sje@cup.hp.com>
31048 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
31051 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
31054 * config/i386/i386.c (override_options): Correct warning
31055 messages for -malign-loops, -malign-jumps and -malign-functions.
31057 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
31060 * config/i386/i386.md: Restrict the new peephole2 to move
31061 between the general purpose registers.
31063 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
31066 * config/i386/i386.c (type_natural_mode): Add a new argument.
31067 Return the original mode and warn ABI change if vector size is 32byte.
31068 (function_arg_advance): Updated.
31069 (function_arg): Likewise.
31070 (ix86_function_value): Likewise.
31071 (ix86_return_in_memory): Likewise.
31072 (ix86_sol10_return_in_memory): Likewise.
31073 (ix86_gimplify_va_arg): Likewise.
31074 (function_arg_32): Don't warn ABX ABI change here.
31075 (function_arg_64): Likewise.
31077 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
31079 * loop-iv.c (implies_p): In the final case, test that operands 0
31080 of the two comparisons match.
31082 * config/bfin/bfin.c (find_prev_insn_start): New function.
31083 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
31084 (find_next_insn_start): Move.
31086 2009-02-13 Richard Guenther <rguenther@suse.de>
31088 * configure.ac: Enable LFS.
31089 * configure: Re-generate.
31090 * config.in: Likewise.
31092 2009-02-13 Joseph Myers <joseph@codesourcery.com>
31095 * c-parser.c (c_parser_parms_list_declarator): Discard pending
31096 sizes on syntax error after some arguments have been parsed.
31098 2009-02-12 Jakub Jelinek <jakub@redhat.com>
31100 * doc/invoke.texi (-fira): Remove.
31102 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
31104 * caller-save.c: Replace regclass.c with reginfo.c in comments.
31105 * recog.c: Likewise.
31108 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
31110 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
31111 (umul_ppmm): Likewise.
31112 (count_leading_zeros): Likewise.
31113 (count_trailing_zeros): Likewise.
31114 (UMUL_TIME): Likewise.
31116 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
31118 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
31119 soft-fp/t-softfp to tmake_file.
31121 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
31122 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
31123 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
31124 IA64_BUILTIN_INFQ]: New.
31125 (ia64_init_builtins): Initialize __builtin_infq,
31126 __builtin_fabsq and __builtin_copysignq if not HPUX.
31127 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
31128 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
31130 * config/ia64/lib1funcs.asm (__divtf3): Define only if
31132 (__fixtfti): Likewise.
31133 (__fixunstfti): Likewise.
31134 (__floattitf): Likewise.
31136 * config/ia64/libgcc-glibc.ver: New.
31137 * config/ia64/t-fprules-softfp: Likewise.
31138 * config/ia64/sfp-machine.h: Likewise.
31140 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
31141 (LIBGCC2_TF_CEXT): Likewise.
31142 (TF_SIZE): Likewise.
31143 (TARGET_INIT_LIBFUNCS): Likewise.
31145 * config/ia64/t-glibc (SHLINB_MAPFILES):
31146 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
31148 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
31150 * config/i386/i386.c (construct_container): Rewrite processing
31151 BLKmode with X86_64_SSE_CLASS.
31153 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
31156 * config/i386/i386.md: Replace simplify_replace_rtx with
31157 replace_rtx in the new peephole2.
31159 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
31161 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
31162 loop unrolling do not happen at -O2.
31164 2009-02-12 Michael Matz <matz@suse.de>
31166 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
31168 2009-02-12 Jakub Jelinek <jakub@redhat.com>
31170 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
31173 2009-02-12 Ben Elliston <bje@au.ibm.com>
31175 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
31176 patterns when updating the back chain. Missed in the 2009-02-10
31179 2009-02-11 Janis Johnson <janis187@us.ibm.com>
31181 * doc/extend.texi (Decimal Floating Types): Update identifier of
31182 draft TR and list of missing support.
31184 2009-02-11 Jakub Jelinek <jakub@redhat.com>
31186 PR middle-end/39154
31187 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
31188 bit to variable length decl's flags, add it also to its
31189 pointer replacement variable.
31191 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
31192 Jakub Jelinek <jakub@redhat.com>
31195 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
31196 (memory_blockage): New expander.
31197 (*memory_blockage): New insn pattern.
31198 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
31199 instead of general blockage at the end of function prologue when
31200 frame pointer is used to access red zone area. Do not emit blockage
31201 when profiling, it is emitted in generic code.
31202 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
31203 function epilogue when frame pointer is used to access red zone area.
31205 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
31208 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
31209 by arithmetic with memory operands.
31210 * config/i386/predicates.md (commutative_operator): New.
31212 2009-02-10 Janis Johnson <janis187@us.ibm.com>
31214 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
31217 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
31219 * alias.h (record_alias_subset): Declare.
31220 * alias.c (record_alias_subset): Make global.
31222 2009-02-10 Nick Clifton <nickc@redhat.com>
31224 * tree-parloops.c: Change license to GPLv3.
31225 * ipa-struct-reorg.c: Change license to GPLv3.
31226 * ipa-struct-reorg.h: Change license to GPLv3.
31228 2009-02-10 Steve Ellcey <sje@cup.hp.com>
31231 * c-decl.c (start_struct): Return NULL on error.
31233 2009-02-10 Jakub Jelinek <jakub@redhat.com>
31235 PR middle-end/39124
31236 * cfgloopmanip.c (remove_path): Call remove_bbs after
31237 cancel_loop_tree, not before it.
31240 * function.h (struct function): Add has_local_explicit_reg_vars bit.
31241 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
31242 VAR_DECLs were seen.
31243 * tree-ssa-live.c (remove_unused_locals): Recompute
31244 cfun->has_local_explicit_reg_vars.
31245 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
31246 copies or clearings if cfun->has_local_explicit_reg_vars.
31248 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
31251 * config/i386/i386.c (expand_prologue): Emit blockage at the end
31252 of function prologue when frame pointer is used to access
31255 2009-02-10 Richard Guenther <rguenther@suse.de>
31257 PR middle-end/39127
31258 * gimplify.c (gimple_regimplify_operands): Always look if
31259 we need to create a temporary.
31261 2009-02-10 Richard Guenther <rguenther@suse.de>
31263 PR tree-optimization/39132
31264 * tree-loop-distribution.c (todo): New global var.
31265 (generate_memset_zero): Trigger TODO_rebuild_alias.
31266 (tree_loop_distribution): Return todo.
31268 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
31271 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
31272 (x86_64_reg_class_name): Removed.
31273 (classify_argument): Return 0 if bytes > 32. Return 0 if the
31274 first one isn't X86_64_SSE_CLASS or any other ones aren't
31275 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
31276 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
31277 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
31278 and 3 X86_64_SSEUP_CLASS.
31279 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
31280 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
31282 2009-02-10 Ben Elliston <bje@au.ibm.com>
31284 * config/rs6000/rs6000.md (allocate_stack): Always use an update
31285 form instruction to update the stack back chain word, even if the
31286 user has disabled the generation of update instructions.
31287 (movdi_<mode>_update_stack): New.
31288 (movsi_update_stack): Likewise.
31289 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
31290 always use an update form instruction to update the stack back
31293 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
31295 PR middle-end/38953
31296 * graphite.c (if_region_set_false_region): After moving a region in
31297 the false branch of a condition, remove the empty dummy basic block.
31298 (gloog): Remove wrong fix for PR38953.
31300 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31302 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
31303 generation due to implicit sign extension.
31305 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
31307 PR middle-end/38981
31308 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
31309 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
31311 2009-02-09 Richard Guenther <rguenther@suse.de>
31313 PR middle-end/35202
31314 * convert.c (convert_to_real): Disable (float)fn((double)x)
31315 to fnf(x) conversion if errno differences may occur and
31316 -fmath-errno is set.
31318 2009-02-07 Anatoly Sokolov <aesok@post.ru>
31320 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
31321 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
31322 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
31324 2009-02-06 Joseph Myers <joseph@codesourcery.com>
31327 * c-common.c (handle_alias_attribute): Disallow attribute for
31328 anything not a FUNCTION_DECL or VAR_DECL.
31330 2009-02-06 Janis Johnson <janis187@us.ibm.com>
31333 * real.c (do_compare): Special-case compare of zero against
31334 decimal float value.
31336 2009-02-06 Joseph Myers <joseph@codesourcery.com>
31339 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
31340 as indicating flexible array members unless the field itself is
31341 being declarared as the incomplete array.
31343 2009-02-06 Jan Hubicka <jh@suse.cz>
31345 PR tree-optimization/38844
31346 * ipa-inline.c (try_inline): Stop inlining recursion when edge
31347 is already inlined.
31349 2009-02-06 Richard Guenther <rguenther@suse.de>
31351 PR middle-end/38977
31352 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
31353 fork because we may expand it as __gcov_fork.
31355 2009-02-06 Nick Clifton <nickc@redhat.com>
31357 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
31359 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
31361 PR tree-optimization/35659
31362 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
31363 vn_phi_eq): Shortcut if hashcode does not match.
31364 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
31366 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
31367 and avoid iterative_hash_expr.
31368 (FOR_EACH_VALUE_ID_IN_SET): New.
31369 (value_id_compare): Remove.
31370 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
31371 sort expressions by value id.
31373 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
31376 * config/sh/predicates.md (general_movsrc_operand): Don't check
31377 the subreg of system registers here.
31379 2009-02-05 Jakub Jelinek <jakub@redhat.com>
31382 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
31383 on the copied decl.
31385 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
31387 PR rtl-optimization/39110
31388 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
31389 addresses, not aligned ones.
31391 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
31392 Richard Guenther <rguenther@suse.de>
31394 PR tree-optimization/39100
31395 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
31396 comment says and add edges.
31398 2009-02-05 Joseph Myers <joseph@codesourcery.com>
31401 * c-common.c (handle_tls_model_attribute): Ignore attribute for
31402 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
31404 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
31406 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
31407 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
31408 register_bb_in_sese, new_sese, free_sese): Moved.
31409 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
31410 outermost_loop_in_scop, build_scop_iteration_domain,
31411 expand_scalar_variables_ssa_name, get_vdef_before_scop,
31412 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
31413 Use loop_in_sese_p instead of loop_in_scop_p.
31414 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
31415 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
31416 (scopdet_basic_block_info): Fix bug in scop detection.
31417 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
31418 eq_loop_to_cloog_loop): Remove.
31419 (nb_loops_around_loop_in_scop, nb_loop
31420 ref_nb_loops): Moved here...
31421 * graphite.h (ref_nb_loops): ... from here.
31422 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
31423 (loop_domain_dim, loop_iteration_vector_dim): Remove.
31424 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
31426 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
31427 Hans-Peter Nilsson <hp@axis.com>
31429 PR rtl-optimization/37889
31430 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
31431 Move offset handling from PLUS to before the switch. Use new
31432 arguments when considering SYMBOL_REFs too.
31433 (rtx_addr_can_trap_p): Pass dummy offset and size.
31434 (enum may_trap_p_flags): Remove.
31435 (may_trap_p_1): Pass size from MEM_SIZE.
31437 PR rtl-optimization/38921
31438 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
31439 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
31440 * rtlanal.c (may_trap_after_code_motion_p): Delete.
31441 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
31443 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
31445 AVX Programming Reference (January, 2009)
31446 * config/i386/sse.md (*vpclmulqdq): New.
31448 2009-02-04 Jakub Jelinek <jakub@redhat.com>
31450 PR tree-optimization/38977
31451 PR gcov-profile/38292
31452 * calls.c (special_function_p): Disregard __builtin_ prefix.
31454 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
31456 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
31457 non-indexable addresses even before reload.
31459 2009-02-03 Joseph Myers <joseph@codesourcery.com>
31462 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
31463 as having variable size. Do not give an error for unnamed
31464 parameters with [*] declarators. Give a warning for type names
31465 with [*] declarators and mark them as variable size.
31466 * c-parser.c (c_parser_sizeof_expression): Do not give an error
31467 for sizeof applied to [*] type names.
31469 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
31472 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
31474 2009-02-03 Jakub Jelinek <jakub@redhat.com>
31476 * gcc.c (process_command): Update copyright notice dates.
31477 * gcov.c (print_version): Likewise.
31478 * gcov-dump.c (print_version): Likewise.
31479 * mips-tfile.c (main): Likewise.
31480 * mips-tdump.c (main): Likewise.
31482 2009-02-03 Joseph Myers <joseph@codesourcery.com>
31485 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
31486 for composite type involving a zero-length array type.
31488 2009-02-03 Jakub Jelinek <jakub@redhat.com>
31491 * function.c (match_asm_constraints_1): Skip over
31492 initial optional % in the constraint.
31494 PR inline-asm/39059
31495 * c-parser.c (c_parser_postfix_expression): If fixed point is not
31496 supported, don't accept FIXED_CSTs.
31497 * c-decl.c (finish_declspecs): Error if fixed point is not supported
31498 and _Sat is used without _Fract/_Accum. Set specs->type to
31499 integer_type_node for cts_fract/cts_accum if fixed point is not
31502 2009-02-02 Catherine Moore <clm@codesourcery.com>
31504 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
31506 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
31508 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
31509 (ABI_HAS_64BIT_SYMBOLS): Use it.
31510 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
31512 2009-02-02 Paul Brook <paul@codesourcery.com>
31514 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
31516 2009-02-02 Jakub Jelinek <jakub@redhat.com>
31518 PR inline-asm/39058
31519 * recog.h (asm_operand_ok): Add constraints argument.
31520 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
31521 recurse on matching constraint.
31522 (check_asm_operands): Pass constraints as 3rd argument to
31523 asm_operand_ok. Don't look up matching constraint here.
31524 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
31527 2009-02-02 Ben Elliston <bje@au.ibm.com>
31529 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
31530 TARGET_NARROW_VOLATILE_BITFIELD macro names.
31532 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31534 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
31535 information. Remove some obsolete information. Reorganize.
31537 * config/pa/fptr.c: Revert license to GPL 2.
31538 * config/pa/milli64.S: Likewise.
31540 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
31543 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
31544 LIBRARY name in, instead of hard-coding it.
31545 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
31546 extra target make frag to tmake_files according to EH model.
31547 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
31548 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
31549 frags that define makefile variable EH_MODEL appropriately.
31550 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
31551 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
31552 to "-sjlj" according to type of EH configured.
31553 (LIBGCC_SONAME): Concatenate it to shared library base name.
31554 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
31555 to "_sjlj" according to type of EH configured.
31556 (LIBGCC_SONAME): Concatenate it to shared library base name.
31557 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
31558 (SHLIB_LINK): Add missing semicolon to if-else construct.
31559 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
31560 string value of "pe_dll" command-line option.
31561 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
31562 (SHLIB_SONAME): Use it when overriding t-cygming default.
31563 (SHLIB_IMPLIB): Override t-cygming default.
31564 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
31565 string value of "pe_dll" command-line option.
31567 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
31570 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
31571 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
31573 2009-01-31 Richard Guenther <rguenther@suse.de>
31575 PR tree-optimization/38937
31576 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
31577 computing the transitive closure.
31579 2009-01-30 Richard Guenther <rguenther@suse.de>
31581 PR tree-optimization/39041
31582 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
31583 Propagate variable indices only if the types match for this stmt.
31585 2009-01-30 Jakub Jelinek <jakub@redhat.com>
31588 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
31589 inline but never defined.
31591 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
31593 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
31594 (*insv_h_di_reg_extimm): New insn.
31595 (*insv_l<mode>_reg_extimm): New insn.
31597 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
31599 * config/picochip/picochip.c (flag_conserve_stack): set
31600 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
31601 fconserve-stack. Reduce call-overhead used by inliner.
31603 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
31606 * common.opt (flag_conserve_stack): Initialised to zero.
31608 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
31611 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
31612 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
31615 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
31617 * ira-color.c (allocno_reload_assign): Update comments.
31618 * regmove.c (regmove_optimize): Likewise.
31622 2009-01-29 Robert Millan <rmh@aybabtu.com>
31624 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
31625 * config/i386/kopensolaris-gnu.h: New file. Undefine
31626 `MD_UNWIND_SUPPORT'.
31627 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
31629 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
31631 PR tree-optimization/39007
31632 * tree-loop-distribution.c (generate_builtin): Use
31633 recompute_dominator to compute the immediate dominator of the
31634 basic block just after the loop.
31636 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31638 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
31639 (ASM_OUTPUT_DWARF_PCREL): Define.
31641 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
31643 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
31644 * doc/passes.texi: Remove entries about regclass, local-alloc, and
31645 global. Modify entries about regmove and IRA.
31647 * ra-conflict.c: Remove the file.
31649 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
31651 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
31652 (pass_regclass_init): Rename to pass_reginfo_init.
31654 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
31656 * toplev.h (flag_ira): Remove.
31658 * caller-save.c (setup_save_areas): Remove flag_ira.
31660 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
31662 * global.c: Remove the file.
31664 * opts.c (decode_options): Remove flag_ira.
31666 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
31668 * regmove.c: Modify file description.
31669 (find_use_as_address, try_auto_increment): Define them only if
31670 AUTO_INC_DEC is defined.
31671 (replacement_quality, replace_in_call_usage, fixup_match_1,
31672 stable_and_no_regs_but_for_p): Remove.
31673 (reg_set_in_bb): Make it static.
31674 (regmove_optimize): Remove flag_ira and code which worked for
31677 * local-alloc.c: Remove the file.
31679 * common.opt (fira): Remove.
31681 * ira.c: Include except.h.
31682 (eliminable_regset): Move from global.c.
31683 (mark_elimination): Ditto. Remove flag_ira.
31684 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
31685 equiv_mem_modified, validate_equiv_mem_from_store,
31686 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
31687 contains_replace_regs, memref_referenced_p, memref_used_between_p,
31688 no_equiv, recorded_label_ref): Move from local-alloc.c.
31689 (update_equiv_regs): Ditto. Make it static.
31690 (print_insn_chain, print_insn_chains): Move it from global.c.
31691 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
31692 (build_insn_chain): Ditto. Make it static.
31693 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
31694 Rename to init_live_subregs.
31695 (gate_ira): Remove flag_ira.
31697 * regclass.c: Rename reginfo.c. Change file description.
31698 (FORBIDDEN_INC_DEC_CLASSES): Remove.
31699 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
31700 (init_reg_sets_1): Remove code for evaluation of
31701 reg_class_superclasses and losing_caller_save_reg_set.
31702 (init_regs): Remove init_reg_autoinc.
31703 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
31704 ok_for_base_p_nonstrict): Remove.
31705 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
31706 (pass_regclass_init): Rename to pass_reginfo_init. Modify
31707 corresponding entries.
31708 (dump_regclass, record_operand_costs, scan_one_insn,
31709 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
31710 record_address_regs, auto_inc_dec_reg_p): Remove.
31711 (gt-regclass.h): Rename to gt-reginfo.h.
31713 * rtl.h (dump_global_regs, retry_global_alloc,
31714 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
31716 * Makefile.in (RA_H): Remove.
31717 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
31718 Rename regclass.o to reginfo.o.
31719 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
31721 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
31722 (GTFILES): Rename regclass.c to reginfo.c.
31724 * passes.c (init_optimization_passes): Remove pass_local_alloc and
31725 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
31727 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
31728 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
31730 (finish_spills): Ditto. Remove code for !flag_ira.
31732 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
31734 PR middle-end/35854
31735 * doc/invoke.texi (rtl debug options): Complete rewrite.
31736 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
31738 * mode-switching.c (pass_mode_switching): Rename pass from
31739 "mode-sw" to "mode_sw".
31740 * except.c (pass_convert_to_eh_ranges): Rename pass from
31741 "eh-ranges" to "eh_ranges".
31742 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
31746 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
31747 Alexander Monakov <amonakov@ispras.ru>
31749 PR middle-end/38857
31750 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
31752 (move_exprs_to_boundary): Change return type and pass through
31753 should_move from move_op. Relax assert. Update usage ...
31754 (schedule_expr_on_boundary): ... here. Use should_move instead of
31756 (move_op_orig_expr_found): Indicate that insn was disconnected from
31758 (code_motion_process_successors): Do not call after_merge_succs
31759 callback if original expression was not found when traversing any of
31761 (code_motion_path_driver): Change return type. Update prototype.
31762 (move_op): Update comment. Add a new parameter (should_move). Update
31763 prototype. Set *should_move based on indication provided by
31764 move_op_orig_expr_found.
31766 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
31768 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
31769 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
31770 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
31771 * config/rs6000/rs6000.c (rs6000_override_options): Default
31772 avoid-indexed-addresses on for Power6, off for everything else.
31773 (avoiding_indexed_address_p): New function.
31774 (rs6000_legitimize_address): Use it.
31775 (rs6000_legitimate_address): Likewise.
31776 * config/rs6000/rs6000.md (movXX_updateX): Likewise
31778 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
31780 PR tree-optimization/38997
31781 * tree-loop-distribution.c (generate_memset_zero): Use
31782 POINTER_PLUS_EXPR for a pointer addition.
31784 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
31786 * config/s390/s390.md (bswap<mode>2): New pattern added.
31788 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
31790 * config/s390/s390.md (*tls_load_31): Added type attribute.
31792 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
31794 * config/s390/s390.md: Fix a few comments.
31796 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
31798 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
31799 (*tm<mode>_full): Fixed z10prop attribute.
31800 (*tst<mode>_extimm): Fixed z10prop attribute.
31801 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
31802 (*tstqiCCT_cconly): Fixed z10prop attribute.
31803 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
31804 (*movsi_larl): Fixed z10prop attribute.
31805 (*movsi_zarch): Fixed z10prop attribute.
31806 (*movsi_eas): Fixed z10prop attribute.
31807 (*movhi): Fixed z10prop attribute.
31808 (*movqi): Fixed z10prop attribute.
31809 (*movstrictqi): Fixed z10prop attribute.
31810 (*mov<mode>): Fixed z10prop attribute.
31811 (*movcc): Fixed z10prop attribute.
31812 (*sethighpartdi_64): Fixed z10prop attribute.
31813 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
31814 (*negdi2_sign_cc): Fixed z10prop attribute.
31815 (*negdi2_sign): Fixed z10prop attribute.
31816 (*absdi2_sign_cc): Fixed z10prop attribute.
31817 (*absdi2_sign): Fixed z10prop attribute.
31818 (*negabsdi2_sign_cc): Fixed z10prop attribute.
31819 (*negabsdi2_sign): Fixed z10prop attribute.
31820 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
31821 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
31822 (doloop_si64): Fixed z10prop attribute.
31823 (doloop_si31): Fixed z10prop attribute.
31824 (doloop_long): Fixed z10prop attribute.
31825 (indirect_jump): Fixed z10prop attribute.
31826 (nop): Fixed z10prop attribute.
31827 (main_base_64): Fixed z10prop attribute.
31828 (reload_base_64): Fixed z10prop attribute.
31830 2009-01-28 Jakub Jelinek <jakub@redhat.com>
31832 PR rtl-optimization/38740
31833 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
31835 * config/mips/mips.c (mips_reorg): Likewise.
31837 2009-01-28 Richard Guenther <rguenther@suse.de>
31839 PR tree-optimization/38926
31840 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
31841 with the correct value id to a value.
31842 (do_regular_insertion): Use the value number of edoubleprime
31843 for the value number of the expr.
31846 2008-08-21 Richard Guenther <rguenther@suse.de>
31848 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
31849 a PHI ask VN if it is already available.
31850 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
31851 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
31853 2009-01-28 Jakub Jelinek <jakub@redhat.com>
31855 PR middle-end/38934
31856 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
31857 set to varying whenever max has TREE_OVERFLOW set, similarly
31858 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
31860 2009-01-28 Richard Guenther <rguenther@suse.de>
31862 PR middle-end/38908
31863 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
31864 uninitialized aggregate uses in call arguments.
31866 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
31868 PR tree-optimization/38984
31869 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
31870 the nothing_id variable if -fno-delete-null-pointer-checks.
31872 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
31875 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
31876 (set_got_offset_rex64): Ditto.
31878 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
31881 * doc/extend.texi: Improve local variable with asm reg.
31883 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
31885 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
31886 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
31887 was not supplied then set warn_packed_bitfield_compat to the
31888 default value of 1.
31889 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
31892 2009-01-27 Richard Guenther <rguenther@suse.de>
31894 PR tree-optimization/38503
31895 * cfgexpand.c (expand_gimple_basic_block): Ignore
31896 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
31897 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
31898 variables that cannot have TBAA applied.
31899 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
31902 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
31904 PR middle-end/38969
31905 * calls.c (initialize_argument_information): Do not wrap complex
31906 arguments in SAVE_EXPR.
31908 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
31910 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
31911 (INSTALL_LIBGCC): Revert typo commit.
31913 2009-01-26 Richard Guenther <rguenther@suse.de>
31915 PR tree-optimization/38745
31916 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
31917 from special handling.
31919 2009-01-26 Richard Guenther <rguenther@suse.de>
31921 PR tree-optimization/38745
31922 * tree-ssa.c (execute_update_addresses_taken): Do not include
31923 variables that cannot possibly be a register in not_reg_needs.
31924 Do not clear TREE_ADDRESSABLE on vars that may not become
31926 * tree-ssa.c (update_alias_info_1): Include those in the set
31927 of addressable vars.
31929 2009-01-26 Richard Guenther <rguenther@suse.de>
31931 PR middle-end/38851
31932 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
31933 * tree-ssa-dse.c: Include langhooks.h
31934 (execute_simple_dse): Remove stores with zero size.
31936 2009-01-24 Jakub Jelinek <jakub@redhat.com>
31939 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
31942 2009-01-24 Julian Brown <julian@codesourcery.com>
31944 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
31945 config/arm/linux-atomic.c.
31946 * config/arm/linux-atomic.c: New.
31948 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
31950 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
31951 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
31952 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
31954 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
31957 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
31960 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
31962 PR tree-optimization/38953
31963 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
31964 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
31965 (gloog): Split the exit of the scop when the scop exit is a loop exit.
31966 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
31969 2009-01-24 Paul Brook <paul@codesourcery.com>
31971 * config/arm/neon.md (neon_type): Move to arm.md.
31972 (neon_mov<VSTRUCT>): Add neon_type attribute.
31973 * config/arm/arm.md (neon_type): Move to here.
31974 (conds): Add "unconditioal" and use as default for NEON insns.
31976 2009-01-24 Ben Elliston <bje@au.ibm.com>
31978 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
31979 void *' warning from -Wc++-compat.
31980 * Makefile.in (dominance.o-warn): Remove.
31982 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
31984 PR tree-optimization/38932
31985 * fold-const.c (fold_unary_ignore_overflow): New.
31986 * tree.h (fold_unary_ignore_overflow): Declare.
31987 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
31988 * tree-ssa-sccvn.c (visit_reference_op_load,
31989 simplify_unary_expression): Likewise.
31991 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
31993 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
31994 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
31995 regardless of their type.
31996 * c-common.c (handle_packed_attribute): Don't ignore packed on
31998 * c.opt (Wpacked-bitfield-compat): New warning option.
31999 * stor-layout.c (place_field): Warn if offset of a field changed.
32000 * doc/extend.texi (packed): Mention the ABI change.
32001 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
32002 (Warning Options): Add it to the list.
32004 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
32006 * c-opts.c (c_common_post_options): Fix a typo in comments.
32008 2009-01-22 Steve Ellcey <sje@cup.hp.com>
32010 PR middle-end/38615
32011 * gimplify.c (gimplify_init_constructor): Fix promotion of const
32012 variables to static.
32013 * doc/invoke.texi (-fmerge-all-constants): Update description.
32015 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
32018 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
32019 (*movdi_1_rex64): Use type "mmx" for alternative 5.
32021 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
32023 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
32025 (LOCAL_ALIGNMENT): Similarly.
32027 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
32028 Joseph Myers <joseph@codesourcery.com>
32030 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
32031 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
32032 * config/arm/arm-tune.md: Regenerate.
32033 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
32036 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
32038 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
32039 version number to five.
32041 2009-01-22 Dodji Seketeli <dodji@redhat.com>
32044 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
32045 * c-common.c (set_underlying_type): Likewise.
32046 (is_typedef_decl ): Likewise
32048 (set_underlying_type): Likewise.
32049 (is_typedef_type): Likewise.
32051 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
32053 PR middle-end/38587
32054 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
32057 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
32060 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
32061 (LIBGCC_SPEC): Don't define.
32062 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
32064 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
32066 PR rtl-optimization/38879
32067 * alias.c (base_alias_check): Unaligned access via AND address can
32068 alias all surrounding object types except those with sizes equal
32069 or wider than the size of unaligned access.
32071 2009-01-21 Dodji Seketeli <dodji@redhat.com>
32074 * c-decl.c (clone_underlying_type): Move this ...
32075 * c-common.c (set_underlying_type): ... here.
32076 Also, make sure the function properly sets TYPE_STUB_DECL() on
32077 the newly created typedef variant type.
32078 (is_typedef_decl ): New entry point.
32079 * tree.h: Added a new member member_types_needing_access_check to
32080 struct tree_decl_non_common.
32081 (set_underlying_type): New entry point.
32082 (is_typedef_type): Likewise.
32084 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
32086 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
32087 Check whether two instructions have memory references that
32088 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
32089 are helper functions for traversing.
32090 * alias.h (insn_alias_sets_confilict_p): New prototypes.
32091 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
32092 not to draw dependency edge for instructions with non-conflicting
32095 2009-01-20 Joseph Myers <joseph@codesourcery.com>
32098 * longlong.h: Update copyright years. Use soft-fp license notice.
32099 Sync __clz_tab declaration with glibc.
32101 2009-01-20 Steve Ellcey <sje@cup.hp.com>
32104 * doc/extend.texi (syscall_linkage): New.
32105 (version_id): Modify.
32107 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
32108 Richard Guenther <rguenther@suse.de>
32110 PR tree-optimization/38747
32111 PR tree-optimization/38748
32112 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
32113 conversion if the base address is an indirect reference and the
32114 aliasing sets could cause issues.
32116 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
32118 * common.opt (fgraphite, fgraphite-identity): Add comment for
32119 explaining why these options are not documented.
32121 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
32123 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
32124 gimple_call_lhs is NULL.
32126 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
32129 * emit-rtl.c (adjust_address_1): Make sure memref is never
32132 2009-01-20 Ben Elliston <bje@au.ibm.com>
32134 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
32135 const qualifier from arg parameter. Remove unnecessary cast to char *.
32136 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
32137 const qualifier from arg 2.
32139 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
32141 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
32143 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
32146 * rtl.h (reinit_regs): New prototype.
32147 * regclass.c: Include ira.h.
32148 (reinit_regs): New.
32149 * Makefile.in (regclass.o): Add ira.h.
32150 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
32152 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
32155 * c-common.c (handle_aligned_attribute): Use
32156 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
32157 default alignment value.
32159 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
32161 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
32162 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
32164 * doc/extend.texi: Update __attribute__ ((aligned)). Document
32165 __BIGGEST_ALIGNMENT__.
32167 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
32169 2009-01-18 Richard Guenther <rguenther@suse.de>
32171 PR tree-optimization/38819
32172 * tree-flow.h (operation_could_trap_helper_p): Declare.
32173 * tree-eh.c (operation_could_trap_helper_p): Export.
32174 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
32175 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
32176 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
32177 are about to insert a possibly trapping instruction and fail
32180 2009-01-18 Andreas Schwab <schwab@suse.de>
32182 * doc/install.texi (Configuration): Remove obsolete paragraph
32183 about use of --with-gnu-ld with --with-gnu-as.
32185 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
32187 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
32188 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
32189 Follow spelling conventions.
32191 2009-01-18 Ben Elliston <bje@au.ibm.com>
32193 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
32194 C++ warning about implicit conversion from void * to struct
32196 (bitmap_obstack_free): Likewise for bitmap_element *.
32197 * Makefile.in (bitmap.o-warn): Remove.
32199 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
32201 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
32203 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
32204 Tobias Grosser <tobi.grosser@amd.com>
32206 * graphite.c (graphite_trans_scop_block): Do not block single
32209 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
32211 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
32212 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
32213 test with assertion.
32215 2009-01-16 Richard Guenther <rguenther@suse.de>
32217 PR tree-optimization/38835
32218 PR middle-end/36227
32219 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
32220 and INT + PTR -> (INT)(PTR p+ INT) folding.
32221 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
32223 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
32226 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
32227 the subreg from a lowpart subreg if it is also casting the value.
32229 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
32230 Tobias Grosser <tobi.grosser@amd.com>
32232 * graphite.c (compare_prefix_loops): New.
32233 (build_scop_canonical_schedules): Rewritten.
32234 (graphite_transform_loops): Move build_scop_canonical_schedules
32235 after build_scop_iteration_domain.
32237 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
32238 Tobias Grosser <tobi.grosser@amd.com>
32240 * graphite.c (add_conditions_to_domain): Add the loops to
32241 the dimension of the iteration domain. Do copy the domain
32242 only when it exists.
32243 (build_scop_conditions_1): Do not call add_conditions_to_domain.
32244 (add_conditions_to_constraints): New.
32245 (can_generate_code_stmt, can_generate_code): Removed.
32246 (gloog): Do not call can_generate_code.
32247 (graphite_transform_loops): Call add_conditions_to_constraints
32248 after building the iteration domain.
32250 2009-01-16 Jakub Jelinek <jakub@redhat.com>
32252 PR tree-optimization/38789
32253 * tree-ssa-threadedge.c
32254 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
32255 __builtin_constant_p.
32257 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
32259 * dce.c (delete_unmarked_insns): Reversed the order that insns are
32260 examined before deleting them.
32262 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
32264 * function.c (aggregate_value_p): Correctly extract the function
32265 type from CALL_EXPR_FN lookup.
32267 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
32269 * config/picochip/picochip.c (picochip_override_options): Revert
32270 CFI asm flag disable commited previously.
32272 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
32273 Tobias Grosser <tobi.grosser@amd.com>
32274 Jan Sjodin <jan.sjodin@amd.com>
32276 * graphite.c (scan_tree_for_params): On substractions negate
32277 all the coefficients of the term.
32278 (clast_to_gcc_expression_red): New. Handle reduction expressions
32279 of more than two operands.
32280 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
32281 (get_vdef_before_scop): Handle also the case of default definitions.
32283 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
32285 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
32286 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
32287 Also use them when walking CALL_INSN_FUNCTION_USAGE.
32289 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
32290 Joey Ye <joey.ye@intel.com>
32292 PR middle-end/37843
32293 * cfgexpand.c (expand_stack_alignment): Don't update stack
32294 boundary nor check incoming stack boundary here.
32295 (gimple_expand_cfg): Update stack boundary and check incoming
32296 stack boundary here.
32298 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
32300 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
32302 2009-01-14 Jakub Jelinek <jakub@redhat.com>
32304 PR rtl-optimization/38245
32305 * calls.c (expand_call): Add stack arguments to
32306 CALL_INSN_FUNCTION_USAGE even for pure calls (when
32307 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
32308 in regs and partially in memory or BLKmode arguments.
32309 (emit_library_call_value_1): Add stack arguments to
32310 CALL_INSN_FUNCTION_USAGE even for pure calls (when
32311 ACCUMULATE_OUTGOING_ARGS).
32312 * dce.c: Include tm_p.h.
32313 (find_call_stack_args): New function.
32314 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
32316 (mark_insn): Call find_call_stack_args for CALL_Ps.
32317 (prescan_insns_for_dce): Walk insns backwards in bb rather than
32318 forwards. Allocate and free arg_stores bitmap if needed, pass it
32319 down to deletable_insn_p, don't mark stores set in arg_stores
32320 bitmap, clear the bitmap at the beginning of each bb.
32321 * Makefile.in (dce.o): Depend on $(TM_P_H).
32323 2009-01-14 Michael Meissner <gnu@the-meissners.org>
32326 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
32327 to make sure the insn is a conditional test (bug 22599). Reformat a
32330 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
32332 PR middle-end/38431
32333 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
32334 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
32335 (gloog): Do not call cleanup_tree_cfg.
32336 (graphite_transform_loops): Call cleanup_tree_cfg after all
32337 scops have been code generated.
32339 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
32340 * doc/gty.texi (Invoking the garbage collector): Added new node
32341 and section documenting ggc_collect.
32343 2009-01-14 Richard Guenther <rguenther@suse.de>
32345 PR tree-optimization/38826
32346 PR middle-end/38477
32347 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
32348 initialization notes only if we actually emitted a warning.
32349 (intra_create_variable_infos): Add constraints for a result decl
32350 that is passed by hidden reference.
32351 (build_pred_graph): Mark all related variables non-direct on
32354 2009-01-14 Nick Clifton <nickc@redhat.com>
32356 * ira-conflicts.c: Include addresses.h for the definition of
32358 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
32359 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
32361 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
32364 * Makefile.in (ira-lives.o): Add except.h.
32366 * ira-lives.c: Include except.h.
32367 (process_bb_node_lives): Process can_throw_internal.
32369 2009-01-13 Jakub Jelinek <jakub@redhat.com>
32371 PR rtl-optimization/38774
32372 * combine.c (simplify_set): When undoing cc_use change, don't do
32373 PUT_CODE on the newly created comparison, but instead put back the
32376 2009-01-13 Joseph Myers <joseph@codesourcery.com>
32378 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
32379 values. Remove duplicate arm8 entry.
32381 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
32383 PR tree-optimization/38786
32384 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
32385 the SSA_NAME case of expand_scalar_variables_expr.
32386 Set the type of an expression to the type of its assign statement.
32387 (expand_scalar_variables_expr): Also gather the scalar computation
32388 used to index the memory access. Do not pass loop_p.
32389 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
32390 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
32391 the gimple_stmt_iterator where it inserts new code.
32392 Do not pass loop_p.
32393 (copy_bb_and_scalar_dependences): Do not pass loop_p.
32394 (translate_clast): Update call to copy_bb_and_scalar_dependences.
32396 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
32398 * graphite.h (debug_value): Removed.
32399 * graphite.c (debug_value): Removed.
32401 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
32403 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
32404 ldrd/strd with two 32-bit instructions.
32406 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
32408 * config/arm/arm.c (struct processors): Pass for speed down into
32409 cost helper functions.
32410 (const_ok_for_op): Handle COMPARE and inequality nodes.
32411 (arm_rtx_costs_1): Rewrite.
32412 (arm_size_rtx_costs): Update prototype.
32413 (arm_rtx_costs): Pass speed down to helper functions.
32414 (arm_slowmul_rtx_costs): Rework cost calculations.
32415 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
32416 (arm_9e_rtx_costs): Likewise.
32418 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
32420 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
32421 relocations of local symbols wider than UNITS_PER_WORD are not valid.
32422 (alpha_legitimize_address): Do not split local symbols wider than
32423 UNITS_PER_WORD into HIGH/LO_SUM parts.
32425 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
32428 * gcc.c (process_command): Replace call to execvp with calls
32429 to pex_one and exit.
32431 2009-01-03 Anatoly Sokolov <aesok@post.ru>
32434 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
32435 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
32436 variant for devices with 3-byte PC.
32437 (__tablejump_elpm__): New.
32439 2009-01-12 Jakub Jelinek <jakub@redhat.com>
32442 * c-parser.c (c_parser_postfix_expression): Allow `->' in
32443 offsetof member-designator, handle it as `[0].'.
32445 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32447 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
32448 function when not using named sections on targets with named sections
32449 if branch distance is less than 262132.
32451 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
32453 * combine.c (combine_instructions): Recompute
32454 optimize_this_for_speed_p for each BB in the main combine loop.
32456 2009-01-12 Tomas Bily <tbily@suse.cz>
32459 * tree-loop-distribution.c (prop_phis): New function.
32460 (generate_builtin): Call prop_phis.
32462 2009-01-12 Jakub Jelinek <jakub@redhat.com>
32464 PR tree-optimization/38807
32465 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
32466 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
32468 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
32470 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
32471 subreg of op0 to the original op0.
32473 2009-01-11 Laurent GUERBY <laurent@guerby.net>
32475 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
32477 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
32480 * mips-tfile.c (parse_def): Fix parsing of def strings
32481 starting with digits.
32483 2009-01-10 Jakub Jelinek <jakub@redhat.com>
32486 * config/arm/arm.c (arm_is_long_call_p): Don't call
32487 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
32489 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
32491 * regrename.c (regrename_optimize): Fix dumping.
32492 (find_oldest_value_reg): Preserve REG_POINTER.
32493 (copy_hardreg_forward_1): Likewise.
32495 2009-01-09 Diego Novillo <dnovillo@google.com>
32497 * gimple.h (struct gimple_statement_base) <uid>: Document
32498 the restrictions on its use.
32499 (gimple_uid): Tidy.
32500 (gimple_set_uid): Tidy.
32502 2009-01-09 Jakub Jelinek <jakub@redhat.com>
32504 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
32505 zero guard even if align_bytes != 0 and count is smaller than
32508 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
32510 PR rtl-optimization/38495
32511 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
32512 (add_range_and_copies_from_move_list): Print all added ranges.
32513 Add ranges to memory optimized destination.
32515 2009-01-09 Jakub Jelinek <jakub@redhat.com>
32519 * config/i386/i386.c (override_options): Reject
32520 -mstringop-strategy=rep_8byte with -m32.
32521 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
32522 to 1. Do count comparison against epilogue_size_needed at compile
32523 time even when count_exp was constant forced into register. For
32524 size_needed don't jump to epilogue, instead just avoid aligning
32525 and invoke the body algorithm. If need_zero_guard, add zero guard
32526 even if count is non-zero, but smaller than size_needed + number of
32527 bytes that could be stored for alignment.
32528 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
32529 to 1. If need_zero_guard, add zero guard even if count is non-zero,
32530 but smaller than size_needed + number of bytes that could be stored
32531 for alignment. Compare size_needed with epilogue_size_needed instead
32532 of desired_align - align, don't adjust size_needed, pass
32533 epilogue_size_needed to the epilogue expanders.
32536 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
32538 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32540 * pa.c (last_address): Change to unsigned.
32541 (update_total_code_bytes): Change argument to unsigned. Don't
32542 check if insn addresses are set.
32543 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
32544 addresses are not set.
32545 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
32547 2009-01-09 Nick Clifton <nickc@redhat.com>
32549 * config/sh/symbian.c: Replace uses of DECL_INLINE with
32550 DECL_DECLARED_INLINE_P.
32552 2009-01-09 Jakub Jelinek <jakub@redhat.com>
32554 PR middle-end/38347
32555 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
32556 GET_MODE (op0) in operand_subword_force calls.
32558 PR middle-end/38771
32559 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
32560 fold_convert arg0 operands to TREE_TYPE (op0) first.
32562 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
32564 * params.def (ira-max-conflict-table-size): Decrease default value
32567 2009-01-08 Jakub Jelinek <jakub@redhat.com>
32569 PR tree-optimization/37031
32570 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
32572 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
32573 allocate it using gc instead of heap, use VEC_quick_push instead of
32575 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
32576 instead of heap, use VEC_quick_push instead of VEC_safe_push.
32577 * tree-data-ref.h (struct access_matrix): Change matrix to gc
32578 allocated vector from heap allocated.
32579 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
32580 * tree-loop-linear.c (linear_transform_loops): Allocate nest
32581 vector only after perfect_loop_nest_depth call.
32583 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
32584 Jan Sjodin <jan.sjodin@amd.com>
32586 PR tree-optimization/38559
32587 * graphite.c (debug_value, copy_constraint,
32588 swap_constraint_variables, scale_constraint_variable, ): New.
32589 (get_lower_bound, get_upper_bound): Removed.
32590 (graphite_trans_bb_strip_mine): Clean up this code that works
32591 only for constant number of iterations. Fully copy upper and
32592 lower bound constraints, not only the constant part of them.
32593 * graphite.h (debug_value): Declared.
32595 2009-01-08 Ira Rosen <irar@il.ibm.com>
32597 PR tree-optimization/37194
32598 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
32599 Don't add the cost of cost model guard in prologue to scalar
32600 outside cost in case of known number of iterations.
32602 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
32603 Alan Modra <amodra@bigpond.net.au>
32605 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
32606 non-word-aligned REG+CONST addressing.
32608 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
32611 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
32612 free_after_compilation when outputting a thunk.
32613 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
32614 Do not call free_after_compilation here.
32616 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
32618 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
32619 (ix86_valid_target_attribute_inner_p): Ditto.
32621 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
32623 PR tree-optimization/38492
32624 PR tree-optimization/38498
32625 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
32626 * tree-chrec.h (scev_is_linear_expression): Declared.
32627 * graphite.c (graphite_cannot_represent_loop_niter): New.
32628 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
32629 (graphite_loop_normal_form): Use gcc_assert.
32630 (scan_tree_for_params): Use CASE_CONVERT.
32631 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
32632 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
32633 Use gcc_assert. Discard scops that contain unhandled cases.
32634 (build_scop_conditions): Return a boolean status for unhandled cases.
32635 (strip_mine_profitable_p): Print the loop number, not its depth.
32636 (is_interchange_valid): Pass the depth of the loop nest, don't
32637 recompute it wrongly.
32638 (graphite_trans_bb_block): Same.
32639 (graphite_trans_bb_block): Print tentative of loop blocking.
32640 (graphite_trans_scop_block): Do not print that the loop has been
32642 (graphite_transform_loops): Do not handle scops that contain condition
32645 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
32647 AVX Programming Reference (December, 2008)
32648 * config/i386/avxintrin.h (_mm256_stream_si256): New.
32649 (_mm256_stream_pd): Likewise.
32650 (_mm256_stream_ps): Likewise.
32652 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
32653 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
32654 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
32655 (bdesc_special_args): Add __builtin_ia32_movntdq256,
32656 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
32657 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
32658 (ix86_expand_special_args_builtin): Likewise.
32660 * config/i386/sse.md (AVXMODEDI): New.
32661 (avx_movnt<mode>): Likewise.
32662 (avx_movnt<mode>): Likewise.
32663 (<sse>_movnt<mode>): Remove AVX support.
32664 (sse2_movntv2di): Likewise.
32666 2009-01-07 Richard Guenther <rguenther@suse.de>
32668 PR middle-end/38751
32669 * fold-const.c (extract_muldiv): Remove obsolete comment.
32670 (fold_plusminus_mult_expr): Undo MINUS_EXPR
32671 to PLUS_EXPR canonicalization for the canonicalization.
32673 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
32675 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
32676 hosted cross-compilers generating less efficient code.
32678 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
32680 * function.h (rtl_data): Add a dbr_scheduled_p field.
32681 * reorg.c (dbr_schedule): Set it.
32682 (gate_handle_delay_slots): Check it.
32683 * config/mips/mips.c (mips_base_delayed_branch): Delete.
32684 (mips_reorg): Check flag_delayed_branch instead of
32685 mips_base_delayed_branch.
32686 (mips_override_options): Don't set mips_base_delayed_branch
32687 or flag_delayed_branch.
32689 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
32691 PR rtl-optimization/38426.
32692 * ira.c (ira): Set current_function_is_leaf earlier.
32694 2009-01-06 Jakub Jelinek <jakub@redhat.com>
32696 PR rtl-optimization/38722
32697 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
32698 too early, only set a flag and modify after last possible
32701 2009-01-06 Janis Johnson <janis187@us.ibm.com>
32704 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
32705 * real.c (decimal_single_format): Correct values of emin and emax.
32706 (decimal_double_format): Ditto.
32707 (decimal_quad_format): Ditto.
32708 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
32709 computation of DECnn_MIN and DECnn_MAX for corrected values of
32710 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
32711 __DECnn_MIN__, and adjust its computation for the corrected value
32714 2009-01-06 Jan Hubicka <jh@suse.cz>
32717 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
32719 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
32721 * doc/contrib.texi (Contributors): Slightly adjust the end note.
32722 Add Robert Clark to the list of testers.
32724 2009-01-06 Jan Hubicka <jh@suse.cz>
32725 Kai Tietz <kai.tietz@onevision.com>
32727 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
32728 * config/i386/i386.c (ix86_expand_call): Add clobbers.
32730 2009-01-06 Jan Hubicka <jh@suse.cz>
32731 Kai Tietz <kai.tietz@onevision.com>
32733 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
32735 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
32736 (ix86_nsaved_regs): Count only general purpose regs.
32737 (ix86_nsaved_sseregs): New.
32738 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
32739 to 16 for w64; compute padding and size of sse reg save area.
32740 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
32741 general purpose regs.
32742 (ix86_emit_save_sse_regs_using_mov): New.
32743 (ix86_expand_prologue): Save SSE regs if needed.
32744 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
32745 (ix86_emit_restore_sse_regs_using_mov): New.
32746 (ix86_expand_epilogue): Save SSE regs if needed.
32748 2009-01-06 Jan Hubicka <jh@suse.cz>
32749 Kai Tietz <kai.tietz@onevision.com>
32751 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
32752 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
32753 functions when accumulate outgoing args is off.
32755 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
32758 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
32759 before using pseudos_have_intersected_live_ranges_p.
32761 * ira-int.h (ira_assert): Always define.
32763 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
32765 AVX Programming Reference (December, 2008)
32766 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
32767 (_mm256_permute2_pd): Likewise.
32768 (_mm_permute2_ps): Likewise.
32769 (_mm256_permute2_ps): Likewise.
32770 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
32771 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
32773 * config/i386/i386.c (ix86_builtins): Remove
32774 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
32775 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
32776 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
32777 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
32778 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
32779 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
32780 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
32781 __builtin_ia32_vpermil2ps256.
32782 (ix86_init_mmx_sse_builtins): Updated.
32783 (ix86_expand_args_builtin): Likewise.
32785 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32787 * pa.c (output_call): Relocate non-jump insns in the delay slot of
32788 long absolute calls when generating PA 2.0 code.
32790 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
32792 PR rtl-optimization/38583
32793 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
32795 * params.def (ira-max-conflict-table-size): New.
32797 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
32799 * ira.h (ira_conflicts_p): New external definition.
32801 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
32802 table. Report this. Return result of building.
32803 (ira_build_conflicts): Use ira_conflicts_p. Check result of
32804 building conflict table.
32806 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
32807 (ira_color): Use ira_conflicts_p.
32809 * global.c: Include ira.h.
32810 (pseudo_for_reload_consideration_p, build_insn_chain): Use
32813 * Makefile.in (global.o): Add ira.h.
32815 * ira-build.c (mark_all_loops_for_removal,
32816 propagate_some_info_from_allocno): New.
32817 (remove_unnecessary_allocnos): Call
32818 propagate_some_info_from_allocno.
32819 (remove_low_level_allocnos): New.
32820 (remove_unnecessary_regions): Add parameter. Call
32821 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
32822 parameter to remove_unnecessary_regions.
32823 (ira_build): Remove all regions but root if the conflict table was
32824 not built. Update conflict hard regs for allocnos crossing calls.
32826 * ira.c (ira_conflicts_p): New global.
32827 (ira): Define and use ira_conflicts_p.
32829 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
32830 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
32831 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
32833 2009-01-06 Ben Elliston <bje@au.ibm.com>
32835 * gengtype-lex.l (YY_NO_INPUT): Define.
32837 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
32840 * c-common.c (handle_vector_size_attribute): Also reject
32841 BOOLEAN_TYPE types.
32843 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
32845 PR tree-optimization/38492
32846 * graphite.c (rename_map_elt, debug_rename_elt,
32847 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
32848 rename_map_elt_info, eq_rename_map_elts,
32849 get_new_name_from_old_name, bb_in_sese_p): Moved around.
32850 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
32851 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
32852 (sese_build_livein_liveouts): New.
32853 (new_sese, free_sese): New.
32854 (new_scop): Call new_sese.
32855 (free_scop): Call free_sese.
32856 (rename_variables_from_edge, rename_phis_end_scop): Removed.
32857 (register_old_new_names): Renamed register_old_and_new_names.
32858 (register_scop_liveout_renames, add_loop_exit_phis,
32859 insert_loop_close_phis, struct igp,
32860 default_liveout_before_guard, add_guard_exit_phis,
32861 insert_guard_phis, copy_renames): New.
32862 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
32863 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
32864 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
32865 (scop_adjust_phis_for_liveouts): New.
32866 (gloog): Call scop_adjust_phis_for_liveouts.
32868 * graphite.h (struct sese): Documented. Added fields liveout,
32869 num_ver and livein.
32870 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
32871 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
32872 (struct scop): Added field liveout_renames.
32873 (SCOP_LIVEOUT_RENAMES): New.
32875 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
32877 PR tree-optimization/38510
32878 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
32879 (translate_clast): Call recompute_all_dominators before
32881 (gloog): Call recompute_all_dominators before graphite_verify.
32883 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
32884 Jan Sjodin <jan.sjodin@amd.com>
32886 PR tree-optimization/38500
32887 * graphite.c (create_sese_edges): Call fix_loop_structure after
32890 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
32892 * config.gcc: Add m32r*-*-rtems*.
32893 * config/m32r/rtems.h: New file.
32895 2009-01-05 Ben Elliston <bje@au.ibm.com>
32897 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
32898 (.po.pox): Likewise.
32899 (po/gcc.pot): Likewise.
32901 2009-01-04 David S. Miller <davem@davemloft.net>
32903 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
32904 (STARTING_FRAME_OFFSET): Always set to zero.
32906 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
32908 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
32909 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
32910 fixed-point types, and vectors of the same.
32912 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
32914 * config/mips/sync.md (*mb_barrier): Rename to...
32915 (*memory_barrier): ...this.
32917 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
32919 * doc/extend.texi (Function Attributes): Move @cindex after @item
32920 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
32921 and put in alphabetical order. Fix 'target' name and put in order.
32922 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
32925 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
32927 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
32928 (memory_barrier): Expand as unspec instead of unspec_volatile.
32929 Remove mem:BLK from insn operands. Use Pmode scratch register.
32930 (*memory_barrier): Define as unspec instead of unspec_volatile.
32931 Use (match_dup 0) as input operand.
32933 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
32934 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
32935 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
32936 scratch register. Remove operand 1.
32937 (*stbar): Define as unspec instead of unspec_volatile.
32938 Use (match_dup 0) as input operand, remove (const_int 8).
32939 (*membar): Define as unspec instead of unspec_volatile.
32940 Use (match_dup 0) as input operand, remove input operand 2.
32942 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
32943 (memory_barrier): Expand as unspec instead of unspec_volatile.
32944 Remove mem:BLK from insn operands. Use Pmode scratch register.
32945 (*memory_barrier): Define as unspec instead of unspec_volatile.
32946 Use (match_dup 0) as input operand.
32948 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
32949 Remove mem:BLK from insn operands. Use Pmode scratch register.
32950 Set volatile flag on operand 0.
32951 (*memory_barrier): New insn pattern.
32953 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
32955 (*memory_barrier): Use (match_dup 0) as input operand.
32957 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
32958 Remove mem:BLK from insn operands. Use Pmode scratch register.
32959 Set volatile flag on operand 0.
32960 (*mb_internal): New insn pattern.
32962 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
32964 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
32966 PR middle-end/38586
32967 * function.c (struct temp_slot): Move to the section of the file
32968 that deals with temp slots. Remove field 'address'.
32969 (temp_slot_address_table): New hash table of address -> temp slot.
32970 (struct temp_slot_address_entry): New struct, items for the table.
32971 (temp_slot_address_compute_hash, temp_slot_address_hash,
32972 temp_slot_address_eq, insert_temp_slot_address): Support functions
32974 (find_temp_slot_from_address): Rewrite to use the new hash table.
32975 (remove_unused_temp_slot_addresses): Remove addresses of temp
32976 slots that have been made available.
32977 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
32978 worker function for remove_unused_temp_slot_addresses.
32979 (assign_stack_temp_for_type): Don't clear the temp slot address list.
32980 Add the temp slot address to the address -> temp slot map.
32981 (update_temp_slot_address): Update via insert_temp_slot_address.
32982 (free_temp_slots): Call remove_unused_temp_slot_addresses.
32983 (pop_temp_slots): Likewise.
32984 (init_temp_slots): Allocate the address -> temp slot map, or empty
32985 the map if it is already allocated.
32986 (prepare_function_start): Initialize temp slot processing.
32988 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
32990 PR middle-end/38584
32991 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
32992 Calculate the size of all stack vars assuming no packing of stack
32993 vars will happen, replacing a quadratic algorithm with a linear one.
32995 2009-01-03 Jakub Jelinek <jakub@redhat.com>
32998 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
33001 2009-01-03 Diego Novillo <dnovillo@google.com>
33003 * doc/contrib.texi: Update contributions.
33005 2009-01-03 Jakub Jelinek <jakub@redhat.com>
33008 * builtins.c (fold_builtin_memory_op): Give up if either operand
33009 is volatile. Set srctype or desttype to non-qualified version
33013 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
33014 and FUNCTION_DECLs.
33016 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
33018 PR rtl-optimization/35805
33019 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
33020 problem if fast dce is able to remove any instructions.
33021 * dce.c (dce_process_block): Fix dump message.
33023 2009-01-02 Mark Mitchell <mark@codesourcery.com>
33026 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
33028 2009-01-02 Jakub Jelinek <jakub@redhat.com>
33030 PR middle-end/38690
33031 * tree-flow.h (op_code_prio, op_prio): New prototypes.
33032 * tree-pretty-print.c (op_code_prio): New function.
33033 (op_prio): No longer static. Use op_code_prio.
33034 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
33035 Use op_prio and op_code_prio to determine if () should be
33036 printed around operand(s) or not.
33038 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
33039 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
33040 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
33041 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
33042 pp_character instead of pp_string for single letter printing.
33044 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33046 * doc/extend.texi: Fix '#pragma GCC option' typo.
33048 2009-01-02 Richard Guenther <rguenther@suse.de>
33050 * doc/install.texi (--enable-checking): Mention different
33051 default for stage1.
33052 (--enable-stage1-checking): Document.
33054 2009-01-01 Andrew Pinski <pinskia@gmail.com>
33056 PR middle-end/30142
33057 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
33058 case to be an error.
33060 2009-01-02 Ben Elliston <bje@au.ibm.com>
33062 * config/fp-bit.h (pack_d): Constify argument.
33063 * config/fp-bit.c (makenan): Constify return type. Remove casts.
33064 (isnan): Constify argument.
33066 (iszero): Likewise.
33067 (pack_d): Likewise.
33068 (_fpadd_parts): Constify return type.
33069 (_fpmul_parts): Likewise.
33070 (_fpdiv_parts): Likewise.
33072 2009-01-01 Jakub Jelinek <jakub@redhat.com>
33075 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
33076 warn about overwriting initializer with side-effects or
33077 -Woverride-init if !IMPLICIT.
33078 (output_init_element): Likewise. Pass IMPLICIT down to
33080 (process_init_element): Add IMPLICIT argument. Pass it down
33081 to output_init_element.
33082 (push_init_element, pop_init_level, set_designator): Adjust
33083 process_init_element callers.
33084 (set_nonincremental_init, set_nonincremental_init_from_string):
33085 Adjust add_pending_init callers.
33086 (output_pending_init_elements): Adjust output_init_element callers.
33087 * c-tree.h (process_init_element): Adjust prototype.
33088 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
33089 process_init_element callers.
33092 Copyright (C) 2009 Free Software Foundation, Inc.
33094 Copying and distribution of this file, with or without modification,
33095 are permitted in any medium without royalty provided the copyright
33096 notice and this notice are preserved.