[cfe-dev] notes without warnings and a question to -cc1
John McCall
rjmccall at apple.com
Fri Mar 25 10:40:26 PDT 2011
On Mar 25, 2011, at 9:25 AM, Olaf Krzikalla wrote:
> sometimes I'd like to issue some notes just at the start of compilation.
Notes are always subordinate to another diagnostic. If you just want
to print to console, you should write to an output stream instead of
pretending it's a diagnostic.
> CompilerInvocation::CreateFromArgs(...);
>
> to get a compiler invocation.
> But CreateFromArgs uses the cc1 option table hard-coded and thus I can't
> pass options like "-msse2" to the compiler. This in turn forbids the
> handling of files which includes <xmmintrin.h> and similiar headers.
> Is there a reason for using the cc1 option table there and is it
> possible to change it so that it is optionally possible to use the
> driver option table instead?
No. If you want to use the driver logic to figure out the arguments to pass to
CompilerInvocation, you should do that.
John.
More information about the cfe-dev
mailing list