🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1069

gcc-2.2.2, core in expmed.c

#1069
From: H.Dr.Ehling
Date: Fri, 16 Oct 1992 11:55
47 lines
2241 bytes
When compiling something in groff (gtbl, gtroff ??) I encountered a
core dump. Cause was "comparison == 0" in expmed.c.  Apparent fix was to
test that beforehand, didn't look for reason, but had no bad effects
after.

Best Regards -- H.J. Ehling

-- 
Hans-Juergen Ehling | eh@astbe.uucp
                    | Voice:  +49 30/828-2497 Fax: +49 30/828-2483
AEG Softwaretechnik, Hohenzollerndamm 150,   D1000 Berlin 33, Germany

---------- Diffs -----------------
This ChangeLog diff is corrupted, because other entries have been
removed:
*** gcc-2.2.2/ChangeLog	Mon Jun 15 15:28:03 1992
--- ../gcc-2.2.2a/ChangeLog	Thu Oct 15 18:34:20 1992
***************
*** 1,3 ****
--- 1,19 ----
+ Thu Oct 15 12:43:41 1992  H.Dr.Ehling  (eh at risbe)
+ 
+         * expmed.c: checked "comparison" non-null, before doing
+         GET_CODE (comparison)
+ 
  Sun Jun 14 16:30:07 1992  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
  
          * Version 2.2.2 released.
*** gcc-2.2.2/expmed.c	Wed May 27 22:52:20 1992
--- ../gcc-2.2.2a/expmed.c	Wed Sep  2 16:52:09 1992
***************
*** 2743,2749 ****
        last = get_last_insn ();
  
        comparison = compare_from_rtx (op0, op1, code, unsignedp, mode, 0, 0);
!       if (GET_CODE (comparison) == CONST_INT)
          return (comparison == const0_rtx ? const0_rtx
                  : normalizep == 1 ? const1_rtx
                  : normalizep == -1 ? constm1_rtx
--- 2743,2749 ----
        last = get_last_insn ();
  
        comparison = compare_from_rtx (op0, op1, code, unsignedp, mode, 0, 0);
!       if (comparison && GET_CODE (comparison) == CONST_INT)
          return (comparison == const0_rtx ? const0_rtx
                  : normalizep == 1 ? const1_rtx
                  : normalizep == -1 ? constm1_rtx
Technical Details
Message-ID: <9210161155.AA05007@risbe.local>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!astbe.UUCP!eh

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!astbe.UUCP!eh
From: eh@astbe.UUCP (H.Dr.Ehling)
Subject: gcc-2.2.2, core in expmed.c
Message-ID: <9210161155.AA05007@risbe.local>
Sender: gnulists@ai.mit.edu
Reply-To: astbe!eh@risbe.ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 16 Oct 1992 11:55:52 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 48