public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/gcc] rhel-f41-base: Merge #22 `Import gcc-fedora-flags test from redhat-rpm-config`
Date: Mon, 29 Jun 2026 12:29:48 GMT	[thread overview]
Message-ID: <178273618812.1.17344216427957892799.rpms-gcc-d7e191c77778@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gcc
Branch : rhel-f41-base
Commit : d7e191c77778ccd2a12be70d874b536565f40792
Author : Jakub Jelinek <jakub@fedoraproject.org>
Date   : 2022-05-03T07:54:53+00:00
Stats  : +94/-4 in 9 file(s)
URL    : https://src.fedoraproject.org/rpms/gcc/c/d7e191c77778ccd2a12be70d874b536565f40792?branch=rhel-f41-base

Log:
Merge #22 `Import gcc-fedora-flags test from redhat-rpm-config`

---
diff --git a/tests/fedora-flags/hello.c b/tests/fedora-flags/hello.c
new file mode 100644
index 0000000..51b259b
--- /dev/null
+++ b/tests/fedora-flags/hello.c
@@ -0,0 +1,5 @@
+#include <stdio.h>
+
+void hello() {
+  printf("Hello World\n");
+}

diff --git a/tests/fedora-flags/hello.cpp b/tests/fedora-flags/hello.cpp
new file mode 100644
index 0000000..400612b
--- /dev/null
+++ b/tests/fedora-flags/hello.cpp
@@ -0,0 +1,5 @@
+#include <iostream>
+
+void hello() {
+  std::cout << "Hello World\n";
+}

diff --git a/tests/fedora-flags/main.c b/tests/fedora-flags/main.c
new file mode 100644
index 0000000..1a3455d
--- /dev/null
+++ b/tests/fedora-flags/main.c
@@ -0,0 +1,6 @@
+void hello();
+
+int main(int argc, char **argv) {
+  hello();
+  return 0;
+}

diff --git a/tests/fedora-flags/main.cpp b/tests/fedora-flags/main.cpp
new file mode 100644
index 0000000..1a3455d
--- /dev/null
+++ b/tests/fedora-flags/main.cpp
@@ -0,0 +1,6 @@
+void hello();
+
+int main(int argc, char **argv) {
+  hello();
+  return 0;
+}

diff --git a/tests/fedora-flags/main.fmf b/tests/fedora-flags/main.fmf
new file mode 100644
index 0000000..43934a7
--- /dev/null
+++ b/tests/fedora-flags/main.fmf
@@ -0,0 +1,10 @@
+summary: Test compiling with the Fedora C/CXX flags.
+description: ''
+component:
+  - gcc
+test: ./runtest.sh
+require:
+  - annobin-annocheck
+  - gcc
+  - gcc-c++
+  - redhat-rpm-config

diff --git a/tests/fedora-flags/runtest.sh b/tests/fedora-flags/runtest.sh
new file mode 100755
index 0000000..01b656b
--- /dev/null
+++ b/tests/fedora-flags/runtest.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+set -ex
+
+default_cflags=$(rpm -E '%{build_cflags}')
+default_cxxflags=$(rpm -E '%{build_cxxflags}')
+default_ldflags=$(rpm -E '%{build_ldflags}')
+
+cflags=$(rpm -D '%toolchain gcc' -E '%{build_cflags}')
+cxxflags=$(rpm -D '%toolchain gcc' -E '%{build_cxxflags}')
+ldflags=$(rpm -D '%toolchain gcc' -E '%{build_ldflags}')
+
+test "$default_cflags" = "$cflags"
+test "$default_cxxflags" = "$cxxflags"
+test "$default_ldflags" = "$ldflags"
+
+gcc $cflags -o hello.o -c hello.c
+annocheck hello.o
+gcc $cflags -o main.o -c main.c
+gcc $ldflags -o hello main.o hello.o
+annocheck hello
+./hello | grep "Hello World"
+
+g++ $cxxflags -o hello-cpp.o -c hello.cpp
+annocheck hello-cpp.o
+g++ $cxxflags -o main-cpp.o -c main.cpp
+g++ $ldflags -o hello-cpp main-cpp.o hello-cpp.o
+annocheck hello-cpp
+./hello-cpp | grep "Hello World"

diff --git a/.gitignore b/.gitignore
index edfa9a2..39a26b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -70,3 +70,4 @@
 /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

diff --git a/gcc.spec b/gcc.spec
index bd43b04..3932f21 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,5 +1,5 @@
-%global DATE 20220413
-%global gitrev 33917d2d6edc9112702294db6ab14b580a8d7a97
+%global DATE 20220429
+%global gitrev 07f76ab820568c24917f1667cea80f1178279ac6
 %global gcc_version 12.0.1
 %global gcc_major 12
 # Note, gcc_release must be integer, if you want to add suffixes to
@@ -125,7 +125,7 @@
 Summary: Various compilers (C, C++, Objective-C, ...)
 Name: gcc
 Version: %{gcc_version}
-Release: %{gcc_release}.16%{?dist}
+Release: %{gcc_release}.17%{?dist}
 # libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
 # GCC Runtime Exception.
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
@@ -3225,6 +3225,34 @@ end
 %endif
 
 %changelog
+* Fri Apr 29 2022 Jakub Jelinek <jakub@redhat.com> 12.0.1-0.17
+- update from trunk and releases/gcc-12 branch
+  - GCC 12.1-rc1
+  - PRs analyzer/105252, analyzer/105264, analyzer/105365, analyzer/105366,
+	c++/65211, c++/82980, c++/86193, c++/90107, c++/97219, c++/100838,
+	c++/101442, c++/101698, c++/102629, c++/102804, c++/102987,
+	c++/103868, c++/104051, c++/104624, c++/104646, c++/104996,
+	c++/105256, c++/105265, c++/105268, c++/105287, c++/105289,
+	c++/105297, c++/105301, c++/105304, c++/105321, c++/105322,
+	c++/105353, c++/105386, c++/105398, c++/105425, c++/105426,
+	debug/105089, debug/105203, fortran/70673, fortran/78054,
+	fortran/102043, fortran/103662, fortran/104717, fortran/105242,
+	fortran/105310, fortran/105379, fortran/105381, gcov-profile/105282,
+	ipa/103818, ipa/105306, libgomp/105358, libstdc++/93602,
+	libstdc++/99290, libstdc++/102994, libstdc++/104858,
+	libstdc++/105269, libstdc++/105324, libstdc++/105375,
+	libstdc++/105417, lto/105364, lto/105399, middle-end/104492,
+	rtl-optimization/105231, rtl-optimization/105314,
+	rtl-optimization/105333, sanitizer/105396, target/89125,
+	target/103197, target/104676, target/105247, target/105257,
+	target/105271, target/105331, target/105334, target/105338,
+	target/105339, target/105349, target/105367, testsuite/105266,
+	tree-optimization/100810, tree-optimization/103941,
+	tree-optimization/104010, tree-optimization/105219,
+	tree-optimization/105254, tree-optimization/105276,
+	tree-optimization/105312, tree-optimization/105368,
+	tree-optimization/105374
+
 * Wed Apr 13 2022 Jakub Jelinek <jakub@redhat.com> 12.0.1-0.16
 - update from trunk
   - PRs c++/97296, c++/98249, c++/100111, c++/103105, c++/104142, c++/104669,

diff --git a/sources b/sources
index bcf9716..6e51bea 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-12.0.1-20220413.tar.xz) = 6500348f3f4e22f0ddc6ac332a1e6f64eb2684772c67401ddd98c96aabc1ce665cd088161c5878cfc24defa240f587af962ac38d9cbe94044261239be63dc47a
+SHA512 (gcc-12.0.1-20220429.tar.xz) = ad1543844e40fb0d703bc529f2d2b776a09aadba93f85b0a78296ff050e2e9c710cbbf50bebe37bc26426f7abf2edd0f380de42e1defb1fb5706bd204379c499
 SHA512 (isl-0.18.tar.bz2) = 85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94
 SHA512 (newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz) = 002a48a7b689a81abbf16161bcaec001a842e67dfbe372e9e109092703bfc666675f16198f60ca429370e8850d564547dc505df81bc3aaca4ce6defbc014ad6c
 SHA512 (nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz) = f6d10db94fa1570ae0f94df073fa3c73c8e5ee16d59070b53d94f7db0de8a031bc44d7f3f1852533da04b625ce758e022263855ed43cfc6867e0708d001e53c7

                 reply	other threads:[~2026-06-29 12:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178273618812.1.17344216427957892799.rpms-gcc-d7e191c77778@fedoraproject.org \
    --to=jakub@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox