> -----Original Message----- > From: gcc-patches-owner@gcc.gnu.org [mailto:gcc-patches- > owner@gcc.gnu.org] On Behalf Of Jakub Jelinek > Sent: Friday, December 14, 2012 12:09 PM > To: Iyer, Balaji V > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH][Cilkplus] Fix pragma simd info being lost > > On Fri, Dec 14, 2012 at 05:01:48PM +0000, Iyer, Balaji V wrote: > > > Why do you think fatal_error is the right thing here? Why doesn't > > > normal error work? Generally, if one function contains 10 #pragma > > > simd loops that require vectorization and 5 out of them aren't > > > vectorized, it is nicer for users to be told about all 5 of them, rather than just > the first one. > > > fatal_error will exit immediately. > > > > The #pragma simd assert requires the compiler to halt compilation if > > the loop is not vectorized. This is why I used fatal_error. The > > default case is noassert. > > The compilation is halted even with error, compiler will exit with non-zero exit > status, won't compile any further functions, etc. Here is a patch where I have replaced all fatal_errors with error_at. Thanks, Balaji V. Iyer. > > Jakub