]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg RVCT: add definition of UNREACHABLE
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 11 Aug 2016 18:13:31 +0000 (20:13 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 12 Aug 2016 07:05:01 +0000 (09:05 +0200)
commit82df618711c596d3b6164e790572c795b7ea4dcc
tree1b1cb8623ab9dee14fca1c9941db7b92c2e90717
parentd977ba44066e49e466f0505b010cfffaf6d38b12
MdePkg RVCT: add definition of UNREACHABLE

The RVCT compiler in --gnu mode appears to simply strip of the __builtin
prefix when it encounters calls to __builtin_xxx() functions, and so
the __builtin_unreachable() we emit for GCC results in linker errors
regarding undefined references against 'unreachable()'.

So define UNREACHABLE() to a NOP instead.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Include/Arm/ProcessorBind.h