https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83388

--- Comment #3 from rguenther at suse dot de <rguenther at suse dot de> ---
On Tue, 12 Dec 2017, jakub at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83388
> 
> --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> Compilation with -m32 and linking without?  I'd expect that to fail more
> miserably.

Linking without -fsanitize=null.

> That said, what we are doing with the sanitizers is similar to what we are
> doing with debug stmts, if compilation is with -flto -g and linking without 
> -g,
> then
> debug stmts are dropped.  Likewise, IFN_*SAN* is dropped from the IL if 
> linking
> without corresponding -fsanitize= options.

Ah.  So the error is about cgraph input not finding the corresponding
GIMPLE call stmt that are referenced form a cgraph edge we input
(e->call_stmt).  This might be the case then when we drop those calls?

So maybe we need some adjustment here.

>  Then there are builtins lowered
> earlier, those are just library calls, so it is user's responsibility to make
> sure the corresponding library is linked, otherwise normal linking errors
> should be reported.

Yes, I think that part works.  We probably run into the above failure
to materialize the cgraph.

Reply via email to