Bug 158863

Summary: Line removing -fno-rtti and -fno-exceptions in gcc4.spec has no effect
Product: [Fedora] Fedora Reporter: Robin Green <greenrd>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-26 12:52:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robin Green 2005-05-26 12:24:17 UTC
Description of problem:
The following line in gcc4.spec has no effect:

OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e 's/-fno-exceptions//g'`

because it is immediately followed by this line:

OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g'`

which throws away the old value of $OPT_FLAGS. The line should be removed (if
unneeded) or corrected (if needed).

Version-Release number of selected component (if applicable):
gcc-4.0.0-8

Comment 1 Jakub Jelinek 2005-05-26 12:52:19 UTC
The first line is not needed, I have removed it from CVS so that it doesn't
confuse.  Will show up in the next build, but as it is actually not any bug,
might not make into FC4 release.