Re: GCC 5.2 Pass does not get called

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5 January 2016 at 11:24, Cristina Georgiana Opriceana wrote:
> Hello,
>
> 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.

If this is an optimization pass then you need to enable optimization,
using the -f option isn't sufficient. See
https://gcc.gnu.org/wiki/FAQ#optimization-options



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux