http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47163

           Summary: Failure building target-libada for MingW64
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: vit...@vityan.sytes.net
              Host: x86_64-w64-mingw32
            Target: x86_64-w64-mingw32,i686-w64-mingw32
             Build: i686-pc-mingw32(msys)


Created attachment 22892
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22892
libada patch for MingW64 target

libada fails to build for MingW64 target.

I gonna touch 4 issues in this report.

1) Ada doesn't include winsock2.h leaving MSG_WAITALL undefined.
Affected file: gcc/ada/s-oscons-tmplt.c
2) PERSONALITY_FUNCTION doesnt have declaration(Cosmetic improvement -
Predeclaration exists for PERSONALITY functions of libgcc and libstdc++).
Affected file: gcc/ada/raise-gcc.c
3) Linked PE+(X64) static libada.a is not functional then exceptions are
needed(Undefined GNAT PERSONALITY symbol) due to incorrect exception handling
mechanism selected for x86_64-w64-mingw32 target.
Affected file: gcc/ada/gcc-interface/Makefile.in
4) Failure to link shared libada.dll for alternative target in multilib
configuration because arch-flag(-m32/-m64) is not passed to the linker(But
passed to compiler while building object files)
Affected file: gcc/ada/gcc-interface/Makefile.in


My patch to those 4 issues is attached.

Reply via email to