mesa/src
Ian Romanick 9ca5300b6e glcpp: Generate an error for division by zero
When GCC encounters a division by zero in a preprocessor directive, it
generates an error.  Since the GLSL spec says that the GLSL
preprocessor behaves like the C preprocessor, we should generate that
same error.

It's worth noting that I cannot find any text in the C99 spec that
says this should be an error.  The only text that I can find is line 5
on page 82 (section 6.5.5 Multiplicative Opertors), which says,

    "The result of the / operator is the quotient from the division of
    the first operand by the second; the result of the % operator is
    the remainder. In both operations, if the value of the second
    operand is zero, the behavior is undefined."

Fixes 093-divide-by-zero.c test and bugzilla #32831.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-01-10 17:37:51 -08:00
..
driclient mesa: Purge macros NEED_EVENTS and NEED_REPLIES 2010-07-01 13:07:07 -06:00
egl egl: Make egl_dri2 and egl_glx built-in drivers. 2011-01-10 11:50:34 +08:00
gallium r300g: add debug option for buffer upload logging 2011-01-10 05:45:10 +01:00
glsl glcpp: Generate an error for division by zero 2011-01-10 17:37:51 -08:00
glu mesa: fix mesa version string construction 2010-10-19 08:59:27 -06:00
glut scons: Revamp how to specify targets to build. 2010-11-01 13:30:22 +00:00
glw Makefiles: Don't complain if depend file to be included doesn't exist. 2010-07-21 13:19:33 -07:00
glx dri2: release texture image. 2011-01-09 14:55:16 -05:00
mapi mapi: add missing newline in error message 2010-12-31 16:37:41 -07:00
mesa i965: Use a new miptree to avoid software fallbacks due to drawing offset. 2011-01-10 17:21:54 -08:00
talloc scons: Fix inverted logic. 2010-08-26 18:29:04 +01:00
Makefile
SConscript scons: Revamp how to specify targets to build. 2010-11-01 13:30:22 +00:00