Skip to content

Commit

Permalink
toolchain/ghs: Fix green hills toolchain build Vela "no storage class…
Browse files Browse the repository at this point in the history
… or type specifier" error

"libcxxmini/libxx_cxa_guard.cxx", line 47: error apache#77-D: this declaration has
          no storage class or type specifier
  __extension__ typedef int __guard __attribute__((mode(__DI__)));
  ^

"libcxxmini/libxx_cxa_guard.cxx", line 47: error apache#65: expected a ";"
  __extension__ typedef int __guard __attribute__((mode(__DI__)));
                ^

"libcxxmini/libxx_cxa_guard.cxx", line 64: error apache#20: identifier "__guard" is
          undefined
    int __cxa_guard_acquire(FAR __guard *g)
                                ^

"libcxxmini/libxx_cxa_guard.cxx", line 64: error apache#20: identifier "g" is
          undefined
    int __cxa_guard_acquire(FAR __guard *g)
                                         ^

"libcxxmini/libxx_cxa_guard.cxx", line 65: error apache#65: expected a ";"
    {
    ^

"libcxxmini/libxx_cxa_guard.cxx", line 93: warning apache#12-D: parsing restarts
          here after previous syntax error
  }

Signed-off-by: yanghuatao <[email protected]>
  • Loading branch information
yanghuatao authored and extinguish committed Aug 6, 2024
1 parent 439b9e9 commit ef12466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/libxx/libcxxmini/libxx_cxa_guard.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ typedef int __guard;
// variable and the first byte contains 0 prior to initialization, and
// 1 after.

__extension__ typedef int __guard __attribute__((mode(__DI__)));
typedef int __guard __attribute__((mode(__DI__)));
#endif

//***************************************************************************
Expand Down

0 comments on commit ef12466

Please sign in to comment.