User Activity

  • Posted a comment on ticket #3977 on Small Device C Compiler (SDCC)

    With a bit of luck, I will have ckd_mul and ckd_add for unsigned long long ready for the upcoming release. That would be by far the most elegant way to get rid of the warning.

  • Posted a comment on ticket #3954 on Small Device C Compiler (SDCC)

    With --stack-auto, this one works, too. Quoting myself: The observed behavior can potentially be explained with SDCC's default settings: For historical reasons, the default target -mmcs51 generates non-reeantrant function code, unless --stack-auto is specified. It then compares qualified function types, because it must not ignore (explicit or implicit) address space qualifiers. See also [feature-requests:#948], which addresses this unintuitiveness.

  • Posted a comment on ticket #948 on Small Device C Compiler (SDCC)

    Maybe it is sufficient to output a warning only when the default behavior directly conflicts with the user's presumed intention, namely when standard compliance has been explicitly requested via e.g. --std-c23. When such a command line switch has been specified, the current default behavior for e.g. MCS-51 (the compiler outputting non-reentrant code by default) becomes particularly unintuitive.

  • Posted a comment on ticket #3962 on Small Device C Compiler (SDCC)

    (comment copied from a different bug ticket) Can you retry with sdcc -c --std=c23 --stack-auto or sdcc -c --std=c23 -mz80? The observed behavior can potentially be explained with SDCC's default settings: For historical reasons, the default target -mmcs51 generates non-reeantrant function code, unless --stack-auto is specified. It then compares qualified function types, because it must not ignore (explicit or implicit) address space qualifiers. See also [feature-requests:#948], which addresses this...

  • Posted a comment on ticket #3964 on Small Device C Compiler (SDCC)

    (comment copied from a different bug ticket) Can you retry with sdcc -c --std=c23 --stack-auto or sdcc -c --std=c23 -mz80? The observed behavior can potentially be explained with SDCC's default settings: For historical reasons, the default target -mmcs51 generates non-reeantrant function code, unless --stack-auto is specified. It then compares qualified function types, because it must not ignore (explicit or implicit) address space qualifiers. See also [feature-requests:#948], which addresses this...

  • Posted a comment on ticket #3963 on Small Device C Compiler (SDCC)

    Can you retry with sdcc -c --std=c23 --stack-auto or sdcc -c --std=c23 -mz80? The observed behavior can potentially be explained with SDCC's default settings: For historical reasons, the default target -mmcs51 generates non-reeantrant function code, unless --stack-auto is specified. It then compares qualified function types, because it must not ignore (explicit or implicit) address space qualifiers. See also [feature-requests:#948], which addresses this unintuitiveness.

  • Posted a comment on ticket #3954 on Small Device C Compiler (SDCC)

    Notes: This variant of the second static_assert apparently works static_assert (_Generic (pacc, const char (*)[64]: 1, default: 0)); and so does this one (C2y), static_assert (_Generic (typeof (*pacc), const char [64]: 1, default: 0)); but this one fails, too: static_assert (_Generic (*pacc, const char [64]: 1, default: 0)); I suspect that something goes wrong either in case '*': in decorateType in SDCCast.c, or in aggregateToPointer in SDCCsymt.c.

  • Posted a comment on ticket #3952 on Small Device C Compiler (SDCC)

    Notes: case '=': in decorateType in SDCCast.c calls compareType in SDCCsymt.c, but only outputs diagnostics on complete incompatibility. compareType in this case forwards to comparePtrType, which in turn forwards to compareType compareType does not appear to distinguish between explicitly and implicitly castable Maybe we need to introduce another return value for compareType.

View All

Personal Data

Username:
roybaer
Joined:
2010-12-27 11:16:49

Projects

This is a list of open source software projects that Benedikt Freisen is associated with:

Personal Tools

MongoDB Logo MongoDB