On Tue, Aug 26, 2025 at 9:44 PM Philipp Klaus Krause <p...@spth.de> wrote:
> clang always treats int as signed in bit-fields. For GCC, they are
> signed by default but there is -funsigned-bitfields to change that. I
> don't know how GCC with -funsigned-bitfields handles the typedef and
> typeof questions.

So, my preference is to treat int as signed in bit-fields.

> Options like this increase the burden of maintenance and testing, so I'd
> prefer not to introduce it unless there is a very good reason to do so.

That's very fair.
What about doing the change and only introducing a knob if someone screams ?

;-)

--
Steve Schnepp


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to