Add C++ compiler support (g++, libstdc++) #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CodeWarrior ships a C++ compiler for the HC12/S12/S12X family. This repo's GCC builds are C-only (
--enable-languages=c): there is nom68hc11-elf-g++, nolibstdc++, and no C++ runtime. Code written against CodeWarrior's C++ mode cannot be migrated, and developers cannot use C++ for new projects.Current state
pkgs/gcc-m68hc11.nix(GCC 3.3.6-s12x) configures with--enable-languages=c.pkgs/gcc-4.3.6.nix(GCC 4.3.6 forward port) also uses--enable-languages=c.m68hc11-elf-g++does not exist in the built toolchain.Proposed scope
--enable-languages=c,c++.libstdc++for them68hc11-elftarget and its multilibs (m68hc12, m9s12x, mshort, mlong-calls).Acceptance criteria
m68hc11-elf-g++accepts and compiles a small C++ program for-m68hc11,-m68hc12, and-m9s12x.new/deletevia freestanding operator new, static constructor) links and runs undergdb-sim.flake.nix:check-compile-matrix,check-compiler-diff, sim checks).References
pkgs/gcc-m68hc11.nix,pkgs/gcc-4.3.6.nixflake.nix(multilib and check wiring)