public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gcc-patches:master commit in: 8.2.0/gentoo/
Date: Mon, 10 Dec 2018 22:48:38 +0000 (UTC)	[thread overview]
Message-ID: <1544481941.44f5a4b4d1884a2646f77195c172fe8065295d1d.slyfox@gentoo> (raw)

commit:     44f5a4b4d1884a2646f77195c172fe8065295d1d
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 10 22:45:41 2018 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Dec 10 22:45:41 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=44f5a4b4

8.2.0: fix gcc SIGSEGV on k&r style declarations, bug #672032

Fix gcc SIGSEGV on net-analyzer/netcat-110 (IPA analysis
assumed pointer argument where it was not).

Reported-by: ernsteiswuerfel
https://bugs.gentoo.org/672032
https://gcc.gnu.org/PR88214
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 8.2.0/gentoo/114_all_kr-decl-PR88214.patch | 46 ++++++++++++++++++++++++++++++
 8.2.0/gentoo/README.history                |  3 ++
 2 files changed, 49 insertions(+)

diff --git a/8.2.0/gentoo/114_all_kr-decl-PR88214.patch b/8.2.0/gentoo/114_all_kr-decl-PR88214.patch
new file mode 100644
index 0000000..182ff07
--- /dev/null
+++ b/8.2.0/gentoo/114_all_kr-decl-PR88214.patch
@@ -0,0 +1,46 @@
+https://bugs.gentoo.org/672032
+https://gcc.gnu.org/PR88214
+
+From a2fd08219c82eba4d1d15f260db98c2e154268f2 Mon Sep 17 00:00:00 2001
+From: jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
+Date: Mon, 10 Dec 2018 12:45:47 +0000
+Subject: [PATCH] [PR 88214] Check that an argument is a pointer
+
+2018-12-10  Martin Jambor  <mjambor@suse.cz>
+
+	PR ipa/88214
+	* ipa-prop.c (determine_locally_known_aggregate_parts): Make sure
+	we check pointers against pointers.
+
+	testsuite/
+	* gcc.dg/ipa/pr88214.c: New test.
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266953 138bc75d-0d04-0410-961f-82ee72b054a4
+--- a/gcc/ipa-prop.c
++++ b/gcc/ipa-prop.c
+@@ -1569,7 +1569,8 @@ determine_locally_known_aggregate_parts (gcall *call, tree arg,
+       if (TREE_CODE (arg) == SSA_NAME)
+ 	{
+ 	  tree type_size;
+-          if (!tree_fits_uhwi_p (TYPE_SIZE (TREE_TYPE (arg_type))))
++          if (!tree_fits_uhwi_p (TYPE_SIZE (TREE_TYPE (arg_type)))
++	      || !POINTER_TYPE_P (TREE_TYPE (arg)))
+             return;
+ 	  check_ref = true;
+ 	  arg_base = arg;
+--- /dev/null
++++ b/gcc/testsuite/gcc.dg/ipa/pr88214.c
+@@ -0,0 +1,10 @@
++/* { dg-do compile } */
++/* { dg-options "-O2" } */
++
++void i();
++  short a;
++  void b(e) char * e;
++  {
++    i();
++    b(a);
++  }
+-- 
+2.19.2
+

diff --git a/8.2.0/gentoo/README.history b/8.2.0/gentoo/README.history
index aaccf65..787f60c 100644
--- a/8.2.0/gentoo/README.history
+++ b/8.2.0/gentoo/README.history
@@ -1,3 +1,6 @@
+1.7		TODO
+	+ 114_all_kr-decl-PR88214.patch
+
 1.6		01 Dec 2018
 	U 10_all_default-fortify-source.patch
 


             reply	other threads:[~2018-12-10 22:48 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-10 22:48 Sergei Trofimovich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-01-08 22:42 [gentoo-commits] proj/gcc-patches:master commit in: 8.2.0/gentoo/ Sergei Trofimovich
2019-02-11 21:59 Sergei Trofimovich
2019-02-10 12:12 Sergei Trofimovich
2019-01-29 20:24 Sergei Trofimovich
2018-12-26 19:31 Sergei Trofimovich
2018-12-18 22:38 Sergei Trofimovich
2018-12-01 13:06 Sergei Trofimovich
2018-11-22 23:55 Sergei Trofimovich
2018-10-27  9:04 Sergei Trofimovich
2018-10-21  9:24 Sergei Trofimovich
2018-10-20  9:40 Sergei Trofimovich
2018-10-18 20:40 Sergei Trofimovich
2018-10-08 22:05 Sergei Trofimovich
2018-10-08 22:05 Sergei Trofimovich
2018-10-01  6:41 Sergei Trofimovich
2018-09-30 22:08 Sergei Trofimovich
2018-09-23 20:37 Sergei Trofimovich
2018-09-15 19:30 Sergei Trofimovich
2018-08-12 22:56 Sergei Trofimovich
2018-08-12 20:27 Sergei Trofimovich
2018-08-08  8:37 Sergei Trofimovich
2018-08-08  8:31 Sergei Trofimovich
2018-08-08  8:26 Sergei Trofimovich
2018-08-08  7:58 Sergei Trofimovich

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=1544481941.44f5a4b4d1884a2646f77195c172fe8065295d1d.slyfox@gentoo \
    --to=slyfox@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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