GCC suggestions needed

Niklaus niklaus@gmail.com
Tue Nov 18 11:08:00 GMT 2008


hi,

http://marc.info/?l=gcc&m=117509069809692&w=2,
Is this option removed ?
Does there exist a similar option ?

On Tue, Nov 18, 2008 at 6:39 AM, Matthew Woehlke
<mw_triad@users.sourceforge.net> wrote:
> Niklaus wrote:
>>
>>   1) How to tell gcc to stop after the first error. I use both gcc
>> 4.2 and gcc 3.4. I tried -Wfatal-error and -Wfatal-error it says
>> unrecognized option.
>
> You could do something like:
>
> gcc <blah> | tee <output-file> | grep -El <regexpr that finds errors>
>
> ...which would return relatively quickly if an error is found, otherwise
> will run to completion. (Note: especially using tee, I'm not sure what will
> happen when grep exits, i.e. if tee and/or grep will die or not, so I would
> suggest testing, and invoking 'kill' if needed.)
>
>>   3) Can this submissions be collected for every 5 secs and then
>> compiled in parallel to produce parallel output. Invoking gcc for each
>> submission is going to be slow ?
>
> Why not just make a system that fires off a submission in a separate process
> whenever one arrives? Assuming you have a way to collect a batch, I don't
> know why you couldn't submit them in parallel, but why wait?
>
> --
> Matthew
> Please do not quote my e-mail address unobfuscated in message bodies.
> --
> Sendmail administration is not black magic. There are legitimate technical
> reasons why it requires the sacrifice of a live chicken.
>  -- Unknown
>
>



More information about the Gcc-help mailing list