------- Comment #9 from kargl at gcc dot gnu dot org 2009-07-16 05:06 ------- (In reply to comment #8) > compilation is also very slow, isn't it? >
It's due to the initialization expression. How much memory do you have? You're most likely swapping. Your code when compiled with 4.5.0 shows PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 2092 kargl 1 98 0 1040M 807M CPU1 0 0:07 37.98% f951 in top(1). Changing your code to something a little more sane like integer,parameter :: N=50000000 real :: x(N) x = 0.0 uses no swap and compiles in less than a second. If you reduce 50000000 to something sane like 50 and use the -fdump-tree-original option you might get a clue to the problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40766