Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe
  • Repository
Switch branch/tag
  • ipipe
  • include
  • linux
  • compiler-gcc4.h
Find file BlameHistoryPermalink
  • David Daney's avatar
    Add support for GCC-4.5's __builtin_unreachable() to compiler.h (v2) · 38938c87
    David Daney authored Dec 04, 2009
    
    
    Starting with version 4.5, GCC has a new built-in function
    __builtin_unreachable() that can be used in places like the kernel's
    BUG() where inline assembly is used to transfer control flow.  This
    eliminated the need for an endless loop in these places.
    
    The patch adds a new macro 'unreachable()' that will expand to either
    __builtin_unreachable() or an endless loop depending on the compiler
    version.
    
    Change from v1: Simplify unreachable() for non-GCC 4.5 case.
    Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
    Acked-by: default avatarRalf Baechle <ralf@linux-mips.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    38938c87

Imprint & Privacy Policy