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

--- Comment #11 from John Paul Adrian Glaubitz <glaubitz at physik dot 
fu-berlin.de> ---
(In reply to Oleg Endo from comment #10)
> > FYI this issue is currently a regression that prevents building Linux with
> > gcc7, since gcc7 introduced an optimization that transforms x/0 to
> > __builtin_trap() rather than calling the libgcc div function.
> 
> It's OK to add __builtin_trap to GCC 7.
> Could you have a look and try the patch in Comment 6?  I don't have so much
> time for SH stuff these days...

I will test the patch.

Will it be enough to just add the patch, rebuild gcc-7 and then use this
version of gcc-7 to rebuild the kernel? Or do we need to pass extra options
during the kernel build?

Reply via email to