diff --git a/.gitignore b/.gitignore
index 80128da..b67c902 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,116 +1,32 @@
-/gcc-10.0.1-20200118.tar.xz
-/newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz
-/nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz
-/gcc-10.0.1-20200121.tar.xz
-/gcc-10.0.1-20200123.tar.xz
-/gcc-10.0.1-20200126.tar.xz
-/gcc-10.0.1-20200130.tar.xz
-/gcc-10.0.1-20200216.tar.xz
-/gcc-10.0.1-20200311.tar.xz
-/gcc-10.0.1-20200325.tar.xz
-/gcc-10.0.1-20200328.tar.xz
-/gcc-10.0.1-20200420.tar.xz
-/gcc-10.0.1-20200501.tar.xz
-/gcc-10.1.1-20200507.tar.xz
-/gcc-10.1.1-20200618.tar.xz
-/gcc-10.2.1-20200723.tar.xz
-/gcc-10.2.1-20200804.tar.xz
-/gcc-10.2.1-20200826.tar.xz
-/gcc-10.2.1-20200916.tar.xz
-/gcc-10.2.1-20201005.tar.xz
-/gcc-10.2.1-20201016.tar.xz
-/gcc-10.2.1-20201102.tar.xz
-/gcc-10.2.1-20201112.tar.xz
-/gcc-10.2.1-20201125.tar.xz
-/gcc-11.0.0-20201204.tar.xz
-/gcc-11.0.0-20201216.tar.xz
-/gcc-11.0.0-20201217.tar.xz
-/gcc-11.0.0-20201223.tar.xz
-/gcc-11.0.0-20210109.tar.xz
-/gcc-11.0.0-20210113.tar.xz
-/gcc-11.0.0-20210116.tar.xz
-/gcc-11.0.0-20210119.tar.xz
-/gcc-11.0.0-20210123.tar.xz
-/gcc-11.0.0-20210130.tar.xz
-/gcc-11.0.0-20210210.tar.xz
-/gcc-11.0.0-20210225.tar.xz
-/gcc-11.0.1-20210307.tar.xz
-/gcc-11.0.1-20210319.tar.xz
-/isl-0.18.tar.bz2
-/gcc-11.0.1-20210324.tar.xz
-/gcc-11.0.1-20210405.tar.xz
-/gcc-11.0.1-20210418.tar.xz
-/gcc-11.0.1-20210422.tar.xz
-/gcc-11.0.1-20210423.tar.xz
-/gcc-11.1.1-20210428.tar.xz
-/gcc-11.1.1-20210512.tar.xz
-/gcc-11.1.1-20210531.tar.xz
-/gcc-11.1.1-20210617.tar.xz
-/gcc-11.1.1-20210623.tar.xz
-/gcc-11.1.1-20210726.tar.xz
-/gcc-11.2.1-20210728.tar.xz
-/gcc-11.2.1-20210823.tar.xz
-/gcc-11.2.1-20211012.tar.xz
-/gcc-11.2.1-20211018.tar.xz
-/gcc-11.2.1-20211019.tar.xz
-/gcc-11.2.1-20211203.tar.xz
-/gcc-12.0.0-20220108.tar.xz
-/gcc-12.0.0-20220112.tar.xz
-/gcc-12.0.0-20220115.tar.xz
-/gcc-12.0.1-20220118.tar.xz
-/gcc-12.0.1-20220125.tar.xz
-/gcc-12.0.1-20220129.tar.xz
-/gcc-12.0.1-20220202.tar.xz
-/gcc-12.0.1-20220205.tar.xz
-/gcc-12.0.1-20220212.tar.xz
-/gcc-12.0.1-20220214.tar.xz
-/gcc-12.0.1-20220222.tar.xz
-/gcc-12.0.1-20220306.tar.xz
-/gcc-12.0.1-20220308.tar.xz
-/gcc-12.0.1-20220401.tar.xz
-/gcc-12.0.1-20220411.tar.xz
-/gcc-12.0.1-20220413.tar.xz
-/gcc-12.0.1-20220429.tar.xz
-/gcc-12.1.1-20220507.tar.xz
-/gcc-12.1.1-20220628.tar.xz
-/gcc-12.1.1-20220810.tar.xz
-/gcc-12.2.1-20220819.tar.xz
-/gcc-12.2.1-20221103.tar.xz
/isl-0.24.tar.bz2
-/newlib-cygwin-a8526cb52bedabd4d6ba4b227a5185627f871aa1.tar.xz
-/nvptx-tools-472b6e78b3ba918d727698f79911360b7c808247.tar.xz
-/gcc-12.2.1-20221121.tar.xz
-/gcc-13.0.0-20221219.tar.xz
-/gcc-13.0.0-20230102.tar.xz
-/gcc-13.0.0-20230106.tar.xz
-/gcc-13.0.0-20230112.tar.xz
-/gcc-13.0.0-20230115.tar.xz
-/gcc-13.0.1-20230117.tar.xz
-/gcc-13.0.1-20230127.tar.xz
-/newlib-cygwin-9e09d6ed83cce4777a5950412647ccc603040409.tar.xz
-/gcc-13.0.1-20230208.tar.xz
-/gcc-13.0.1-20230215.tar.xz
-/gcc-13.0.1-20230221.tar.xz
-/gcc-13.0.1-20230304.tar.xz
-/gcc-13.0.1-20230310.tar.xz
-/gcc-13.0.1-20230318.tar.xz
-/gcc-13.0.1-20230321.tar.xz
-/nvptx-tools-93e00909ceb9cbbc104f0fcba56c0361ffb3ca4b.tar.xz
-/gcc-13.0.1-20230324.tar.xz
-/gcc-13.0.1-20230329.tar.xz
-/gcc-13.0.1-20230401.tar.xz
-/gcc-13.0.1-20230404.tar.xz
-/gcc-13.0.1-20230418.tar.xz
-/gcc-13.0.1-20230419.tar.xz
-/gcc-13.0.1-20230421.tar.xz
-/gcc-13.1.1-20230426.tar.xz
-/gcc-13.1.1-20230511.tar.xz
-/gcc-13.1.1-20230519.tar.xz
-/gcc-13.1.1-20230614.tar.xz
-/gcc-13.2.1-20230728.tar.xz
-/gcc-13.2.1-20230906.tar.xz
-/nvptx-tools-aa3404ad5a496cda5d79a50bedb1344fd63e8763.tar.xz
-/gcc-13.2.1-20230918.tar.xz
-/gcc-13.2.1-20231011.tar.xz
-/gcc-13.2.1-20231113.tar.xz
-/gcc-13.2.1-20231205.tar.xz
+/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804.tar.xz
+/newlib-cygwin-2e4db338ac125579d555aeee516e48588a628a16.tar.xz
+/gcc-15.0.1-20250201.tar.xz
+/gcc-15.0.1-20250204.tar.xz
+/gcc-15.0.1-20250225.tar.xz
+/gcc-15.0.1-20250301.tar.xz
+/gcc-15.0.1-20250313.tar.xz
+/gcc-15.0.1-20250329.tar.xz
+/gcc-15.0.1-20250410.tar.xz
+/newlib-cygwin-d35cc82b5ec15bb8a5fe0fe11e183d1887992e99.tar.xz
+/gcc-15.0.1-20250417.tar.xz
+/gcc-15.0.1-20250418.tar.xz
+/gcc-15.1.1-20250425.tar.xz
+/gcc-15.1.1-20250521.tar.xz
+/gcc-15.1.1-20250707.tar.xz
+/gcc-15.1.1-20250718.tar.xz
+/gcc-15.1.1-20250719.tar.xz
+/gcc-15.2.1-20250808.tar.xz
+/nvptx-tools-a0c1fff6534a4df9fb17937c3c4a4b1071212029.tar.xz
+/gcc-15.2.1-20250924.tar.xz
+/gcc-15.2.1-20251022.tar.xz
+/gcc-15.2.1-20251111.tar.xz
+/gcc-15.2.1-20251211.tar.xz
+/gcc-16.0.0-20251218.tar.xz
+/gcc-16.0.0-20251220.tar.xz
+/gcc-16.0.0-20260103.tar.xz
+/gcc-16.0.0-20260110.tar.xz
+/gcc-16.0.0-20260112.tar.xz
+/gcc-16.0.1-20260112.tar.xz
+/gcc-16.0.1-20260113.tar.xz
+/gcc-16.0.1-20260115.tar.xz
diff --git a/gcc-error-logging.patch b/gcc-error-logging.patch
deleted file mode 100644
index 4560407..0000000
--- a/gcc-error-logging.patch
+++ /dev/null
@@ -1,1113 +0,0 @@
-commit 423455963df19041b8dbea86fca8c1bb0549ccf0
-Author: Florian Weimer
-Date: Tue Oct 18 16:28:33 2022 +0200
-
- Log implicit ints/implicit function declarations to /usr/lib/gcc/errors
-
- Only do so for C99 and later language modes, both features were part
- of C89.
-
- The directory and the file name prefix for files within can be
- controlled using the GCC_ERROR_LOG_DIRECTORY and GCC_ERROR_LOG_PREFIX
- environment variables.
-
-diff --git a/gcc/c/c-decl.cc b/gcc/c/c-decl.cc
-index 1b53f2d0785..4bf3b4a4c2a 100644
---- a/gcc/c/c-decl.cc
-+++ b/gcc/c/c-decl.cc
-@@ -3468,6 +3468,14 @@ pushdecl (tree x)
- static void
- implicit_decl_warning (location_t loc, tree id, tree olddecl)
- {
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (loc, "implicit function declaration",
-+ IDENTIFIER_POINTER (id));
-+ error_at (loc, "implicit declaration of function %qE", id);
-+ return;
-+ }
-+
- if (!warn_implicit_function_declaration)
- return;
-
-@@ -6705,7 +6713,15 @@ grokdeclarator (const struct c_declarator *declarator,
-
- /* Diagnose defaulting to "int". */
-
-- if (declspecs->default_int_p && !in_system_header_at (input_location))
-+ if (declspecs->default_int_p && flag_isoc99)
-+ {
-+ log_error_to_directory (loc, "defaulting to int");
-+ if (name)
-+ error_at (loc, "type defaults to % in declaration of %qE", name);
-+ else
-+ error_at (loc, "type defaults to % in type name");
-+ }
-+ else if (declspecs->default_int_p && !in_system_header_at (input_location))
- {
- /* Issue a warning if this is an ISO C 99 program or if
- -Wreturn-type and this is a function, or if -Wimplicit;
-@@ -10469,9 +10485,12 @@ store_parm_decls_oldstyle (tree fndecl, const struct c_arg_info *arg_info)
- warn_if_shadowing (decl);
-
- if (flag_isoc99)
-- pedwarn (DECL_SOURCE_LOCATION (decl),
-- OPT_Wimplicit_int, "type of %qD defaults to %",
-- decl);
-+ {
-+ log_error_to_directory (DECL_SOURCE_LOCATION (decl),
-+ "type defaults to int");
-+ error_at (DECL_SOURCE_LOCATION (decl),
-+ "type of %qD defaults to %", decl);
-+ }
- else
- warning_at (DECL_SOURCE_LOCATION (decl),
- OPT_Wmissing_parameter_type,
-diff --git a/gcc/diagnostic.cc b/gcc/diagnostic.cc
-index 0f093081161..73070cc11f9 100644
---- a/gcc/diagnostic.cc
-+++ b/gcc/diagnostic.cc
-@@ -2737,3 +2737,44 @@ c_diagnostic_cc_tests ()
- #if __GNUC__ >= 10
- # pragma GCC diagnostic pop
- #endif
-+
-+/* Magic code to emit diagnostics to a log directory. */
-+void
-+log_error_to_directory (location_t loc, const char *message,
-+ const char *identifier)
-+{
-+ const char *magic_path = getenv ("GCC_ERROR_LOG_DIRECTORY");
-+ if (magic_path == nullptr)
-+ magic_path = "/usr/lib/gcc/errors";
-+
-+ // Do not log anything if the directory does not exist.
-+ if (access (magic_path, R_OK | W_OK | X_OK) < 0)
-+ return;
-+
-+ const char *log_prefix = getenv ("GCC_ERROR_LOG_PREFIX");
-+ if (log_prefix == nullptr)
-+ log_prefix = "gcc";
-+
-+ char *templ = xasprintf ("%s/%sXXXXXX", magic_path, log_prefix);
-+ int fd = mkstemp (templ);
-+ if (fd < 0)
-+ abort();
-+
-+ auto exploc = expand_location (loc);
-+ const char *file = exploc.file;
-+ if (file == nullptr)
-+ file = "";
-+ char *formatted;
-+ if (identifier != nullptr)
-+ formatted = xasprintf ("%s:%d: %s: %s\n",
-+ file, exploc.line, message, identifier);
-+ else
-+ formatted = xasprintf ("%s:%d: %s\n", file, exploc.line, message);
-+ ssize_t len = strlen (formatted);
-+ if (write (fd, formatted, len) != len
-+ || close (fd) < 0)
-+ abort ();
-+
-+ free (formatted);
-+ free (templ);
-+}
-diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
-index 9a51097f146..b520de263ab 100644
---- a/gcc/diagnostic.h
-+++ b/gcc/diagnostic.h
-@@ -619,4 +619,7 @@ extern bool warning_enabled_at (location_t, int);
-
- extern char *get_cwe_url (int cwe);
-
-+void log_error_to_directory (location_t loc, const char *message,
-+ const char *identifier = nullptr);
-+
- #endif /* ! GCC_DIAGNOSTIC_H */
-
-commit 06d52570382a3b9e6041d58d10127ecc466af3b7
-Author: Florian Weimer
-Date: Tue Nov 22 10:50:09 2022 +0100
-
- Turn __declspec into a keyword
-
- This avoids diagnosing
-
- __declspec(thread) int foo;
-
- as an old-style function definition with an implicit int.
-
-diff --git a/gcc/c-family/c-common.cc b/gcc/c-family/c-common.cc
-index aae397ed755..fdc1f163ed0 100644
---- a/gcc/c-family/c-common.cc
-+++ b/gcc/c-family/c-common.cc
-@@ -425,6 +425,7 @@ const struct c_common_resword c_common_reswords[] =
- { "__GIMPLE", RID_GIMPLE, D_CONLY },
- { "__PHI", RID_PHI, D_CONLY },
- { "__RTL", RID_RTL, D_CONLY },
-+ { "__declspec", RID_DECLTYPE, D_CONLY },
- { "alignas", RID_ALIGNAS, D_C2X | D_CXX11 | D_CXXWARN },
- { "alignof", RID_ALIGNOF, D_C2X | D_CXX11 | D_CXXWARN },
- { "asm", RID_ASM, D_ASM },
-diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h
-index f96350b64af..61cb0dfadf9 100644
---- a/gcc/c-family/c-common.h
-+++ b/gcc/c-family/c-common.h
-@@ -136,6 +136,9 @@ enum rid
- /* "__RTL", for the RTL-parsing extension to the C frontend. */
- RID_RTL,
-
-+ /* MSVC extension. */
-+ RID_DECLSPEC,
-+
- /* C11 */
- RID_ALIGNAS, RID_GENERIC,
-
-
-commit eda435e65520e4b58e7d407cca17c1fb810e02a9
-Author: Florian Weimer
-Date: Thu May 4 09:30:24 2023 +0200
-
- Enable error logging for -Wint-conversion
-
- Only for C99 and later language modes.
-
-diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc
-index a17879698ec..b1c4fbf77f8 100644
---- a/gcc/c/c-typeck.cc
-+++ b/gcc/c/c-typeck.cc
-@@ -7749,27 +7749,67 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- auto_diagnostic_group d;
- range_label_for_type_mismatch rhs_label (rhstype, type);
- gcc_rich_location richloc (expr_loc, &rhs_label);
-- if (pedwarn (&richloc, OPT_Wint_conversion,
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (location,
-+ "pointer-from-int-conversion"
-+ " in argument");
-+ error_at (&richloc,
-+ "passing argument %d of %qE makes pointer from "
-+ "integer without a cast", parmnum, rname);
-+ inform_for_arg (fundecl, expr_loc, parmnum, type, rhstype);
-+ }
-+ else if (pedwarn (&richloc, OPT_Wint_conversion,
- "passing argument %d of %qE makes pointer from "
- "integer without a cast", parmnum, rname))
- inform_for_arg (fundecl, expr_loc, parmnum, type, rhstype);
- }
- break;
- case ic_assign:
-- pedwarn (location, OPT_Wint_conversion,
-- "assignment to %qT from %qT makes pointer from integer "
-- "without a cast", type, rhstype);
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (location,
-+ "pointer-from-int-conversion"
-+ " in assignment");
-+ error_at (location,
-+ "assignment to %qT from %qT makes pointer from integer "
-+ "without a cast", type, rhstype);
-+ }
-+ else
-+ pedwarn (location, OPT_Wint_conversion,
-+ "assignment to %qT from %qT makes pointer from integer "
-+ "without a cast", type, rhstype);
- break;
- case ic_init:
- case ic_init_const:
-- pedwarn_init (location, OPT_Wint_conversion,
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (location,
-+ "pointer-from-int-conversion"
-+ " in initialization");
-+ error_at (location,
- "initialization of %qT from %qT makes pointer from "
- "integer without a cast", type, rhstype);
-+ }
-+ else
-+ pedwarn_init (location, OPT_Wint_conversion,
-+ "initialization of %qT from %qT makes pointer from "
-+ "integer without a cast", type, rhstype);
- break;
- case ic_return:
-- pedwarn (location, OPT_Wint_conversion, "returning %qT from a "
-- "function with return type %qT makes pointer from "
-- "integer without a cast", rhstype, type);
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (location,
-+ "pointer-from-int-conversion"
-+ " in return");
-+ error_at (location, "returning %qT from a "
-+ "function with return type %qT makes pointer from "
-+ "integer without a cast", rhstype, type);
-+ }
-+ else
-+ pedwarn (location, OPT_Wint_conversion, "returning %qT from a "
-+ "function with return type %qT makes pointer from "
-+ "integer without a cast", rhstype, type);
- break;
- default:
- gcc_unreachable ();
-@@ -7786,27 +7826,66 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- auto_diagnostic_group d;
- range_label_for_type_mismatch rhs_label (rhstype, type);
- gcc_rich_location richloc (expr_loc, &rhs_label);
-- if (pedwarn (&richloc, OPT_Wint_conversion,
-- "passing argument %d of %qE makes integer from "
-- "pointer without a cast", parmnum, rname))
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (location,
-+ "pointer-to-int-conversion"
-+ " in argument");
-+ error_at (&richloc,
-+ "passing argument %d of %qE makes integer from "
-+ "pointer without a cast", parmnum, rname);
-+ inform_for_arg (fundecl, expr_loc, parmnum, type, rhstype);
-+ }
-+ else if (pedwarn (&richloc, OPT_Wint_conversion,
-+ "passing argument %d of %qE makes integer from "
-+ "pointer without a cast", parmnum, rname))
- inform_for_arg (fundecl, expr_loc, parmnum, type, rhstype);
- }
- break;
- case ic_assign:
-- pedwarn (location, OPT_Wint_conversion,
-- "assignment to %qT from %qT makes integer from pointer "
-- "without a cast", type, rhstype);
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (location,
-+ "pointer-to-int-conversion"
-+ " in assignment");
-+ error_at (location,
-+ "assignment to %qT from %qT makes integer from pointer "
-+ "without a cast", type, rhstype);
-+ }
-+ else
-+ pedwarn (location, OPT_Wint_conversion,
-+ "assignment to %qT from %qT makes integer from pointer "
-+ "without a cast", type, rhstype);
- break;
- case ic_init:
- case ic_init_const:
-- pedwarn_init (location, OPT_Wint_conversion,
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (location,
-+ "pointer-to-int-conversion"
-+ " in initialization");
-+ error_at (location,
- "initialization of %qT from %qT makes integer from "
- "pointer without a cast", type, rhstype);
-+ }
-+ else
-+ pedwarn_init (location, OPT_Wint_conversion,
-+ "initialization of %qT from %qT makes integer from "
-+ "pointer without a cast", type, rhstype);
- break;
- case ic_return:
-- pedwarn (location, OPT_Wint_conversion, "returning %qT from a "
-- "function with return type %qT makes integer from "
-- "pointer without a cast", rhstype, type);
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (location,
-+ "pointer-to-int-conversion"
-+ " in return");
-+ error_at (location, "returning %qT from a "
-+ "function with return type %qT makes integer from "
-+ "pointer without a cast", rhstype, type);
-+ }
-+ else pedwarn (location, OPT_Wint_conversion, "returning %qT from a "
-+ "function with return type %qT makes integer from "
-+ "pointer without a cast", rhstype, type);
- break;
- default:
- gcc_unreachable ();
-
-commit 586f855010cd171d8ec9bcc0864bfbf12b88adbf
-Author: Florian Weimer
-Date: Wed Nov 15 09:16:01 2023 +0100
-
- Implement suppression of error logging
-
-diff --git a/gcc/diagnostic.cc b/gcc/diagnostic.cc
-index 73070cc11f9..a162caf1f0a 100644
---- a/gcc/diagnostic.cc
-+++ b/gcc/diagnostic.cc
-@@ -2738,11 +2738,48 @@ c_diagnostic_cc_tests ()
- # pragma GCC diagnostic pop
- #endif
-
-+#include
-+#include
-+
-+static bool suppress_logging;
-+static std::vector logged_error_files;
-+static std::vector logged_error_files_with_identifier;
-+
-+static void
-+remove_file_list (std::vector &files)
-+{
-+ for (const std::string &path : files)
-+ unlink (path.c_str ());
-+ files.clear();
-+}
-+
-+void
-+suppress_error_logging ()
-+{
-+ suppress_logging = true;
-+ remove_file_list (logged_error_files);
-+ remove_file_list (logged_error_files_with_identifier);
-+}
-+
- /* Magic code to emit diagnostics to a log directory. */
- void
- log_error_to_directory (location_t loc, const char *message,
- const char *identifier)
- {
-+ if (suppress_logging)
-+ return;
-+
-+ /* If logging with an identifier, remove the previous error reports
-+ without an identifier. */
-+ if (identifier)
-+ remove_file_list (logged_error_files);
-+
-+ /* If already errored with an identifier, do not record
-+ non-identifier errors. This enables ignoring errors based on
-+ identifiers. */
-+ if (!identifier && !logged_error_files_with_identifier.empty())
-+ return;
-+
- const char *magic_path = getenv ("GCC_ERROR_LOG_DIRECTORY");
- if (magic_path == nullptr)
- magic_path = "/usr/lib/gcc/errors";
-@@ -2759,6 +2796,10 @@ log_error_to_directory (location_t loc, const char *message,
- int fd = mkstemp (templ);
- if (fd < 0)
- abort();
-+ if (identifier)
-+ logged_error_files_with_identifier.emplace_back(templ);
-+ else
-+ logged_error_files.emplace_back(templ);
-
- auto exploc = expand_location (loc);
- const char *file = exploc.file;
-diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
-index b520de263ab..249cfd87d78 100644
---- a/gcc/diagnostic.h
-+++ b/gcc/diagnostic.h
-@@ -622,4 +622,9 @@ extern char *get_cwe_url (int cwe);
- void log_error_to_directory (location_t loc, const char *message,
- const char *identifier = nullptr);
-
-+/* Stop logging future errors and delete the existing reported errors.
-+ This can be used for errors that happen unconditionally (e.g.,
-+ wrong number of function arguments). */
-+void suppress_error_logging ();
-+
- #endif /* ! GCC_DIAGNOSTIC_H */
-
-commit b23335868b5219e7c13c45a70714df75debfbd23
-Author: Florian Weimer
-Date: Wed Nov 15 09:16:23 2023 +0100
-
- Switch to warning names in error logs and more int-conversion coverage
-
-diff --git a/gcc/c/c-decl.cc b/gcc/c/c-decl.cc
-index 4bf3b4a4c2a..20b49a9d371 100644
---- a/gcc/c/c-decl.cc
-+++ b/gcc/c/c-decl.cc
-@@ -3470,7 +3470,7 @@ implicit_decl_warning (location_t loc, tree id, tree olddecl)
- {
- if (flag_isoc99)
- {
-- log_error_to_directory (loc, "implicit function declaration",
-+ log_error_to_directory (loc, "implicit-function-declaration",
- IDENTIFIER_POINTER (id));
- error_at (loc, "implicit declaration of function %qE", id);
- return;
-@@ -6715,7 +6715,7 @@ grokdeclarator (const struct c_declarator *declarator,
-
- if (declspecs->default_int_p && flag_isoc99)
- {
-- log_error_to_directory (loc, "defaulting to int");
-+ log_error_to_directory (loc, "implicit-int");
- if (name)
- error_at (loc, "type defaults to % in declaration of %qE", name);
- else
-@@ -10487,7 +10487,7 @@ store_parm_decls_oldstyle (tree fndecl, const struct c_arg_info *arg_info)
- if (flag_isoc99)
- {
- log_error_to_directory (DECL_SOURCE_LOCATION (decl),
-- "type defaults to int");
-+ "implicit-int");
- error_at (DECL_SOURCE_LOCATION (decl),
- "type of %qD defaults to %", decl);
- }
-diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc
-index b1c4fbf77f8..c0b723970ed 100644
---- a/gcc/c/c-typeck.cc
-+++ b/gcc/c/c-typeck.cc
-@@ -5611,8 +5611,17 @@ build_conditional_expr (location_t colon_loc, tree ifexp, bool ifexp_bcp,
- else if (code1 == POINTER_TYPE && code2 == INTEGER_TYPE)
- {
- if (!null_pointer_constant_p (orig_op2))
-- pedwarn (colon_loc, 0,
-- "pointer/integer type mismatch in conditional expression");
-+ {
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (colon_loc, "int-conversion");
-+ error_at (colon_loc,
-+ "pointer/integer type mismatch in conditional expression");
-+ }
-+ else
-+ pedwarn (colon_loc, 0,
-+ "pointer/integer type mismatch in conditional expression");
-+ }
- else
- {
- op2 = null_pointer_node;
-@@ -5622,8 +5631,17 @@ build_conditional_expr (location_t colon_loc, tree ifexp, bool ifexp_bcp,
- else if (code2 == POINTER_TYPE && code1 == INTEGER_TYPE)
- {
- if (!null_pointer_constant_p (orig_op1))
-- pedwarn (colon_loc, 0,
-- "pointer/integer type mismatch in conditional expression");
-+ {
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (colon_loc, "int-conversion");
-+ error_at (colon_loc,
-+ "pointer/integer type mismatch in conditional expression");
-+ }
-+ else
-+ pedwarn (colon_loc, 0,
-+ "pointer/integer type mismatch in conditional expression");
-+ }
- else
- {
- op1 = null_pointer_node;
-@@ -7751,9 +7769,7 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- gcc_rich_location richloc (expr_loc, &rhs_label);
- if (flag_isoc99)
- {
-- log_error_to_directory (location,
-- "pointer-from-int-conversion"
-- " in argument");
-+ log_error_to_directory (location, "int-conversion");
- error_at (&richloc,
- "passing argument %d of %qE makes pointer from "
- "integer without a cast", parmnum, rname);
-@@ -7768,9 +7784,7 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- case ic_assign:
- if (flag_isoc99)
- {
-- log_error_to_directory (location,
-- "pointer-from-int-conversion"
-- " in assignment");
-+ log_error_to_directory (location, "int-conversion");
- error_at (location,
- "assignment to %qT from %qT makes pointer from integer "
- "without a cast", type, rhstype);
-@@ -7784,9 +7798,7 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- case ic_init_const:
- if (flag_isoc99)
- {
-- log_error_to_directory (location,
-- "pointer-from-int-conversion"
-- " in initialization");
-+ log_error_to_directory (location, "int-conversion");
- error_at (location,
- "initialization of %qT from %qT makes pointer from "
- "integer without a cast", type, rhstype);
-@@ -7799,9 +7811,7 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- case ic_return:
- if (flag_isoc99)
- {
-- log_error_to_directory (location,
-- "pointer-from-int-conversion"
-- " in return");
-+ log_error_to_directory (location, "int-conversion");
- error_at (location, "returning %qT from a "
- "function with return type %qT makes pointer from "
- "integer without a cast", rhstype, type);
-@@ -7828,9 +7838,7 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- gcc_rich_location richloc (expr_loc, &rhs_label);
- if (flag_isoc99)
- {
-- log_error_to_directory (location,
-- "pointer-to-int-conversion"
-- " in argument");
-+ log_error_to_directory (location, "int-conversion");
- error_at (&richloc,
- "passing argument %d of %qE makes integer from "
- "pointer without a cast", parmnum, rname);
-@@ -7845,9 +7853,7 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- case ic_assign:
- if (flag_isoc99)
- {
-- log_error_to_directory (location,
-- "pointer-to-int-conversion"
-- " in assignment");
-+ log_error_to_directory (location, "int-conversion");
- error_at (location,
- "assignment to %qT from %qT makes integer from pointer "
- "without a cast", type, rhstype);
-@@ -7861,9 +7867,7 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- case ic_init_const:
- if (flag_isoc99)
- {
-- log_error_to_directory (location,
-- "pointer-to-int-conversion"
-- " in initialization");
-+ log_error_to_directory (location, "int-conversion");
- error_at (location,
- "initialization of %qT from %qT makes integer from "
- "pointer without a cast", type, rhstype);
-@@ -7876,9 +7880,7 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- case ic_return:
- if (flag_isoc99)
- {
-- log_error_to_directory (location,
-- "pointer-to-int-conversion"
-- " in return");
-+ log_error_to_directory (location, "int-conversion");
- error_at (location, "returning %qT from a "
- "function with return type %qT makes integer from "
- "pointer without a cast", rhstype, type);
-
-commit 9a928ad657abd0843fd9362d93c3572b134270f5
-Author: Florian Weimer
-Date: Wed Nov 15 09:21:18 2023 +0100
-
- Introduce and log return-mismatch errors
-
-diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc
-index c0b723970ed..3c509ea9428 100644
---- a/gcc/c/c-typeck.cc
-+++ b/gcc/c/c-typeck.cc
-@@ -11376,9 +11376,11 @@ c_finish_return (location_t loc, tree retval, tree origtype)
- {
- bool warned_here;
- if (flag_isoc99)
-- warned_here = pedwarn
-- (loc, warn_return_type >= 0 ? OPT_Wreturn_type : 0,
-- "% with no value, in function returning non-void");
-+ {
-+ log_error_to_directory (loc, "return-mismatch");
-+ warned_here = true;
-+ error_at (loc, "% with no value, in function returning non-void");
-+ }
- else
- warned_here = warning_at
- (loc, OPT_Wreturn_type,
-@@ -11394,9 +11396,18 @@ c_finish_return (location_t loc, tree retval, tree origtype)
- current_function_returns_null = 1;
- bool warned_here;
- if (TREE_CODE (TREE_TYPE (retval)) != VOID_TYPE)
-- warned_here = pedwarn
-- (xloc, warn_return_type >= 0 ? OPT_Wreturn_type : 0,
-- "% with a value, in function returning void");
-+ if (flag_isoc99)
-+ {
-+ warned_here = true;
-+ log_error_to_directory (loc, "return-mismatch");
-+ error_at (xloc, "% with a value, in function returning void");
-+ }
-+ else
-+ {
-+ warned_here = pedwarn
-+ (xloc, warn_return_type >= 0 ? OPT_Wreturn_type : 0,
-+ "% with a value, in function returning void");
-+ }
- else
- warned_here = pedwarn
- (xloc, OPT_Wpedantic, "ISO C forbids "
-
-commit 19cba38204b90e1e03618bf4cc574584fe53a124
-Author: Florian Weimer
-Date: Wed Nov 15 09:32:46 2023 +0100
-
- Log incompatible-pointer-types errors
-
-diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc
-index 3c509ea9428..93724e38dea 100644
---- a/gcc/c/c-typeck.cc
-+++ b/gcc/c/c-typeck.cc
-@@ -5596,14 +5596,23 @@ build_conditional_expr (location_t colon_loc, tree ifexp, bool ifexp_bcp,
- else
- {
- int qual = ENCODE_QUAL_ADDR_SPACE (as_common);
-- if (bltin1 && bltin2)
-- warning_at (colon_loc, OPT_Wincompatible_pointer_types,
-- "pointer type mismatch between %qT and %qT "
-- "of %qD and %qD in conditional expression",
-- type1, type2, bltin1, bltin2);
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (colon_loc, "incompatible-pointer-types");
-+ error_at (colon_loc,
-+ "pointer type mismatch in conditional expression");
-+ }
- else
-- pedwarn (colon_loc, 0,
-- "pointer type mismatch in conditional expression");
-+ {
-+ if (bltin1 && bltin2)
-+ warning_at (colon_loc, OPT_Wincompatible_pointer_types,
-+ "pointer type mismatch between %qT and %qT "
-+ "of %qD and %qD in conditional expression",
-+ type1, type2, bltin1, bltin2);
-+ else
-+ pedwarn (colon_loc, 0,
-+ "pointer type mismatch in conditional expression");
-+ }
- result_type = build_pointer_type
- (build_qualified_type (void_type_node, qual));
- }
-@@ -7690,13 +7699,32 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- auto_diagnostic_group d;
- range_label_for_type_mismatch rhs_label (rhstype, type);
- gcc_rich_location richloc (expr_loc, &rhs_label);
-- if (pedwarn (&richloc, OPT_Wincompatible_pointer_types,
-- "passing argument %d of %qE from incompatible "
-- "pointer type", parmnum, rname))
-+ bool warned;
-+ if (flag_isoc99)
-+ {
-+ warned = true;
-+ log_error_to_directory (expr_loc, "incompatible-pointer-types");
-+ error_at (&richloc,
-+ "passing argument %d of %qE from incompatible "
-+ "pointer type", parmnum, rname);
-+ }
-+ else
-+ warned = pedwarn (&richloc, OPT_Wincompatible_pointer_types,
-+ "passing argument %d of %qE from incompatible "
-+ "pointer type", parmnum, rname);
-+ if (warned)
- inform_for_arg (fundecl, expr_loc, parmnum, type, rhstype);
- }
- break;
- case ic_assign:
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (location, "incompatible-pointer-types");
-+ error_at (location,
-+ "assignment to %qT from incompatible pointer type %qT",
-+ type, rhstype);
-+ break;
-+ }
- if (bltin)
- pedwarn (location, OPT_Wincompatible_pointer_types,
- "assignment to %qT from pointer to "
-@@ -7709,6 +7737,15 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- break;
- case ic_init:
- case ic_init_const:
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (location, "incompatible-pointer-types");
-+ error_at (location,
-+ "initialization of %qT from incompatible "
-+ "pointer type %qT",
-+ type, rhstype);
-+ break;
-+ }
- if (bltin)
- pedwarn_init (location, OPT_Wincompatible_pointer_types,
- "initialization of %qT from pointer to "
-@@ -7721,6 +7758,14 @@ convert_for_assignment (location_t location, location_t expr_loc, tree type,
- type, rhstype);
- break;
- case ic_return:
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (location, "incompatible-pointer-types");
-+ error_at (location,
-+ "returning %qT from a function with incompatible "
-+ "return type %qT", rhstype, type);
-+ break;
-+ }
- if (bltin)
- pedwarn (location, OPT_Wincompatible_pointer_types,
- "returning pointer to %qD of type %qT from "
-
-commit 5036b5df1a80a56cb56f0a905c1df0a8c3665aaa
-Author: Florian Weimer
-Date: Wed Nov 15 09:35:18 2023 +0100
-
- Log declaration-missing-parameter-type errors
-
-diff --git a/gcc/c/c-decl.cc b/gcc/c/c-decl.cc
-index 20b49a9d371..64b62572144 100644
---- a/gcc/c/c-decl.cc
-+++ b/gcc/c/c-decl.cc
-@@ -8231,8 +8231,15 @@ grokparms (struct c_arg_info *arg_info, bool funcdef_flag)
- {
- if (!funcdef_flag)
- {
-- pedwarn (input_location, 0, "parameter names (without types) in "
-- "function declaration");
-+ if (flag_isoc99)
-+ {
-+ log_error_to_directory (input_location, "declaration-missing-parameter-type");
-+ error_at (input_location, "parameter names (without types) in "
-+ "function declaration");
-+ }
-+ else
-+ pedwarn (input_location, 0, "parameter names (without types) in "
-+ "function declaration");
- arg_info->parms = NULL_TREE;
- }
- else
-
-commit e9630535fa88e36e95cf098436b87dce205638c6
-Author: Florian Weimer
-Date: Wed Nov 15 09:53:33 2023 +0100
-
- Suppress error logging in case of a few common autoconf failures
-
-diff --git a/gcc/c-family/c-common.cc b/gcc/c-family/c-common.cc
-index fdc1f163ed0..1206bdfdf27 100644
---- a/gcc/c-family/c-common.cc
-+++ b/gcc/c-family/c-common.cc
-@@ -6224,11 +6224,13 @@ builtin_function_validate_nargs (location_t loc, tree fndecl, int nargs,
- {
- if (nargs < required)
- {
-+ suppress_error_logging ();
- error_at (loc, "too few arguments to function %qE", fndecl);
- return false;
- }
- else if (nargs > required)
- {
-+ suppress_error_logging ();
- error_at (loc, "too many arguments to function %qE", fndecl);
- return false;
- }
-@@ -7075,6 +7077,7 @@ speculation_safe_value_resolve_call (tree function, vec *params)
-
- if (vec_safe_is_empty (params))
- {
-+ suppress_error_logging ();
- error ("too few arguments to function %qE", function);
- return BUILT_IN_NONE;
- }
-@@ -7122,12 +7125,14 @@ speculation_safe_value_resolve_params (location_t loc, tree orig_function,
-
- if (params->length () == 0)
- {
-+ suppress_error_logging ();
- error_at (loc, "too few arguments to function %qE", orig_function);
- return false;
- }
-
- else if (params->length () > 2)
- {
-+ suppress_error_logging ();
- error_at (loc, "too many arguments to function %qE", orig_function);
- return false;
- }
-@@ -7197,6 +7202,7 @@ sync_resolve_size (tree function, vec *params, bool fetch)
-
- if (vec_safe_is_empty (params))
- {
-+ suppress_error_logging ();
- error ("too few arguments to function %qE", function);
- return 0;
- }
-@@ -7270,6 +7276,7 @@ sync_resolve_params (location_t loc, tree orig_function, tree function,
- ++parmnum;
- if (params->length () <= parmnum)
- {
-+ suppress_error_logging ();
- error_at (loc, "too few arguments to function %qE", orig_function);
- return false;
- }
-@@ -7296,6 +7303,7 @@ sync_resolve_params (location_t loc, tree orig_function, tree function,
- /* __atomic routines are not variadic. */
- if (!orig_format && params->length () != parmnum + 1)
- {
-+ suppress_error_logging ();
- error_at (loc, "too many arguments to function %qE", orig_function);
- return false;
- }
-diff --git a/gcc/c/c-decl.cc b/gcc/c/c-decl.cc
-index 64b62572144..dafa70435c1 100644
---- a/gcc/c/c-decl.cc
-+++ b/gcc/c/c-decl.cc
-@@ -3874,6 +3874,8 @@ undeclared_variable (location_t loc, tree id)
- static bool already = false;
- struct c_scope *scope;
-
-+ suppress_error_logging ();
-+
- auto_diagnostic_group d;
- if (current_function_decl == NULL_TREE)
- {
-diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc
-index 93724e38dea..1943c232e70 100644
---- a/gcc/c/c-typeck.cc
-+++ b/gcc/c/c-typeck.cc
-@@ -2576,6 +2576,7 @@ build_component_ref (location_t loc, tree datum, tree component,
-
- if (!field)
- {
-+ suppress_error_logging ();
- tree guessed_id = lookup_field_fuzzy (type, component);
- if (guessed_id)
- {
-@@ -9785,6 +9786,7 @@ set_init_label (location_t loc, tree fieldname, location_t fieldname_loc,
-
- if (field == NULL_TREE)
- {
-+ suppress_error_logging ();
- tree guessed_id = lookup_field_fuzzy (constructor_type, fieldname);
- if (guessed_id)
- {
-
-commit 6b7d1a727cdd04b041df9ff0f2121e6103126093
-Author: Florian Weimer
-Date: Thu Nov 16 05:20:15 2023 +0100
-
- Additional logging suppression for missing function arguments
-
-diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc
-index 1943c232e70..6d86d19f2d6 100644
---- a/gcc/c/c-typeck.cc
-+++ b/gcc/c/c-typeck.cc
-@@ -3836,6 +3836,7 @@ convert_arguments (location_t loc, vec arg_loc, tree typelist,
-
- if (typetail != NULL_TREE && TREE_VALUE (typetail) != void_type_node)
- {
-+ suppress_error_logging ();
- error_at (loc, "too few arguments to function %qE", function);
- inform_declaration (fundecl);
- return -1;
-
-commit 4bba0655b19ec541644150ac18553089a19c5b18
-Author: Florian Weimer
-Date: Thu Nov 23 18:43:16 2023 +0100
-
- Special case for strerror_r autoconf checks
-
-diff --git a/gcc/c-family/c-warn.cc b/gcc/c-family/c-warn.cc
-index 9ac43a1af6e..a0989e3d4d7 100644
---- a/gcc/c-family/c-warn.cc
-+++ b/gcc/c-family/c-warn.cc
-@@ -1952,6 +1952,12 @@ invalid_indirection_error (location_t loc, tree type, ref_operator errstring)
- type);
- break;
- case RO_UNARY_STAR:
-+ /* It does not matter that the operand is not a pointer because
-+ of an implicit function declaration. The non-instrumented
-+ compiler fails in that case, too. This means that there is
-+ no need to log past and future errors. This is relevant to
-+ strerror_r return type autoconf checks. */
-+ suppress_error_logging ();
- error_at (loc,
- "invalid type argument of unary %<*%> (have %qT)",
- type);
-
-commit 1f77edaa6bbec12a28a14a24ba9728e72f70d534
-Author: Florian Weimer
-Date: Tue Nov 28 20:23:23 2023 +0100
-
- Suppress error logging in case of unknown type errors
-
- These always happen with the non-instrumented compiler as well.
-
- Helps with this autoconf probe:
-
- configure:23354: gcc -o conftest -g -O2 -Wl,--as-needed conftest.c >&5
- conftest.c:63:40: error: unknown type name 'off64_t'; did you mean 'off_t'?
- 63 | int fseeko64(FILE *stream, off64_t offset, int whence);
- | ^~~~~~~
- | off_t
- conftest.c: In function 'main':
- conftest.c:69:24: error: implicit declaration of function 'fseeko64'
- 69 | return fseeko64(stream, 256lu, 0);
- | ^~~~~~~~
-
- Code fragment:
-
- | #include
- | #include
- | #include
- |
- | #if !HAVE_DECL_FSEEKO64
- | int fseeko64(FILE *stream, off64_t offset, int whence);
- | #endif
- |
- | int main()
- | {
- | FILE* stream;
- | return fseeko64(stream, 256lu, 0);
- | }
-
-diff --git a/gcc/c/c-parser.cc b/gcc/c/c-parser.cc
-index 3627a3fbdc7..2904b7bbf69 100644
---- a/gcc/c/c-parser.cc
-+++ b/gcc/c/c-parser.cc
-@@ -2123,6 +2123,7 @@ c_parser_declaration_or_fndef (c_parser *parser, bool fndef_ok,
- with some kind of hint.
- If the user forgot a "struct" etc, suggest inserting
- it. Otherwise, attempt to look for misspellings. */
-+ suppress_error_logging ();
- gcc_rich_location richloc (here);
- if (tag_exists_p (RECORD_TYPE, name))
- {
-
-commit 3be96dbe1dfd2c99cf5e3dbf993db89321839a8f
-Author: Florian Weimer
-Date: Wed Nov 29 09:34:43 2023 +0100
-
- Add error suppression for more unknown type names
-
-diff --git a/gcc/c/c-parser.cc b/gcc/c/c-parser.cc
-index 2904b7bbf69..f74434ca04c 100644
---- a/gcc/c/c-parser.cc
-+++ b/gcc/c/c-parser.cc
-@@ -3180,6 +3180,7 @@ c_parser_declspecs (c_parser *parser, struct c_declspecs *specs,
- attrs_ok = true;
- if (kind == C_ID_ID)
- {
-+ suppress_error_logging ();
- error_at (loc, "unknown type name %qE", value);
- t.kind = ctsk_typedef;
- t.spec = error_mark_node;
-@@ -4804,6 +4805,7 @@ c_parser_parameter_declaration (c_parser *parser, tree attrs,
- c_parser_set_source_position_from_token (token);
- if (c_parser_next_tokens_start_typename (parser, cla_prefer_type))
- {
-+ suppress_error_logging ();
- auto_diagnostic_group d;
- name_hint hint = lookup_name_fuzzy (token->value,
- FUZZY_LOOKUP_TYPENAME,
-
-commit 16d065b3ce04278001d03d3fd38f01fd71ec8c2d
-Author: Florian Weimer
-Date: Wed Nov 29 11:43:19 2023 +0100
-
- Suppress error logging if unknown struct types are encountered
-
-diff --git a/gcc/c/c-decl.cc b/gcc/c/c-decl.cc
-index dafa70435c1..6f1f33f34e8 100644
---- a/gcc/c/c-decl.cc
-+++ b/gcc/c/c-decl.cc
-@@ -5732,6 +5732,7 @@ finish_decl (tree decl, location_t init_loc, tree init,
- is an error. */
- : !DECL_EXTERNAL (decl)))
- {
-+ suppress_error_logging ();
- error ("storage size of %q+D isn%'t known", decl);
- TREE_TYPE (decl) = error_mark_node;
- }
-diff --git a/gcc/c/c-parser.cc b/gcc/c/c-parser.cc
-index f74434ca04c..2d57acf17f8 100644
---- a/gcc/c/c-parser.cc
-+++ b/gcc/c/c-parser.cc
-@@ -1786,7 +1786,10 @@ c_parser_translation_unit (c_parser *parser)
- tree decl;
- FOR_EACH_VEC_ELT (incomplete_record_decls, i, decl)
- if (DECL_SIZE (decl) == NULL_TREE && TREE_TYPE (decl) != error_mark_node)
-- error ("storage size of %q+D isn%'t known", decl);
-+ {
-+ suppress_error_logging ();
-+ error ("storage size of %q+D isn%'t known", decl);
-+ }
-
- if (vec_safe_length (current_omp_declare_target_attribute))
- {
-
-commit a686be614951b191446781a436aecad849dab38c
-Author: Florian Weimer
-Date: Thu Nov 30 13:34:46 2023 +0100
-
- Add more logging suppression in case of too many function arguments
-
-diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc
-index 6d86d19f2d6..37dc18fb420 100644
---- a/gcc/c/c-typeck.cc
-+++ b/gcc/c/c-typeck.cc
-@@ -3694,6 +3694,7 @@ convert_arguments (location_t loc, vec arg_loc, tree typelist,
-
- if (type == void_type_node)
- {
-+ suppress_error_logging ();
- if (selector)
- error_at (loc, "too many arguments to method %qE", selector);
- else
-
-commit 5dccd006bf4e60ba843a9edda3bed230a59ae51f
-Author: Pekka Seppänen
-Date: Wed Sep 20 19:41:01 2023 +0100
-
- aarch64: Ensure const and sign correctness
-
- Be const and sign correct by using a matching CIE augmentation type.
- Use a builtin instead of relying being included.
-
- libgcc/ChangeLog:
-
- * config/aarch64/aarch64-unwind.h (aarch64_cie_signed_with_b_key):
- Use const unsigned type and a builtin.
-
- Signed-off-by: Pekka Seppänen
- (cherry picked from commit 0a59ff65df6da8267efb5c97dead8cd0dcd5b445)
-
-diff --git a/libgcc/config/aarch64/aarch64-unwind.h b/libgcc/config/aarch64/aarch64-unwind.h
-index 3ad2f8239ed..d669edd671b 100644
---- a/libgcc/config/aarch64/aarch64-unwind.h
-+++ b/libgcc/config/aarch64/aarch64-unwind.h
-@@ -40,8 +40,9 @@ aarch64_cie_signed_with_b_key (struct _Unwind_Context *context)
- const struct dwarf_cie *cie = get_cie (fde);
- if (cie != NULL)
- {
-- char *aug_str = cie->augmentation;
-- return strchr (aug_str, 'B') == NULL ? 0 : 1;
-+ const unsigned char *aug_str = cie->augmentation;
-+ return __builtin_strchr ((const char *) aug_str,
-+ 'B') == NULL ? 0 : 1;
- }
- }
- return 0;
-
-commit 91768f20003d28cf1adf8d9ed6318dd4396efaf3
-Author: Florian Weimer
-Date: Fri Dec 1 08:10:12 2023 +0100
-
- aarch64: Avoid -Wincompatible-pointer-types warning in Linux unwinder
-
- * config/aarch64/linux-unwind.h
- (aarch64_fallback_frame_state): Add cast to the expected type
- in sc assignment.
-
- (cherry picked from commit 335bd6c938c254e3ae4b019cfc8a94bb8009ca81)
-
-diff --git a/libgcc/config/aarch64/linux-unwind.h b/libgcc/config/aarch64/linux-unwind.h
-index 00eba866049..18b3df71e7b 100644
---- a/libgcc/config/aarch64/linux-unwind.h
-+++ b/libgcc/config/aarch64/linux-unwind.h
-@@ -77,7 +77,10 @@ aarch64_fallback_frame_state (struct _Unwind_Context *context,
- }
-
- rt_ = context->cfa;
-- sc = &rt_->uc.uc_mcontext;
-+ /* Historically, the uc_mcontext member was of type struct sigcontext, but
-+ glibc uses a different type now with member names in the implementation
-+ namespace. */
-+ sc = (struct sigcontext *) &rt_->uc.uc_mcontext;
-
- /* This define duplicates the definition in aarch64.md */
- #define SP_REGNUM 31
diff --git a/gcc.spec b/gcc.spec
index fa9061c..71e5d1d 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,16 +1,18 @@
-%global DATE 20231205
-%global gitrev f783814ad6a04ae5ef44595216596a2b75eda15b
-%global gcc_version 13.2.1
-%global gcc_major 13
+%global DATE 20260115
+%global gitrev 1a9a51aca25eaad91d80869c43859274fe5e1096
+%global gcc_version 16.0.1
+%global gcc_major 16
# Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line.
-%global gcc_release 6
-%global nvptx_tools_gitrev aa3404ad5a496cda5d79a50bedb1344fd63e8763
-%global newlib_cygwin_gitrev 9e09d6ed83cce4777a5950412647ccc603040409
+%global gcc_release 0
+%global nvptx_tools_gitrev a0c1fff6534a4df9fb17937c3c4a4b1071212029
+%global newlib_cygwin_gitrev d35cc82b5ec15bb8a5fe0fe11e183d1887992e99
%global _unpackaged_files_terminate_build 0
+%if 0%{?fedora:1}
%global _performance_build 1
# Hardening slows the compiler way too much.
%undefine _hardened_build
+%endif
%undefine _auto_set_build_flags
%if 0%{?fedora} > 27 || 0%{?rhel} > 7
# Until annobin is fixed (#1519165).
@@ -24,6 +26,13 @@
%if 0%{?__brp_strip_lto:1}
%global __brp_strip_lto %{__brp_strip_lto} || :
%endif
+%if 0%{?rhel} > 0
+%define bugurl https://issues.redhat.com
+%else
+%define bugurl https://bugzilla.redhat.com/bugzilla
+%endif
+%{!?dist_bug_report_url: %global dist_bug_report_url %bugurl}
+
%if 0%{?fedora} < 32 && 0%{?rhel} < 8
%global multilib_64_archs sparc64 ppc64 ppc64p7 s390x x86_64
%else
@@ -35,6 +44,8 @@
%global build_go 0
%global build_d 0
%global build_m2 0
+%global build_cobol 0
+%global build_algol68 0
%else
%ifarch %{ix86} x86_64 ia64 ppc %{power64} alpha s390x %{arm} aarch64 riscv64
%global build_ada 1
@@ -57,13 +68,19 @@
%else
%global build_m2 0
%endif
+%ifarch x86_64 aarch64 ppc64le
+%global build_cobol 1
+%else
+%global build_cobol 0
+%endif
+%global build_algol68 1
%endif
%ifarch %{ix86} x86_64 ia64 ppc64le
%global build_libquadmath 1
%else
%global build_libquadmath 0
%endif
-%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
+%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 riscv64
%global build_libasan 1
%else
%global build_libasan 0
@@ -73,17 +90,17 @@
%else
%global build_libhwasan 0
%endif
-%ifarch x86_64 ppc64 ppc64le aarch64 s390x
+%ifarch x86_64 ppc64 ppc64le aarch64 s390x riscv64
%global build_libtsan 1
%else
%global build_libtsan 0
%endif
-%ifarch x86_64 ppc64 ppc64le aarch64 s390x
+%ifarch x86_64 ppc64 ppc64le aarch64 s390x riscv64
%global build_liblsan 1
%else
%global build_liblsan 0
%endif
-%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
+%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 riscv64
%global build_libubsan 1
%else
%global build_libubsan 0
@@ -93,7 +110,7 @@
%else
%global build_libatomic 0
%endif
-%ifarch %{ix86} x86_64 %{arm} alpha ppc ppc64 ppc64le ppc64p7 s390 s390x aarch64
+%ifarch %{ix86} x86_64 %{arm} alpha ppc ppc64 ppc64le ppc64p7 s390 s390x aarch64 riscv64
%global build_libitm 1
%else
%global build_libitm 0
@@ -104,7 +121,7 @@
%global build_isl 1
%endif
%global build_libstdcxx_docs 1
-%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips}
+%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips} riscv64
%global attr_ifunc 1
%else
%global attr_ifunc 0
@@ -114,6 +131,11 @@
%else
%global build_offload_nvptx 0
%endif
+%ifarch x86_64
+%global build_offload_amdgcn 1
+%else
+%global build_offload_amdgcn 0
+%endif
%if 0%{?fedora} < 32 && 0%{?rhel} < 8
%ifarch s390x
%global multilib_32_arch s390
@@ -136,29 +158,35 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.implicits.8%{?dist}.6
-# libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
-# GCC Runtime Exception.
-License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
+Release: %{gcc_release}.3%{?dist}
+# License notes for some of the less obvious ones:
+# gcc/doc/cppinternals.texi: Linux-man-pages-copyleft-2-para
+# isl: MIT, BSD-2-Clause
+# libcody: Apache-2.0
+# libphobos/src/etc/c/curl.d: curl
+# All of the remaining license soup is in newlib.
+License: GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
# The source for this package was pulled from upstream's vcs.
# %%{gitrev} is some commit from the
# https://gcc.gnu.org/git/?p=gcc.git;h=refs/vendors/redhat/heads/gcc-%%{gcc_major}-branch
-# branch. Use the following commands to generate the tarball:
-# git clone --depth 1 git://gcc.gnu.org/git/gcc.git gcc-dir.tmp
-# git --git-dir=gcc-dir.tmp/.git fetch --depth 1 origin %%{gitrev}
-# git --git-dir=gcc-dir.tmp/.git archive --prefix=%%{name}-%%{version}-%%{DATE}/ %%{gitrev} | xz -9e > %%{name}-%%{version}-%%{DATE}.tar.xz
-# rm -rf gcc-dir.tmp
+# branch. Use the following command to generate the tarball:
+# ./update-gcc.sh %%{gitrev}
+# optionally if say /usr/src/gcc/.git/ is an existing gcc git clone
+# ./update-gcc.sh %%{gitrev} /usr/src/gcc/.git/
+# to speed up the clone operations. Note, %%{gitrev} macro in
+# gcc.spec shouldn't be updated before running the script, the script
+# will update it, fill in some %%changelog details etc.
Source0: gcc-%{version}-%{DATE}.tar.xz
# The source for nvptx-tools package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
-# git clone --depth 1 git://github.com/MentorEmbedded/nvptx-tools.git nvptx-tools-dir.tmp
+# git clone --depth 1 https://github.com/MentorEmbedded/nvptx-tools.git nvptx-tools-dir.tmp
# git --git-dir=nvptx-tools-dir.tmp/.git fetch --depth 1 origin %%{nvptx_tools_gitrev}
# git --git-dir=nvptx-tools-dir.tmp/.git archive --prefix=nvptx-tools-%%{nvptx_tools_gitrev}/ %%{nvptx_tools_gitrev} | xz -9e > nvptx-tools-%%{nvptx_tools_gitrev}.tar.xz
# rm -rf nvptx-tools-dir.tmp
Source1: nvptx-tools-%{nvptx_tools_gitrev}.tar.xz
# The source for nvptx-newlib package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
-# git clone git://sourceware.org/git/newlib-cygwin.git newlib-cygwin-dir.tmp
+# git clone https://sourceware.org/git/newlib-cygwin.git newlib-cygwin-dir.tmp
# git --git-dir=newlib-cygwin-dir.tmp/.git archive --prefix=newlib-cygwin-%%{newlib_cygwin_gitrev}/ %%{newlib_cygwin_gitrev} ":(exclude)newlib/libc/sys/linux/include/rpc/*.[hx]" | xz -9e > newlib-cygwin-%%{newlib_cygwin_gitrev}.tar.xz
# rm -rf newlib-cygwin-dir.tmp
Source2: newlib-cygwin-%{newlib_cygwin_gitrev}.tar.xz
@@ -178,11 +206,8 @@ URL: http://gcc.gnu.org
# Need binutils which support -plugin
# Need binutils which support .loc view >= 2.30
# Need binutils which support --generate-missing-build-notes=yes >= 2.31
-%if 0%{?fedora} >= 29 || 0%{?rhel} > 7
-BuildRequires: binutils >= 2.31
-%else
-BuildRequires: binutils >= 2.24
-%endif
+# Need binutils which support .base64 >= 2.43
+BuildRequires: binutils >= 2.43
# While gcc doesn't include statically linked binaries, during testing
# -static is used several times.
BuildRequires: glibc-static
@@ -195,6 +220,9 @@ BuildRequires: gcc, gcc-c++, make
%if %{build_go}
BuildRequires: hostname, procps
%endif
+%if %{build_cobol}
+BuildRequires: libxml2-devel
+%endif
# For VTA guality testing
BuildRequires: gdb
# Make sure pthread.h doesn't contain __thread tokens
@@ -208,9 +236,11 @@ BuildRequires: libzstd-devel
# Make sure glibc supports TFmode long double
BuildRequires: glibc >= 2.3.90-35
%endif
-%ifarch %{multilib_64_archs} sparcv9 ppc
-# Ensure glibc{,-devel} is installed for both multilib arches
-BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
+%ifarch %{multilib_64_archs}
+BuildRequires: (glibc32 or glibc-devel(%{__isa_name}-32))
+%endif
+%ifarch sparcv9 ppc
+BuildRequires: (glibc64 or glibc-devel(%{__isa_name}-64))
%endif
%if %{build_ada}
# Ada requires Ada to build
@@ -227,6 +257,9 @@ BuildRequires: libunwind >= 0.98
BuildRequires: doxygen >= 1.7.1
BuildRequires: graphviz, dblatex, texlive-collection-latex, docbook5-style-xsl
%endif
+%if %{build_offload_amdgcn}
+BuildRequires: llvm >= 15, lld >= 15
+%endif
Requires: cpp = %{version}-%{release}
# Need .eh_frame ld optimizations
# Need proper visibility support
@@ -244,11 +277,8 @@ Requires: cpp = %{version}-%{release}
# Need binutils that support -plugin
# Need binutils that support .loc view >= 2.30
# Need binutils which support --generate-missing-build-notes=yes >= 2.31
-%if 0%{?fedora} >= 29 || 0%{?rhel} > 7
-Requires: binutils >= 2.31
-%else
-Requires: binutils >= 2.24
-%endif
+# Need binutils that support .base64 >= 2.43
+Requires: binutils >= 2.43
# Make sure gdb will understand DW_FORM_strp
Conflicts: gdb < 5.1-2
Requires: glibc-devel >= 2.2.90-12
@@ -263,6 +293,11 @@ Requires: glibc >= 2.16
%endif
Requires: libgcc >= %{version}-%{release}
Requires: libgomp = %{version}-%{release}
+%if %{build_libatomic}
+Requires: libatomic = %{version}-%{release}
+Obsoletes: libatomic-static < %{version}-%{release}
+Provides: libatomic-static = %{version}-%{release}
+%endif
# lto-wrapper invokes make
Requires: make
%if !%{build_ada}
@@ -275,24 +310,23 @@ Provides: bundled(libbacktrace)
Provides: bundled(libffi)
Provides: gcc(major) = %{gcc_major}
-Patch0: gcc13-hack.patch
-Patch2: gcc13-sparc-config-detection.patch
-Patch3: gcc13-libgomp-omp_h-multilib.patch
-Patch4: gcc13-libtool-no-rpath.patch
-Patch5: gcc13-isl-dl.patch
-Patch6: gcc13-isl-dl2.patch
-Patch7: gcc13-libstdc++-docs.patch
-Patch8: gcc13-no-add-needed.patch
-Patch9: gcc13-Wno-format-security.patch
-Patch10: gcc13-rh1574936.patch
-Patch11: gcc13-d-shared-libphobos.patch
-Patch12: gcc13-pr110792.patch
+Patch0: gcc16-hack.patch
+Patch2: gcc16-sparc-config-detection.patch
+Patch3: gcc16-libgomp-omp_h-multilib.patch
+Patch4: gcc16-libtool-no-rpath.patch
+Patch5: gcc16-isl-dl.patch
+Patch6: gcc16-isl-dl2.patch
+Patch7: gcc16-libstdc++-docs.patch
+Patch8: gcc16-no-add-needed.patch
+Patch9: gcc16-Wno-format-security.patch
+Patch10: gcc16-rh1574936.patch
+Patch11: gcc16-d-shared-libphobos.patch
+Patch12: gcc16-pr119006.patch
+Patch13: gcc16-pr123273.patch
Patch50: isl-rh2155127.patch
-Patch100: gcc13-fortran-fdec-duplicates.patch
-
-Patch990: gcc-error-logging.patch
+Patch100: gcc16-fortran-fdec-duplicates.patch
# On ARM EABI systems, we do want -gnueabi to be part of the
# target triple.
@@ -314,7 +348,7 @@ Patch990: gcc-error-logging.patch
%if %{build_go}
# Avoid stripping these libraries and binaries.
%global __os_install_post \
-chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.22.* \
+chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.25.* \
chmod 644 %{buildroot}%{_prefix}/bin/go.gcc \
chmod 644 %{buildroot}%{_prefix}/bin/gofmt.gcc \
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo \
@@ -322,7 +356,7 @@ chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/test2json \
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/vet \
%__os_install_post \
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgo.so.22.* \
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgo.so.25.* \
chmod 755 %{buildroot}%{_prefix}/bin/go.gcc \
chmod 755 %{buildroot}%{_prefix}/bin/gofmt.gcc \
chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo \
@@ -333,26 +367,26 @@ chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
%endif
%description
-The gcc package contains the GNU Compiler Collection version 13.
+The gcc package contains the GNU Compiler Collection version %{gcc_major}.
You'll need this package in order to compile C code.
%package -n libgcc
-Summary: GCC version 13 shared support library
+Summary: GCC version %{gcc_major} shared support library
Autoreq: false
%if !%{build_ada}
Obsoletes: libgnat < %{version}-%{release}
%endif
-Obsoletes: libmudflap
-Obsoletes: libmudflap-devel
-Obsoletes: libmudflap-static
+Obsoletes: libmudflap < %{version}-%{release}
+Obsoletes: libmudflap-devel < %{version}-%{release}
+Obsoletes: libmudflap-static < %{version}-%{release}
Obsoletes: libgcj < %{version}-%{release}
Obsoletes: libgcj-devel < %{version}-%{release}
Obsoletes: libgcj-src < %{version}-%{release}
%ifarch %{ix86} x86_64
-Obsoletes: libcilkrts
-Obsoletes: libcilkrts-static
-Obsoletes: libmpx
-Obsoletes: libmpx-static
+Obsoletes: libcilkrts < %{version}-%{release}
+Obsoletes: libcilkrts-static < %{version}-%{release}
+Obsoletes: libmpx < %{version}-%{release}
+Obsoletes: libmpx-static < %{version}-%{release}
%endif
%description -n libgcc
@@ -537,15 +571,68 @@ Requires: gcc-gm2 = %{version}-%{release}
%description -n libgm2-static
This package contains static Modula-2 libraries.
+%package gcobol
+Summary: COBOL support
+Requires: gcc = %{version}-%{release}
+Requires: gcc-c++ = %{version}-%{release}
+Requires: libgcobol = %{version}-%{release}
+Autoreq: true
+
+%description gcobol
+The gcc-gcobol package provides support for compiling COBOL
+programs with the GNU Compiler Collection.
+
+%package -n libgcobol
+Summary: COBOL runtime
+Autoreq: true
+
+%description -n libgcobol
+This package contains COBOL shared libraries which are needed to run
+COBOL dynamically linked programs.
+
+%package -n libgcobol-static
+Summary: Static COBOL libraries
+Requires: libgcobol = %{version}-%{release}
+Requires: gcc-gcobol = %{version}-%{release}
+
+%description -n libgcobol-static
+This package contains static COBOL libraries.
+
+%package algol68
+Summary: Algol 68 support
+Requires: gcc = %{version}-%{release}
+Requires: libga68 = %{version}-%{release}
+Autoreq: true
+
+%description algol68
+The gcc-algol68 package provides support for compiling Algol 68
+programs with the GNU Compiler Collection.
+
+%package -n libga68
+Summary: Algol 68 runtime
+Autoreq: true
+
+%description -n libga68
+This package contains Algol 68 shared libraries which are needed to run
+Algol 68 dynamically linked programs.
+
+%package -n libga68-static
+Summary: Static Algol 68 libraries
+Requires: libga68 = %{version}-%{release}
+Requires: gcc-algol68 = %{version}-%{release}
+
+%description -n libga68-static
+This package contains static Algol 68 libraries.
+
%package -n libgomp
-Summary: GCC OpenMP v4.5 shared support library
+Summary: GCC OpenMP v5.2 shared support library
%description -n libgomp
This package contains GCC shared support library which is needed
-for OpenMP v4.5 support.
+for OpenMP v5.2 support.
%package -n libgomp-offload-nvptx
-Summary: GCC OpenMP v4.5 plugin for offloading to NVPTX
+Summary: GCC OpenMP v5.2 plugin for offloading to NVPTX
Requires: libgomp = %{version}-%{release}
%description -n libgomp-offload-nvptx
@@ -553,6 +640,17 @@ This package contains libgomp plugin for offloading to NVidia
PTX. The plugin needs libcuda.so.1 shared library that has to be
installed separately.
+%package -n libgomp-offload-amdgcn
+Summary: GCC OpenMP v5.2 plugin for offloading to AMD GCN
+Requires: libgomp = %{version}-%{release}
+%if 0%{?fedora:1}
+Requires: rocm-runtime >= 6.0.0
+%endif
+
+%description -n libgomp-offload-amdgcn
+This package contains libgomp plugin for offloading to AMD ROCm capable
+devices.
+
%package gdb-plugin
Summary: GCC plugin for GDB
Requires: gcc = %{version}-%{release}
@@ -579,6 +677,20 @@ Requires: libgccjit = %{version}-%{release}
%description -n libgccjit-devel
This package contains header files and documentation for GCC JIT front-end.
+%package -n libgdiagnostics
+Summary: Library for emitting diagnostics
+
+%description -n libgdiagnostics
+This package contains libgdiagnostics shared library and sarif-replay program.
+
+%package -n libgdiagnostics-devel
+Summary: Support for emitting diagnostics
+Requires: libgdiagnostics = %{version}-%{release}
+
+%description -n libgdiagnostics-devel
+This package contains header files and documentation for the libgdiagnostics
+library.
+
%package -n libquadmath
Summary: GCC __float128 shared support library
@@ -634,13 +746,6 @@ This package contains the GNU Atomic library
which is a GCC support runtime library for atomic operations not supported
by hardware.
-%package -n libatomic-static
-Summary: The GNU Atomic static library
-Requires: libatomic = %{version}-%{release}
-
-%description -n libatomic-static
-This package contains GNU Atomic static libraries.
-
%package -n libasan
Summary: The Address Sanitizer runtime library
@@ -835,6 +940,18 @@ NVidia PTX. OpenMP and OpenACC programs linked with -fopenmp will
by default add PTX code into the binaries, which can be offloaded
to NVidia PTX capable devices if available.
+%package offload-amdgcn
+Summary: Offloading compiler to AMD GCN
+Requires: gcc = %{version}-%{release}
+Requires: libgomp-offload-amdgcn = %{version}-%{release}
+Requires: llvm >= 15, lld >= 15
+
+%description offload-amdgcn
+The gcc-offload-amdgcn package provides offloading support for
+AMD GCN. OpenMP and OpenACC programs linked with -fopenmp will
+by default add GCN code into the binaries, which can be offloaded
+to AMD ROCm capable devices if available.
+
%package plugin-annobin
Summary: The annobin plugin for gcc, built by the installed version of gcc
Requires: gcc = %{version}-%{release}
@@ -849,34 +966,24 @@ so that there cannot be any synchronization problems.
%prep
%setup -q -n gcc-%{version}-%{DATE} -a 1 -a 2 -a 3
-%patch -P0 -p0 -b .hack~
-%patch -P2 -p0 -b .sparc-config-detection~
-%patch -P3 -p0 -b .libgomp-omp_h-multilib~
-%patch -P4 -p0 -b .libtool-no-rpath~
+%autopatch -p0 -m 0 -M 4
%if %{build_isl}
-%patch -P5 -p0 -b .isl-dl~
-%patch -P6 -p0 -b .isl-dl2~
+%autopatch -p0 -m 5 -M 6
%endif
%if %{build_libstdcxx_docs}
-%patch -P7 -p0 -b .libstdc++-docs~
+%autopatch -p0 7
%endif
-%patch -P8 -p0 -b .no-add-needed~
-%patch -P9 -p0 -b .Wno-format-security~
+%autopatch -p0 -m 8 -M 9
%if 0%{?fedora} >= 29 || 0%{?rhel} > 7
-%patch -P10 -p0 -b .rh1574936~
+%autopatch -p0 10
%endif
-%patch -P11 -p0 -b .d-shared-libphobos~
-%patch -P12 -p0 -b .pr110792~
-
-%patch -P50 -p0 -b .rh2155127~
+%autopatch -p0 -m 11 -M 99
touch -r isl-0.24/m4/ax_prog_cxx_for_build.m4 isl-0.24/m4/ax_prog_cc_for_build.m4
%if 0%{?rhel} >= 9
-%patch -P100 -p1 -b .fortran-fdec-duplicates~
+%autopatch -p1 100
%endif
-%patch -P 990 -p1 -b .error-logging
-
%ifarch %{arm}
rm -f gcc/testsuite/go.test/test/fixedbugs/issue19182.go
%endif
@@ -885,14 +992,12 @@ rm -f libphobos/testsuite/libphobos.gc/forkgc2.d
echo 'Red Hat %{version}-%{gcc_release}' > gcc/DEV-PHASE
-cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
-
./contrib/gcc_update --touch
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
sed -i -e 's/Common Driver Var(flag_report_bug)/& Init(1)/' gcc/common.opt
-sed -i -e 's/context->report_bug = false;/context->report_bug = true;/' gcc/diagnostic.cc
+sed -i -e 's/m_report_bug = false;/m_report_bug = true;/' gcc/diagnostics/context.cc
%ifarch ppc
if [ -d libstdc++-v3/config/abi/post/powerpc64-linux-gnu ]; then
@@ -915,9 +1020,6 @@ fi
rm -f gcc/testsuite/go.test/test/chan/goroutines.go
%build
-# Do not write the failures anywhere. Currently required for rebuilding
-# with an instrumented GCC.
-export GCC_ERROR_LOG_DIRECTORY=/disabled
# Undo the broken autoconf change in recent Fedora versions
export CONFIG_SITE=NONE
@@ -975,7 +1077,7 @@ CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
--target nvptx-none --enable-as-accelerator-for=%{gcc_target_platform} \
--enable-languages=c,c++,fortran,lto \
--prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
- --with-bugurl=http://bugzilla.redhat.com/bugzilla \
+ --with-bugurl=%dist_bug_report_url \
--enable-checking=release --with-system-zlib \
--with-gcc-major-version-only --without-isl
make %{?_smp_mflags}
@@ -983,6 +1085,42 @@ cd ..
rm -f newlib
%endif
+%if %{build_offload_amdgcn}
+mkdir -p objia%{_prefix}/bin objia%{_prefix}/amdgcn-amdhsa/bin
+IAROOT=`pwd`/objia
+ln -sf %{_prefix}/bin/llvm-ar ${IAROOT}%{_prefix}/bin/amdgcn-amdhsa-ar
+ln -sf %{_prefix}/bin/llvm-ar ${IAROOT}%{_prefix}/bin/amdgcn-amdhsa-ranlib
+ln -sf %{_prefix}/bin/llvm-mc ${IAROOT}%{_prefix}/bin/amdgcn-amdhsa-as
+ln -sf %{_prefix}/bin/llvm-nm ${IAROOT}%{_prefix}/bin/amdgcn-amdhsa-nm
+ln -sf %{_prefix}/bin/lld ${IAROOT}%{_prefix}/bin/amdgcn-amdhsa-ld
+ln -sf ../../bin/amdgcn-amdhsa-ar ${IAROOT}%{_prefix}/amdgcn-amdhsa/bin/ar
+ln -sf ../../bin/amdgcn-amdhsa-ranlib ${IAROOT}%{_prefix}/amdgcn-amdhsa/bin/ranlib
+ln -sf ../../bin/amdgcn-amdhsa-as ${IAROOT}%{_prefix}/amdgcn-amdhsa/bin/as
+ln -sf ../../bin/amdgcn-amdhsa-nm ${IAROOT}%{_prefix}/amdgcn-amdhsa/bin/nm
+ln -sf ../../bin/amdgcn-amdhsa-ld ${IAROOT}%{_prefix}/amdgcn-amdhsa/bin/ld
+
+ln -sf newlib-cygwin-%{newlib_cygwin_gitrev}/newlib newlib
+rm -rf obj-offload-amdgcn-amdhsa
+mkdir obj-offload-amdgcn-amdhsa
+
+cd obj-offload-amdgcn-amdhsa
+CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
+ CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g' \
+ | sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
+ XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
+ ../configure --disable-bootstrap --disable-sjlj-exceptions \
+ --with-build-time-tools=${IAROOT}%{_prefix}/amdgcn-amdhsa/bin \
+ --target amdgcn-amdhsa --enable-as-accelerator-for=%{gcc_target_platform} \
+ --enable-languages=c,c++,fortran,lto \
+ --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
+ --with-bugurl=%dist_bug_report_url \
+ --enable-checking=release --with-system-zlib \
+ --with-gcc-major-version-only --without-isl --disable-libquadmath
+make %{?_smp_mflags}
+cd ..
+rm -f newlib
+%endif
+
rm -rf obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -995,7 +1133,14 @@ ISL_FLAG_PIC=-fPIC
ISL_FLAG_PIC=-fpic
%endif
cd isl-build
-sed -i 's|libisl\([^-]\)|libgcc13privateisl\1|g' \
+
+%ifarch riscv64
+# Update config.{sub,guess} scripts for riscv64 (the original ones are too old)
+cp -f -v /usr/lib/rpm/%{_vendor}/config.guess ../../isl-%{isl_version}/config.guess
+cp -f -v /usr/lib/rpm/%{_vendor}/config.sub ../../isl-%{isl_version}/config.sub
+%endif
+
+sed -i 's|libisl\([^-]\)|libgcc%{gcc_major}privateisl\1|g' \
../../isl-%{isl_version}/Makefile.{am,in}
../../isl-%{isl_version}/configure \
CC=/usr/bin/gcc CXX=/usr/bin/g++ \
@@ -1003,8 +1148,8 @@ sed -i 's|libisl\([^-]\)|libgcc13privateisl\1|g' \
make %{?_smp_mflags} CFLAGS="${CFLAGS:-%optflags} $ISL_FLAG_PIC"
make install
cd ../isl-install/lib
-rm libgcc13privateisl.so{,.23}
-mv libgcc13privateisl.so.23.1.0 libisl.so.23
+rm libgcc%{gcc_major}privateisl.so{,.23}
+mv libgcc%{gcc_major}privateisl.so.23.1.0 libisl.so.23
ln -sf libisl.so.23 libisl.so
cd ../..
%endif
@@ -1013,6 +1158,9 @@ enablelgo=
enablelada=
enablelobjc=
enableld=
+enablelm2=
+enablelcob=
+enablela68=
%if %{build_objc}
enablelobjc=,objc,obj-c++
%endif
@@ -1028,9 +1176,22 @@ enableld=,d
%if %{build_m2}
enablelm2=,m2
%endif
+%if %{build_cobol}
+enablelcob=,cobol
+%endif
+%if %{build_algol68}
+enablela68=,algol68
+%endif
+offloadtgts=
+%if %{build_offload_nvptx}
+offloadtgts=nvptx-none
+%endif
+%if %{build_offload_amdgcn}
+offloadtgts=${offloadtgts:+${offloadtgts},}amdgcn-amdhsa
+%endif
CONFIGURE_OPTS="\
--prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
- --with-bugurl=http://bugzilla.redhat.com/bugzilla \
+ --with-bugurl=%dist_bug_report_url \
--enable-shared --enable-threads=posix --enable-checking=release \
%ifarch ppc64le
--enable-targets=powerpcle-linux \
@@ -1060,9 +1221,11 @@ CONFIGURE_OPTS="\
%else
--without-isl \
%endif
+%if %{build_offload_nvptx} || %{build_offload_amdgcn}
+ --enable-offload-targets=$offloadtgts --enable-offload-defaulted \
+%endif
%if %{build_offload_nvptx}
- --enable-offload-targets=nvptx-none \
- --without-cuda-driver --enable-offload-defaulted \
+ --without-cuda-driver \
%endif
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
%if %{attr_ifunc}
@@ -1100,7 +1263,11 @@ CONFIGURE_OPTS="\
%endif
%ifarch ppc64le
%if 0%{?rhel} >= 9
+%if 0%{?rhel} >= 10
+ --with-cpu-32=power9 --with-tune-32=power10 --with-cpu-64=power9 --with-tune-64=power10 \
+%else
--with-cpu-32=power9 --with-tune-32=power9 --with-cpu-64=power9 --with-tune-64=power9 \
+%endif
%else
--with-cpu-32=power8 --with-tune-32=power8 --with-cpu-64=power8 --with-tune-64=power8 \
%endif
@@ -1111,6 +1278,9 @@ CONFIGURE_OPTS="\
%ifarch %{ix86} x86_64
--enable-cet \
--with-tune=generic \
+%if 0%{?fedora} >= 44 || 0%{?rhel} >= 11
+ --with-tls=gnu2 \
+%endif
%endif
%if 0%{?rhel} >= 7
%ifarch %{ix86}
@@ -1118,7 +1288,11 @@ CONFIGURE_OPTS="\
%endif
%ifarch x86_64
%if 0%{?rhel} > 8
+%if 0%{?rhel} > 9
+ --with-arch_64=x86-64-v3 \
+%else
--with-arch_64=x86-64-v2 \
+%endif
%endif
--with-arch_32=x86-64 \
%endif
@@ -1178,6 +1352,19 @@ CONFIGURE_OPTS="\
%ifnarch %{arm}
--with-build-config=bootstrap-lto --enable-link-serialization=1 \
%endif
+%endif
+%if 0%{?rhel:1}
+ --enable-host-pie --enable-host-bind-now \
+%endif
+ --disable-libssp \
+%if %{build_libquadmath} == 0
+ --disable-libquadmath \
+%endif
+%if %{build_libatomic} == 0
+ --disable-libatomic \
+%endif
+%if %{build_libitm} == 0
+ --disable-libitm \
%endif
"
@@ -1186,13 +1373,13 @@ CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
| sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
../configure --enable-bootstrap \
- --enable-languages=c,c++,fortran${enablelobjc}${enablelada}${enablelgo}${enableld}${enablelm2},lto \
+ --enable-languages=c,c++,fortran${enablelobjc}${enablelada}${enablelgo}${enableld}${enablelm2}${enablelcob}${enablela68},lto \
$CONFIGURE_OPTS
%ifarch sparc sparcv9 sparc64
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now bootstrap
%else
-make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now bootstrap
+make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now profiledbootstrap
%endif
CC="`%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-cc`"
@@ -1207,7 +1394,7 @@ CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
| sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
../../configure --disable-bootstrap --enable-host-shared \
- --enable-languages=jit $CONFIGURE_OPTS
+ --enable-languages=jit --enable-libgdiagnostics $CONFIGURE_OPTS
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" all-gcc
cp -a gcc/libgccjit.so* ../gcc/
cd ../gcc/
@@ -1242,7 +1429,7 @@ cd ../..
# Copy various doc files here and there
cd ..
-mkdir -p rpm.doc/{gfortran,objc,gdc,libphobos,gm2,libgm2}
+mkdir -p rpm.doc/{gfortran,objc,gdc,libphobos,gm2,libgm2,libgdiagnostics-devel,gcobol,libgcobol,algol68,libga68}
mkdir -p rpm.doc/go rpm.doc/libgo rpm.doc/libquadmath rpm.doc/libitm
mkdir -p rpm.doc/changelogs/{gcc/cp,gcc/ada,gcc/jit,libstdc++-v3,libobjc,libgomp,libcc1,libatomic,libsanitizer}
@@ -1278,10 +1465,28 @@ done)
cp -p $i ../rpm.doc/libgm2/$i.libgm2
done)
%endif
+%if %{build_cobol}
+(cd gcc/cobol; for i in ChangeLog*; do
+ cp -p $i ../../rpm.doc/gcobol/$i.gcobol
+done)
+(cd libgcobol; for i in ChangeLog*; do
+ cp -p $i ../rpm.doc/libgcobol/$i.libgcobol
+done)
+%endif
+%if %{build_algol68}
+(cd gcc/algol68; for i in ChangeLog*; do
+ cp -p $i ../../rpm.doc/algol68/$i.algol68
+done)
+(cd libga68; for i in ChangeLog*; do
+ cp -p $i ../rpm.doc/libga68/$i.libga68
+done)
+%endif
%if %{build_libquadmath}
(cd libquadmath; for i in ChangeLog* COPYING.LIB; do
cp -p $i ../rpm.doc/libquadmath/$i.libquadmath
-done)
+done;
+sed -n '/==========/,/==========/{/==========/d;s/^ \* *//p}' math/cosq.c \
+ > ../rpm.doc/libquadmath/LICENSE.SunPro)
%endif
%if %{build_libitm}
(cd libitm; for i in ChangeLog*; do
@@ -1296,6 +1501,8 @@ done)
cp -p $i ../rpm.doc/libgo/$i.libgo
done)
%endif
+(cd gcc/doc/libgdiagnostics; make html; \
+mv _build/html ../../../rpm.doc/libgdiagnostics-devel/html )
rm -f rpm.doc/changelogs/gcc/ChangeLog.[1-9]
find rpm.doc -name \*ChangeLog\* | xargs bzip2 -9
@@ -1315,7 +1522,8 @@ CC="`$ANNOBIN_FLAGS --build-cc`" CXX="`$ANNOBIN_FLAGS --build-cxx`" \
CFLAGS="$ANNOBIN_CFLAGS1 $ANNOBIN_CFLAGS2 $ANNOBIN_LDFLAGS" \
CXXFLAGS="$ANNOBIN_CFLAGS1 `$ANNOBIN_FLAGS --build-includes` $ANNOBIN_CFLAGS2 $ANNOBIN_LDFLAGS" \
./configure --with-gcc-plugin-dir=%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin \
- --without-annocheck --without-tests --without-docs --disable-rpath --without-debuginfod
+ --without-annocheck --without-tests --without-docs --disable-rpath --without-debuginfod \
+ --without-clang-plugin --without-llvm-plugin
make
cd ../..
%endif
@@ -1347,6 +1555,7 @@ cd obj-offload-nvptx-none
make prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir} \
infodir=%{buildroot}%{_infodir} install
rm -rf %{buildroot}%{_prefix}/libexec/gcc/nvptx-none/%{gcc_major}/install-tools
+rm -rf %{buildroot}%{_prefix}/libexec/gcc/nvptx-none/%{gcc_major}/g++-mapper-server
rm -rf %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/accel/nvptx-none/{install-tools,plugin,cc1,cc1plus,f951}
rm -rf %{buildroot}%{_infodir} %{buildroot}%{_mandir}/man7 %{buildroot}%{_prefix}/share/locale
rm -rf %{buildroot}%{_prefix}/lib/gcc/nvptx-none/%{gcc_major}/{install-tools,plugin}
@@ -1362,6 +1571,44 @@ cd ..
rm -f newlib
%endif
+%if %{build_offload_amdgcn}
+mkdir -p %{buildroot}%{_prefix}/bin %{buildroot}%{_prefix}/amdgcn-amdhsa/bin
+ln -sf llvm-ar %{buildroot}%{_prefix}/bin/amdgcn-amdhsa-ar
+ln -sf llvm-ar %{buildroot}%{_prefix}/bin/amdgcn-amdhsa-ranlib
+ln -sf llvm-mc %{buildroot}%{_prefix}/bin/amdgcn-amdhsa-as
+ln -sf llvm-nm %{buildroot}%{_prefix}/bin/amdgcn-amdhsa-nm
+ln -sf lld %{buildroot}%{_prefix}/bin/amdgcn-amdhsa-ld
+ln -sf ../../bin/amdgcn-amdhsa-ar %{buildroot}%{_prefix}/amdgcn-amdhsa/bin/ar
+ln -sf ../../bin/amdgcn-amdhsa-ranlib %{buildroot}%{_prefix}/amdgcn-amdhsa/bin/ranlib
+ln -sf ../../bin/amdgcn-amdhsa-as %{buildroot}%{_prefix}/amdgcn-amdhsa/bin/as
+ln -sf ../../bin/amdgcn-amdhsa-nm %{buildroot}%{_prefix}/amdgcn-amdhsa/bin/nm
+ln -sf ../../bin/amdgcn-amdhsa-ld %{buildroot}%{_prefix}/amdgcn-amdhsa/bin/ld
+
+ln -sf newlib-cygwin-%{newlib_cygwin_gitrev}/newlib newlib
+cd obj-offload-amdgcn-amdhsa
+make prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir} \
+ infodir=%{buildroot}%{_infodir} install
+rm -rf %{buildroot}%{_prefix}/libexec/gcc/amdgcn-amdhsa/%{gcc_major}/install-tools
+rm -rf %{buildroot}%{_prefix}/libexec/gcc/amdgcn-amdhsa/%{gcc_major}/g++-mapper-server
+rm -rf %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/{install-tools,plugin,cc1,cc1plus,f951}
+rm -rf %{buildroot}%{_infodir} %{buildroot}%{_mandir}/man7 %{buildroot}%{_prefix}/share/locale
+rm -rf %{buildroot}%{_prefix}/lib/gcc/amdgcn-amdhsa/%{gcc_major}/{install-tools,plugin}
+rm -rf %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/{install-tools,plugin,include-fixed}
+rm -rf %{buildroot}%{_prefix}/%{_lib}/libc[cp]1*
+mv -f %{buildroot}%{_prefix}/amdgcn-amdhsa/lib/*.{a,spec} %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/
+mv -f %{buildroot}%{_prefix}/lib/gcc/amdgcn-amdhsa/%{gcc_major}/*.a %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/
+pushd %{buildroot}%{_prefix}/amdgcn-amdhsa/lib
+for i in gfx*; do
+mv -f %{buildroot}%{_prefix}/amdgcn-amdhsa/lib/$i/*.{a,spec} %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/$i/
+mv -f %{buildroot}%{_prefix}/lib/gcc/amdgcn-amdhsa/%{gcc_major}/$i/*.a %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/$i/
+done
+popd
+find %{buildroot}%{_prefix}/lib/gcc/amdgcn-amdhsa %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa \
+ %{buildroot}%{_prefix}/amdgcn-amdhsa/lib -name \*.la | xargs rm
+cd ..
+rm -f newlib
+%endif
+
cd obj-%{gcc_target_platform}
TARGET_PLATFORM=%{gcc_target_platform}
@@ -1389,7 +1636,9 @@ ln -sf ../bin/cpp %{buildroot}/%{_prefix}/lib/cpp
ln -sf gfortran %{buildroot}%{_prefix}/bin/f95
rm -f %{buildroot}%{_infodir}/dir
gzip -9 %{buildroot}%{_infodir}/*.info*
+%if %{build_ada}
ln -sf gcc %{buildroot}%{_prefix}/bin/gnatgcc
+%endif
mkdir -p %{buildroot}%{_fmoddir}
%if %{build_go}
@@ -1434,12 +1683,10 @@ for f in `find %{buildroot}%{_prefix}/include/c++/%{gcc_major}/%{gcc_target_plat
done
# Nuke bits/*.h.gch dirs
-# 1) there is no bits/*.h header installed, so when gch file can't be
-# used, compilation fails
-# 2) sometimes it is hard to match the exact options used for building
+# 1) sometimes it is hard to match the exact options used for building
# libstdc++-v3 or they aren't desirable
-# 3) there are multilib issues, conflicts etc. with this
-# 4) it is huge
+# 2) there are multilib issues, conflicts etc. with this
+# 3) it is huge
# People can always precompile on their own whatever they want, but
# shipping this for everybody is unnecessary.
rm -rf %{buildroot}%{_prefix}/include/c++/%{gcc_major}/%{gcc_target_platform}/bits/*.h.gch
@@ -1451,7 +1698,7 @@ cp -r -p ../libstdc++-v3/doc/html ../rpm.doc/libstdc++-v3/html
cp -r -p $libstdcxx_doc_builddir/html ../rpm.doc/libstdc++-v3/html/api
mkdir -p %{buildroot}%{_mandir}/man3
cp -r -p $libstdcxx_doc_builddir/man/man3/* %{buildroot}%{_mandir}/man3/
-find ../rpm.doc/libstdc++-v3 -name \*~ | xargs rm
+find ../rpm.doc/libstdc++-v3 -name \*~ -o -name \*.orig | xargs rm -f
%endif
%ifarch sparcv9 sparc64
@@ -1489,6 +1736,12 @@ mv %{buildroot}%{_prefix}/%{_lib}/libitm.spec $FULLPATH/
%if %{build_libasan}
mv %{buildroot}%{_prefix}/%{_lib}/libsanitizer.spec $FULLPATH/
%endif
+%if %{build_cobol}
+mv %{buildroot}%{_prefix}/%{_lib}/libgcobol.spec $FULLPATH/
+%endif
+%if %{build_algol68}
+mv %{buildroot}%{_prefix}/%{_lib}/libga68.spec $FULLPATH/
+%endif
mkdir -p %{buildroot}/%{_lib}
mv -f %{buildroot}%{_prefix}/%{_lib}/libgcc_s.so.1 %{buildroot}/%{_lib}/libgcc_s-%{gcc_major}-%{DATE}.so.1
@@ -1504,6 +1757,11 @@ GROUP ( /%{_lib}/libgcc_s.so.1 libgcc.a )' > $FULLPATH/libgcc_s.so
%else
ln -sf /%{_lib}/libgcc_s.so.1 $FULLPATH/libgcc_s.so
%endif
+rm -f $FULLPATH/libgcc_s_asneeded.so
+echo '/* GNU ld script
+ Add DT_NEEDED entry for libgcc_s.so only if needed. */
+OUTPUT_FORMAT('`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`')
+INPUT ( AS_NEEDED ( -lgcc_s ) )' > $FULLPATH/libgcc_s_asneeded.so
%ifarch sparcv9 ppc
%ifarch ppc
rm -f $FULLPATH/64/libgcc_s.so
@@ -1515,6 +1773,11 @@ GROUP ( /lib64/libgcc_s.so.1 libgcc.a )' > $FULLPATH/64/libgcc_s.so
%else
ln -sf /lib64/libgcc_s.so.1 $FULLPATH/64/libgcc_s.so
%endif
+rm -f $FULLPATH/64/libgcc_s_asneeded.so
+echo '/* GNU ld script
+ Add DT_NEEDED entry for libgcc_s.so only if needed. */
+OUTPUT_FORMAT('`gcc -m64 -Wl,--print-output-format -nostdlib -r -o /dev/null`')
+INPUT ( AS_NEEDED ( -lgcc_s ) )' > $FULLPATH/64/libgcc_s_asneeded.so
%endif
%ifarch %{multilib_64_archs}
%ifarch x86_64 ppc64 ppc64p7
@@ -1527,6 +1790,11 @@ GROUP ( /lib/libgcc_s.so.1 libgcc.a )' > $FULLPATH/32/libgcc_s.so
%else
ln -sf /lib/libgcc_s.so.1 $FULLPATH/32/libgcc_s.so
%endif
+rm -f $FULLPATH/32/libgcc_s_asneeded.so
+echo '/* GNU ld script
+ Add DT_NEEDED entry for libgcc_s.so only if needed. */
+OUTPUT_FORMAT('`gcc -m32 -Wl,--print-output-format -nostdlib -r -o /dev/null`')
+INPUT ( AS_NEEDED ( -lgcc_s ) )' > $FULLPATH/32/libgcc_s_asneeded.so
%endif
mv -f %{buildroot}%{_prefix}/%{_lib}/libgomp.spec $FULLPATH/
@@ -1547,18 +1815,8 @@ fi
mkdir -p %{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++*gdb.py* \
%{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}/
-pushd ../libstdc++-v3/python
-for i in `find . -name \*.py`; do
- touch -r $i %{buildroot}%{_prefix}/share/gcc-%{gcc_major}/python/$i
-done
-touch -r hook.in %{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}/libstdc++*gdb.py
-popd
-for f in `find %{buildroot}%{_prefix}/share/gcc-%{gcc_major}/python/ \
- %{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}/ -name \*.py`; do
- r=${f/$RPM_BUILD_ROOT/}
- %{__python3} -c 'import py_compile; py_compile.compile("'$f'", dfile="'$r'")'
- %{__python3} -O -c 'import py_compile; py_compile.compile("'$f'", dfile="'$r'")'
-done
+%py_byte_compile %{python3} %{buildroot}%{_prefix}/share/gcc-%{gcc_major}/python/
+%py_byte_compile %{python3} %{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}/
rm -f $FULLEPATH/libgccjit.so
cp -a objlibgccjit/gcc/libgccjit.so* %{buildroot}%{_prefix}/%{_lib}/
@@ -1566,6 +1824,15 @@ cp -a ../gcc/jit/libgccjit*.h %{buildroot}%{_prefix}/include/
/usr/bin/install -c -m 644 objlibgccjit/gcc/doc/libgccjit.info %{buildroot}/%{_infodir}/
gzip -9 %{buildroot}/%{_infodir}/libgccjit.info
+rm -f $FULLEPATH/libgdiagnostics.so
+cp -a objlibgccjit/gcc/libgdiagnostics.so* %{buildroot}%{_prefix}/%{_lib}/
+cp -a ../gcc/libgdiagnostics*.h %{buildroot}%{_prefix}/include/
+cp -a objlibgccjit/gcc/sarif-replay %{buildroot}%{_prefix}/bin/
+
+sed -e 's,\.\./include/,../../../../include/,' \
+ %{buildroot}%{_prefix}/%{_lib}/libstdc++.modules.json \
+ > $FULLPATH/libstdc++.modules.json
+
pushd $FULLPATH
if [ "%{_lib}" = "lib" ]; then
%if %{build_objc}
@@ -1575,25 +1842,37 @@ ln -sf ../../../libstdc++.so.6.*[0-9] libstdc++.so
ln -sf ../../../libgfortran.so.5.* libgfortran.so
ln -sf ../../../libgomp.so.1.* libgomp.so
%if %{build_go}
-ln -sf ../../../libgo.so.22.* libgo.so
+ln -sf ../../../libgo.so.25.* libgo.so
%endif
%if %{build_libquadmath}
ln -sf ../../../libquadmath.so.0.* libquadmath.so
%endif
%if %{build_d}
-ln -sf ../../../libgdruntime.so.4.* libgdruntime.so
-ln -sf ../../../libgphobos.so.4.* libgphobos.so
+ln -sf ../../../libgdruntime.so.6.* libgdruntime.so
+ln -sf ../../../libgphobos.so.6.* libgphobos.so
%endif
%if %{build_m2}
for i in cor iso log min pim; do
- ln -sf ../../../libm2$i.so.18.* libm2$i.so
+ ln -sf ../../../libm2$i.so.21.* libm2$i.so
done
%endif
+%if %{build_cobol}
+ln -sf ../../../libgcobol.so.2.* libgcobol.so
+%endif
+%if %{build_algol68}
+ln -sf ../../../libga68.so.2.* libga68.so
+%endif
%if %{build_libitm}
ln -sf ../../../libitm.so.1.* libitm.so
%endif
%if %{build_libatomic}
ln -sf ../../../libatomic.so.1.* libatomic.so
+rm -f libatomic_asneeded.so libatomic_asneeded.a
+echo '/* GNU ld script
+ Add DT_NEEDED entry for -latomic only if needed. */
+OUTPUT_FORMAT('`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`')
+INPUT ( AS_NEEDED ( -latomic ) )' > libatomic_asneeded.so
+ln -sf libatomic.a libatomic_asneeded.a
%endif
%if %{build_libasan}
ln -sf ../../../libasan.so.8.* libasan.so
@@ -1610,25 +1889,37 @@ ln -sf ../../../../%{_lib}/libstdc++.so.6.*[0-9] libstdc++.so
ln -sf ../../../../%{_lib}/libgfortran.so.5.* libgfortran.so
ln -sf ../../../../%{_lib}/libgomp.so.1.* libgomp.so
%if %{build_go}
-ln -sf ../../../../%{_lib}/libgo.so.22.* libgo.so
+ln -sf ../../../../%{_lib}/libgo.so.25.* libgo.so
%endif
%if %{build_libquadmath}
ln -sf ../../../../%{_lib}/libquadmath.so.0.* libquadmath.so
%endif
%if %{build_d}
-ln -sf ../../../../%{_lib}/libgdruntime.so.4.* libgdruntime.so
-ln -sf ../../../../%{_lib}/libgphobos.so.4.* libgphobos.so
+ln -sf ../../../../%{_lib}/libgdruntime.so.6.* libgdruntime.so
+ln -sf ../../../../%{_lib}/libgphobos.so.6.* libgphobos.so
%endif
%if %{build_m2}
for i in cor iso log min pim; do
- ln -sf ../../../../%{_lib}/libm2$i.so.18.* libm2$i.so
+ ln -sf ../../../../%{_lib}/libm2$i.so.21.* libm2$i.so
done
%endif
+%if %{build_cobol}
+ln -sf ../../../../%{_lib}/libgcobol.so.2.* libgcobol.so
+%endif
+%if %{build_algol68}
+ln -sf ../../../../%{_lib}/libga68.so.2.* libga68.so
+%endif
%if %{build_libitm}
ln -sf ../../../../%{_lib}/libitm.so.1.* libitm.so
%endif
%if %{build_libatomic}
ln -sf ../../../../%{_lib}/libatomic.so.1.* libatomic.so
+rm -f libatomic_asneeded.so libatomic_asneeded.a
+echo '/* GNU ld script
+ Add DT_NEEDED entry for -latomic only if needed. */
+OUTPUT_FORMAT('`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`')
+INPUT ( AS_NEEDED ( -latomic ) )' > libatomic_asneeded.so
+ln -sf libatomic.a libatomic_asneeded.a
%endif
%if %{build_libasan}
ln -sf ../../../../%{_lib}/libasan.so.8.* libasan.so
@@ -1656,7 +1947,6 @@ fi
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++fs.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++exp.*a $FULLLPATH/
-mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++_libbacktrace.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libsupc++.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libgfortran.*a $FULLLPATH/
%if %{build_objc}
@@ -1678,11 +1968,17 @@ for i in cor iso log min pim; do
ln -sf ../../libm2$i.a m2/m2$i/
done
%endif
+%if %{build_cobol}
+mv -f %{buildroot}%{_prefix}/%{_lib}/libgcobol.*a $FULLLPATH/
+%endif
+%if %{build_algol68}
+mv -f %{buildroot}%{_prefix}/%{_lib}/libga68.*a $FULLLPATH/
+%endif
%if %{build_libitm}
mv -f %{buildroot}%{_prefix}/%{_lib}/libitm.*a $FULLLPATH/
%endif
%if %{build_libatomic}
-mv -f %{buildroot}%{_prefix}/%{_lib}/libatomic.*a $FULLLPATH/
+mv -f %{buildroot}%{_prefix}/%{_lib}/libatomic.*a $FULLPATH/
%endif
%if %{build_libasan}
mv -f %{buildroot}%{_prefix}/%{_lib}/libasan.*a $FULLLPATH/
@@ -1717,28 +2013,28 @@ mv -f $FULLPATH/ada{include,lib} $FULLLPATH/
pushd $FULLLPATH/adalib
if [ "%{_lib}" = "lib" ]; then
ln -sf ../../../../../libgnarl-*.so libgnarl.so
-ln -sf ../../../../../libgnarl-*.so libgnarl-12.so
+ln -sf ../../../../../libgnarl-*.so libgnarl-%{gcc_major}.so
ln -sf ../../../../../libgnat-*.so libgnat.so
-ln -sf ../../../../../libgnat-*.so libgnat-12.so
+ln -sf ../../../../../libgnat-*.so libgnat-%{gcc_major}.so
else
ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl.so
-ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl-12.so
+ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl-%{gcc_major}.so
ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat.so
-ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat-12.so
+ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat-%{gcc_major}.so
fi
popd
else
pushd $FULLPATH/adalib
if [ "%{_lib}" = "lib" ]; then
ln -sf ../../../../libgnarl-*.so libgnarl.so
-ln -sf ../../../../libgnarl-*.so libgnarl-12.so
+ln -sf ../../../../libgnarl-*.so libgnarl-%{gcc_major}.so
ln -sf ../../../../libgnat-*.so libgnat.so
-ln -sf ../../../../libgnat-*.so libgnat-12.so
+ln -sf ../../../../libgnat-*.so libgnat-%{gcc_major}.so
else
ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl.so
-ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl-12.so
+ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl-%{gcc_major}.so
ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat.so
-ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat-12.so
+ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat-%{gcc_major}.so
fi
popd
fi
@@ -1753,8 +2049,8 @@ ln -sf ../`echo ../../../../lib/libgfortran.so.5.* | sed s~/lib/~/lib64/~` 64/li
ln -sf ../`echo ../../../../lib/libgomp.so.1.* | sed s~/lib/~/lib64/~` 64/libgomp.so
%if %{build_go}
rm -f libgo.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgo.so.22.* | sed 's,^.*libg,libg,'`' )' > libgo.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgo.so.22.* | sed 's,^.*libg,libg,'`' )' > 64/libgo.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgo.so.25.* | sed 's,^.*libg,libg,'`' )' > libgo.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgo.so.25.* | sed 's,^.*libg,libg,'`' )' > 64/libgo.so
%endif
%if %{build_libquadmath}
rm -f libquadmath.so
@@ -1763,21 +2059,31 @@ echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libquadmath.so.0.* | sed '
%endif
%if %{build_d}
rm -f libgdruntime.so libgphobos.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgdruntime.so.4.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgdruntime.so.4.* | sed 's,^.*libg,libg,'`' )' > 64/libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgphobos.so.4.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgphobos.so.4.* | sed 's,^.*libg,libg,'`' )' > 64/libgphobos.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgdruntime.so.6.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgdruntime.so.6.* | sed 's,^.*libg,libg,'`' )' > 64/libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgphobos.so.6.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgphobos.so.6.* | sed 's,^.*libg,libg,'`' )' > 64/libgphobos.so
%endif
%if %{build_m2}
for i in cor iso log min pim; do
rm -f libm2$i.so
- echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libm2$i.so.18.* | sed 's,^.*libm,libm,'`' )' > libm2$i.so
- echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libm2$i.so.18.* | sed 's,^.*libm,libm,'`' )' > 64/libm2$i.so
+ echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libm2$i.so.21.* | sed 's,^.*libm,libm,'`' )' > libm2$i.so
+ echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libm2$i.so.21.* | sed 's,^.*libm,libm,'`' )' > 64/libm2$i.so
rm -f 64/m2/m2$i/*.{a,la}
ln -sf ../../libm2$i.so 64/m2/m2$i/
ln -sf ../../libm2$i.a 64/m2/m2$i/
done
%endif
+%if %{build_cobol}
+rm -f libgcobol.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgcobol.so.2.* | sed 's,^.*libg,libg,'`' )' > libgcobol.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgcobol.so.2.* | sed 's,^.*libg,libg,'`' )' > 64/libgcobol.so
+%endif
+%if %{build_algol68}
+rm -f libga68.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libga68.so.2.* | sed 's,^.*libg,libg,'`' )' > libga68.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libga68.so.2.* | sed 's,^.*libg,libg,'`' )' > 64/libga68.so
+%endif
%if %{build_libitm}
rm -f libitm.so
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libitm.so.1.* | sed 's,^.*libi,libi,'`' )' > libitm.so
@@ -1787,6 +2093,18 @@ echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libitm.so.1.* | sed 's,^.*
rm -f libatomic.so
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libatomic.so.1.* | sed 's,^.*liba,liba,'`' )' > libatomic.so
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libatomic.so.1.* | sed 's,^.*liba,liba,'`' )' > 64/libatomic.so
+mv -f %{buildroot}%{_prefix}/lib64/libatomic.*a 64/
+rm -f libatomic_asneeded.so libatomic_asneeded.a 64/libatomic_asneeded.so 64/libatomic_asneeded.a
+echo '/* GNU ld script
+ Add DT_NEEDED entry for -latomic only if needed. */
+OUTPUT_FORMAT('`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`')
+INPUT ( AS_NEEDED ( -latomic ) )' > libatomic_asneeded.so
+ln -sf libatomic.a libatomic_asneeded.a
+echo '/* GNU ld script
+ Add DT_NEEDED entry for -latomic only if needed. */
+OUTPUT_FORMAT('`gcc -m64 -Wl,--print-output-format -nostdlib -r -o /dev/null`')
+INPUT ( AS_NEEDED ( -latomic ) )' > 64/libatomic_asneeded.so
+ln -sf libatomic.a 64/libatomic_asneeded.a
%endif
%if %{build_libasan}
rm -f libasan.so
@@ -1811,8 +2129,6 @@ ln -sf lib32/libstdc++fs.a libstdc++fs.a
ln -sf ../lib64/libstdc++fs.a 64/libstdc++fs.a
ln -sf lib32/libstdc++exp.a libstdc++exp.a
ln -sf ../lib64/libstdc++exp.a 64/libstdc++exp.a
-ln -sf lib32/libstdc++_libbacktrace.a libstdc++_libbacktrace.a
-ln -sf ../lib64/libstdc++_libbacktrace.a 64/libstdc++_libbacktrace.a
ln -sf lib32/libsupc++.a libsupc++.a
ln -sf ../lib64/libsupc++.a 64/libsupc++.a
%if %{build_libquadmath}
@@ -1831,14 +2147,18 @@ for i in cor iso log min pim; do
ln -sf ../lib64/libm2$i.a 64/libm2$i.a
done
%endif
+%if %{build_cobol}
+ln -sf lib32/libgcobol.a libgcobol.a
+ln -sf ../lib64/libgcobol.a 64/libgcobol.a
+%endif
+%if %{build_algol68}
+ln -sf lib32/libga68.a libga68.a
+ln -sf ../lib64/libga68.a 64/libga68.a
+%endif
%if %{build_libitm}
ln -sf lib32/libitm.a libitm.a
ln -sf ../lib64/libitm.a 64/libitm.a
%endif
-%if %{build_libatomic}
-ln -sf lib32/libatomic.a libatomic.a
-ln -sf ../lib64/libatomic.a 64/libatomic.a
-%endif
%if %{build_libasan}
ln -sf lib32/libasan.a libasan.a
ln -sf ../lib64/libasan.a 64/libasan.a
@@ -1872,8 +2192,8 @@ ln -sf ../`echo ../../../../lib64/libgfortran.so.5.* | sed s~/../lib64/~/~` 32/l
ln -sf ../`echo ../../../../lib64/libgomp.so.1.* | sed s~/../lib64/~/~` 32/libgomp.so
%if %{build_go}
rm -f libgo.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgo.so.22.* | sed 's,^.*libg,libg,'`' )' > libgo.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgo.so.22.* | sed 's,^.*libg,libg,'`' )' > 32/libgo.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgo.so.25.* | sed 's,^.*libg,libg,'`' )' > libgo.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgo.so.25.* | sed 's,^.*libg,libg,'`' )' > 32/libgo.so
%endif
%if %{build_libquadmath}
rm -f libquadmath.so
@@ -1882,21 +2202,31 @@ echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libquadmath.so.0.* | sed '
%endif
%if %{build_d}
rm -f libgdruntime.so libgphobos.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgdruntime.so.4.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgdruntime.so.4.* | sed 's,^.*libg,libg,'`' )' > 32/libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgphobos.so.4.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgphobos.so.4.* | sed 's,^.*libg,libg,'`' )' > 32/libgphobos.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgdruntime.so.6.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgdruntime.so.6.* | sed 's,^.*libg,libg,'`' )' > 32/libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgphobos.so.6.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgphobos.so.6.* | sed 's,^.*libg,libg,'`' )' > 32/libgphobos.so
%endif
%if %{build_m2}
for i in cor iso log min pim; do
rm -f libm2$i.so
- echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libm2$i.so.18.* | sed 's,^.*libm,libm,'`' )' > libm2$i.so
- echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libm2$i.so.18.* | sed 's,^.*libm,libm,'`' )' > 32/libm2$i.so
+ echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libm2$i.so.21.* | sed 's,^.*libm,libm,'`' )' > libm2$i.so
+ echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libm2$i.so.21.* | sed 's,^.*libm,libm,'`' )' > 32/libm2$i.so
rm -f 32/m2/m2$i/*.{a,la}
ln -sf ../../libm2$i.so 32/m2/m2$i/
ln -sf ../../libm2$i.a 32/m2/m2$i/
done
%endif
+%if %{build_cobol}
+rm -f libgcobol.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgcobol.so.2.* | sed 's,^.*libg,libg,'`' )' > libgcobol.so
+#echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgcobol.so.2.* | sed 's,^.*libg,libg,'`' )' > 32/libgcobol.so
+%endif
+%if %{build_algol68}
+rm -f libga68.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libga68.so.2.* | sed 's,^.*libg,libg,'`' )' > libga68.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libga68.so.2.* | sed 's,^.*libg,libg,'`' )' > 32/libga68.so
+%endif
%if %{build_libitm}
rm -f libitm.so
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libitm.so.1.* | sed 's,^.*libi,libi,'`' )' > libitm.so
@@ -1906,6 +2236,18 @@ echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libitm.so.1.* | sed 's,^.*
rm -f libatomic.so
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libatomic.so.1.* | sed 's,^.*liba,liba,'`' )' > libatomic.so
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libatomic.so.1.* | sed 's,^.*liba,liba,'`' )' > 32/libatomic.so
+mv -f %{buildroot}%{_prefix}/lib/libatomic.*a 32/
+rm -f libatomic_asneeded.so libatomic_asneeded.a 32/libatomic_asneeded.so 32/libatomic_asneeded.a
+echo '/* GNU ld script
+ Add DT_NEEDED entry for -latomic only if needed. */
+OUTPUT_FORMAT('`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`')
+INPUT ( AS_NEEDED ( -latomic ) )' > libatomic_asneeded.so
+ln -sf libatomic.a libatomic_asneeded.a
+echo '/* GNU ld script
+ Add DT_NEEDED entry for -latomic only if needed. */
+OUTPUT_FORMAT('`gcc -m32 -Wl,--print-output-format -nostdlib -r -o /dev/null`')
+INPUT ( AS_NEEDED ( -latomic ) )' > 32/libatomic_asneeded.so
+ln -sf libatomic.a 32/libatomic_asneeded.a
%endif
%if %{build_libasan}
rm -f libasan.so
@@ -1932,8 +2274,6 @@ ln -sf ../lib32/libstdc++fs.a 32/libstdc++fs.a
ln -sf lib64/libstdc++fs.a libstdc++fs.a
ln -sf ../lib32/libstdc++exp.a 32/libstdc++exp.a
ln -sf lib64/libstdc++exp.a libstdc++exp.a
-ln -sf ../lib32/libstdc++_libbacktrace.a 32/libstdc++_libbacktrace.a
-ln -sf lib64/libstdc++_libbacktrace.a libstdc++_libbacktrace.a
ln -sf ../lib32/libsupc++.a 32/libsupc++.a
ln -sf lib64/libsupc++.a libsupc++.a
%if %{build_libquadmath}
@@ -1952,14 +2292,18 @@ for i in cor iso log min pim; do
ln -sf lib64/libm2$i.a libm2$i.a
done
%endif
+%if %{build_cobol}
+ln -sf ../lib32/libgcobol.a 32/libgcobol.a
+ln -sf lib64/libgcobol.a libgcobol.a
+%endif
+%if %{build_algol68}
+ln -sf ../lib32/libga68.a 32/libga68.a
+ln -sf lib64/libga68.a libga68.a
+%endif
%if %{build_libitm}
ln -sf ../lib32/libitm.a 32/libitm.a
ln -sf lib64/libitm.a libitm.a
%endif
-%if %{build_libatomic}
-ln -sf ../lib32/libatomic.a 32/libatomic.a
-ln -sf lib64/libatomic.a libatomic.a
-%endif
%if %{build_libasan}
ln -sf ../lib32/libasan.a 32/libasan.a
ln -sf lib64/libasan.a libasan.a
@@ -1988,7 +2332,6 @@ ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libgfo
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libstdc++.a 32/libstdc++.a
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libstdc++fs.a 32/libstdc++fs.a
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libstdc++exp.a 32/libstdc++exp.a
-ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libstdc++_libbacktrace.a 32/libstdc++_libbacktrace.a
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libsupc++.a 32/libsupc++.a
%if %{build_libquadmath}
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libquadmath.a 32/libquadmath.a
@@ -2002,12 +2345,15 @@ for i in cor iso log min pim; do
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libm2$i.a 32/libm2$i.a
done
%endif
+%if %{build_cobol}
+#ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libgcobol.a 32/libgcobol.a
+%endif
+%if %{build_algol68}
+ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libga68.a 32/libga68.a
+%endif
%if %{build_libitm}
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libitm.a 32/libitm.a
%endif
-%if %{build_libatomic}
-ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libatomic.a 32/libatomic.a
-%endif
%if %{build_libasan}
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libasan.a 32/libasan.a
%endif
@@ -2028,7 +2374,8 @@ ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/adalib
# If we are building a debug package then copy all of the static archives
# into the debug directory to keep them as unstripped copies.
-%if 0%{?_enable_debug_packages}
+# if 0%{?_enable_debug_packages}
+%if 0
for d in . $FULLLSUBDIR; do
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/$d
for f in `find $d -maxdepth 1 -a \
@@ -2042,7 +2389,7 @@ for d in . $FULLLSUBDIR; do
-o -name libobjc.a -o -name libgdruntime.a -o -name libgphobos.a \
-o -name libm2\*.a -o -name libquadmath.a -o -name libstdc++.a \
-o -name libstdc++fs.a -o -name libstdc++exp.a \
- -o -name libstdc++_libbacktrace.a -o -name libsupc++.a \
+ -o -name libsupc++.a -o -name libgcobol.a \
-o -name libtsan.a -o -name libubsan.a \) -a -type f`; do
cp -a $f $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/$d/
done
@@ -2055,7 +2402,8 @@ strip -g `find . \( -name libgfortran.a -o -name libobjc.a -o -name libgomp.a \
-o -name libgdruntime.a -o -name libgphobos.a -o -name libm2\*.a \
-o -name libitm.a -o -name libgo.a -o -name libcaf\*.a \
-o -name libatomic.a -o -name libasan.a -o -name libtsan.a \
- -o -name libubsan.a -o -name liblsan.a -o -name libcc1.a \) \
+ -o -name libubsan.a -o -name liblsan.a -o -name libcc1.a \
+ -o -name libgcobol.a \) \
-a -type f`
popd
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgfortran.so.5.*
@@ -2065,14 +2413,20 @@ chmod 755 %{buildroot}%{_prefix}/%{_lib}/libcc1.so.0.*
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libquadmath.so.0.*
%endif
%if %{build_d}
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgdruntime.so.4.*
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgphobos.so.4.*
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgdruntime.so.6.*
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgphobos.so.6.*
%endif
%if %{build_m2}
for i in cor iso log min pim; do
- chmod 755 %{buildroot}%{_prefix}/%{_lib}/libm2$i.so.18.*
+ chmod 755 %{buildroot}%{_prefix}/%{_lib}/libm2$i.so.21.*
done
%endif
+%if %{build_cobol}
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgcobol.so.2.*
+%endif
+%if %{build_algol68}
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libga68.so.2.*
+%endif
%if %{build_libitm}
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libitm.so.1.*
%endif
@@ -2096,7 +2450,7 @@ chmod 755 %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0.*
%endif
%if %{build_go}
# Avoid stripping these libraries and binaries.
-chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.22.*
+chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.25.*
chmod 644 %{buildroot}%{_prefix}/bin/go.gcc
chmod 644 %{buildroot}%{_prefix}/bin/gofmt.gcc
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo
@@ -2156,7 +2510,6 @@ cd ..
rm -f %{buildroot}%{_prefix}/%{_lib}/{libffi*,libiberty.a} || :
rm -f $FULLEPATH/install-tools/{mkheaders,fixincl}
rm -f %{buildroot}%{_prefix}/lib/{32,64}/libiberty.a
-rm -f %{buildroot}%{_prefix}/%{_lib}/libssp*
rm -f %{buildroot}%{_prefix}/%{_lib}/libvtv* || :
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gfortran || :
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gccgo || :
@@ -2166,6 +2519,9 @@ rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc-nm || :
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc-ranlib || :
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gdc || :
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gm2 || :
+rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gcobc || :
+rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gcobol || :
+rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-ga68 || :
%ifarch %{multilib_64_archs}
# Remove libraries for the other arch on multilib arches
@@ -2189,7 +2545,31 @@ rm -rf %{buildroot}%{_prefix}/lib64/go/%{gcc_major}/%{gcc_target_platform}
%endif
%endif
-rm -f %{buildroot}%{mandir}/man3/ffi*
+rm -f %{buildroot}%{_prefix}/lib*/lib*.spec || :
+rm -f %{buildroot}%{_prefix}/lib*/libstdc++.modules.json || :
+rm -f %{buildroot}%{_prefix}/%{_lib}/lib{asan,atomic,gcc_s,gcobol,ga68,gdruntime,gfortran,go,gomp-plugin-*,gomp,gphobos,hwasan}.so || :
+rm -f %{buildroot}%{_prefix}/%{_lib}/lib{itm,lsan,m2{cor,iso,log,min,pim},objc,quadmath,stdc++,tsan,ubsan,gcc_s_asneeded,atomic_asneeded}.so || :
+rm -f %{buildroot}%{_prefix}/%{_lib}/libatomic_asneeded.a || :
+rm -f %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/install-tools/{fixinc.sh,mkinstalldirs} || :
+rm -f %{buildroot}%{_prefix}/share/locale/*/LC_MESSAGES/libstdc++.mo || :
+rm -f %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include-fixed/README || :
+rm -rf %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ssp || :
+rm -rf %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/install-tools || :
+%ifarch ppc ppc64 ppc64le ppc64p7
+rm -f %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/{e,n}crt{i,n}.o || :
+%endif
+
+%if %{build_offload_nvptx}
+rm -f %{buildroot}%{_mandir}/man1/*-accel-*nvptx*
+find %{buildroot}%{_prefix}/nvptx-none/lib -name libstdc++.a-gdb.py | xargs rm -f || :
+find %{buildroot}%{_prefix}/nvptx-none/lib -name libstdc++.modules.json | xargs rm -f || :
+%endif
+%if %{build_offload_amdgcn}
+rm -f %{buildroot}%{_mandir}/man1/*-accel-*amdgcn*
+find %{buildroot}%{_prefix}/amdgcn-amdhsa/lib -name libstdc++.a-gdb.py | xargs rm -f || :
+find %{buildroot}%{_prefix}/amdgcn-amdhsa/lib -name libstdc++.modules.json | xargs rm -f || :
+%endif
+rm -f %{buildroot}%{_mandir}/man7/{gpl,gfdl,fsf-funding}.7*
# Help plugins find out nvra.
echo gcc-%{version}-%{release}.%{_arch} > $FULLPATH/rpmver
@@ -2208,6 +2588,62 @@ ln -sf gcc-annobin.so.0.0.0 $FULLPATH/plugin/gcc-annobin.so.0
ln -sf gcc-annobin.so.0.0.0 $FULLPATH/plugin/gcc-annobin.so
%endif
+%check
+cd obj-%{gcc_target_platform}
+
+# run the tests.
+LC_ALL=C make %{?_smp_mflags} -k check ALT_CC_UNDER_TEST=gcc ALT_CXX_UNDER_TEST=g++ \
+%if 0%{?fedora} >= 20 || 0%{?rhel} > 7
+ RUNTESTFLAGS="--target_board=unix/'{-foffload=disable,-fstack-protector-strong/-foffload=disable}'" || :
+%else
+ RUNTESTFLAGS="--target_board=unix/'{-foffload=disable,-fstack-protector/-foffload=disable}'" || :
+%endif
+%if !%{build_annobin_plugin}
+if [ -f %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/annobin.so ]; then
+ # Test whether current annobin plugin won't fail miserably with the newly built gcc.
+ echo -e '#include \nint main () { printf ("Hello, world!\\n"); return 0; }' > annobin-test.c
+ echo -e '#include \nint main () { std::cout << "Hello, world!" << std::endl; return 0; }' > annobin-test.C
+ `%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-cc` \
+ -O2 -g -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS \
+ -fexceptions -fstack-protector-strong -grecord-gcc-switches -o annobin-test{c,.c} \
+ -Wl,-rpath,%{gcc_target_platform}/libgcc/ \
+ -fplugin=%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/annobin.so \
+ 2> ANNOBINOUT1 || echo Annobin test 1 FAIL > ANNOBINOUT2;
+ `%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-cxx` \
+ `%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-includes` \
+ -O2 -g -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS \
+ -fexceptions -fstack-protector-strong -grecord-gcc-switches -o annobin-test{C,.C} \
+ -Wl,-rpath,%{gcc_target_platform}/libgcc/:%{gcc_target_platform}/libstdc++-v3/src/.libs/ \
+ -fplugin=%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/annobin.so \
+ -B %{gcc_target_platform}/libstdc++-v3/src/.libs/ \
+ 2> ANNOBINOUT3 || echo Annobin test 2 FAIL > ANNOBINOUT4;
+ [ -f ./annobin-testc ] || echo Annobin test 1 MISSING > ANNOBINOUT5;
+ [ -f ./annobin-testc ] && \
+ ( ./annobin-testc > ANNOBINRES1 2>&1 || echo Annobin test 1 RUNFAIL > ANNOBINOUT6 );
+ [ -f ./annobin-testC ] || echo Annobin test 2 MISSING > ANNOBINOUT7;
+ [ -f ./annobin-testC ] && \
+ ( ./annobin-testC > ANNOBINRES2 2>&1 || echo Annobin test 2 RUNFAIL > ANNOBINOUT8 );
+ cat ANNOBINOUT[1-8] > ANNOBINOUT
+ touch ANNOBINRES1 ANNOBINRES2
+ [ -s ANNOBINOUT ] && echo Annobin testing FAILed > ANNOBINRES
+ cat ANNOBINOUT ANNOBINRES[12] >> ANNOBINRES
+ rm -f ANNOBINOUT* ANNOBINRES[12] annobin-test{c,C}
+fi
+%endif
+echo ====================TESTING=========================
+( LC_ALL=C ../contrib/test_summary || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}'
+%if !%{build_annobin_plugin}
+[ -f ANNOBINRES ] && cat ANNOBINRES
+%endif
+echo ====================TESTING END=====================
+mkdir testlogs-%{_target_platform}-%{version}-%{release}
+for i in `find . -name \*.log | grep -F testsuite/ | grep -v 'config.log\|acats.*/tests/'`; do
+ ln $i testlogs-%{_target_platform}-%{version}-%{release}/ || :
+done
+tar cf - testlogs-%{_target_platform}-%{version}-%{release} | xz -9e \
+ | uuencode testlogs-%{_target_platform}.tar.xz || :
+rm -rf testlogs-%{_target_platform}-%{version}-%{release}
+
%post go
%{_sbindir}/update-alternatives --install \
%{_prefix}/bin/go go %{_prefix}/bin/go.gcc 92 \
@@ -2218,28 +2654,20 @@ if [ $1 = 0 ]; then
%{_sbindir}/update-alternatives --remove go %{_prefix}/bin/go.gcc
fi
+%{?ldconfig:
# Because glibc Prereq's libgcc and /sbin/ldconfig
# comes from glibc, it might not exist yet when
# libgcc is installed
%post -n libgcc -p
-if posix.access ("/sbin/ldconfig", "x") then
- local pid = posix.fork ()
- if pid == 0 then
- posix.exec ("/sbin/ldconfig")
- elseif pid ~= -1 then
- posix.wait (pid)
- end
+if posix.access ("%ldconfig", "x") then
+ rpm.execute ("%ldconfig")
end
%postun -n libgcc -p
-if posix.access ("/sbin/ldconfig", "x") then
- local pid = posix.fork ()
- if pid == 0 then
- posix.exec ("/sbin/ldconfig")
- elseif pid ~= -1 then
- posix.wait (pid)
- end
+if posix.access ("%ldconfig", "x") then
+ rpm.execute ("%ldconfig")
end
+}
%ldconfig_scriptlets -n libstdc++
@@ -2259,6 +2687,8 @@ end
%ldconfig_scriptlets -n libgccjit
+%ldconfig_scriptlets -n libgdiagnostics
+
%ldconfig_scriptlets -n libquadmath
%ldconfig_scriptlets -n libitm
@@ -2273,6 +2703,8 @@ end
%ldconfig_scriptlets -n liblsan
+%ldconfig_scriptlets -n libhwasan
+
%ldconfig_scriptlets -n libgo
%files -f %{name}.lang
@@ -2335,6 +2767,8 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdnoreturn.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdatomic.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/gcov.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdckdint.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdcountof.h
%ifarch %{ix86} x86_64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mmintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xmmintrin.h
@@ -2370,9 +2804,7 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsaveintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsaveoptintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512cdintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512erintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512fintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512pfintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/shaintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mm_malloc.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mm3dnow.h
@@ -2394,8 +2826,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsavesintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/clzerointrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/pkuintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx5124fmapsintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx5124vnniwintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vpopcntdqintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sgxintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/gfniintrin.h
@@ -2440,6 +2870,25 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/prfchiintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/raointintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxcomplexintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bitalgvlintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avxvnniint16intrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sha512intrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sm3intrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sm4intrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/usermsrintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxavx512intrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxfp8intrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxmovrsintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxtf32intrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2bf16intrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2convertintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2copyintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2mediaintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2minmaxintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2satcvtintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/movrsintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bmmintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bmmvlintrin.h
%endif
%ifarch ia64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ia64intrin.h
@@ -2484,6 +2933,10 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_fp16.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_bf16.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_sve.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_sme.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_neon_sve_bridge.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_private_fp8.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_private_neon_types.h
%endif
%ifarch sparc sparcv9 sparc64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/visintrin.h
@@ -2494,6 +2947,14 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/htmxlintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/vecintrin.h
%endif
+%ifarch riscv64
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/riscv_vector.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/riscv_crypto.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/riscv_bitmanip.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/riscv_th_vector.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sifive_vector.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/andes_vector.h
+%endif
%if %{build_libasan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sanitizer
%endif
@@ -2503,6 +2964,7 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcov.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc_eh.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc_s.so
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc_s_asneeded.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.spec
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.so
@@ -2522,6 +2984,7 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcov.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc_eh.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc_s.so
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc_s_asneeded.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgomp.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgomp.so
%if %{build_libquadmath}
@@ -2535,6 +2998,8 @@ end
%if %{build_libatomic}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic.so
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic_asneeded.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic_asneeded.so
%endif
%if %{build_libasan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libasan.a
@@ -2553,6 +3018,7 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcov.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc_eh.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc_s.so
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc_s_asneeded.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgomp.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgomp.so
%if %{build_libquadmath}
@@ -2566,6 +3032,8 @@ end
%if %{build_libatomic}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic.so
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic_asneeded.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic_asneeded.so
%endif
%if %{build_libasan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libasan.a
@@ -2589,6 +3057,8 @@ end
%if %{build_libatomic}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.so
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic_asneeded.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic_asneeded.so
%endif
%if %{build_libasan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.a
@@ -2601,7 +3071,10 @@ end
%endif
%else
%if %{build_libatomic}
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.so
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic_asneeded.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic_asneeded.so
%endif
%if %{build_libasan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.so
@@ -2624,7 +3097,7 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan_preinit.o
%endif
%{_prefix}/libexec/getconf/default
-%doc gcc/README* rpm.doc/changelogs/gcc/ChangeLog*
+%doc gcc/README* rpm.doc/changelogs/gcc/ChangeLog*
%{!?_licensedir:%global license %%doc}
%license gcc/COPYING* COPYING.RUNTIME
@@ -2663,7 +3136,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++fs.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++exp.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++_libbacktrace.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libsupc++.a
%endif
%ifarch %{multilib_64_archs}
@@ -2672,7 +3144,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++fs.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++exp.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++_libbacktrace.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libsupc++.a
%endif
%ifarch sparcv9 ppc %{multilib_64_archs}
@@ -2682,7 +3153,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++fs.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++exp.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++_libbacktrace.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libsupc++.a
%endif
%doc rpm.doc/changelogs/gcc/cp/ChangeLog*
@@ -2712,22 +3182,20 @@ end
%ifnarch sparcv9 ppc %{multilib_64_archs}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.so
%endif
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.modules.json
%ifarch sparcv9 ppc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++fs.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++exp.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++_libbacktrace.a
%endif
%ifarch sparc64 ppc64 ppc64p7
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++fs.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++exp.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++_libbacktrace.a
%endif
%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++fs.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++exp.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++_libbacktrace.a
%endif
%doc rpm.doc/changelogs/libstdc++-v3/ChangeLog* libstdc++-v3/README*
@@ -2898,8 +3366,8 @@ end
%doc rpm.doc/gdc/*
%files -n libgphobos
-%{_prefix}/%{_lib}/libgdruntime.so.4*
-%{_prefix}/%{_lib}/libgphobos.so.4*
+%{_prefix}/%{_lib}/libgdruntime.so.6*
+%{_prefix}/%{_lib}/libgphobos.so.6*
%doc rpm.doc/libphobos/*
%files -n libgphobos-static
@@ -2926,6 +3394,7 @@ end
%files gm2
%{_prefix}/bin/gm2
%{_mandir}/man1/gm2.1*
+%{_infodir}/m2*
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
@@ -2955,7 +3424,7 @@ end
%doc rpm.doc/gm2/*
%files -n libgm2
-%{_prefix}/%{_lib}/libm2*.so.18*
+%{_prefix}/%{_lib}/libm2*.so.21*
%doc rpm.doc/libgm2/*
%files -n libgm2-static
@@ -2975,6 +3444,79 @@ end
%endif
%endif
+%if %{build_cobol}
+%files gcobol
+%{_prefix}/bin/gcobol
+%{_prefix}/bin/gcobc
+%{_mandir}/man1/gcobol.1*
+%{_mandir}/man3/gcobol-io.3*
+%dir %{_prefix}/libexec/gcc
+%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
+%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
+%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cobol1
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcobol.spec
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcobol.so
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/cobol
+%doc rpm.doc/gcobol/*
+
+%files -n libgcobol
+%{_prefix}/%{_lib}/libgcobol.so.2*
+%doc rpm.doc/libgcobol/*
+
+%files -n libgcobol-static
+%dir %{_prefix}/lib/gcc
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcobol.a
+%endif
+
+%if %{build_algol68}
+%files algol68
+%{_prefix}/bin/ga68
+%{_mandir}/man1/ga68.1*
+%dir %{_prefix}/libexec/gcc
+%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
+%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
+%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/a681
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libga68.spec
+%ifarch sparcv9 sparc64 ppc ppc64 ppc64p7
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libga68.a
+%endif
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libga68.so
+%ifarch sparcv9 ppc
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libga68.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libga68.so
+%endif
+%ifarch %{multilib_64_archs}
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libga68.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libga68.so
+%endif
+%{_infodir}/ga68*
+%doc rpm.doc/algol68/*
+
+%files -n libga68
+%{_prefix}/%{_lib}/libga68.so.2*
+%doc rpm.doc/libga68/*
+
+%files -n libga68-static
+%dir %{_prefix}/lib/gcc
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
+%ifarch sparcv9 ppc
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libga68.a
+%endif
+%ifarch sparc64 ppc64 ppc64p7
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libga68.a
+%endif
+%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libga68.a
+%endif
+%endif
+
%if %{build_ada}
%files gnat
%{_prefix}/bin/gnat
@@ -3136,22 +3678,6 @@ end
%if %{build_libatomic}
%files -n libatomic
%{_prefix}/%{_lib}/libatomic.so.1*
-
-%files -n libatomic-static
-%dir %{_prefix}/lib/gcc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
-%ifarch sparcv9 ppc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libatomic.a
-%endif
-%ifarch sparc64 ppc64 ppc64p7
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libatomic.a
-%endif
-%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.a
-%endif
%doc rpm.doc/changelogs/libatomic/ChangeLog*
%endif
@@ -3291,7 +3817,8 @@ end
%doc rpm.doc/go/*
%files -n libgo
-%attr(755,root,root) %{_prefix}/%{_lib}/libgo.so.22*
+%{_prefix}/%{_lib}/libgo.so.25
+%attr(755,root,root) %{_prefix}/%{_lib}/libgo.so.25.*
%doc rpm.doc/libgo/*
%files -n libgo-devel
@@ -3352,6 +3879,15 @@ end
%doc rpm.doc/libgccjit-devel/*
%doc gcc/jit/docs/examples
+%files -n libgdiagnostics
+%{_prefix}/bin/sarif-replay
+%{_prefix}/%{_lib}/libgdiagnostics.so.*
+
+%files -n libgdiagnostics-devel
+%{_prefix}/%{_lib}/libgdiagnostics.so
+%{_prefix}/include/libgdiagnostics*.h
+%doc rpm.doc/libgdiagnostics-devel/*
+
%files plugin-devel
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -3398,6 +3934,30 @@ end
%{_prefix}/%{_lib}/libgomp-plugin-nvptx.so.*
%endif
+%if %{build_offload_amdgcn}
+%files offload-amdgcn
+%{_prefix}/bin/amdgcn-amdhsa-*
+%{_prefix}/bin/%{gcc_target_platform}-accel-amdgcn-amdhsa-gcc
+%{_prefix}/bin/%{gcc_target_platform}-accel-amdgcn-amdhsa-lto-dump
+%dir %{_prefix}/lib/gcc
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel
+%dir %{_prefix}/libexec/gcc
+%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
+%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
+%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/accel
+%{_prefix}/lib/gcc/amdgcn-amdhsa
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa
+%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa
+%dir %{_prefix}/amdgcn-amdhsa
+%{_prefix}/amdgcn-amdhsa/bin
+%{_prefix}/amdgcn-amdhsa/include
+
+%files -n libgomp-offload-amdgcn
+%{_prefix}/%{_lib}/libgomp-plugin-gcn.so.*
+%endif
+
%if %{build_annobin_plugin}
%files plugin-annobin
%dir %{_prefix}/lib/gcc
@@ -3410,380 +3970,94 @@ end
%endif
%changelog
-* Tue Dec 5 2023 Jakub Jelinek 13.2.1-6
-- update from releases/gcc-13 branch
- - PRs c++/33799, c++/102191, c++/111703, c++/112269, c++/112301, c++/112633,
- c/112339, fortran/111880, fortran/112764, libgomp/111413,
- libstdc++/112348, libstdc++/112491, libstdc++/112607,
- middle-end/111497, target/53372, target/110411, target/111408,
- target/111815, target/111828, target/112672, tree-optimization/111137,
- tree-optimization/111465, tree-optimization/111967,
- tree-optimization/112496
-
-* Mon Nov 13 2023 Jakub Jelinek 13.2.1-5
-- update from releases/gcc-13 branch
- - PRs c++/89038, c/111884, d/110712, d/112270, fortran/67740, fortran/97245,
- fortran/111837, fortran/112316, libbacktrace/111315,
- libbacktrace/112263, libstdc++/110944, libstdc++/111172,
- libstdc++/111936, libstdc++/112089, libstdc++/112314,
- middle-end/111253, middle-end/111818, modula2/111756, modula2/112110,
- target/101177, target/110170, target/111001, target/111366,
- target/111367, target/111380, target/111935, target/112443,
- tree-optimization/111397, tree-optimization/111445,
- tree-optimization/111489, tree-optimization/111583,
- tree-optimization/111614, tree-optimization/111622,
- tree-optimization/111694, tree-optimization/111764,
- tree-optimization/111820, tree-optimization/111833,
- tree-optimization/111917
- - fix aarch64 RA ICE (#2241139, PR target/111528)
-- fix ia32 doubleword rotates (#2238781, PR target/110792)
-
-* Wed Oct 11 2023 Jakub Jelinek 13.2.1-4
-- update from releases/gcc-13 branch
- - PRs ada/110488, ada/111434, c++/99631, c++/111471, c++/111485, c++/111493,
- c++/111512, fortran/68155, fortran/92586, fortran/111674,
- libstdc++/108046, libstdc++/111050, libstdc++/111102,
- libstdc++/111511, middle-end/111699, modula2/111510, target/111121,
- target/111411, tree-optimization/110315, tree-optimization/110386,
- tree-optimization/111331, tree-optimization/111519
-
-* Mon Sep 18 2023 Jakub Jelinek 13.2.1-3
-- update from releases/gcc-13 branch
- - PRs c++/111357, modula2/111330, target/96762, target/111306,
- target/111335, target/111340, target/111412
-
-* Fri Sep 8 2023 Jakub Jelinek 13.2.1-2
-- update from releases/gcc-13 branch
- - PRs c++/92407, c++/106310, c++/106652, c++/109678, c++/109751, c++/110197,
- c++/110566, c++/110927, debug/111080, fortran/99326, fortran/102109,
- fortran/102112, fortran/102190, fortran/102532, fortran/108961,
- fortran/109684, fortran/109948, fortran/110825, libgcc/110956,
- libstdc++/110593, libstdc++/110708, libstdc++/110719,
- libstdc++/110807, libstdc++/110860, libstdc++/110862,
- libstdc++/110917, libstdc++/110968, libstdc++/110970,
- libstdc++/110974, libstdc++/110990, middle-end/111017, modula2/108119,
- modula2/108344, modula2/109779, modula2/109810, modula2/109830,
- modula2/109879, modula2/109908, modula2/109952, modula2/110003,
- modula2/110019, modula2/110125, modula2/110126, modula2/110161,
- modula2/110174, modula2/110189, modula2/110284, modula2/110631,
- modula2/110779, modula2/110865, target/89835, target/109713,
- target/109725, target/110220, target/110484, target/110741,
- target/111010, target/111127, tree-optimization/110280,
- tree-optimization/110702, tree-optimization/110914,
- tree-optimization/111015, tree-optimization/111019,
- tree-optimization/111039, tree-optimization/111070,
- tree-optimization/111109
-
-* Mon Jul 31 2023 Patsy Griffin
-- allow for the optional removal of tzdata
- - see https://fedoraproject.org/wiki/Changes/AllowRemovalOfTzdata
-
-* Fri Jul 28 2023 Jakub Jelinek 13.2.1-1
-- update from releases/gcc-13 branch
- - GCC 13.2 release
- - PRs c++/109247, c++/110102, c++/110122, c++/110463, c++/110468,
- c++/110524, c++/110535, c++/110595, c++/110809, d/103944, d/106977,
- d/108842, d/108962, d/110113, d/110359, d/110471, d/110514, d/110516,
- debug/110295, fortran/86277, fortran/95947, fortran/100297,
- fortran/110288, fortran/110585, fortran/110658, ipa/109983,
- ipa/110276, libgcc/109712, libgcc/110179, libstdc++/95048,
- libstdc++/100285, libstdc++/104299, libstdc++/109741,
- libstdc++/109921, libstdc++/110149, libstdc++/110239,
- libstdc++/110432, libstdc++/110542, libstdc++/110574,
- middle-end/98619, middle-end/103979, middle-end/110055,
- middle-end/110420, modula2/108121, modula2/109586, modula2/109675,
- modula2/109729, modula2/110246, rtl-optimization/110237,
- target/101469, target/105325, target/106966, target/108743,
- target/109932, target/110011, target/110100, target/110132,
- target/110136, target/110206, target/110264, target/110309,
- target/110406, target/110560, target/110624, testsuite/66005,
- testsuite/83904, testsuite/110230, tree-optimization/109143,
- tree-optimization/110228, tree-optimization/110298,
- tree-optimization/110381, tree-optimization/110392,
- tree-optimization/110515, tree-optimization/110556,
- tree-optimization/110557, tree-optimization/110669,
- tree-optimization/110731, tree-optimization/110755,
- tree-optimization/110766, tree-optimization/110799,
- tree-optimization/110829
-
-* Wed Jul 19 2023 Fedora Release Engineering - 13.1.1-4.1
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
-
-* Wed Jun 14 2023 Jakub Jelinek 13.1.1-4
-- update from releases/gcc-13 branch
- - PRs bootstrap/110085, c++/109871, fortran/100607, libgcc/109670,
- libgcc/109685, libstdc++/108178, libstdc++/109261, libstdc++/109758,
- libstdc++/109822, libstdc++/109949, libstdc++/110139,
- middle-end/110200, target/82931, target/92729, target/104327,
- target/105753, target/106907, target/109547, target/109650,
- target/109800, target/109939, target/109954, target/110036,
- target/110044, target/110088, target/110108, target/110227,
- tree-optimization/109505, tree-optimization/110165,
- tree-optimization/110166
-
-* Fri May 19 2023 Jakub Jelinek 13.1.1-3
-- update from releases/gcc-13 branch
- - PRs c++/80488, c++/83258, c++/97700, c++/103807, c++/109651, c++/109745,
- c++/109761, c++/109774, c++/109868, c++/109884, fortran/109641,
- fortran/109846, libstdc++/109816, libstdc++/109883, target/104338,
- target/109697
-
-* Thu May 11 2023 Jakub Jelinek 13.1.1-2
-- update from releases/gcc-13 branch
- - PRs c++/91618, c++/96604, c++/109506, c++/109640, c++/109642, c++/109666,
- c++/109671, c++/109756, c/107682, c/109409, c/109412, debug/109676,
- fortran/109622, libffi/109447, libgomp/108098, libstdc++/40380,
- libstdc++/109694, libstdc++/109703, rtl-optimization/109585,
- target/108758, target/109069, target/109535, target/109661,
- target/109762, tree-optimization/109573, tree-optimization/109609,
- tree-optimization/109724, tree-optimization/109778
-
-* Wed Apr 26 2023 Jakub Jelinek 13.1.1-1
-- update from releases/gcc-13 branch
- - GCC 13.1 release
- - PRs c/107041, target/109566
-
-* Fri Apr 21 2023 Jakub Jelinek 13.0.1-0.16
-- update from trunk and releases/gcc-13 branch
- - GCC 13.1-rc3
- - PRs tree-optimization/109564
-- fix ICE on fneg/fadd optimization (PR tree-optimization/109583)
-- include amxcomplexintrin.h header on x86 (#2188608)
-
-* Wed Apr 19 2023 Jakub Jelinek 13.0.1-0.15
-- update from trunk and releases/gcc-13 branch
- - GCC 13.1-rc2
- - PRs c++/109556, target/106602
-
-* Tue Apr 18 2023 Jakub Jelinek 13.0.1-0.14
-- update from trunk and releases/gcc-13 branch
- - PRs analyzer/108722, bootstrap/109510, c++/109277, c++/109357, c++/109420,
- c++/109514, c++/109531, driver/108241, fortran/61615, fortran/85686,
- fortran/87477, fortran/88247, fortran/91941, fortran/92779,
- fortran/93339, fortran/93813, fortran/98408, fortran/99982,
- fortran/100948, fortran/102106, fortran/104272, fortran/104312,
- fortran/104349, fortran/105205, fortran/106918, fortran/109492,
- fortran/109511, ipa/107769, ipa/108959, ipa/109318, libstdc++/108291,
- libstdc++/108827, libstdc++/108969, libstdc++/109482,
- libstdc++/109525, modula2/109423, modula2/109488, modula2/109496,
- modula2/109497, target/54816, target/70243, target/99708,
- target/104989, target/108812, target/108892, target/108947,
- target/109040, target/109104, target/109374, target/109402,
- target/109458, target/109479, target/109508, testsuite/108809,
- testsuite/108815, tree-optimization/108139, tree-optimization/109392,
- tree-optimization/109410, tree-optimization/109417,
- tree-optimization/109427, tree-optimization/109434,
- tree-optimization/109462, tree-optimization/109469,
- tree-optimization/109473, tree-optimization/109491,
- tree-optimization/109502, tree-optimization/109524,
- tree-optimization/109539
-
-* Tue Apr 4 2023 Jakub Jelinek 13.0.1-0.13
+* Thu Jan 15 2026 Jakub Jelinek 16.0.1-0.3
- update from trunk
- - PRs c++/53164, c++/105848, c++/107484, c++/109160, c++/109300, ipa/109303,
- modula2/109388, other/109306, sanitizer/109107, target/102146,
- target/108699, target/108807, target/109375, target/109376,
- target/109384, tree-optimization/109304, tree-optimization/109386
+ - PRs c/123309, c++/120775, c++/122634, c++/123081, c++/123551,
+ debug/121045, driver/108865, driver/123504, ipa/122852, ipa/123542,
+ middle-end/123115, middle-end/123392, middle-end/123573,
+ rtl-optimization/123312, rtl-optimization/123544, target/38118,
+ target/114528, target/120250, target/121240, target/123092,
+ testsuite/122522, tree-optimization/119402, tree-optimization/120322,
+ tree-optimization/123109, tree-optimization/123190,
+ tree-optimization/123530
-* Sat Apr 1 2023 Jakub Jelinek 13.0.1-0.12
+* Tue Jan 13 2026 Jakub Jelinek 16.0.1-0.2
- update from trunk
- - PRs analyzer/107396, bootstrap/101834, c++/101118, c++/105221, c++/105452,
- c++/107897, c++/108887, c++/109278, c++/109319, libstdc++/109242,
- libstdc++/109339, libstdc++/109340, modula2/109315, modula2/109336,
- target/85048, target/109254, target/109328, tree-optimization/91645,
- tree-optimization/109342, tree-optimization/109362
+ - PRs fortran/91960, fortran/112460, libstdc++/123396,
+ rtl-optimization/123444, rtl-optimization/123501, target/117581,
+ target/123484, testsuite/123098, tree-optimization/122843,
+ tree-optimization/122845, tree-optimization/123301,
+ tree-optimization/123525, tree-optimization/123539
-* Wed Mar 29 2023 Jakub Jelinek 13.0.1-0.11
+* Mon Jan 12 2026 Jakub Jelinek 16.0.1-0.1
- update from trunk
- - PRs analyzer/109098, bootstrap/84402, bootstrap/109310, c++/105481,
- c++/106969, c++/107163, c++/109309, c++/109320, c++/109321, c/107002,
- fortran/104321, fortran/104949, fortran/109314, gcov-profile/109297,
- ipa/105685, ipa/106124, libgcc/108891, libstdc++/103387,
- libstdc++/109288, libstdc++/109299, lto/109263, middle-end/106190,
- other/109163, other/109293, rtl-optimization/109187,
- rtl-optimization/109237, target/106282, target/109072, target/109082,
- target/109140, target/109167, target/109276, target/109296,
- target/109312, tree-optimization/54498, tree-optimization/106912,
- tree-optimization/107087, tree-optimization/108129,
- tree-optimization/108357, tree-optimization/109154,
- tree-optimization/109230, tree-optimization/109238,
- tree-optimization/109265, tree-optimization/109274,
- tree-optimization/109301, tree-optimization/109327,
- tree-optimization/109331
+ - PRs c++/81337, c++/115163, c++/123526, fortran/77415, ipa/122458,
+ ipa/123543, libfortran/123012, middle-end/123175,
+ rtl-optimization/123523, target/123415, testsuite/121752,
+ testsuite/123129, tree-optimization/122824, tree-optimization/122830,
+ tree-optimization/123417, tree-optimization/123528
-* Fri Mar 24 2023 Jakub Jelinek 13.0.1-0.10
+* Sat Jan 10 2026 Jakub Jelinek 16.0.0-0.5
- update from trunk
- - PRs analyzer/109239, c++/105996, c++/108390, c++/108795, c++/109177,
- c++/109241, c/84900, fortran/104572, middle-end/109258,
- modula2/107630, modula2/109248, modula2/109264, target/103628,
- target/109137, target/109228, target/109244, testsuite/105959,
- tree-optimization/99739, tree-optimization/107569,
- tree-optimization/109176, tree-optimization/109262
+ - PRs ada/123003, ada/123371, ada/123490, c/117687, c/121081, c/121507,
+ c/123212, c/123435, c/123463, c/123475, c++/123331, c++/123347,
+ c++/123393, debug/123259, fortran/90218, fortran/123012,
+ fortran/123029, fortran/123071, fortran/123321, fortran/123352,
+ fortran/123483, gcov-profile/123019, ipa/123383, libstdc++/122878,
+ libstdc++/123100, libstdc++/123183, libstdc++/123326,
+ libstdc++/123378, libstdc++/123406, middle-end/111817,
+ middle-end/123107, rtl-optimization/119291, rtl-optimization/121675,
+ rtl-optimization/121773, rtl-optimization/123121,
+ rtl-optimization/123491, target/119430, target/121192, target/121290,
+ target/121535, target/121778, target/122846, target/123010,
+ target/123017, target/123268, target/123269, target/123317,
+ target/123320, target/123390, target/123403, target/123457,
+ target/123489, target/123492, testsuite/123353, testsuite/123377,
+ tree-optimization/42196, tree-optimization/102486,
+ tree-optimization/102954, tree-optimization/122103,
+ tree-optimization/122608, tree-optimization/122793,
+ tree-optimization/123197, tree-optimization/123200,
+ tree-optimization/123221, tree-optimization/123298,
+ tree-optimization/123300, tree-optimization/123310,
+ tree-optimization/123315, tree-optimization/123316,
+ tree-optimization/123319, tree-optimization/123351,
+ tree-optimization/123372, tree-optimization/123374,
+ tree-optimization/123382, tree-optimization/123414,
+ tree-optimization/123431
+- fix ICE on friend with noexcept (PR c++/123189)
+- fix -E -fdirectives-only comment handling (PR preprocessor/123273)
+- provide libatomic-static from gcc subpackage
-* Tue Mar 21 2023 Jakub Jelinek 13.0.1-0.9
+* Sat Jan 3 2026 Jakub Jelinek 16.0.0-0.4
- update from trunk
- - PRs analyzer/109094, c++/106890, c++/109159, c++/109164, fortran/85877,
- fortran/87127, fortran/99036, fortran/109186, fortran/109206,
- fortran/109209, fortran/109216, libstdc++/109182, target/109067,
- target/109178, testsuite/108898, tree-optimization/109170,
- tree-optimization/109192, tree-optimization/109215,
- tree-optimization/109219
+ - PRs ada/123060, ada/123088, ada/123185, ada/123289, ada/123302,
+ ada/123306, ada/15605, c++/117518, c++/119097, c++/120005, c++/121864,
+ c++/122550, c++/122690, c++/122712, c++/122819, c++/122958,
+ c++/122994, c++/123080, c++/123261, c++/123277, fortran/101399,
+ fortran/121472, fortran/121475, fortran/122957, fortran/123201,
+ fortran/123253, libfortran/119136, middle-end/123067,
+ middle-end/123222, other/122243, rtl-optimization/123114,
+ rtl-optimization/123267, rtl-optimization/123276,
+ rtl-optimization/123295, rtl-optimization/123308, target/121485,
+ target/122769, target/123216, target/123217, target/123274,
+ target/123278, target/123283, target/123318, testsuite/123299,
+ testsuite/123334, tree-optimization/123089
+- require libatomic package from gcc package as -latomic is now linked
+ as-needed by default
+- remove libatomic-static package, move libatomic.a into gcc package
-* Sat Mar 18 2023 Jakub Jelinek 13.0.1-0.8
+* Sat Dec 20 2025 Jakub Jelinek 16.0.0-0.3
- update from trunk
- - PRs analyzer/105906, analyzer/108045, analyzer/109097, c++/58538,
- c++/69410, c++/95036, c++/96830, c++/98056, c++/100288, c++/101869,
- c++/103871, c++/104107, c++/105406, c++/105809, c++/107128,
- c++/107280, c++/107310, c++/108179, c++/108242, c++/108468,
- c++/108975, c++/109096, c++/109172, c/109151, d/109108, d/109144,
- fortran/37336, fortran/58331, fortran/64290, fortran/67444,
- fortran/67471, fortran/69298, fortran/70863, fortran/71798,
- fortran/80524, fortran/82996, fortran/84472, fortran/88735,
- fortran/91316, fortran/93691, fortran/96122, fortran/103854,
- fortran/106576, fortran/106945, ipa/107925, libstdc++/62196,
- libstdc++/109111, libstdc++/109165, middle-end/106133,
- middle-end/108685, middle-end/109031, modula2/109032, modula2/109089,
- modula2/109102, modula2/109103, modula2/109125, other/109086,
- preprocessor/67046, rtl-optimization/107762, rtl-optimization/109179,
- target/105554, target/108583, target/109092, target/109109,
- target/109117, testsuite/109118, testsuite/109129, testsuite/109145,
- tree-optimization/106896, tree-optimization/109005,
- tree-optimization/109046, tree-optimization/109115,
- tree-optimization/109123, tree-optimization/109139,
- tree-optimization/109141, web/88860
+ - PRs bootstrap/12407, c/123156, c++/91388, c++/117034, c++/122070,
+ c++/122509, c++/122690, c++/122712, c++/122772, c++/122834,
+ c++/122922, c++/122995, c++/123030, c++/123044, c++/123186,
+ debug/122968, fortran/71565, fortran/92613, libstdc++/112591,
+ libstdc++/123147, libstdc++/123180, rtl-optimization/123223,
+ target/55212, target/122970, target/123171, target/123216,
+ target/123217, tree-optimization/122734, tree-optimization/123097,
+ tree-optimization/123117, tree-optimization/123118,
+ tree-optimization/123152, tree-optimization/123153,
+ tree-optimization/123192, tree-optimization/123205
-* Fri Mar 10 2023 Jakub Jelinek 13.0.1-0.7
-- update from trunk
- - PRs ada/108858, ada/108983, analyzer/102671, analyzer/105755,
- analyzer/108251, analyzer/108400, analyzer/108475, analyzer/109059,
- analyzer/109060, c++/102529, c++/105841, c++/106651, c++/107532,
- c++/107558, c++/107939, c++/108099, c++/108542, c++/108566,
- c++/108773, c++/108972, c++/109030, c++/109039, c++/109042, c/108079,
- driver/108865, fortran/104332, fortran/106856, libgcc/108727,
- libgomp/90596, libgomp/109062, libstdc++/107572, libstdc++/108362,
- libstdc++/108882, libstdc++/109024, libstdc++/109064,
- middle-end/108995, other/108464, plugins/108634, sanitizer/81649,
- sanitizer/108060, sanitizer/109050, target/107299, target/107703,
- target/107998, target/108185, target/108429, target/108654,
- target/109000, testsuite/70150, testsuite/108729, testsuite/108730,
- testsuite/108810, testsuite/108813, tree-optimization/108980,
- tree-optimization/109008, tree-optimization/109025
-
-* Sat Mar 4 2023 Jakub Jelinek 13.0.1-0.6
-- update from trunk
- - PRs ada/108909, analyzer/107565, analyzer/108830, analyzer/108935,
- analyzer/108968, analyzer/109016, c++/100127, c++/105224, c++/105839,
- c++/106259, c++/107574, c++/107938, c++/108218, c++/108219,
- c++/108550, c++/108606, c++/108702, c++/108848, c++/108934,
- c++/108998, c/107465, c/107846, c/108880, c/108986, d/108167,
- d/108763, d/108877, d/108945, d/108946, debug/108716, debug/108772,
- debug/108967, fortran/96024, fortran/96025, fortran/108621,
- fortran/108923, fortran/108924, fortran/108937, jit/107999,
- libquadmath/87204, libquadmath/94756, libstdc++/52590,
- libstdc++/95989, libstdc++/104852, libstdc++/108846, libstdc++/108856,
- libstdc++/108952, middle-end/97956, middle-end/106258,
- middle-end/107411, middle-end/108545, middle-end/108546,
- middle-end/108854, middle-end/109006, modula2/108261, modula2/108944,
- modula2/108956, pch/14940, sanitizer/108834, sanitizer/108894,
- target/51534, target/104882, target/108240, target/108876,
- target/108881, target/108883, target/108910, target/108919,
- target/108922, testsuite/79356, testsuite/91419, testsuite/108899,
- testsuite/108942, testsuite/108973, testsuite/108985,
- testsuite/108991, translation/108890, tree-optimization/108430,
- tree-optimization/108603, tree-optimization/108793,
- tree-optimization/108828, tree-optimization/108888,
- tree-optimization/108950, tree-optimization/108970,
- tree-optimization/108979, tree-optimization/108988,
- tree-optimization/109002
-
-* Tue Feb 21 2023 Jakub Jelinek 13.0.1-0.5
-- update from trunk
- - PRs analyzer/108664, analyzer/108666, analyzer/108725, analyzer/108806,
- c++/52809, c++/53638, c++/87389, c++/89741, c++/92099, c++/97553,
- c++/101073, c++/104041, c++/104691, c++/107773, c++/108243,
- c++/108829, c/105660, c/108375, fortran/103608, fortran/104554,
- libstdc++/108030, target/90458, target/108805, target/108831,
- target/108832, target/108862, testsuite/108835,
- tree-optimization/108657, tree-optimization/108783,
- tree-optimization/108791, tree-optimization/108816,
- tree-optimization/108819, tree-optimization/108821,
- tree-optimization/108825, tree-optimization/108855,
- tree-optimization/108868
-
-* Wed Feb 15 2023 Jakub Jelinek 13.0.1-0.4
-- update from trunk
- - PRs analyzer/108704, analyzer/108733, analyzer/108745, c++/106675,
- c++/107079, c++/108698, d/107469, fortran/69636, fortran/103259,
- fortran/103475, fortran/103779, fortran/107424, fortran/108512,
- ipa/108605, ipa/108679, libstdc++/103934, middle-end/26854,
- middle-end/106080, rtl-optimization/108681, sanitizer/108777,
- target/96373, target/100758, target/103109, target/108102,
- target/108516, target/108723, target/108738, target/108787,
- target/108790, testsuite/106120, tree-optimization/28614,
- tree-optimization/96921, tree-optimization/106722,
- tree-optimization/107561, tree-optimization/108316,
- tree-optimization/108355, tree-optimization/108520,
- tree-optimization/108571, tree-optimization/108684,
- tree-optimization/108687, tree-optimization/108688,
- tree-optimization/108691, tree-optimization/108692,
- tree-optimization/108724, tree-optimization/108782
-
-* Wed Feb 8 2023 Jakub Jelinek 13.0.1-0.3
-- update from trunk
- - PRs analyzer/108616, analyzer/108633, analyzer/108661, c++/101071,
- c++/102870, c++/107461, c++/107593, c++/107755, c++/108158,
- c++/108559, c++/108579, c++/108597, c++/108607, c++/96745, c/108150,
- c/108192, debug/106746, debug/108573, driver/108572, fortran/103506,
- fortran/108450, fortran/108451, fortran/108453, fortran/108527,
- fortran/108592, fortran/108609, fortran/95107, ipa/107300, ipa/108384,
- ipa/108509, ipa/108511, libstdc++/108636, libstdc++/108672,
- middle-end/108435, middle-end/108500, middle-end/108625,
- modula2/107234, modula2/108135, modula2/108462, modula2/108551,
- modula2/108612, rtl-optimization/108086, rtl-optimization/108463,
- rtl-optimization/108508, rtl-optimization/108596, sanitizer/108106,
- target/104921, target/107674, target/108443, target/108484,
- target/108589, target/108599, testsuite/108604, testsuite/108632,
- tree-optimization/26854, tree-optimization/106433,
- tree-optimization/106923, tree-optimization/107570,
- tree-optimization/108356, tree-optimization/108359,
- tree-optimization/108385, tree-optimization/108574,
- tree-optimization/108582, tree-optimization/108601,
- tree-optimization/108608, tree-optimization/108639,
- tree-optimization/108647, tree-optimization/108655
-- drop libgfortran dependency on libquadmath for F28+ or RHEL8+, gcc-gfortran
- still needs to depend on both libquadmath and libquadmath-devel though
-
-* Sat Jan 28 2023 Jakub Jelinek 13.0.1-0.2
-- update from trunk
- - PRs analyzer/108455, analyzer/108507, analyzer/108524, bootstrap/90543,
- c++/53288, c++/53932, c++/105300, c++/107267, c++/107303, c++/107329,
- c++/107797, c++/108195, c++/108437, c++/108474, c++/108496,
- c++/108503, c++/108504, c++/108525, c++/108526, c/108424,
- fortran/102331, fortran/102595, fortran/108420, fortran/108434,
- fortran/108501, fortran/108502, fortran/108528, fortran/108529,
- fortran/108544, fortran/108558, ipa/106061, ipa/107944,
- libstdc++/102301, libstdc++/108530, libstdc++/108554,
- libstdc++/108568, lto/108445, middle-end/108086, middle-end/108459,
- middle-end/108543, modula2/102343, modula2/108144, modula2/108182,
- modula2/108405, modula2/108480, modula2/108553, modula2/108555,
- other/108560, target/107568, target/107678, target/107731,
- target/108177, target/108348, target/108396, target/108411,
- target/108436, target/108442, target/108505, testsuite/104756,
- testsuite/107808, testsuite/108533, tree-optimization/96373,
- tree-optimization/108306, tree-optimization/108440,
- tree-optimization/108447, tree-optimization/108449,
- tree-optimization/108457, tree-optimization/108482,
- tree-optimization/108498, tree-optimization/108500,
- tree-optimization/108522, tree-optimization/108523,
- tree-optimization/108540, tree-optimization/108547
-
-* Tue Jan 17 2023 Jakub Jelinek 13.0.1-0.1
-- update from trunk
- - PRs c++/105593, fortran/108421, go/108426, ipa/106077, libstdc++/108288,
- libstdc++/108413, other/108413, target/55522, target/96795,
- target/105980, target/107515, target/108272, tree-optimization/94793,
- tree-optimization/106523
-- don't build ppc64le unwinder with -fno-omit-frame-pointer (#2161595)
-
-* Sun Jan 15 2023 Jakub Jelinek 13.0.0-0.9
+* Thu Dec 18 2025 Jakub Jelinek 16.0.0-0.2
- new package
diff --git a/gcc13-pr110792.patch b/gcc13-pr110792.patch
deleted file mode 100644
index ce129f9..0000000
--- a/gcc13-pr110792.patch
+++ /dev/null
@@ -1,163 +0,0 @@
-PR target/110792: Early clobber issues with rot32di2_doubleword on i386.
-
-This patch is a conservative fix for PR target/110792, a wrong-code
-regression affecting doubleword rotations by BITS_PER_WORD, which
-effectively swaps the highpart and lowpart words, when the source to be
-rotated resides in memory. The issue is that if the register used to
-hold the lowpart of the destination is mentioned in the address of
-the memory operand, the current define_insn_and_split unintentionally
-clobbers it before reading the highpart.
-
-Hence, for the testcase, the incorrectly generated code looks like:
-
- salq $4, %rdi // calculate address
- movq WHIRL_S+8(%rdi), %rdi // accidentally clobber addr
- movq WHIRL_S(%rdi), %rbp // load (wrong) lowpart
-
-Traditionally, the textbook way to fix this would be to add an
-explicit early clobber to the instruction's constraints.
-
- (define_insn_and_split "32di2_doubleword"
-- [(set (match_operand:DI 0 "register_operand" "=r,r,r")
-+ [(set (match_operand:DI 0 "register_operand" "=r,r,&r")
- (any_rotate:DI (match_operand:DI 1 "nonimmediate_operand" "0,r,o")
- (const_int 32)))]
-
-but unfortunately this currently generates significantly worse code,
-due to a strange choice of reloads (effectively memcpy), which ends up
-looking like:
-
- salq $4, %rdi // calculate address
- movdqa WHIRL_S(%rdi), %xmm0 // load the double word in SSE reg.
- movaps %xmm0, -16(%rsp) // store the SSE reg back to the stack
- movq -8(%rsp), %rdi // load highpart
- movq -16(%rsp), %rbp // load lowpart
-
-Note that reload's "&" doesn't distinguish between the memory being
-early clobbered, vs the registers used in an addressing mode being
-early clobbered.
-
-The fix proposed in this patch is to remove the third alternative, that
-allowed offsetable memory as an operand, forcing reload to place the
-operand into a register before the rotation. This results in:
-
- salq $4, %rdi
- movq WHIRL_S(%rdi), %rax
- movq WHIRL_S+8(%rdi), %rdi
- movq %rax, %rbp
-
-I believe there's a more advanced solution, by swapping the order of
-the loads (if first destination register is mentioned in the address),
-or inserting a lea insn (if both destination registers are mentioned
-in the address), but this fix is a minimal "safe" solution, that
-should hopefully be suitable for backporting.
-
-2023-08-06 Roger Sayle
-
-gcc/testsuite/ChangeLog
- PR target/110792
- * gcc.target/i386/pr110792.c: Remove dg-final scan-assembler-not.
-
-2023-08-03 Roger Sayle
-
-gcc/ChangeLog
- PR target/110792
- * config/i386/i386.md (ti3): For rotations by 64 bits
- place operand in a register before gen_64ti2_doubleword.
- (di3): Likewise, for rotations by 32 bits, place
- operand in a register before gen_32di2_doubleword.
- (32di2_doubleword): Constrain operand to be in register.
- (64ti2_doubleword): Likewise.
-
-gcc/testsuite/ChangeLog
- PR target/110792
- * g++.target/i386/pr110792.C: New 32-bit C++ test case.
- * gcc.target/i386/pr110792.c: New 64-bit C test case.
-
---- gcc/config/i386/i386.md
-+++ gcc/config/i386/i386.md
-@@ -15341,7 +15341,10 @@ (define_expand "ti3"
- emit_insn (gen_ix86_ti3_doubleword
- (operands[0], operands[1], operands[2]));
- else if (CONST_INT_P (operands[2]) && INTVAL (operands[2]) == 64)
-- emit_insn (gen_64ti2_doubleword (operands[0], operands[1]));
-+ {
-+ operands[1] = force_reg (TImode, operands[1]);
-+ emit_insn (gen_64ti2_doubleword (operands[0], operands[1]));
-+ }
- else
- {
- rtx amount = force_reg (QImode, operands[2]);
-@@ -15376,7 +15379,10 @@ (define_expand "di3"
- emit_insn (gen_ix86_di3_doubleword
- (operands[0], operands[1], operands[2]));
- else if (CONST_INT_P (operands[2]) && INTVAL (operands[2]) == 32)
-- emit_insn (gen_32di2_doubleword (operands[0], operands[1]));
-+ {
-+ operands[1] = force_reg (DImode, operands[1]);
-+ emit_insn (gen_32di2_doubleword (operands[0], operands[1]));
-+ }
- else
- FAIL;
-
-@@ -15544,8 +15550,8 @@ (define_insn_and_split "ix86_rotr3_doubleword"
- })
-
- (define_insn_and_split "32di2_doubleword"
-- [(set (match_operand:DI 0 "register_operand" "=r,r,r")
-- (any_rotate:DI (match_operand:DI 1 "nonimmediate_operand" "0,r,o")
-+ [(set (match_operand:DI 0 "register_operand" "=r,r")
-+ (any_rotate:DI (match_operand:DI 1 "register_operand" "0,r")
- (const_int 32)))]
- "!TARGET_64BIT"
- "#"
-@@ -15562,8 +15568,8 @@ (define_insn_and_split "32di2_doubleword"
- })
-
- (define_insn_and_split "64ti2_doubleword"
-- [(set (match_operand:TI 0 "register_operand" "=r,r,r")
-- (any_rotate:TI (match_operand:TI 1 "nonimmediate_operand" "0,r,o")
-+ [(set (match_operand:TI 0 "register_operand" "=r,r")
-+ (any_rotate:TI (match_operand:TI 1 "register_operand" "0,r")
- (const_int 64)))]
- "TARGET_64BIT"
- "#"
---- gcc/testsuite/g++.target/i386/pr110792.C
-+++ gcc/testsuite/g++.target/i386/pr110792.C
-@@ -0,0 +1,16 @@
-+/* { dg-do compile { target ia32 } } */
-+/* { dg-options "-O2" } */
-+
-+template
-+inline T rotr(T input)
-+{
-+ return static_cast((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
-+}
-+
-+unsigned long long WHIRL_S[256] = {0x18186018C07830D8};
-+unsigned long long whirl(unsigned char x0)
-+{
-+ const unsigned long long s4 = WHIRL_S[x0&0xFF];
-+ return rotr<32>(s4);
-+}
-+/* { dg-final { scan-assembler-not "movl\tWHIRL_S\\+4\\(,%eax,8\\), %eax" } } */
---- gcc/testsuite/gcc.target/i386/pr110792.c
-+++ gcc/testsuite/gcc.target/i386/pr110792.c
-@@ -0,0 +1,17 @@
-+/* { dg-do compile { target int128 } } */
-+/* { dg-options "-O2" } */
-+
-+static inline unsigned __int128 rotr(unsigned __int128 input)
-+{
-+ return ((input >> 64) | (input << (64)));
-+}
-+
-+unsigned __int128 WHIRL_S[256] = {((__int128)0x18186018C07830D8) << 64 |0x18186018C07830D8};
-+unsigned __int128 whirl(unsigned char x0)
-+{
-+ register int t __asm("rdi") = x0&0xFF;
-+ const unsigned __int128 s4 = WHIRL_S[t];
-+ register unsigned __int128 tt __asm("rdi") = rotr(s4);
-+ asm("":::"memory");
-+ return tt;
-+}
diff --git a/gcc13-Wno-format-security.patch b/gcc16-Wno-format-security.patch
similarity index 62%
rename from gcc13-Wno-format-security.patch
rename to gcc16-Wno-format-security.patch
index 4c71dac..2a4f0f3 100644
--- a/gcc13-Wno-format-security.patch
+++ b/gcc16-Wno-format-security.patch
@@ -9,15 +9,15 @@
* configure: Regenerated.
--- gcc/configure.ac.jj 2017-02-13 12:20:53.000000000 +0100
-+++ gcc/configure.ac 2017-02-25 12:42:32.859175403 +0100
-@@ -570,7 +570,7 @@ AC_ARG_ENABLE(build-format-warnings,
++++ gcc/configure.ac 2024-11-30 13:34:11.100296256 +0100
+@@ -592,7 +592,7 @@ AC_ARG_ENABLE(build-format-warnings,
AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]),
[],[enable_build_format_warnings=yes])
AS_IF([test $enable_build_format_warnings = no],
- [wf_opt=-Wno-format],[wf_opt=])
+ [wf_opt="-Wno-format -Wno-format-security"],[wf_opt=])
ACX_PROG_CXX_WARNING_OPTS(
- m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ],
+ m4_quote(m4_do([-W -Wall -Wno-error=narrowing -Wwrite-strings ],
[-Wcast-qual $wf_opt])),
--- gcc/configure.jj 2017-02-13 12:20:52.000000000 +0100
+++ gcc/configure 2017-02-25 12:42:50.041946391 +0100
@@ -30,33 +30,37 @@
else
wf_opt=
fi
---- Makefile.tpl.jj 2021-12-30 15:12:42.188164847 +0100
-+++ Makefile.tpl 2022-01-07 12:06:12.115550714 +0100
-@@ -446,9 +446,9 @@ LDFLAGS = @LDFLAGS@
+--- Makefile.tpl.jj 2023-11-29 13:21:41.680292662 +0100
++++ Makefile.tpl 2024-11-30 13:35:29.303196246 +0100
+@@ -450,10 +450,10 @@ LDFLAGS = @LDFLAGS@
LIBCFLAGS = $(CFLAGS)
CXXFLAGS = @CXXFLAGS@
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
-GOCFLAGS = $(CFLAGS)
--GDCFLAGS = $(CFLAGS)
+-A68FLAGS = @A68FLAGS@
+-GDCFLAGS = @GDCFLAGS@
-GM2FLAGS = $(CFLAGS)
+GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
-+GDCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
++A68FLAGS = $(filter-out -Wformat-security,@A68FLAGS@)
++GDCFLAGS = $(filter-out -Wformat-security,@GDCFLAGS@)
+GM2FLAGS = $(filter-out -Wformat-security,$(CFLAGS))
- # Pass additional PGO and LTO compiler options to the PGO build.
- BUILD_CFLAGS = $(PGO_BUILD_CFLAGS) $(PGO_BUILD_LTO_CFLAGS)
---- Makefile.in.jj 2021-12-30 15:12:42.188164847 +0100
-+++ Makefile.in 2022-01-07 12:06:27.335334561 +0100
-@@ -443,9 +443,9 @@ LDFLAGS = @LDFLAGS@
+ CRAB1_LIBS = @CRAB1_LIBS@
+
+--- Makefile.in.jj 2023-11-29 13:21:41.691292507 +0100
++++ Makefile.in 2024-11-30 13:36:12.113594079 +0100
+@@ -447,10 +447,10 @@ LDFLAGS = @LDFLAGS@
LIBCFLAGS = $(CFLAGS)
CXXFLAGS = @CXXFLAGS@
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
-GOCFLAGS = $(CFLAGS)
--GDCFLAGS = $(CFLAGS)
+-A68FLAGS = @A68FLAGS@
+-GDCFLAGS = @GDCFLAGS@
-GM2FLAGS = $(CFLAGS)
+GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
-+GDCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
++A68FLAGS = $(filter-out -Wformat-security,@A68FLAGS@)
++GDCFLAGS = $(filter-out -Wformat-security,@GDCFLAGS@)
+GM2FLAGS = $(filter-out -Wformat-security,$(CFLAGS))
- # Pass additional PGO and LTO compiler options to the PGO build.
- BUILD_CFLAGS = $(PGO_BUILD_CFLAGS) $(PGO_BUILD_LTO_CFLAGS)
+ CRAB1_LIBS = @CRAB1_LIBS@
+
diff --git a/gcc13-d-shared-libphobos.patch b/gcc16-d-shared-libphobos.patch
similarity index 100%
rename from gcc13-d-shared-libphobos.patch
rename to gcc16-d-shared-libphobos.patch
diff --git a/gcc13-fortran-fdec-duplicates.patch b/gcc16-fortran-fdec-duplicates.patch
similarity index 100%
rename from gcc13-fortran-fdec-duplicates.patch
rename to gcc16-fortran-fdec-duplicates.patch
diff --git a/gcc13-hack.patch b/gcc16-hack.patch
similarity index 56%
rename from gcc13-hack.patch
rename to gcc16-hack.patch
index e98649e..61331bf 100644
--- a/gcc13-hack.patch
+++ b/gcc16-hack.patch
@@ -64,63 +64,119 @@
+ infodir="$(infodir)" \
GOCFLAGS="$(GOCFLAGS) $${flags}" \
GDCFLAGS="$(GDCFLAGS) $${flags}" \
- CXXFLAGS="$(CXXFLAGS) $${flags}" \
+ A68FLAGS="$(A68FLAGS) $${flags}" \
--- libcpp/macro.cc.jj 2019-01-09 13:01:21.420552123 +0100
-+++ libcpp/macro.cc 2019-01-11 18:18:17.736876285 +0100
-@@ -3256,8 +3256,6 @@ static cpp_macro *
++++ libcpp/macro.cc 2024-11-30 13:16:41.163056391 +0100
+@@ -3680,8 +3680,6 @@ static cpp_macro *
create_iso_definition (cpp_reader *pfile)
{
bool following_paste_op = false;
- const char *paste_op_error_msg =
-- N_("'##' cannot appear at either end of a macro expansion");
+- N_("%<##%> cannot appear at either end of a macro expansion");
unsigned int num_extra_tokens = 0;
unsigned nparms = 0;
cpp_hashnode **params = NULL;
-@@ -3382,7 +3380,9 @@ create_iso_definition (cpp_reader *pfile
+@@ -3809,7 +3807,9 @@ create_iso_definition (cpp_reader *pfile
function-like macros, but not at the end. */
if (following_paste_op)
{
- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
+ cpp_error (pfile, CPP_DL_ERROR,
-+ "'##' cannot appear at either end of a macro "
++ "%<##%> cannot appear at either end of a macro "
+ "expansion");
goto out;
}
if (!vaopt_tracker.completed ())
-@@ -3397,7 +3397,9 @@ create_iso_definition (cpp_reader *pfile
+@@ -3824,7 +3824,9 @@ create_iso_definition (cpp_reader *pfile
function-like macros, but not at the beginning. */
if (macro->count == 1)
{
- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
+ cpp_error (pfile, CPP_DL_ERROR,
-+ "'##' cannot appear at either end of a macro "
++ "%<##%> cannot appear at either end of a macro "
+ "expansion");
goto out;
}
--- libcpp/expr.cc.jj 2019-01-09 13:01:22.415535734 +0100
-+++ libcpp/expr.cc 2019-01-11 18:16:23.444726882 +0100
-@@ -803,16 +803,17 @@ cpp_classify_number (cpp_reader *pfile,
++++ libcpp/expr.cc 2024-11-30 13:14:52.468583689 +0100
+@@ -874,50 +874,54 @@ cpp_classify_number (cpp_reader *pfile,
if ((result & CPP_N_WIDTH) == CPP_N_LARGE
&& CPP_OPTION (pfile, cpp_warn_long_long))
{
-- const char *message = CPP_OPTION (pfile, cplusplus)
+- const char *message = CPP_OPTION (pfile, cplusplus)
- ? N_("use of C++11 long long integer constant")
- : N_("use of C99 long long integer constant");
-
if (CPP_OPTION (pfile, c99))
- cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location,
+- cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location,
- 0, message);
-+ 0, CPP_OPTION (pfile, cplusplus)
-+ ? N_("use of C++11 long long integer constant")
-+ : N_("use of C99 long long integer constant"));
++ cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location, 0,
++ CPP_OPTION (pfile, cplusplus)
++ ? N_("use of C++11 long long integer "
++ "constant")
++ : N_("use of C99 long long integer "
++ "constant"));
else
cpp_pedwarning_with_line (pfile, CPP_W_LONG_LONG,
- virtual_location, 0, message);
+ virtual_location, 0,
+ CPP_OPTION (pfile, cplusplus)
-+ ? N_("use of C++11 long long integer constant")
-+ : N_("use of C99 long long integer constant"));
++ ? N_("use of C++11 long long integer "
++ "constant")
++ : N_("use of C99 long long integer "
++ "constant"));
}
if ((result & CPP_N_SIZE_T) == CPP_N_SIZE_T
+ && !CPP_OPTION (pfile, size_t_literals))
+- {
+- const char *message
+- = (result & CPP_N_UNSIGNED) == CPP_N_UNSIGNED
+- ? N_("use of C++23 % integer constant")
+- : N_("use of C++23 %%> integer constant");
+- cpp_warning_with_line (pfile, CPP_W_SIZE_T_LITERALS,
+- virtual_location, 0, message);
+- }
++ cpp_warning_with_line (pfile, CPP_W_SIZE_T_LITERALS,
++ virtual_location, 0,
++ (result & CPP_N_UNSIGNED) == CPP_N_UNSIGNED
++ ? N_("use of C++23 % integer "
++ "constant")
++ : N_("use of C++23 %%> "
++ "integer constant"));
+
+ if ((result & CPP_N_BITINT) != 0
+ && CPP_OPTION (pfile, cpp_warn_c11_c23_compat) != 0)
+ {
+ if (CPP_OPTION (pfile, cpp_warn_c11_c23_compat) > 0)
+ {
+- const char *message = N_("ISO C does not support literal "
+- "% suffixes before C23");
+ if (CPP_PEDANTIC (pfile) && !CPP_OPTION (pfile, true_false))
+ cpp_pedwarning_with_line (pfile, CPP_W_C11_C23_COMPAT,
+- virtual_location, 0, message);
++ virtual_location, 0,
++ "ISO C does not support literal "
++ "% suffixes before C23");
+ else
+ cpp_warning_with_line (pfile, CPP_W_C11_C23_COMPAT,
+- virtual_location, 0, message);
+- }
+- else if (!CPP_OPTION (pfile, true_false))
+- {
+- const char *message = N_("ISO C does not support literal "
++ virtual_location, 0,
++ "ISO C does not support literal "
+ "% suffixes before C23");
+- cpp_pedwarning_with_line (pfile, CPP_W_PEDANTIC,
+- virtual_location, 0, message);
+ }
++ else if (!CPP_OPTION (pfile, true_false))
++ cpp_pedwarning_with_line (pfile, CPP_W_PEDANTIC,
++ virtual_location, 0,
++ "ISO C does not support literal "
++ "% suffixes before C23");
+ }
+
+ result |= CPP_N_INTEGER;
diff --git a/gcc13-isl-dl.patch b/gcc16-isl-dl.patch
similarity index 99%
rename from gcc13-isl-dl.patch
rename to gcc16-isl-dl.patch
index 20dd8bf..dc0c49b 100644
--- a/gcc13-isl-dl.patch
+++ b/gcc16-isl-dl.patch
@@ -696,16 +696,16 @@
static void
--- gcc/toplev.cc.jj 2017-02-19 13:02:31.000000000 +0100
-+++ gcc/toplev.cc 2017-02-19 16:50:25.536301350 +0100
-@@ -94,6 +94,7 @@ along with GCC; see the file COPYING3.
++++ gcc/toplev.cc 2024-11-30 13:22:34.175096117 +0100
+@@ -100,6 +100,7 @@ along with GCC; see the file COPYING3.
#ifdef HAVE_isl
#include
+extern const char *get_isl_version (bool);
#endif
- static void general_init (const char *, bool);
-@@ -683,7 +684,7 @@ print_version (FILE *file, const char *i
+ static void general_init (const char *, bool, unique_argv original_argv);
+@@ -652,7 +653,7 @@ print_version (FILE *file, const char *i
#ifndef HAVE_isl
"none"
#else
diff --git a/gcc13-isl-dl2.patch b/gcc16-isl-dl2.patch
similarity index 89%
rename from gcc13-isl-dl2.patch
rename to gcc16-isl-dl2.patch
index 2e12499..8d2c4d9 100644
--- a/gcc13-isl-dl2.patch
+++ b/gcc16-isl-dl2.patch
@@ -6,8 +6,8 @@
directory.
--- gcc/toplev.cc.jj 2008-12-09 23:59:10.000000000 +0100
-+++ gcc/toplev.cc 2009-01-27 14:33:52.000000000 +0100
-@@ -113,6 +113,8 @@ static void finalize (bool);
++++ gcc/toplev.cc 2024-11-30 13:26:05.085132543 +0100
+@@ -112,6 +112,8 @@ static void finalize ();
static void crash_signal (int) ATTRIBUTE_NORETURN;
static void compile_file (void);
@@ -16,14 +16,14 @@
/* Decoded options, and number of such options. */
struct cl_decoded_option *save_decoded_options;
unsigned int save_decoded_options_count;
-@@ -2239,6 +2241,8 @@ toplev::main (int argc, char **argv)
+@@ -2296,6 +2298,8 @@ toplev::main (int argc, char **argv)
expandargv (&argc, &argv);
+ toplev_main_argv = CONST_CAST2 (const char **, char **, argv);
+
/* Initialization of GCC's environment, and diagnostics. */
- general_init (argv[0], m_init_signals);
+ general_init (argv[0], m_init_signals, std::move (original_argv));
--- gcc/graphite.cc.jj 2010-12-01 10:24:32.000000000 -0500
+++ gcc/graphite.cc 2010-12-01 11:46:07.832118193 -0500
diff --git a/gcc13-libgomp-omp_h-multilib.patch b/gcc16-libgomp-omp_h-multilib.patch
similarity index 100%
rename from gcc13-libgomp-omp_h-multilib.patch
rename to gcc16-libgomp-omp_h-multilib.patch
diff --git a/gcc13-libstdc++-docs.patch b/gcc16-libstdc++-docs.patch
similarity index 74%
rename from gcc13-libstdc++-docs.patch
rename to gcc16-libstdc++-docs.patch
index ce94f5d..7d2d357 100644
--- a/gcc13-libstdc++-docs.patch
+++ b/gcc16-libstdc++-docs.patch
@@ -4,21 +4,21 @@
FSF
-+ Release 13.2.1
++ Release 16.0.1
+
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation
License, Version 1.2 or any later version published by the
--- libstdc++-v3/doc/html/api.html.jj 2011-01-03 12:53:21.000000000 +0100
-+++ libstdc++-v3/doc/html/api.html 2011-01-04 18:12:01.672757784 +0100
++++ libstdc++-v3/doc/html/api.html 2024-11-30 13:30:16.607594623 +0100
@@ -20,7 +20,9 @@
member functions for the library classes, finding out what is in a
particular include file, looking at inheritance diagrams, etc.
- The API documentation, rendered into HTML, can be viewed online
+ The API documentation, rendered into HTML, can be viewed locally
-+ for the 13.2.1 release,
++ for the 16.0.1 release,
+ online
- for each GCC release
+ for each GCC release
and
-
+
diff --git a/gcc13-libtool-no-rpath.patch b/gcc16-libtool-no-rpath.patch
similarity index 87%
rename from gcc13-libtool-no-rpath.patch
rename to gcc16-libtool-no-rpath.patch
index 466c661..8429a4c 100644
--- a/gcc13-libtool-no-rpath.patch
+++ b/gcc16-libtool-no-rpath.patch
@@ -5,7 +5,7 @@ libtool sucks.
rpath="$finalize_rpath"
test "$mode" != relink && rpath="$compile_rpath$rpath"
for libdir in $rpath; do
-+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
++ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64|/usr/lib/../lib64/lp64d) continue;; esac
if test -n "$hardcode_libdir_flag_spec"; then
if test -n "$hardcode_libdir_separator"; then
if test -z "$hardcode_libdirs"; then
@@ -13,7 +13,7 @@ libtool sucks.
rpath=
hardcode_libdirs=
for libdir in $compile_rpath $finalize_rpath; do
-+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
++ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64|/usr/lib/../lib64/lp64d) continue;; esac
if test -n "$hardcode_libdir_flag_spec"; then
if test -n "$hardcode_libdir_separator"; then
if test -z "$hardcode_libdirs"; then
@@ -21,7 +21,7 @@ libtool sucks.
rpath=
hardcode_libdirs=
for libdir in $finalize_rpath; do
-+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
++ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64|/usr/lib/../lib64/lp64d) continue;; esac
if test -n "$hardcode_libdir_flag_spec"; then
if test -n "$hardcode_libdir_separator"; then
if test -z "$hardcode_libdirs"; then
diff --git a/gcc13-no-add-needed.patch b/gcc16-no-add-needed.patch
similarity index 96%
rename from gcc13-no-add-needed.patch
rename to gcc16-no-add-needed.patch
index 5817299..74f5c1f 100644
--- a/gcc13-no-add-needed.patch
+++ b/gcc16-no-add-needed.patch
@@ -34,4 +34,4 @@
+#define LINK_EH_SPEC "--no-add-needed %{!static|static-pie:--eh-frame-hdr} "
#endif
- #define GNU_USER_TARGET_LINK_GCC_C_SEQUENCE_SPEC \
+
diff --git a/gcc16-pr119006.patch b/gcc16-pr119006.patch
new file mode 100644
index 0000000..dfbdaa9
--- /dev/null
+++ b/gcc16-pr119006.patch
@@ -0,0 +1,76 @@
+2025-02-27 Jakub Jelinek
+
+ PR ipa/119006
+ * ipa-icf-gimple.cc (func_checker::compare_operand): If t1 and t2
+ are ADDR_EXPRs, call operand_equal_p on their operands rather than on
+ the ADDR_EXPRs themselves. Formatting fix.
+
+ * g++.dg/opt/pr119006.C: New test.
+
+--- gcc/ipa-icf-gimple.cc.jj 2025-02-01 00:50:02.080774328 +0100
++++ gcc/ipa-icf-gimple.cc 2025-02-27 14:35:19.931183246 +0100
+@@ -437,12 +437,23 @@ func_checker::compare_operand (tree t1,
+ ("compare_ao_refs failed (dependence clique difference)");
+ gcc_unreachable ();
+ }
++ else if (TREE_CODE (t1) == ADDR_EXPR && TREE_CODE (t2) == ADDR_EXPR)
++ {
++ /* For ADDR_EXPR compare the operands of the ADDR_EXPR rather than
++ the ADDR_EXPRs themselves. operand_equal_p will compare the
++ operands with OEP_ADDRESS_OF and only care about the value
++ of the ADDR_EXPR, rather than e.g. types of MEM_REFs in there.
++ Some optimizations use such details though, see PR119006. */
++ if (operand_equal_p (TREE_OPERAND (t1, 0), TREE_OPERAND (t2, 0),
++ OEP_MATCH_SIDE_EFFECTS))
++ return true;
++ return return_false_with_msg ("operand_equal_p failed");
++ }
+ else
+ {
+ if (operand_equal_p (t1, t2, OEP_MATCH_SIDE_EFFECTS))
+ return true;
+- return return_false_with_msg
+- ("operand_equal_p failed");
++ return return_false_with_msg ("operand_equal_p failed");
+ }
+ }
+
+--- gcc/testsuite/g++.dg/opt/pr119006.C.jj 2025-02-27 14:37:05.952707350 +0100
++++ gcc/testsuite/g++.dg/opt/pr119006.C 2025-02-27 14:36:29.251218260 +0100
+@@ -0,0 +1,36 @@
++// PR ipa/119006
++// { dg-do run { target c++11 } }
++// { dg-options "-O2 -fwhole-program" }
++
++struct A {
++ bool operator== (const char *x) const { return x && !__builtin_strcmp (a, x); }
++ char a[11];
++};
++
++struct B {
++ bool operator== (const char *x) const { return x && !__builtin_strcmp (a, x); }
++ bool operator!= (const char *x) const { return !(*this == x); }
++ char a[128];
++};
++
++[[gnu::noinline,gnu::used]] int
++foo (const A& lhs, const char* rhs)
++{
++ return lhs == rhs;
++}
++
++constexpr const char *t = "abcdefghijklmno";
++
++[[gnu::noinline,gnu::used]] void
++bar (B x)
++{
++ if (x != t) __builtin_abort ();
++}
++
++int
++main ()
++{
++ B b;
++ __builtin_strcpy (b.a, t);
++ bar (b);
++}
diff --git a/gcc16-pr123273.patch b/gcc16-pr123273.patch
new file mode 100644
index 0000000..987f6e0
--- /dev/null
+++ b/gcc16-pr123273.patch
@@ -0,0 +1,54 @@
+2026-01-06 Jakub Jelinek
+
+ PR preprocessor/123273
+ * lex.cc (cpp_directive_only_process): Only go to done_comment
+ for '/' if star is true and esc is false. When seeing '\\' with
+ esc set to true, clear esc as well as star instead of keeping esc
+ set.
+
+ * c-c++-common/cpp/dir-only-10.c: New test.
+ * c-c++-common/cpp/dir-only-11.c: New test.
+
+--- libcpp/lex.cc.jj 2026-01-02 09:56:10.417332292 +0100
++++ libcpp/lex.cc 2026-01-05 16:40:26.413766032 +0100
+@@ -5461,7 +5461,13 @@ cpp_directive_only_process (cpp_reader *
+ switch (c)
+ {
+ case '\\':
+- esc = true;
++ if (esc)
++ {
++ star = false;
++ esc = false;
++ }
++ else
++ esc = true;
+ break;
+
+ case '\r':
+@@ -5492,7 +5498,7 @@ cpp_directive_only_process (cpp_reader *
+ break;
+
+ case '/':
+- if (star)
++ if (star && !esc)
+ goto done_comment;
+ /* FALLTHROUGH */
+
+--- gcc/testsuite/c-c++-common/cpp/dir-only-10.c.jj 2026-01-05 17:04:26.144566116 +0100
++++ gcc/testsuite/c-c++-common/cpp/dir-only-10.c 2026-01-05 17:05:02.226946201 +0100
+@@ -0,0 +1,5 @@
++/* PR preprocessor/123273 */
++/* { dg-do preprocess } */
++/* { dg-options -fdirectives-only } */
++
++/* *\/""" */
+--- gcc/testsuite/c-c++-common/cpp/dir-only-11.c.jj 2026-01-05 17:05:18.498666647 +0100
++++ gcc/testsuite/c-c++-common/cpp/dir-only-11.c 2026-01-05 17:06:17.574651691 +0100
+@@ -0,0 +1,6 @@
++/* PR preprocessor/123273 */
++/* { dg-do preprocess } */
++/* { dg-options -fdirectives-only } */
++
++/* *\\
++/""" */
diff --git a/gcc13-rh1574936.patch b/gcc16-rh1574936.patch
similarity index 100%
rename from gcc13-rh1574936.patch
rename to gcc16-rh1574936.patch
diff --git a/gcc13-sparc-config-detection.patch b/gcc16-sparc-config-detection.patch
similarity index 100%
rename from gcc13-sparc-config-detection.patch
rename to gcc16-sparc-config-detection.patch
diff --git a/plans/ci.fmf b/plans/ci.fmf
index b6a344d..b661134 100644
--- a/plans/ci.fmf
+++ b/plans/ci.fmf
@@ -1,7 +1,7 @@
summary: CI Gating Plan
discover:
how: fmf
- url: https://src.fedoraproject.org/tests/gcc.git
+ url: https://gitlab.com/redhat/centos-stream/tests/gcc.git
filter: 'tag: Fedora-CI-gating'
execute:
how: tmt
diff --git a/rpminspect.yaml b/rpminspect.yaml
new file mode 100644
index 0000000..f31bc02
--- /dev/null
+++ b/rpminspect.yaml
@@ -0,0 +1,37 @@
+inspections:
+ # GCC subpackages are inter-dependent but without requesting an explicit
+ # version - which rpmdeps dislikes and creates huge reports. We can't fix
+ # it easily and it's not a practical problem anyway. Unfortunately we
+ # can't tell rpmdeps to ignore just that particular warning. Switching off
+ # the rpmdeps checks looks like a lesser evil.
+ rpmdeps: off
+
+badfuncs:
+ # GCC doesn't use the so called bad functions "much". If they appear then
+ # - it is instrumenting them in sanitizers
+ # - in languages that don't move further downstream.
+ # We are OK with that.
+ ignore:
+ - /usr/lib*/libasan.so.*.*.*
+ - /usr/lib*/libtsan.so.*.*.*
+ - /usr/lib*/libgnat-*.so
+ - /usr/lib*/libgphobos.so.*.*.*
+ - /usr/lib*/libm2iso.so.*.*.*
+ - /usr/lib*/libm2pim.so.*.*.*
+
+pathmigration:
+ # Incomplete UsrMove, known but not planned at the moment
+ ignore:
+ - /lib*/libgcc_s-*.so.*
+ - /lib*/libgcc_s.so.*
+
+debuginfo:
+ # Skip the Go binaries, they ship unstripped
+ ignore:
+ - /usr/bin/go.gcc
+ - /usr/bin/gofmt.gcc
+ - /usr/lib*/libgo.so.*.*.*
+ - /usr/libexec/gcc/*-redhat-linux/*/buildid
+ - /usr/libexec/gcc/*-redhat-linux/*/cgo
+ - /usr/libexec/gcc/*-redhat-linux/*/test2json
+ - /usr/libexec/gcc/*-redhat-linux/*/vet
diff --git a/sources b/sources
index 9509f03..f1dba4c 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-13.2.1-20231205.tar.xz) = f132a2d35d6ea0b0d82043870f1c9f60dda119e63df6833b16d20e2c93e2978f62698d4cc72a6e2eefbaeded0683107de9ebeb93923b96c57dcd612504aa6a1b
+SHA512 (gcc-16.0.1-20260115.tar.xz) = 51ab079dedde5547caba601ce03954d4c5b2bf687538f106d3e851a8918162017fe65817d9e22fd115cf4d4f970bfba6a70a34db183141ce28c5c203a68eec0b
SHA512 (isl-0.24.tar.bz2) = aab3bddbda96b801d0f56d2869f943157aad52a6f6e6a61745edd740234c635c38231af20bc3f1a08d416a5e973a90e18249078ed8e4ae2f1d5de57658738e95
-SHA512 (newlib-cygwin-9e09d6ed83cce4777a5950412647ccc603040409.tar.xz) = bef3fa04f7b1a915fc1356ebed114698b5cc835e9fa04b0becff05a9efc76c59fb376482990873d222d7acdcfee3c4f30f5a4cb7f3be1f291f1fa5f1c7a9d983
-SHA512 (nvptx-tools-aa3404ad5a496cda5d79a50bedb1344fd63e8763.tar.xz) = 33a024326426375533cb5dd9b68b2508f37540be418d2506bfa19a5f5866485e9af150469064e9059b68136ad8cb080b3b12e7eb5c6b7d1288cf6bfb3f6bb5d0
+SHA512 (newlib-cygwin-d35cc82b5ec15bb8a5fe0fe11e183d1887992e99.tar.xz) = ef9495745a96d1d76f9f425c4a48c807fface36a1aa92351c5d024103678d144d046e8de55d195103784472c14874e29e4b9284d5d6a2e7bb27fd98c8455a881
+SHA512 (nvptx-tools-a0c1fff6534a4df9fb17937c3c4a4b1071212029.tar.xz) = 7f862986065028df70c843fc3f2c89e200a76b48ad0bd51c749ac8a5aab7be0ebdf35be182fad2407b3281615e75be1ac6833ab6a5130ae9920169a0412f94f0
diff --git a/update-gcc.sh b/update-gcc.sh
index b49ed15..47d7d70 100755
--- a/update-gcc.sh
+++ b/update-gcc.sh
@@ -1,7 +1,36 @@
#!/bin/sh
-[ -d gcc-dir.tmp ] && echo gcc-dir.tmp already exists && exit 1
-git clone --depth 1 git://gcc.gnu.org/git/gcc.git gcc-dir.tmp
-git --git-dir=gcc-dir.tmp/.git fetch --depth 1 origin $1
+if [ "$#" -eq 0 ]; then
+ echo "Usage: ./update-gcc.sh gcc/redhat/heads/gcc-NN-branch_commit_hash [git_reference_dir_to_speed_up]"
+ exit 1
+fi
+export LC_ALL=C
+if ! [ -f gcc.spec ]; then echo Must be run in the directory with gcc.spec file.; exit 1; fi
+if [ -d gcc-dir.tmp ]; then echo gcc-dir.tmp already exists.; exit 1; fi
+v=`sed -n 's/^%global gcc_version //p' gcc.spec`
+p=`sed -n 's/^%global gitrev //p' gcc.spec`
+h=$1
+if [ "$#" -ge 2 ]; then
+ git clone --dissociate --reference $2 https://gcc.gnu.org/git/gcc.git gcc-dir.tmp
+else
+ git clone https://gcc.gnu.org/git/gcc.git gcc-dir.tmp
+fi
+git --git-dir=gcc-dir.tmp/.git fetch origin $h
d=`date --iso | sed 's/-//g'`
-git --git-dir=gcc-dir.tmp/.git archive --prefix=gcc-13.2.1-$d/ $1 | xz -9e > gcc-13.2.1-$d.tar.xz
+cd gcc-dir.tmp
+git diff $p..$h > P1
+git log --format=%B `git log --format='%ae %H' $p..$h | awk '/^gccadmin@gcc.gnu.org/{print $2;exit 0}'`..$h > P2
+diff -up /dev/null P2 >> P1
+sed -n 's,^+[[:blank:]]\+PR \([a-z0-9+-]\+/[0-9]\+\)$,\1,p' P1 | sed 's/ - .*$//;s/[: ;.]//g' | LC_ALL=C sort -u -t / -k 1,1 -k 2,2n > P3
+> P4
+for i in `cat P3`; do if grep -F $i ../gcc.spec >/dev/null; then echo $i already recorded.; else echo $i >> P4; fi; done
+case "$v" in
+ *.0.*) echo "- update from trunk" > P5;;
+ *) echo "- update from releases/gcc-`echo $v | sed 's/\..*$//'` branch" > P5;;
+esac
+echo `cat P4` | sed 's/ /, /g' | fold -w 71 -s | sed '1s/^/ - PRs /;2,$s/^/ /;s/, $/,/' >> P5
+echo >> P5
+cd ..
+sed -i -e '/^%global gitrev /s/ [0-9a-f]\+$/ '$h'/;/^%global DATE /s/ [0-9]\+$/ '$d'/;/^%changelog$/r gcc-dir.tmp/P5' gcc.spec
+git --git-dir=gcc-dir.tmp/.git archive --prefix=gcc-$v-$d/ $h | xz -9e > gcc-$v-$d.tar.xz
rm -rf gcc-dir.tmp
+fedpkg new-sources gcc-$v-$d.tar.xz `sed 's/SHA512 (\(.*\)) = [0-9a-f]\+$/\1/' sources | grep -v '^gcc-'`