Package: src:gcc-7-cross-ports Followup-For: Bug #862927 User: debian-68k@lists.debian.org Usertags: m68k
Hello! I had a go at this and came up with the attached patch which fixes the problem for me. With the patch applied, I can build a gnat cross-compiler for m68k. Cheers, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
--- a/src/gcc/ada/system-linux-m68k.ads.orig 2016-12-05 12:27:55.000000000 +0100 +++ b/src/gcc/ada/system-linux-m68k.ads 2017-07-14 16:07:32.442768480 +0200 @@ -40,6 +40,9 @@ -- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada -- 2005, this is Pure in any case (AI-362). + pragma No_Elaboration_Code_All; + -- Allow the use of that restriction in units that WITH this unit + type Name is (SYSTEM_NAME_GNAT); System_Name : constant Name := SYSTEM_NAME_GNAT; @@ -126,7 +129,7 @@ -- of the individual switch values. Backend_Divide_Checks : constant Boolean := False; - Backend_Overflow_Checks : constant Boolean := False; + Backend_Overflow_Checks : constant Boolean := True; Command_Line_Args : constant Boolean := True; Configurable_Run_Time : constant Boolean := False; Denorm : constant Boolean := True;