Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler: add HAVE_EXPRESSION_STATEMENT macro for gcc #14580

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Nov 5, 2024

  1. compiler: add HAVE_EXPRESSION_STATEMENT macro for gcc

    this will open fast version of div_const which defined in:
    include/nuttx/lib/math32.h
    when meet 64/32 when use gcc compiling
    
    Signed-off-by: ligd <[email protected]>
    GUIDINGLI committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    e17a99c View commit details
    Browse the repository at this point in the history
  2. boards: fix compile failed

    In file included from /home/ligd/platform/mainline/nuttx/include/nuttx/clock.h:38,
                     from sam_automount.c:35:
    sam_automount.c:92:19: error: braced-group within expression allowed only inside a function
       92 |     .ddelay     = MSEC2TICK(CONFIG_SAMA5D4EK_HSMCI0_AUTOMOUNT_DDELAY),
          |                   ^~~~~~~~~
    sam_automount.c:93:19: error: braced-group within expression allowed only inside a function
       93 |     .udelay     = MSEC2TICK(CONFIG_SAMA5D4EK_HSMCI0_AUTOMOUNT_UDELAY),
          |                   ^~~~~~~~~
    
    Signed-off-by: ligd <[email protected]>
    GUIDINGLI committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    8c4cf50 View commit details
    Browse the repository at this point in the history