public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Variable order and location within the section - optimization level dependent
@ 2013-10-16 11:25 Janáček Jiří
  2013-10-16 13:55 ` Ian Lance Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Janáček Jiří @ 2013-10-16 11:25 UTC (permalink / raw)
  To: gcc-help

Hello all,

We have discussed the topic regarding the compiler flag  -fno-toplevel-reorder and relative stuff at the GCC ARM forum (https://answers.launchpad.net/gcc-arm-embedded/+question/237324).

GCC documentation (http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options) states:

"Do not reorder top-level functions, variables, and asm statements. Output them in the same order that they appear in the input file. When this option is used, unreferenced static variables are not removed. This option is intended to support existing code that relies on a particular ordering. For new code, it is better to use attributes."


The major question sounds - which attributes should be applied in such a case?

Many thanks in advance,
Best regards,
JiriJ

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

end of thread, other threads:[~2013-10-21 15:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-16 11:25 Variable order and location within the section - optimization level dependent Janáček Jiří
2013-10-16 13:55 ` Ian Lance Taylor
2013-10-16 14:06   ` Janáček Jiří
2013-10-16 14:30     ` Ian Lance Taylor
2013-10-17  7:46       ` Janáček Jiří
2013-10-17 16:02         ` Ian Lance Taylor
     [not found]       ` <CAKOQZ8xcYOortK4XfwKLcom9hGzx_33if+TKQMnuRW-RHiXVDQ@mail.g mail.com>
2013-10-21  9:47         ` Fabian Cenedese
2013-10-21 15:12           ` Ian Lance Taylor

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).