[packages/gcc] Started playing with gcc 12.1.0

arekm arekm at pld-linux.org
Mon May 9 09:15:36 CEST 2022


commit 11268db8b1d46f9035e8f8083f5cf263caab3bac
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon May 9 09:15:19 2022 +0200

    Started playing with gcc 12.1.0

 all-library-paths.patch |  4 ++--
 branch.sh               |  4 ++--
 gcc-nodebug.patch       | 20 ++++++++++----------
 gcc.spec                | 10 +++++-----
 4 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/gcc.spec b/gcc.spec
index 59b76fa..549ad60 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -98,8 +98,8 @@
 
 # Stable is: any major_ver and minor_ver >= 1.0
 # For PLD we usually use gcc when minor_ver >= 2.0 (first bugfix release or later)
-%define		major_ver	11
-%define		minor_ver	3.0
+%define		major_ver	12
+%define		minor_ver	1.0
 
 Summary:	GNU Compiler Collection: the C compiler and shared files
 Summary(es.UTF-8):	Colección de compiladores GNU: el compilador C y ficheros compartidos
@@ -107,19 +107,19 @@ Summary(pl.UTF-8):	Kolekcja kompilatorów GNU: kompilator C i pliki współdziel
 Summary(pt_BR.UTF-8):	Coleção dos compiladores GNU: o compilador C e arquivos compartilhados
 Name:		gcc
 Version:	%{major_ver}.%{minor_ver}
-Release:	1
+Release:	0.1
 Epoch:		6
 License:	GPL v3+
 Group:		Development/Languages
 Source0:	https://gcc.gnu.org/pub/gcc/releases/%{name}-%{version}/%{name}-%{version}.tar.xz
-# Source0-md5:	4ee3e8c4c99e7b3444eb79f00f5f7a7e
+# Source0-md5:	ed45b55ee859ada4b25a1e76e0c4d966
 Source1:	%{name}-optimize-la.pl
 # check libffi version with libffi/configure.ac
 Source3:	libffi.pc.in
 Source4:	branch.sh
 # use branch.sh to update gcc-branch.diff
 Patch100:	%{name}-branch.diff
-# Patch100-md5:	b151a526f59360b1f7b5042929b46b7b
+# Patch100-md5:	ef6210025cf1eb97a8fbbc9f935c7697
 Patch0:		%{name}-info.patch
 Patch1:		all-library-paths.patch
 Patch2:		%{name}-nodebug.patch
diff --git a/all-library-paths.patch b/all-library-paths.patch
index 66d0468..e1c1941 100644
--- a/all-library-paths.patch
+++ b/all-library-paths.patch
@@ -1,5 +1,5 @@
---- gcc-11.2.0/gcc/gcc.c.orig	2022-04-18 15:40:02.650553155 +0200
-+++ gcc-11.2.0/gcc/gcc.c	2022-04-19 09:31:21.340818868 +0200
+--- gcc-11.2.0/gcc/gcc.cc.orig	2022-04-18 15:40:02.650553155 +0200
++++ gcc-11.2.0/gcc/gcc.cc	2022-04-19 09:31:21.340818868 +0200
 @@ -7817,17 +7817,6 @@
    *cp++ = '.';
    *cp = '\0';
diff --git a/branch.sh b/branch.sh
index eeb0fc3..4b43628 100755
--- a/branch.sh
+++ b/branch.sh
@@ -2,8 +2,8 @@
 set -e
 url=git://gcc.gnu.org/git/gcc.git
 package=gcc
-tag=releases/gcc-11.3.0
-branch=releases/gcc-11
+tag=releases/gcc-12.1.0
+branch=releases/gcc-12
 out=$package-branch.diff
 repo=$package.git
 
diff --git a/gcc-nodebug.patch b/gcc-nodebug.patch
index 162eddd..4db00f1 100644
--- a/gcc-nodebug.patch
+++ b/gcc-nodebug.patch
@@ -36,7 +36,7 @@ diff -urNp -x '*.orig' gcc-10.2.0.org/gcc/ada/gcc-interface/Makefile.in gcc-10.2
 @@ -105,13 +105,13 @@ TEXI2PDF = texi2pdf
  GNATBIND_FLAGS = -static -x
  ADA_CFLAGS =
- ADAFLAGS = -W -Wall -gnatpg -gnata
+ ADAFLAGS = -W -Wall -gnatpg -gnata -gnatU
 -FORCE_DEBUG_ADAFLAGS = -g
 +FORCE_DEBUG_ADAFLAGS =
  NO_INLINE_ADAFLAGS = -fno-inline
@@ -64,27 +64,27 @@ diff -urNp -x '*.orig' gcc-10.2.0.org/libada/Makefile.in gcc-10.2.0/libada/Makef
 diff -urNp -x '*.orig' gcc-10.2.0.org/libffi/Makefile.am gcc-10.2.0/libffi/Makefile.am
 --- gcc-10.2.0.org/libffi/Makefile.am	2020-07-23 08:35:18.736399887 +0200
 +++ gcc-10.2.0/libffi/Makefile.am	2021-03-21 01:23:21.859335808 +0100
-@@ -202,7 +202,7 @@ nodist_libffi_convenience_la_SOURCES = $
+@@ -182,7 +182,7 @@ nodist_libffi_convenience_la_SOURCES = $
  
  LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
  
--AM_CFLAGS = -Wall -g -fexceptions
-+AM_CFLAGS = -Wall -fexceptions
+-AM_CFLAGS = -Wall -g -fexceptions $(CET_FLAGS)
++AM_CFLAGS = -Wall -fexceptions $(CET_FLAGS)
  if FFI_DEBUG
  # Build debug. Define FFI_DEBUG on the commandline so that, when building with
  # MSVC, it can link against the debug CRT.
 diff -urNp -x '*.orig' gcc-10.2.0.org/libffi/Makefile.in gcc-10.2.0/libffi/Makefile.in
 --- gcc-10.2.0.org/libffi/Makefile.in	2020-07-23 08:35:54.708796179 +0200
 +++ gcc-10.2.0/libffi/Makefile.in	2021-03-21 01:23:21.860335808 +0100
-@@ -604,7 +604,7 @@ libffi_convenience_la_LIBADD = $(libffi_
+@@ -589,7 +589,7 @@ libffi_convenience_la_LIBADD = $(libffi_
  libffi_convenience_la_DEPENDENCIES = $(libffi_la_DEPENDENCIES)
  nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
  LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
--AM_CFLAGS = -Wall -g -fexceptions $(am__append_2)
-+AM_CFLAGS = -Wall -fexceptions $(am__append_2)
- @LIBAT_BUILD_VERSIONED_SHLIB_FALSE at libffi_version_script = 
- @LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE at libffi_version_script = -Wl,--version-script,libffi.map
- @LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE at libffi_version_script = -Wl,-M,libffi.map-sun
+-AM_CFLAGS = -Wall -g -fexceptions $(CET_FLAGS) $(am__append_2)
++AM_CFLAGS = -Wall -fexceptions $(CET_FLAGS) $(am__append_2)
+ @LIBFFI_BUILD_VERSIONED_SHLIB_FALSE at libffi_version_script = 
+ @LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE@@LIBFFI_BUILD_VERSIONED_SHLIB_TRUE at libffi_version_script = -Wl,--version-script,libffi.map
+ @LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBFFI_BUILD_VERSIONED_SHLIB_TRUE at libffi_version_script = -Wl,-M,libffi.map-sun
 diff -urNp -x '*.orig' gcc-10.2.0.org/libgcc/Makefile.in gcc-10.2.0/libgcc/Makefile.in
 --- gcc-10.2.0.org/libgcc/Makefile.in	2020-07-23 08:35:18.748400018 +0200
 +++ gcc-10.2.0/libgcc/Makefile.in	2021-03-21 01:23:21.860335808 +0100
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gcc.git/commitdiff/11268db8b1d46f9035e8f8083f5cf263caab3bac



More information about the pld-cvs-commit mailing list