Bug 704671 - -O3 produces 0-length object!
Summary: -O3 produces 0-length object!
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-13 23:47 UTC by Neal Becker
Modified: 2011-05-16 11:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-16 11:47:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
preprocessed (112.38 KB, application/x-bzip)
2011-05-13 23:47 UTC, Neal Becker
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.