octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warnings during Cygwin build using gcc 3.3


From: David Bateman
Subject: Re: Warnings during Cygwin build using gcc 3.3
Date: Sat, 03 Sep 2005 21:50:37 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

James R. Phillips a écrit :

I recently built script from source on cygwin, so I could capture build records
for post-build inspection.  Looking at the typescript file after building
octave 2.1.71 on cygwin (using gcc 3.3.3), I see quite a few messages like
this:

/home/dad/sources/octave/2.1.71/gcc3.3.3/octave-2.1.71/liboctave/Array.h:220:
wa
rning: variable `Array<Complex>* const this' might be clobbered by `longjmp' or
`vfork'

Some of the warnings are associated with the c++ libraries/headers, e.g.

/usr/include/c++/3.3.3/bits/stl_vector.h:265: warning: variable
`std::vector<octave_value, std::allocator<octave_value> >* const this' might be
clobbered by `longjmp' or `vfork'

As I understand it, the cygwin C++ runtime uses setjmp/longjmp extensively. Could differences in the gcc 3.3 vs 3.4 runtime libraries be responsible for
the failure of builds using gcc 3.4 to run properly?  I.e., could it be that
the compiler warnings are problems in fact for gcc 3.4 but not for gcc 3.3?

No, this just means that some variable needs to be declared as "volatile" at line 265 of stl_vector.h..

Cheers
David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]