public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* How to get the Tree ARRAY_TYPE declaration size
@ 2010-03-23  2:23 Massimo Nazaria
  2010-03-23  2:46 ` Ian Lance Taylor
  0 siblings, 1 reply; 3+ messages in thread
From: Massimo Nazaria @ 2010-03-23  2:23 UTC (permalink / raw)
  To: gcc

Hi everyone!

I need to get the array size from a declaration like "int v[100]" (here the size is "100").

For example:
  if (TREE_CODE (TREE_TYPE (var))) == ARRAY_TYPE) {
    int array_size = // ...here I want to get the size
  }

How can I do?

Thank you
Max





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

end of thread, other threads:[~2010-03-23 22:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-23  2:23 How to get the Tree ARRAY_TYPE declaration size Massimo Nazaria
2010-03-23  2:46 ` Ian Lance Taylor
2010-03-23 22:30   ` Max N.

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