This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Plugins - CC1 - Multiple processes on PLUGIN_FINISH_TYPE
On Wed, Apr 25, 2012 at 4:23 PM, Diego Novillo <dnovillo@google.com> wrote:
> [ Please do not send html mail. ?It will be rejected by the list server. ]
>
> On Wed, Apr 25, 2012 at 10:16, <fosterb@edgeandvertex.org> wrote:
>
>> That much I understand. But it's cc1 that is in two processes, and gcc -v
>> only shows it being invoked once. Finally the output on stderr is only from
>> one of the two processes.
>
> cc1 is just one process. ?You will need to show us the output of 'gcc -v'.
If you use -save-temps cc1 is run twice, once for preprocessing and once
for compilation. Maybe you are confused by this?
>
>> (To clarify terminology: gcc app being the driver here? I didn't think the
>> plugins were loaded in the 'gcc' driver? Strictly from the compiler?)
>
> They are not. ?They are loaded by cc1.
>
>
> Diego.