mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
lang/gcc12: Update to 12.4.0
Changes: https://gcc.gnu.org/gcc-12/changes.html#12.4 PR: 281091 Tested by: exp-run (antoine)
This commit is contained in:
parent
9a71c5a6bd
commit
0cd0036154
@ -1,5 +1,5 @@
|
||||
PORTNAME= gcc
|
||||
PORTVERSION= 12.3.0
|
||||
PORTVERSION= 12.4.0
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= GCC
|
||||
PKGNAMESUFFIX= ${SUFFIX}
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1699355292
|
||||
SHA256 (gcc-12.3.0.tar.xz) = 949a5d4f99e786421a93b532b22ffab5578de7321369975b91aec97adfda8c3b
|
||||
SIZE (gcc-12.3.0.tar.xz) = 85491976
|
||||
TIMESTAMP = 1724162795
|
||||
SHA256 (gcc-12.4.0.tar.xz) = 704f652604ccbccb14bdabf3478c9511c89788b12cb3bbffded37341916a9175
|
||||
SIZE (gcc-12.4.0.tar.xz) = 83377372
|
||||
|
22
lang/gcc12/files/patch-gcc_configure
Normal file
22
lang/gcc12/files/patch-gcc_configure
Normal file
@ -0,0 +1,22 @@
|
||||
Enable support for .init_array and .fini_array, which FreeBSD supports
|
||||
since commit 83aa9cc00c2d83d05a0efe7a1496d8aab4a153bb in the src
|
||||
repository.
|
||||
|
||||
There __FreeBSD_version is 1000009, so we start enabling the support
|
||||
from __FreeBSD_version == 1000010.
|
||||
--- gcc/configure.orig 2023-05-11 22:33:34 UTC
|
||||
+++ gcc/configure
|
||||
@@ -24214,6 +24214,13 @@ EOF
|
||||
#else
|
||||
# if defined __sun__ && defined __svr4__
|
||||
/* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
|
||||
+# elif defined __FreeBSD__
|
||||
+# include <sys/param.h>
|
||||
+# if __FreeBSD_version >= 1000010
|
||||
+ /* FreeBSD supports .init_array/.fini_array since FreeBSD 10. */
|
||||
+# else
|
||||
+# error The C library not known to support .init_array/.fini_array
|
||||
+# endif
|
||||
# else
|
||||
# error The C library not known to support .init_array/.fini_array
|
||||
# endif
|
@ -1,42 +0,0 @@
|
||||
--- gcc/system.h.orig 2022-08-19 08:09:53 UTC
|
||||
+++ gcc/system.h
|
||||
@@ -203,19 +203,6 @@ extern int fprintf_unlocked (FILE *, const char *, ...
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-/* There are an extraordinary number of issues with <ctype.h>.
|
||||
- The last straw is that it varies with the locale. Use libiberty's
|
||||
- replacement instead. */
|
||||
-#include "safe-ctype.h"
|
||||
-
|
||||
-#include <sys/types.h>
|
||||
-
|
||||
-#include <errno.h>
|
||||
-
|
||||
-#if !defined (errno) && defined (HAVE_DECL_ERRNO) && !HAVE_DECL_ERRNO
|
||||
-extern int errno;
|
||||
-#endif
|
||||
-
|
||||
#ifdef __cplusplus
|
||||
#if defined (INCLUDE_ALGORITHM) || !defined (HAVE_SWAP_IN_UTILITY)
|
||||
# include <algorithm>
|
||||
@@ -243,6 +230,19 @@ extern int errno;
|
||||
# include <new>
|
||||
# include <utility>
|
||||
# include <type_traits>
|
||||
+#endif
|
||||
+
|
||||
+/* There are an extraordinary number of issues with <ctype.h>.
|
||||
+ The last straw is that it varies with the locale. Use libiberty's
|
||||
+ replacement instead. */
|
||||
+#include "safe-ctype.h"
|
||||
+
|
||||
+#include <sys/types.h>
|
||||
+
|
||||
+#include <errno.h>
|
||||
+
|
||||
+#if !defined (errno) && defined (HAVE_DECL_ERRNO) && !HAVE_DECL_ERRNO
|
||||
+extern int errno;
|
||||
#endif
|
||||
|
||||
/* Some of glibc's string inlines cause warnings. Plus we'd rather
|
@ -1,19 +0,0 @@
|
||||
--- libcc1/libcc1plugin.cc.orig 2023-07-27 08:13:07 UTC
|
||||
+++ libcc1/libcc1plugin.cc
|
||||
@@ -32,6 +32,7 @@
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
#define INCLUDE_MEMORY
|
||||
+#define INCLUDE_VECTOR
|
||||
#include "gcc-plugin.h"
|
||||
#include "system.h"
|
||||
#include "coretypes.h"
|
||||
@@ -68,8 +69,6 @@
|
||||
#include "rpc.hh"
|
||||
#include "gcc-c-interface.h"
|
||||
#include "context.hh"
|
||||
-
|
||||
-#include <vector>
|
||||
|
||||
using namespace cc1_plugin;
|
||||
|
@ -1,19 +0,0 @@
|
||||
--- libcc1/libcp1plugin.cc.orig 2023-07-27 08:13:07 UTC
|
||||
+++ libcc1/libcp1plugin.cc
|
||||
@@ -33,6 +33,7 @@
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
#define INCLUDE_MEMORY
|
||||
+#define INCLUDE_VECTOR
|
||||
#include "gcc-plugin.h"
|
||||
#include "system.h"
|
||||
#include "coretypes.h"
|
||||
@@ -70,8 +71,6 @@
|
||||
#include "marshall-cp.hh"
|
||||
#include "rpc.hh"
|
||||
#include "context.hh"
|
||||
-
|
||||
-#include <vector>
|
||||
|
||||
using namespace cc1_plugin;
|
||||
|
Loading…
Reference in New Issue
Block a user