Bug#330857: segmentation fault compiling ace

2005-10-02 Thread Nicolas François
Hello, I've not been able to preprocess ServicesC.cpp with cpp-4.0 and cpp-3.4. Please find attached a smaller test. running cpp -I.. test.c in the tao directory reproduce the ICE. cpp-3.3 can preprocess this test (19 lines), cpp-3.4 and cpp-4.0 can't. My cpp versions: ii cpp-3.33.3.6-

Re: strange behaviour of -O2 optimization

2004-01-06 Thread Nicolas François
On Mon, Jan 05, 2004 at 07:03:55PM -0500, Daniel Jacobowitz wrote: > On Tue, Jan 06, 2004 at 12:02:29AM +0100, Nicolas François wrote: > > #define LOW_WORD(x) (word)(x) > > #define HIGH_WORD(x) (*(((word *)&(x))+1)) > > You can't do this. I recommend you goog

strange behaviour of -O2 optimization

2004-01-05 Thread Nicolas François
Hello, I had a look at the debian bug #225313. This bug only raise raise when optimization is used. I've submitted a patch, but would like to understand if gcc behaviour was normal. I've selected a sample of code that should raise the same issue: