Well, i want to create a new pass for gcc. i do all passes an introduce my pass in passes.c p = &pass_tree_loop.sub; NEXT_PASS (pass_tree_loop_init); NEXT_PASS (pass_tree_blocking); I do the tree-blocking.c static void main_tree_blocking (void) { struct loops loops flow_loops_find(&loops); } } struct tree_opt_pass pass_tree_blocking = { "blocking", /* name */ NULL, /* gate */ main_tree_blocking, /* execute */ NULL, /* sub */ NULL, /* next */ 0, /* static_pass_number */ TV_BLOCKING, /* tv_id */ PROP_cfg, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ TODO_dump_func | TODO_verify_loops | TODO_verify_stmts | TODO_verify_flow, /* todo_flags_finish */ 0 /* letter */ }; Then i do make and make install without problems,but when i try to compiler a c code.. edu@edu:~$ ./build-gcc/bin/gcc -O3 -da -fdump-tree-blocking proyecto/array.c proyecto/array.c: En la función ‘main’: proyecto/array.c:8: error interno del compilador: Violación de segmento Por favor envíe un reporte completo de bichos, con el código preprocesado si es apropiado. Vea <URL:http://gcc.gnu.org/bugs.html> para más instrucciones. can somebody help me?
This is the wrong place to report a problem about your own pass if you have not done any debugging yourself.
can i have a debugging?(In reply to comment #1) > This is the wrong place to report a problem about your own pass if you have not > done any debugging yourself. > how i do a debugginh
See http://gcc.gnu.org/wiki/DebuggingGCC Please stop asking questions here and try to figure out something for yourself, from the wiki, from the documentation, by experimenting, or when all else fails, on the mailing lists. But not here. Good luck!
Subject: Re: New: Problem creating a new pass > > Then i do make and make install without problems,but when i try to compiler a c > code.. I'd highly suggest you email gcc@, use the current development version, and attach a patch with exactly what you have done. That would be very helpful to figuring out what is going on.