This is the mail archive of the gcc-bugs@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]

Re: g++ in AIX 4.3


"Vasudeva Upadhya" <kvu@cfdrc.com> writes:

> On AIX 4.3 with gcc 2.95.2

You mean 4.3.0?  There are big differences between the 4.3.x versions.

> I get the following:
> 
> ld: 0711-302 ERROR: Object imageviewer.o, csect <_imageviewer.rw_cpp>
>         The csect is part of the .text section, and relocation entries
>         from the csect have been written to the .loader section.
> 
> this was mentioned in one of the maling thread.
> 
> AIX/g++ const structs containing function addresses fail
> Has it been fixed in the current snapshot of gcc.

Without a more specific bug report, I can't really help you much,
other than to say that there is only one known problem with g++ on AIX
4.3.3, which is related to static templated data, which this isn't.
So it may very well be fixed.

The following short program compiles and links OK under a relatively
recent g++:

----------
extern int foo(int);

struct foos { int (*foop)(int);  };
const struct foos food = { &foo };

int main()
{ return 0; }
----------
-- 
- Geoffrey Keating <geoffk@cygnus.com>

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