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: 4.1.1-18
Date: Mon, 29 Jun 2026 12:22:45 GMT	[thread overview]
Message-ID: <178273576513.1.4608428923566231026.rpms-gcc-466a7f64bb43@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gcc
Branch : rhel-f41-base
Commit : 466a7f64bb43177b925c79372ba6b7dced505846
Author : Jakub Jelinek <jakub@fedoraproject.org>
Date   : 2006-08-18T07:38:36+00:00
Stats  : +92/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/gcc/c/466a7f64bb43177b925c79372ba6b7dced505846?branch=rhel-f41-base

Log:
4.1.1-18

---
diff --git a/gcc41-pr27898.patch b/gcc41-pr27898.patch
new file mode 100644
index 0000000..9e11955
--- /dev/null
+++ b/gcc41-pr27898.patch
@@ -0,0 +1,92 @@
+2006-07-06  Alexandre Oliva  <aoliva@redhat.com>
+
+	PR c/27898
+	* c-typeck.c (tagged_types_tu_compatible_p): Enable exact
+	matches between anonymous union fields.
+
+2006-08-18  Jakub Jelinek  <jakub@redhat.com>
+
+	PR c/27898
+	* gcc.dg/pr27898.c: New test.
+
+--- gcc/testsuite/gcc.dg/pr27898.c.jj	2006-08-18 09:19:33.000000000 +0200
++++ gcc/testsuite/gcc.dg/pr27898.c	2006-08-18 09:19:27.000000000 +0200
+@@ -0,0 +1,8 @@
++/* PR c/27898 */
++/* { dg-do compile } */
++/* { dg-options "--combine" } */
++/* { dg-additional-sources "pr27898.c" } */
++
++union u { struct { int i; }; };
++
++extern int foo (union u *);
+--- gcc/c-typeck.c.jj	2006-08-17 09:55:11.000000000 +0200
++++ gcc/c-typeck.c	2006-08-18 09:14:15.000000000 +0200
+@@ -1126,11 +1126,12 @@ tagged_types_tu_compatible_p (tree t1, t
+ 	  {
+ 	    int result;
+ 
+-
+-	    if (DECL_NAME (s1) == NULL
+-		|| DECL_NAME (s1) != DECL_NAME (s2))
++	    if (DECL_NAME (s1) != DECL_NAME (s2))
+ 	      break;
+ 	    result = comptypes_internal (TREE_TYPE (s1), TREE_TYPE (s2));
++
++	    if (result != 1 && !DECL_NAME (s1))
++	      break;
+ 	    if (result == 0)
+ 	      {
+ 		tu->val = 0;
+@@ -1157,28 +1158,31 @@ tagged_types_tu_compatible_p (tree t1, t
+ 	  {
+ 	    bool ok = false;
+ 
+-	    if (DECL_NAME (s1) != NULL)
+-	      for (s2 = TYPE_FIELDS (t2); s2; s2 = TREE_CHAIN (s2))
+-		if (DECL_NAME (s1) == DECL_NAME (s2))
+-		  {
+-		    int result;
+-		    result = comptypes_internal (TREE_TYPE (s1), TREE_TYPE (s2));
+-		    if (result == 0)
+-		      {
+-			tu->val = 0;
+-			return 0;
+-		      }
+-		    if (result == 2)
+-		      needs_warning = true;
+-
+-		    if (TREE_CODE (s1) == FIELD_DECL
+-			&& simple_cst_equal (DECL_FIELD_BIT_OFFSET (s1),
+-					     DECL_FIELD_BIT_OFFSET (s2)) != 1)
+-		      break;
++	    for (s2 = TYPE_FIELDS (t2); s2; s2 = TREE_CHAIN (s2))
++	      if (DECL_NAME (s1) == DECL_NAME (s2))
++		{
++		  int result;
++
++		  result = comptypes_internal (TREE_TYPE (s1), TREE_TYPE (s2));
+ 
+-		    ok = true;
++		  if (result != 1 && !DECL_NAME (s1))
++		    continue;
++		  if (result == 0)
++		    {
++		      tu->val = 0;
++		      return 0;
++		    }
++		  if (result == 2)
++		    needs_warning = true;
++
++		  if (TREE_CODE (s1) == FIELD_DECL
++		      && simple_cst_equal (DECL_FIELD_BIT_OFFSET (s1),
++					   DECL_FIELD_BIT_OFFSET (s2)) != 1)
+ 		    break;
+-		  }
++
++		  ok = true;
++		  break;
++		}
+ 	    if (!ok)
+ 	      {
+ 		tu->val = 0;

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-29 12:22 Jakub Jelinek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-06-29 12:22 [rpms/gcc] rhel-f41-base: 4.1.1-18 Jakub Jelinek

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=178273576513.1.4608428923566231026.rpms-gcc-466a7f64bb43@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