git: 4c11c4976ce5 - main - lang/gcc12-devel: Update to 12.3.1.s20240613

From: Lorenzo Salvadore <salvadore_at_FreeBSD.org>
Date: Thu, 20 Jun 2024 12:34:49 UTC
The branch main has been updated by salvadore:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4c11c4976ce51ab9362b239bd979421139bca325

commit 4c11c4976ce51ab9362b239bd979421139bca325
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2024-06-14 01:00:31 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2024-06-20 12:30:21 +0000

    lang/gcc12-devel: Update to 12.3.1.s20240613
    
    Also delete obsolete patches, upstreamed in upstream commits
    a995fded34fe488153b06bb41e026277f01efded and
    8f11ed1c58e14421ba4be1652764fc47fdce8dc7.
---
 lang/gcc12-devel/Makefile                          |  2 +-
 lang/gcc12-devel/distinfo                          |  6 ++--
 lang/gcc12-devel/files/patch-gcc_system.h          | 42 ----------------------
 .../gcc12-devel/files/patch-libcc1_libcc1plugin.cc | 19 ----------
 .../gcc12-devel/files/patch-libcc1_libcp1plugin.cc | 19 ----------
 5 files changed, 4 insertions(+), 84 deletions(-)

diff --git a/lang/gcc12-devel/Makefile b/lang/gcc12-devel/Makefile
index 0081db2fd1bc..7047e4990b16 100644
--- a/lang/gcc12-devel/Makefile
+++ b/lang/gcc12-devel/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	gcc
-PORTVERSION=	12.3.1.s20240606
+PORTVERSION=	12.3.1.s20240613
 CATEGORIES=	lang
 MASTER_SITES=	GCC/snapshots/${DIST_VERSION}
 PKGNAMESUFFIX=	${SUFFIX}-devel
diff --git a/lang/gcc12-devel/distinfo b/lang/gcc12-devel/distinfo
index 6196d663dd83..5d08ddcc2804 100644
--- a/lang/gcc12-devel/distinfo
+++ b/lang/gcc12-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1717722025
-SHA256 (gcc-12-20240606.tar.xz) = 7507c7514a4a920f9acac06d3b8ea702cb0c1321de3cb6b57d1ebbf8bdb0f08d
-SIZE (gcc-12-20240606.tar.xz) = 79866660
+TIMESTAMP = 1718326830
+SHA256 (gcc-12-20240613.tar.xz) = 507ae45060c604f56fe735bfdcad2a0811995b4ae59439bc3d4365d3585635a0
+SIZE (gcc-12-20240613.tar.xz) = 79875076
diff --git a/lang/gcc12-devel/files/patch-gcc_system.h b/lang/gcc12-devel/files/patch-gcc_system.h
deleted file mode 100644
index 46a725f37714..000000000000
--- a/lang/gcc12-devel/files/patch-gcc_system.h
+++ /dev/null
@@ -1,42 +0,0 @@
---- gcc/system.h.orig	2023-09-15 22:32:10 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
diff --git a/lang/gcc12-devel/files/patch-libcc1_libcc1plugin.cc b/lang/gcc12-devel/files/patch-libcc1_libcc1plugin.cc
deleted file mode 100644
index d54adddb021b..000000000000
--- a/lang/gcc12-devel/files/patch-libcc1_libcc1plugin.cc
+++ /dev/null
@@ -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;
- 
diff --git a/lang/gcc12-devel/files/patch-libcc1_libcp1plugin.cc b/lang/gcc12-devel/files/patch-libcc1_libcp1plugin.cc
deleted file mode 100644
index 0f3d2d161404..000000000000
--- a/lang/gcc12-devel/files/patch-libcc1_libcp1plugin.cc
+++ /dev/null
@@ -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;
-