This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c/8962: "-O2 -mmmx" makes gcc seg fault


Hi Mack,

> i removed all functions except the one that makes gcc crash. I have also 
> removed some parts of the code in this function. The file is now ~14000 
> lines of code, where the function is ~3000 lines and the rest are types, 
> forward declarations, etc..
> 
> If i try to remove any more code in the function the compiler won't crash. 
> Even if i remove something simple as an assignment the compiler starts to 
> work. I have also noticed that if i remove an unused type (e.g. typedef 
> _fpos_t fpos_t;) the compiler starts to work.
> 
> Basically i'm stuck, i can't get it smaller than this. Do you have any 
> "tricks" to reduce the size?

If you can't shorten the testcase further, then so be it. There just seem 
to be such reports. If you want to try something else, there is a project 
for automatic reduction of testcases. I haven't tried it myself, and it is 
said to be slow, but maybe you want something that runs during the night, 
or on a weekend. Take a look at the Delta Debugging project at
  http://www.st.cs.uni-sb.de/dd/

If you send it to me in private mail, I can attach your somewhat-reduced
testcase to the PR.

Regards
  Wolfgang

-------------------------------------------------------------------------
Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                               www: http://www.ticam.utexas.edu/~bangerth



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]