Remove gcc-oracle-4.8-44.0.5

GCC 4.8 and its prerequisites have been removed by 04dce680, 41d4583a
and e4221734; as a result, 4.8-based version of gcc-oracle became
unbuildable (no valid versions for the prerequisites).

Update the samples to use 4.9.4; which however fails to build on a modern
host GCC. Build fix backported to gcc-4.9 and gcc-5 versions.

Fix binutils-oracle build with host GCC11.

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2022-01-01 16:23:19 -08:00
parent 8d63665818
commit 4c6604e730
8 changed files with 75 additions and 31 deletions

View File

@ -0,0 +1,26 @@
From 23272f9927dc95c0cf6f7c5aabcc0551eca572c5 Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Fri, 7 Jun 2019 07:36:52 +0200
Subject: [PATCH] Fix a missing include of <string>
gold/ChangeLog:
2019-06-07 Martin Liska <mliska@suse.cz>
* errors.h: Include string.
---
gold/errors.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gold/errors.h b/gold/errors.h
index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@
#define GOLD_ERRORS_H
#include <cstdarg>
+#include <string>
#include "gold-threads.h"

View File

@ -1,2 +0,0 @@
repository_branch='oracle/gcc/ol7-u9'
version_number='4.8'

View File

@ -1,5 +0,0 @@
master='gcc'
repository='git https://github.com/oracle/gcc.git'
origin='Oracle'
src_release='n'
src_devel='y'

View File

@ -0,0 +1,17 @@
Fixes
.../gcc/reload1.c:89:24: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
Fixed upstream in GCC6+ in d57c99458933.
--- gcc-4.9.4/gcc/reload.h 2022-01-01 15:51:43.293254281 -0800
+++ gcc-4.9.4/gcc/reload.h 2022-01-01 15:51:58.437424873 -0800
@@ -166,7 +166,7 @@
value indicates the level of indirect addressing supported, e.g., two
means that (MEM (MEM (REG n))) is also valid if (REG n) does not get
a hard register. */
- bool x_spill_indirect_levels;
+ unsigned char x_spill_indirect_levels;
/* True if caller-save has been reinitialized. */
bool x_caller_save_initialized_p;

View File

@ -0,0 +1,21 @@
Fixes
.../gcc/reload1.c:89:24: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
Fixed upstream in GCC6+ in d57c99458933.
---
gcc/reload.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/gcc/reload.h
+++ b/gcc/reload.h
@@ -168,7 +168,7 @@
value indicates the level of indirect addressing supported, e.g., two
means that (MEM (MEM (REG n))) is also valid if (REG n) does not get
a hard register. */
- bool x_spill_indirect_levels;
+ unsigned char x_spill_indirect_levels;
/* True if caller-save has been reinitialized. */
bool x_caller_save_initialized_p;

View File

@ -5,17 +5,13 @@ CT_ARCH_64=y
CT_TARGET_VENDOR="ol7u9"
CT_KERNEL_LINUX=y
CT_LINUX_USE_ORACLE=y
CT_LINUX_ORACLE_V_4_14=y
CT_LINUX_ORACLE_VERSION="4.14.35-2025.400.8"
CT_BINUTILS_USE_ORACLE=y
CT_BINUTILS_ORACLE_V_2_27_44=y
CT_BINUTILS_LINKER_LD_GOLD=y
CT_BINUTILS_GOLD_THREADS=y
CT_BINUTILS_LD_WRAPPER=y
CT_BINUTILS_PLUGINS=y
CT_GLIBC_USE_ORACLE=y
CT_GLIBC_ORACLE_V_2_17_317_0_3=y
CT_GCC_USE_ORACLE=y
CT_GCC_ORACLE_V_4_8=y
CT_GCC_ORACLE_VERSION="4.8.5-44.0.5"
CT_GLIBC_EXTRA_CFLAGS="-Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized"
CT_GLIBC_ENABLE_COMMON_FLAG=y
CT_GCC_V_4_9=y
CT_CC_LANG_CXX=y

View File

@ -1,21 +1,17 @@
CT_CONFIG_VERSION="3"
CT_OBSOLETE=y
CT_ARCH_ARM=y
CT_TARGET_VENDOR="ol7u9"
CT_ARCH_FLOAT_SW=y
CT_TARGET_VENDOR="ol7u9"
CT_KERNEL_LINUX=y
CT_LINUX_USE_ORACLE=y
CT_LINUX_ORACLE_V_4_14=y
CT_LINUX_ORACLE_VERSION="4.14.35-2025.400.8"
CT_BINUTILS_USE_ORACLE=y
CT_BINUTILS_ORACLE_V_2_27_44=y
CT_BINUTILS_LINKER_LD_GOLD=y
CT_BINUTILS_GOLD_THREADS=y
CT_BINUTILS_LD_WRAPPER=y
CT_BINUTILS_PLUGINS=y
CT_GLIBC_USE_ORACLE=y
CT_GLIBC_ORACLE_V_2_17_317_0_3=y
CT_GCC_USE_ORACLE=y
CT_GCC_ORACLE_V_4_8=y
CT_GCC_ORACLE_VERSION="4.8.5-44.0.5"
CT_GLIBC_EXTRA_CFLAGS="-Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized"
CT_GLIBC_ENABLE_COMMON_FLAG=y
CT_GCC_V_4_9=y
CT_CC_LANG_CXX=y

View File

@ -1,21 +1,16 @@
CT_CONFIG_VERSION="3"
CT_OBSOLETE=y
CT_ARCH_ARM=y
CT_TARGET_VENDOR="ol7u9"
CT_ARCH_FLOAT_HW=y
CT_TARGET_VENDOR="ol7u9"
CT_KERNEL_LINUX=y
CT_LINUX_USE_ORACLE=y
CT_LINUX_ORACLE_V_4_14=y
CT_LINUX_ORACLE_VERSION="4.14.35-2025.400.8"
CT_BINUTILS_USE_ORACLE=y
CT_BINUTILS_ORACLE_V_2_27_44=y
CT_BINUTILS_LINKER_LD_GOLD=y
CT_BINUTILS_GOLD_THREADS=y
CT_BINUTILS_LD_WRAPPER=y
CT_BINUTILS_PLUGINS=y
CT_GLIBC_USE_ORACLE=y
CT_GLIBC_ORACLE_V_2_17_317_0_3=y
CT_GCC_USE_ORACLE=y
CT_GCC_ORACLE_V_4_8=y
CT_GCC_ORACLE_VERSION="4.8.5-44.0.5"
CT_GLIBC_EXTRA_CFLAGS="-Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized"
CT_GLIBC_ENABLE_COMMON_FLAG=y
CT_GCC_V_4_9=y
CT_CC_LANG_CXX=y