On 07/17/2016 09:52 AM, Manuel López-Ibáñez wrote:
Shouldn't really matter, except perhaps in a -O0 compilation. Though I think else-if makes it slightly clearer.+ if (is_vla) + gcc_assert (warn_vla_limit > 0); + if (!is_vla) + gcc_assert (warn_alloca_limit > 0);if-else ? Or perhaps:
Would be acceptable as well. I think any of the 3 is fine and leave it to Aldy's discretion which to use.gcc_assert (!is_vla || warn_vla_limit > 0); gcc_assert (is_vla || warn_alloca_limit > 0);
Jeff