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: [RFC] ABI change for variable sized types


On Wed, Jul 14, 2004 at 02:59:14PM -0700, Joe Buck wrote:
> Does anyone know how other compiler vendors approach this problem?
> Intel, for example?

Intel doesn't support the variable sized structure type extension
as implemented in gcc.

------
void foo(int n)
{
  struct s { int a; char b[n]; char c[n]; };
}
------
z.c(3): warning #1361: variable-length array field type will be treated as
zero-length array field type
    struct s { int a; char b[n]; char c[n]; };
                             ^
z.c(3): warning #1361: variable-length array field type will be treated as
zero-length array field type
    struct s { int a; char b[n]; char c[n]; };
                                        ^
-----

I can't figure out what Intel's Ada story is.  A search with Intel's
widget only pulls up the Americans with Disabilities Act; a search
with google pulls up the ActivAda product, but I can't seem to get
any more information about it.


r~


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