https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122943
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sjames at gcc dot gnu.org
--- Comment #3 from Sam James <sjames at gcc dot gnu.org> ---
Was going to bisect w/
```
#include <stdint.h>
__attribute__((noipa))
unsigned char arm_switch_o2_bug(long long val) {
unsigned char result = 0;
switch (val) {
case 0: result = 1; break; /* val == INT64_MIN passes this label */
case 1: result = 2; break;
case 2: result = 3; break;
default: break;
}
return result;
}
int main() {
if (arm_switch_o2_bug(INT64_MIN) != 0)
__builtin_abort();
}
```
but guess not needed?