https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104693
Bug ID: 104693
Summary: Can't disable "comparison between pointer and integer"
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Comp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104693
--- Comment #1 from Charles Nicholson ---
Oh, also, this warning appears to go all the way back to gcc 4.1.2, the
earliest that godbolt still supports.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104344
Bug ID: 104344
Summary: Suboptimal -Os code for manually unrolled loop
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104344
--- Comment #2 from Charles Nicholson ---
For whatever it's worth, clang does recognize both forms and emit optimal
assembly at -Os:
https://gcc.godbolt.org/z/sehxYb97E
cast_through_char_unrolled: # @cast_through_char_unrolled
movd eax, xmm0