🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #46515

compile same source with and w/o optimization. 1 crashes, 1 doesn't!

#46515
From: Richard Ross
Date: Fri, 11 Nov 1994 00:41
18 lines
1260 bytes
	An executable generated using gcc with the -g option
does not crash but another exe generated ugin the same source
but with optimizing level set to -o2 crashes. whu??
	Is it because optimizing causes some run time errors that
do not occur in non-optimized code?

	Also, when the non-optimized exe is stripped and run, it
doesn't crash.
	Any hint as to what is happening and how to tackle it 
would be appreciated.
	Any thoughts?
		-Richard Ross

-- 
******************************
	Richard Ross
	ross@charlie.ece.scarolina.edu
************************
Technical Details
Message-ID: <ross.784514307@crusher>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!usceast!crusher!ross

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,27459046b30e66f2,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-11-11 01:06:27 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!usceast!crusher!ross
From: ross@charlie.ece.scarolina.edu (Richard Ross)
Newsgroups: gnu.gcc.help
Subject: compile same source with and w/o optimization. 1 crashes, 1 doesn't!
Date: 10 Nov 1994 19:41:59 -0500
Organization: Univ of S. Carolina, ECE Dept
Lines: 18
Message-ID: <ross.784514307@crusher>
NNTP-Posting-Host: crusher.ece.scarolina.edu
Summary: why would one exe crash and 1 not from same executable?
Keywords: gcc, gnu, sun