------- Comment #3 from joseph at codesourcery dot com  2010-07-24 19:29 -------
Subject: Re:  error messages in .md files not translated

On Tue, 20 Jul 2010, steven at gcc dot gnu dot org wrote:

> Why should an .md file call error()? The ones in neon.md look like they should
> be internal_error, or something should catch the problem earlier.

The messages in neon.md are not internal errors, they are errors for bad 
operands to intrinsics.  Those errors cannot be given until after some 
optimization, since the exepcted use of the built-in functions is that the 
constant operands are passed to inline functions in arm_neon.h which in 
turn pass them to the built-in functions, so the error condition can only 
be detected after inlining; before inlining the operands aren't constant 
so can't be tested to see whether they are in range.  Though having a way 
to give those errors a bit earlier (but still with fully optimized 
operands) would probably allow those error messages to have more 
meaningful locations, if nothing else.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40884

Reply via email to