This is the mail archive of the gcc@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: Add uninitialized attribute?


On 2010-08-30 14:46:57 +0200, Michael Matz wrote:
> int x = x;
> 
> is the way GCC offers this idiom since about forever, no need for an 
> attribute.  Downthread I see that people worry about this generating an 
> actual (uninitialized) access to x.  They are confused.

This is not a good idea as "int x = x;" may really generate an
(uninitialized) access to x with other compilers.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)


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