This commit is contained in:
rofl0r 2025-02-19 22:09:59 +00:00 committed by GitHub
commit 99e6d09423
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,19 @@
--- gcc-4.2.1.org/configure
+++ gcc-4.2.1/configure
@@ -436,6 +436,16 @@
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
;;
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ case $ac_envvar in #(
+ '' | [0-9]* | *[!_$as_cr_alnum]* )
+ as_fn_error "invalid variable name: \`$ac_envvar'" ;;
+ esac
+ eval $ac_envvar=\$ac_optarg
+ export $ac_envvar ;;
+
*)
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
echo "configure: warning: $ac_option: invalid host type" 1>&2

View File

@ -0,0 +1,22 @@
--- gcc-4.2.1.orig/gcc/cp/cfns.h
+++ gcc-4.2.1/gcc/cp/cfns.h
@@ -37,6 +37,9 @@
#ifdef __GNUC__
__inline
#endif
+#ifdef __GNUC_STDC_INLINE__
+__attribute__ ((__gnu_inline__))
+#endif
const char * libc_name_p (const char *, unsigned int);
/* maximum key range = 391, duplicates = 0 */
@@ -107,6 +110,9 @@
#ifdef __GNUC__
__inline
+#endif
+#ifdef __GNUC_STDC_INLINE__
+__attribute__ ((__gnu_inline__))
#endif
const char *
libc_name_p (register const char *str, register unsigned int len)