This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

coffcode.h uses non-ISO-C: int a[f()];


Hello,

coffcode.h contains the gccism:

diff -p -r1.29 coffcode.h
*** coffcode.h  2000/02/10 21:21:55     1.29
--- coffcode.h  2000/02/15 08:10:45
*************** coff_set_arch_mach_hook (abfd, filehdr)
*** 1880,1886 ****
              cputype = 0;
            else
              {
!               bfd_byte buf[bfd_coff_symesz (abfd)];
                struct internal_syment sym;
  
                if (bfd_seek (abfd, obj_sym_filepos (abfd), SEEK_SET) !=
0

which stops it being compiled by AIX's native compiler - a constant is
needed.

Roughtly, what is the correct way if fixing this?  alloca() or
bfd_malloc() / bfd_free()?

	Andrew

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