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]
Other format: [Raw text]

[Bug ada/80117] a-cfinve.ads:245:04: warning: types for unchecked conversion have different sizes


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80117

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[7 regression]              |a-cfinve.ads:245:04:
                   |a-cfinve.ads:245:04:        |warning: types for
                   |warning: types for          |unchecked conversion have
                   |unchecked conversion have   |different sizes
                   |different sizes             |

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Yes, but they still used system-linux-x86_64.ads, and I had added a patch to
> use system-linux-x86.ads for ILP32.
> 
> https://build.opensuse.org/package/view_file/devel:ARM:Factory:Contrib:ILP32/
> gcc6/aarch64-ilp32.patch?expand=1

OK, so not a regression, system-linux-arm.ads and system-linux-x86_64.ads are
essentially identical in any case:

--- system-linux-arm.ads        2017-03-08 09:29:02.571726543 +0100
+++ /home/eric/svn/gcc-6-branch/gcc/ada/system-linux-x86_64.ads 2016-04-15
18:22:46.806339091 +0200
@@ -5,9 +5,9 @@
 --                               S Y S T E M                                --
 --                                                                          --
 --                                 S p e c                                  --
---                        (GNU-Linux/ARM Version)                           --
+--                       (GNU-Linux/x86-64 Version)                         --
 --                                                                          --
---          Copyright (C) 1992-2017, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2015, Free Software Foundation, Inc.         --
 --                                                                          --
 -- This specification is derived from the Ada Reference Manual for use with --
 -- GNAT. The copyright notice above, and the license provisions that follow --
@@ -89,8 +89,7 @@
    --  Other System-Dependent Declarations

    type Bit_Order is (High_Order_First, Low_Order_First);
-   Default_Bit_Order : constant Bit_Order :=
-                         Bit_Order'Val (Standard'Default_Bit_Order);
+   Default_Bit_Order : constant Bit_Order := Low_Order_First;
    pragma Warnings (Off, Default_Bit_Order); -- kill constant condition
warning

    --  Priority-related Declarations (RM D.1)


Please submit the support for ILP32 on gcc-patches@, it's not too late for
GCC7.

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