[Bug c/39488] ARM ABI: enum comparison against zero optimized away

2009-03-18 Thread algrant at acm dot org
--- Comment #2 from algrant at acm dot org 2009-03-18 09:45 --- No, the enum is signed, see AAPCS 7.1.3: "the container type is int unless the upper bound is greater than 2147483647". -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39488

[Bug c/39488] ARM ABI: enum comparison against zero optimized away

2009-03-18 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-03-18 09:43 --- a is promoted to unsigned int because the enum is unsigned. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39488