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 objc++/35967] Local variables interpreted as volatile following a @try block



------- Comment #3 from pinskia at gmail dot com  2008-04-18 00:17 -------
Subject: Re:  Local variables interpreted as volatile following a @try block

On Thu, Apr 17, 2008 at 4:41 PM, ymeroz at earthlink dot net
<gcc-bugzilla@gcc.gnu.org> wrote:
>  This is a language syntax issue, as I see it. Variable type can not change by
>  itself in mid-scope in C++ or Obj-C. This is not an issue of runtime
>  implementation.

It is a little of both really. The way the runtime implements @throw
is via setjmp/longjmp and the compiler has to change them to volatile
variables.  I told Apple not to do this but I guess they never
understood how exceptions are used.

Thanks,
Andrew Pinski


-- 


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


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