Fwd: GCC 5.2 Pass does not get called
Cristina Georgiana Opriceana
Tue Jan 5 11:24:00 GMT 2016
I am trying to add a new gimple_opt pass to gcc 5.2. I wrote a simple
test code to register a new pass that also has a flag.
I added the pass in passes.def and also declared it in tree-pass.h. I
recompiled gcc and it seems that my pass gets called (I printed some
output in the execute() function) when compiling gcc itself, but not
if I use gcc on an external file, for e.g:
I expect that whenever I call:
gcc -fsafestack file.c
the pass would also be run on the code, but instead nothing happens.
For reference, the code for the pass is here  and the pass
registration and the flag are here.
Any help would be appreciated,
More information about the Gcc-help