[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#122547: marked as done ([gcc-3.0] cc1plus segfault in strength reduction)



Your message dated Sun, 9 Dec 2001 22:09:37 +0100
with message-id <15379.54033.224595.931442@gargle.gargle.HOWL>
and subject line fixed in gcc-3.0 (3.0.3-0pre011209)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Dec 2001 17:06:48 +0000
>From randolph@tausq.org Wed Dec 05 11:06:48 2001
Return-path: <randolph@tausq.org>
Received: from pxofc151-phx1.pangeatech.com (mail.pangeatech.com) [63.110.32.151] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 16BfVQ-0000o1-00; Wed, 05 Dec 2001 11:06:48 -0600
Received: from [65.192.22.133] by mail.pangeatech.com (NTMail 7.00.0018/NU8172.00.e2123c13) with ESMTP id qigmjaaa for submit@bugs.debian.org; Wed, 5 Dec 2001 10:01:38 -0700
Received: from randolph by gandalf.tausq.org with local (Exim 3.12 #1 (Debian))
	id 16BfVL-0007qn-00; Wed, 05 Dec 2001 09:06:43 -0800
Date: Wed, 5 Dec 2001 09:06:43 -0800
From: Randolph Chung <tausq@debian.org>
To: submit@bugs.debian.org
Subject: [gcc-3.0] cc1plus segfault in strength reduction
Message-ID: <[🔎] 20011205090643.R944@tausq.org>
Reply-To: Randolph Chung <tausq@debian.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.23i
X-PGP: for PGP key, see http://www.tausq.org/pgp.txt
X-GPG: for GPG key, see http://www.tausq.org/gpg.txt
Sender: Randolph Chung <randolph@tausq.org>
Delivered-To: submit@bugs.debian.org

Package: gcc-3.0
Version: 3.0.2ds4-4
Severity: important
Tags: patch

The attached patch fixes a strength reduction ICE seen when compiling
groff on hppa-linux. It was contributed by Alan Modra. I'm still in the
process of verifying this with the gcc hppa maintainer (Dave Anglin) but
wanted to send this to the bts first as a heads up.

randolph
-- 
Debian Developer <tausq@debian.org>
http://www.TauSq.org/


#! /bin/sh -e

# DP: Patch to fix strength-reduction optimization from Alan Modra 

dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
    pdir="-d $3"
    dir="$3/"
elif [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch)
        patch $pdir -f --no-backup-if-mismatch -p1 < $0
        #cd ${dir}gcc && autoconf
        ;;
    -unpatch)
        patch $pdir -f --no-backup-if-mismatch -R -p1 < $0
        #rm ${dir}gcc/configure
        ;;
    *)
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
        exit 1
esac
exit 0

--- gcc/unroll.c.orig	Wed Dec  5 08:54:17 2001
+++ gcc/unroll.c	Wed Dec  5 08:55:54 2001
@@ -3508,13 +3508,16 @@
 
       do
 	{
-	  if (GET_CODE (temp) == JUMP_INSN
-	      /* Previous unrolling may have generated new insns not covered
-		 by the uid_luid array.  */
-	      && INSN_UID (JUMP_LABEL (temp)) < max_uid_for_loop
+	  if (GET_CODE (temp) != JUMP_INSN)
+              continue;
+	  if (/* It's an addr_diff_vec */
+	      JUMP_LABEL(temp) == 0
+	      || (/* Previous unrolling may have generated new insns not covered
+		     by the uid_luid array.  */
+	      INSN_UID (JUMP_LABEL (temp)) < max_uid_for_loop
 	      /* Check if we jump back into the loop body.  */
 	      && INSN_LUID (JUMP_LABEL (temp)) > INSN_LUID (loop->top)
-	      && INSN_LUID (JUMP_LABEL (temp)) < INSN_LUID (loop->cont))
+	      && INSN_LUID (JUMP_LABEL (temp)) < INSN_LUID (loop->cont)))
 	    {
 	      if (loop_dump_stream)
 		fprintf (loop_dump_stream,

---------------------------------------
Received: (at 122547-done) by bugs.debian.org; 9 Dec 2001 21:13:35 +0000
>From doko@cs.tu-berlin.de Sun Dec 09 15:13:35 2001
Return-path: <doko@cs.tu-berlin.de>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 16DBGR-0001zz-00; Sun, 09 Dec 2001 15:13:35 -0600
Received: from bolero.cs.tu-berlin.de (doko@bolero.cs.tu-berlin.de [130.149.19.1])
	by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id WAA26046;
	Sun, 9 Dec 2001 22:09:37 +0100 (MET)
Received: (from doko@localhost)
	by bolero.cs.tu-berlin.de (8.10.2+Sun/8.9.3) id fB9L9bN20744;
	Sun, 9 Dec 2001 22:09:37 +0100 (MET)
From: Matthias Klose <doko@cs.tu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15379.54033.224595.931442@gargle.gargle.HOWL>
Date: Sun, 9 Dec 2001 22:09:37 +0100
To: 122547-done@bugs.debian.org, 121924-done@bugs.debian.org
Subject: fixed in gcc-3.0 (3.0.3-0pre011209)
X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid
Delivered-To: 122547-done@bugs.debian.org

 gcc-3.0 (1:3.0.3ds0-0pre011209) unstable; urgency=medium 
 .              
   * Update to CVS sources (011208). Frozen for upstream 3.0.3 release. 
   * Apply contrib/PR3145.patch, a backport of Nathan Sidwell's patch to 
     fix PR c++/3145, the infamous "virtual inheritance" bug. This affected 
     especially KDE2 (eg. artsd). Franz Sirl <Franz.Sirl-kernel@lauterbach.com>                             
   * cc1plus segfault in strength reduction fixed upstream. Closes: #122547. 
   * debian/patches/gcc-ia64-NaT.dpatch: Add patch to avoid a bug that can 
     cause miscompiled userapps to crash the kernel. Closes: #121924. 
   * Reenable shared libgcc for powerpc. Fixed upstream.         
     http://gcc.gnu.org/ml/gcc-patches/2001-11/msg00340.html 
     debian/patches/libgcc-powerpc.dpatch: New patch. 
   * Add upstream changelogs.         
   * Remove gij alternative. Move to gij package.              



Reply to: