OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Fix for g++/15861
[pf3gnuchains/gcc-fork.git]
/
gcc
/
loop-init.c
diff --git
a/gcc/loop-init.c
b/gcc/loop-init.c
index
eed3e19
..
ff441e8
100644
(file)
--- a/
gcc/loop-init.c
+++ b/
gcc/loop-init.c
@@
-35,6
+35,13
@@
loop_optimizer_init (FILE *dumpfile)
{
struct loops *loops = xcalloc (1, sizeof (struct loops));
edge e;
+ static bool first_time = true;
+
+ if (first_time)
+ {
+ first_time = false;
+ init_set_costs ();
+ }
/* Avoid annoying special cases of edges going to exit
block. */