Skip to content

GCC 2.95 support#177

Draft
Un1q32 wants to merge 1 commit into
ButterscotchRunner:mainfrom
Un1q32:gcc-2.95
Draft

GCC 2.95 support#177
Un1q32 wants to merge 1 commit into
ButterscotchRunner:mainfrom
Un1q32:gcc-2.95

Conversation

@Un1q32
Copy link
Copy Markdown
Contributor

@Un1q32 Un1q32 commented May 30, 2026

This is ready but depends on #176 so its marked as draft until that gets merged.

Adds support for building with GCC 2.95.

GCC 2.95's C mode, even with -std=gnu9x, doesn't support mixed declarations and code, which makes it impossible to adapt butterscotch to support it without major effort. It would basically be a full C89 conversion, and would be a monumental diff. This is unacceptable.
The solution was to target GCC 2.95's C++ mode. C++ has supported mixed declarations and code for much longer, so I just made the changes required to build with g++ -fpermissive. You must use -fpermissive because otherwise GCC will error whenever you implicitly cast a void * to another pointer type.

@Un1q32
Copy link
Copy Markdown
Contributor Author

Un1q32 commented Jun 3, 2026

This has a fuckton of merge conflicts now but I don't wanna fix it just for it to break again in a couple days. I'll wait for #176 and then maybe try to do gcc 2.96RH so the diff can be smaller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant