Bug 704671

Summary: -O3 produces 0-length object!
Product: [Fedora] Fedora Reporter: Neal Becker <ndbecker2>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: jakub, nickc
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-16 11:47:38 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:
Attachments:
Description Flags
preprocessed none

Description Neal Becker 2011-05-13 23:47:00 UTC
Created attachment 498878 [details]
preprocessed

Description of problem:

with -O3 0-length object is output.  With -save-temps it is not 0-length.
with -O2 it is not 0-length

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

gcc-4.6.0-6.fc15.x86_64

How reproducible:

100%

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jakub Jelinek 2011-05-14 06:42:58 UTC
I can't reproduce this.  Even if gcc produced zero-length assembly (which it doesn't), the corresponding object file wouldn't be zero-length.  So, either you have full disk, or assembler crashed.  You can strace -f it to see what was going on.

Comment 2 Neal Becker 2011-05-14 10:44:55 UTC
It appears this was due to corrupted .ccache!.  After rm -rf ~/.ccache, seems to be fixed.  What fun tracking this down.

So a defect in ccache.  But nasty.  No segfault, no errors.  Just quietly 0-length output.