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]

[Bug optimization/13194] -O2 causes compiler hang , -Os causes ICE


------- Additional Comments From bryner at brianryner dot com  2003-11-26 02:02 -------
Created an attachment (id=5216)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5216&action=view)
unreduced testcase

$ c++ -Os -o foo.o -c nsAppFileLocationProvider.i
../../../../mozilla/xpcom/io/nsAppFileLocationProvider.cpp: In member function
`virtual nsresult nsPathsDirectoryEnumerator::HasMoreElements(PRBool*)':
../../../../mozilla/xpcom/io/nsAppFileLocationProvider.cpp:528: internal
compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.



$ c++ -O2 -o foo.o -c nsAppFileLocationProvider.i
(hangs)

The testcase compiles with -O1 or without -O.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13194


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