Commit Graph

4 Commits

Author SHA1 Message Date
Bryan Hundven
5248760ea9
Merge pull request #1908 from keith-packard/gcc-getenv-default
packages/gcc: Add gcc patch to allow getenv default values
2023-03-09 19:59:35 -08:00
Keith Packard
90cbc880af packages/gcc/12.2.0: Add picolibc patches
These patches allow picolibc to act as the system C library within gcc.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-03-08 16:54:12 +13:00
Keith Packard
06a0160328 packages/gcc: Add gcc patch to allow getenv default values
This patch, submitted upstream but not (yet?) accepted, adds a third
parameter to the specs file 'getenv' function that provides a value
for when the environment variable is not set, instead of having gcc
fail.

This seemed like the safest way to provide a mechanism for getting the
installed location of the toolchain from inside a specs file as, when
not installed in the built-in location, gcc already sets the
GCC_EXEC_PREFIX environment variable to a well defined location within
that directory hierarchy, but when installed in the location specified
at compile time, gcc does not. Providing a default value that matches
the compile-time location then allows the specs file to compute paths
relative to the current GCC installation location, whereever it is
installed.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-02-28 13:42:48 -08:00
Chris Packham
3020aca6bb gcc: Add gcc 12.2.0
https://gcc.gnu.org/pipermail/gcc-announce/2022/000174.html

Add gcc 12.2.0. None of the patches needed regenerating.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2022-08-23 20:02:11 +12:00