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.4.1-4
Date: Mon, 29 Jun 2026 12:24:29 GMT [thread overview]
Message-ID: <178273586945.1.15051107105278401255.rpms-gcc-7c593b37faef@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/gcc
Branch : rhel-f41-base
Commit : 7c593b37faef19d0bd3811a989671124f2065d0e
Author : Jakub Jelinek <jakub@fedoraproject.org>
Date : 2009-08-05T15:56:25+00:00
Stats : +93/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/gcc/c/7c593b37faef19d0bd3811a989671124f2065d0e?branch=rhel-f41-base
Log:
4.4.1-4
---
diff --git a/gcc44-pr40971.patch b/gcc44-pr40971.patch
new file mode 100644
index 0000000..1f6a1cf
--- /dev/null
+++ b/gcc44-pr40971.patch
@@ -0,0 +1,93 @@
+2009-08-05 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/40971
+ * config/rs6000/rs6000.c (rs6000_legitimize_address): For
+ [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
+
+ * gcc.dg/pr40971.c: New test.
+
+--- gcc/config/rs6000/rs6000.c.jj 2009-04-27 16:47:29.000000000 +0200
++++ gcc/config/rs6000/rs6000.c 2009-08-05 16:53:42.000000000 +0200
+@@ -3808,6 +3808,8 @@ rtx
+ rs6000_legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED,
+ enum machine_mode mode)
+ {
++ unsigned int extra = 0;
++
+ if (GET_CODE (x) == SYMBOL_REF)
+ {
+ enum tls_model model = SYMBOL_REF_TLS_MODEL (x);
+@@ -3815,10 +3817,32 @@ rs6000_legitimize_address (rtx x, rtx ol
+ return rs6000_legitimize_tls_address (x, model);
+ }
+
++ switch (mode)
++ {
++ case DFmode:
++ case DDmode:
++ extra = 4;
++ break;
++ case DImode:
++ if (!TARGET_POWERPC64)
++ extra = 4;
++ break;
++ case TFmode:
++ case TDmode:
++ extra = 12;
++ break;
++ case TImode:
++ extra = TARGET_POWERPC64 ? 8 : 12;
++ break;
++ default:
++ break;
++ }
++
+ if (GET_CODE (x) == PLUS
+ && GET_CODE (XEXP (x, 0)) == REG
+ && GET_CODE (XEXP (x, 1)) == CONST_INT
+- && (unsigned HOST_WIDE_INT) (INTVAL (XEXP (x, 1)) + 0x8000) >= 0x10000
++ && ((unsigned HOST_WIDE_INT) (INTVAL (XEXP (x, 1)) + 0x8000)
++ >= 0x10000 - extra)
+ && !((TARGET_POWERPC64
+ && (mode == DImode || mode == TImode)
+ && (INTVAL (XEXP (x, 1)) & 3) != 0)
+@@ -3831,10 +3855,12 @@ rs6000_legitimize_address (rtx x, rtx ol
+ HOST_WIDE_INT high_int, low_int;
+ rtx sum;
+ low_int = ((INTVAL (XEXP (x, 1)) & 0xffff) ^ 0x8000) - 0x8000;
++ if (low_int >= 0x8000 - extra)
++ low_int = 0;
+ high_int = INTVAL (XEXP (x, 1)) - low_int;
+ sum = force_operand (gen_rtx_PLUS (Pmode, XEXP (x, 0),
+ GEN_INT (high_int)), 0);
+- return gen_rtx_PLUS (Pmode, sum, GEN_INT (low_int));
++ return plus_constant (sum, low_int);
+ }
+ else if (GET_CODE (x) == PLUS
+ && GET_CODE (XEXP (x, 0)) == REG
+--- gcc/testsuite/gcc.dg/pr40971.c.jj 2009-08-05 16:46:17.000000000 +0200
++++ gcc/testsuite/gcc.dg/pr40971.c 2009-08-05 16:45:44.000000000 +0200
+@@ -0,0 +1,23 @@
++/* PR target/40971 */
++/* { dg-do compile } */
++/* { dg-options "-O -fstack-protector -fno-strict-aliasing" } */
++/* { dg-require-effective-target fstack_protector } */
++
++extern void bar (char *);
++
++void
++foo (int f, long a)
++{
++ {
++ char d[32768];
++ bar (d);
++ }
++ double b = f;
++ while (a)
++ {
++ char c[sizeof (double)];
++ __builtin_memcpy (c, &b, sizeof (c));
++ if (*(double *) c != 2.0)
++ break;
++ }
++}
next reply other threads:[~2026-06-29 12:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-29 12:24 Jakub Jelinek [this message]
2026-06-29 12:24 [rpms/gcc] rhel-f41-base: 4.4.1-4 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=178273586945.1.15051107105278401255.rpms-gcc-7c593b37faef@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