1. 01 12月, 2008 34 次提交
  2. 25 11月, 2008 1 次提交
    • D
      MIPS: Make BUG() __noreturn. · 8ec2e243
      David Daney 提交于
      Often we do things like put BUG() in the default clause of a case
      statement.  Since it was not declared __noreturn, this could sometimes
      lead to bogus compiler warnings that variables were used
      uninitialized.
      
      There is a small problem in that we have to put a magic while(1); loop to
      fool GCC into really thinking it is noreturn.  This makes the new
      BUG() function 3 instructions long instead of just 1, but I think it
      is worth it as it is now unnecessary to do extra work to silence the
      'used uninitialized' warnings.
      
      I also re-wrote BUG_ON so that if it is given a constant condition, it
      just does BUG() instead of loading a constant value in to a register
      and testing it.
      Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      8ec2e243
  3. 21 11月, 2008 5 次提交