This activates UBSan for the power architecture.
One test case is updated to allow for differences between power and other architectures in behavior when returning from main in certain instances.
Paths
| Differential D8743
Activate UBSan for Power ClosedPublic Authored by seurer on Mar 31 2015, 12:03 PM.
Details
Diff Detail Event Timelineseurer updated this object. Comment Actions One small concern inline...
This revision is now accepted and ready to land.Mar 31 2015, 2:14 PM Comment Actions Great. I've submitted r233862 to make sure we run check-ubsan on
Revision Contents
Diff 22994 projects/compiler-rt/cmake/config-ix.cmake
projects/compiler-rt/lib/ubsan/ubsan_platform.h
projects/compiler-rt/lib/ubsan/ubsan_value.cc
projects/compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp
|
Probably should make test_int static or filescope, as otherwise the compiler is within its rights to optimize this away despite the exception. Same comment applies several more times below.