public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Add uninitialized attribute?
@ 2010-08-20 20:36 H.J. Lu
  2010-08-20 20:51 ` Diego Novillo
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: H.J. Lu @ 2010-08-20 20:36 UTC (permalink / raw)
  To: GCC Development, Kreitzer, David L, Girkar, Milind

Hi,

Sometime I have to do

int x = 0;

to silence gcc from uninitialized warnings when I know it is
unnecessary.  Is that a good idea to add

int x __attribute__ ((uninitialized));

to tell compiler that it is OK for "x" to be uninitialized?

-- 
H.J.

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-08-31 14:57 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-20 20:36 Add uninitialized attribute? H.J. Lu
2010-08-20 20:51 ` Diego Novillo
2010-08-20 21:57 ` Ian Lance Taylor
2010-08-20 22:52   ` Bernd Schmidt
2010-08-20 23:29     ` H.J. Lu
2010-08-21  9:43       ` Mark Mitchell
2010-08-21 15:21         ` Kreitzer, David L
2010-08-21 22:48           ` Mark Mitchell
2010-08-21  1:05     ` Mark Mitchell
2010-08-21 15:23       ` David Brown
2010-08-21 11:46 ` Florian Weimer
2010-08-21 15:29   ` Andrew Haley
2010-08-21 16:07     ` Andrew Pinski
2010-08-21 18:50     ` Florian Weimer
2010-08-23 17:26   ` Richard Guenther
2010-08-30 16:42 ` Michael Matz
2010-08-30 16:46   ` Vincent Lefevre
2010-08-31 10:00     ` Andrew Haley
2010-08-31 16:13       ` Mark Mitchell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).