This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/11898] huge memory consumption when compiling simple repetitive programs


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11898


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-13 12:30:53
               date|                            |


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-13 12:30 -------
I can confirm this on the mainline (20030811).  It is the schedular which causes this memory 
consumption using -fno-schedule-insns and -fno-schedule-insns2 will get rid of this memory 
consumption.
BackTrace (without extra options):
#0  0x4202bb8a in exit () from /lib/i686/libc.so.6
#1  0x083b621a in xexit (code=1) at /home/gates/pinskia/src/gnu/gcc/src/libiberty/xexit.c:52
#2  0x083b602c in xmalloc_failed (size=1) at /home/gates/pinskia/src/gnu/gcc/src/libiberty/
xmalloc.c:132
#3  0x083b607b in xmalloc (size=24767912) at /home/gates/pinskia/src/gnu/gcc/src/libiberty/
xmalloc.c:145
#4  0x082d9aed in sbitmap_vector_alloc (n_vecs=14009, n_elms=14009) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/sbitmap.c:133
#5  0x083a7c69 in init_dependency_caches (luid=14009) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/sched-deps.c:1462
#6  0x0838feff in sched_init (dump_file=0x405b3b80) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/haifa-sched.c:2626
#7  0x083ac6aa in schedule_insns (dump_file=0x1) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/sched-rgn.c:2661
#8  0x082f9ca1 in rest_of_handle_sched2 (decl=0x40094870, insns=0x4004c3c0) at /home/
gates/pinskia/src/gnu/gcc/src/gcc/toplev.c:2256
#9  0x082fc0c8 in rest_of_compilation (decl=0x40094870) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/toplev.c:3435
#10 0x0806d5d0 in c_expand_body_1 (fndecl=0x40094870, nested_p=0) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/c-decl.c:6329
#11 0x0806db49 in c_expand_body (fndecl=0x1) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
c-decl.c:6411
#12 0x0806d12a in finish_function (nested=0, can_defer_p=1) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/c-decl.c:6199
#13 0x0804b409 in yyparse () at c-parse.y:385
#14 0x0805205b in c_parse_file () at c-parse.y:3015
#15 0x08099f1b in c_common_parse_file (set_yydebug=1) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/c-opts.c:1206
#16 0x082f8dea in compile_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/toplev.c:1730
#17 0x082fd61a in do_compile () at /home/gates/pinskia/src/gnu/gcc/src/gcc/toplev.c:4408
#18 0x082fd72d in toplev_main (argc=1, argv=0xbffec4e4) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/toplev.c:4448
#19 0x080ba49b in main (argc=1, argv=0x1) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
main.c:35
BackTrace(with -fno-schedule-insn2):
#0  0x4202bb8a in exit () from /lib/i686/libc.so.6
#1  0x083b621a in xexit (code=1) at /home/gates/pinskia/src/gnu/gcc/src/libiberty/xexit.c:52
#2  0x083b602c in xmalloc_failed (size=1) at /home/gates/pinskia/src/gnu/gcc/src/libiberty/
xmalloc.c:132
#3  0x083b607b in xmalloc (size=24767912) at /home/gates/pinskia/src/gnu/gcc/src/libiberty/
xmalloc.c:145
#4  0x082d9aed in sbitmap_vector_alloc (n_vecs=14009, n_elms=14009) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/sbitmap.c:133
#5  0x083a7c69 in init_dependency_caches (luid=14009) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/sched-deps.c:1462
#6  0x0838feff in sched_init (dump_file=0x405b3b80) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/haifa-sched.c:2626
#7  0x083ac6aa in schedule_insns (dump_file=0x1) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/sched-rgn.c:2661
#8  0x082f9ca1 in rest_of_handle_sched2 (decl=0x40094870, insns=0x4004c3c0) at /home/
gates/pinskia/src/gnu/gcc/src/gcc/toplev.c:2256
#9  0x082fc0c8 in rest_of_compilation (decl=0x40094870) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/toplev.c:3435
#10 0x0806d5d0 in c_expand_body_1 (fndecl=0x40094870, nested_p=0) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/c-decl.c:6329
#11 0x0806db49 in c_expand_body (fndecl=0x1) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
c-decl.c:6411
#12 0x0806d12a in finish_function (nested=0, can_defer_p=1) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/c-decl.c:6199
#13 0x0804b409 in yyparse () at c-parse.y:385
#14 0x0805205b in c_parse_file () at c-parse.y:3015
#15 0x08099f1b in c_common_parse_file (set_yydebug=1) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/c-opts.c:1206
#16 0x082f8dea in compile_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/toplev.c:1730
#17 0x082fd61a in do_compile () at /home/gates/pinskia/src/gnu/gcc/src/gcc/toplev.c:4408
#18 0x082fd72d in toplev_main (argc=1, argv=0xbffec4d4) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/toplev.c:4448
#19 0x080ba49b in main (argc=1, argv=0x1) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
main.c:35


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]