Bug 28983 - Problem creating a new pass
Summary: Problem creating a new pass
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: tree-ssa
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-08 11:55 UTC by Edu
Modified: 2006-09-08 20:32 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edu 2006-09-08 11:55:35 UTC
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?
Comment 1 Andrew Pinski 2006-09-08 15:51:07 UTC
This is the wrong place to report a problem about your own pass if you have not done any debugging yourself.
Comment 2 Edu 2006-09-08 16:28:50 UTC
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
Comment 3 Steven Bosscher 2006-09-08 20:32:14 UTC
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!
Comment 4 Daniel Berlin 2006-09-09 02:26:58 UTC
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.