Menu

#466 Merge newer upsteam cpp

None
closed-fixed
Felix
None
5
2023-02-08
2015-10-10
No

SDCC's preproccessor is currently based on the one from gcc 4.6.3. Current gcc version in 5.2. Merging a new upstream version will make it much easier to fix bug #2425.

Philipp

Related

Support Requests: #142
Wiki: SDCC-STD-UX

Discussion

  • Philipp Klaus Krause

    This turns out to be more complicated than expected. A lot of coding-style modifictions make it hard to find the differences that really matter. And while the libcpp stuff is based on gcc 4.6.3, the rest is based on even older upstream versions.

    Philipp

     
  • Philipp Klaus Krause

    At some point we'll want to update to get better support for newer standards. The LLVM preprocessor might be an alternative. There also is Wave in boost, but it apparently supports C99 only (i.e. no C89, C11 or C2X).

    Philipp

    P.S.: The LLVM preprocessor infrastructure has a reputation for being easy to use, but it depends on most of the rest of LLVM. So libcpp from GCC 10 or 11 looks like out best choice here.

     

    Last edit: Philipp Klaus Krause 2021-04-07
  • Felix

    Felix - 2023-02-08
    • status: open --> closed-fixed
    • assigned_to: Felix
    • Group: -->
     
  • Felix

    Felix - 2023-02-08

    The preprocessor has been updated to cpp from gcc 12.1.0. [r13690].

     

    Related

    Commit: [r13690]


Log in to post a comment.