* gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jul 2011 21:13:49 +0000 (21:13 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jul 2011 21:13:49 +0000 (21:13 +0000)
range comparison if Pmode is SImode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176251 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c
gcc/ada/xeinfo.adb
gcc/ada/xsinfo.adb
gcc/ada/xsnamest.adb

index 652f33d..66bf974 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-13  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
+       range comparison if Pmode is SImode.
+
 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
            Eric Botcazou  <ebotcazou@adacore.com>
 
index 9b6e721..c607865 100644 (file)
@@ -2556,8 +2556,10 @@ build_vms_descriptor32 (tree type, Mechanism_Type mech, Entity_Id gnat_entity)
   tem = build_unary_op (ADDR_EXPR, pointer64_type,
                        build0 (PLACEHOLDER_EXPR, type));
   tem = build3 (COND_EXPR, pointer32_type,
-               build_binary_op (GE_EXPR, boolean_type_node, tem,
-                                build_int_cstu (pointer64_type, 0x80000000)),
+               Pmode != SImode
+               ? build_binary_op (GE_EXPR, boolean_type_node, tem,
+                                  build_int_cstu (pointer64_type, 0x80000000))
+               : boolean_false_node,
                build0 (PLACEHOLDER_EXPR, void_type_node),
                convert (pointer32_type, tem));
 
index cce5831..4df0974 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2010, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2011, Free Software Foundation, Inc.         --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
index 869ae87..41e86bc 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2010, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2011, Free Software Foundation, Inc.         --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
index d044fb1..a3f8ec3 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2011, Free Software Foundation, Inc.         --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --