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

xtensa xt-xcc inline warning #29706

Closed
hongshui3000 opened this issue Nov 2, 2020 · 1 comment
Closed

xtensa xt-xcc inline warning #29706

hongshui3000 opened this issue Nov 2, 2020 · 1 comment
Assignees
Labels
area: Xtensa Xtensa Architecture bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug Wont Fix Not going to fix or implement

Comments

@hongshui3000
Copy link
Contributor

Describe the bug
xtensa xcc inline warning

To Reproduce
Steps to reproduce the behavior:
west build -b qemu_xtensa samples/hello_world

Logs and console output
E:/zephyrproject/zephyr/kernel/sched.c:699: warning: C99 inline functions are not supported; using GNU89
E:/zephyrproject/zephyr/kernel/sched.c:699: warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute
../kernel/include/ksched.h:58: warning: 'z_find_first_thread_to_unpend' declared inline after being called
../kernel/include/ksched.h:58: warning: previous declaration of 'z_find_first_thread_to_unpend' was here
E:/work/rtos_work/zephyrproject/zephyr/kernel/sched.c:719: warning: C99 inline functions are not supported; using GNU89
../kernel/include/ksched.h:43: warning: 'z_unpend_thread_no_timeout' declared inline after being called
../kernel/include/ksched.h:43: warning: previous declaration of 'z_unpend_thread_no_timeout' was here
E:/zephyrproject/zephyr/kernel/sched.c:964: warning: C99 inline functions are not supported; using GNU89
E:/zephyrproject/zephyr/kernel/sched.c:1080: warning: C99 inline functions are not supported; using GNU89
E:/zephyrproject/zephyr/kernel/sched.c:1088: warning: C99 inline functions are not supported; using GNU89
[65/65] Linking C executable zephyr\zephyr.elf

Environment (please complete the following information):

  • OS: ( Windows)
  • Toolchain (xcc)
@hongshui3000 hongshui3000 added the bug The issue is a bug, or the PR is fixing a bug label Nov 2, 2020
@hongshui3000 hongshui3000 changed the title inline warning xtensa xcc inline warning Nov 2, 2020
@hongshui3000 hongshui3000 changed the title xtensa xcc inline warning xtensa xt-xcc inline warning Nov 2, 2020
@MaureenHelm MaureenHelm added area: Xtensa Xtensa Architecture priority: low Low impact/importance bug labels Nov 3, 2020
@dcpleung
Copy link
Member

dcpleung commented Nov 4, 2020

This is due to XCC not supporting C99 inline as XCC is based on GCC 4.2. To get rid of these warning requires refactoring lots of scheduler code, which is undesirable to simply support an outdated compiler. My recommendation is to try a newer XCC release which has Clang support (e.g. has xt-clang executable), as it should have C99 inlining support alreay.

Closing this as "won't fix".

@dcpleung dcpleung closed this as completed Nov 4, 2020
@dcpleung dcpleung added the Wont Fix Not going to fix or implement label Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Xtensa Xtensa Architecture bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug Wont Fix Not going to fix or implement
Projects
None yet
Development

No branches or pull requests

3 participants