aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_attr.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2014-08-01 09:48:28 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2014-08-01 11:48:28 +0200
commit21c51f53f0145dd812b2231e03116f49fadcd004 (patch)
tree7c810264a3539640bd067d4d280ad030675b8833 /gcc/ada/sem_attr.adb
parent78433fec9a19c808d0b442741ad9ebb7b84389ef (diff)
downloadgcc-21c51f53f0145dd812b2231e03116f49fadcd004.zip
gcc-21c51f53f0145dd812b2231e03116f49fadcd004.tar.gz
gcc-21c51f53f0145dd812b2231e03116f49fadcd004.tar.bz2
a-numaux-vxworks.ads, [...]: Fix bad package header comments.
2014-08-01 Robert Dewar <dewar@adacore.com> * a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads, a-numaux-darwin.adb, a-numaux-darwin.ads, a-numaux.ads, a-numaux-libc-x86.ads: Fix bad package header comments. * elists.ads, elists.adb (Append_New_Elmt): New procedure. * gnat_rm.texi, a-calend.adb, gnatcmd.adb, einfo.adb, einfo.ads, checks.adb, sem_prag.adb, sem_prag.ads, rtsfind.ads, freeze.adb, sem_util.adb, sem_attr.adb, exp_dbug.adb, exp_dbug.ads, gnat1drv.adb, targparm.adb, targparm.ads, exp_ch6.adb, switch-b.adb, s-shasto.ads, stand.ads, s-auxdec.ads, opt.adb, opt.ads, mlib-tgt.ads, s-fatgen.adb, s-fatgen.ads, system.ads, snames.ads-tmpl, s-stalib.ads, s-os_lib.adb: Remove VMS-specific code. From-SVN: r213437
Diffstat (limited to 'gcc/ada/sem_attr.adb')
-rw-r--r--gcc/ada/sem_attr.adb39
1 files changed, 1 insertions, 38 deletions
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb
index e0d2d9e..599212f 100644
--- a/gcc/ada/sem_attr.adb
+++ b/gcc/ada/sem_attr.adb
@@ -6264,11 +6264,7 @@ package body Sem_Attr is
-- Mark this component as processed
else
- if No (Comps) then
- Comps := New_Elmt_List;
- end if;
-
- Append_Elmt (Comp_Or_Discr, Comps);
+ Append_New_Elmt (Comp_Or_Discr, Comps);
end if;
end if;
@@ -6787,9 +6783,6 @@ package body Sem_Attr is
-- Computes the Fore value for the current attribute prefix, which is
-- known to be a static fixed-point type. Used by Fore and Width.
- function Is_VAX_Float (Typ : Entity_Id) return Boolean;
- -- Determine whether Typ denotes a VAX floating point type
-
function Mantissa return Uint;
-- Returns the Mantissa value for the prefix type
@@ -6921,16 +6914,6 @@ package body Sem_Attr is
return R;
end Fore_Value;
- ------------------
- -- Is_VAX_Float --
- ------------------
-
- function Is_VAX_Float (Typ : Entity_Id) return Boolean is
- pragma Unreferenced (Typ);
- begin
- return False;
- end Is_VAX_Float;
-
--------------
-- Mantissa --
--------------
@@ -7953,16 +7936,6 @@ package body Sem_Attr is
Fold_Uint (N, Expr_Value (Lo_Bound), Static);
end if;
- -- Replace VAX Float_Type'First with a reference to the temporary
- -- which represents the low bound of the type. This transformation
- -- is needed since the back end cannot evaluate 'First on VAX.
-
- elsif Is_VAX_Float (P_Type)
- and then Nkind (Lo_Bound) = N_Identifier
- then
- Rewrite (N, New_Occurrence_Of (Entity (Lo_Bound), Sloc (N)));
- Analyze (N);
-
else
Check_Concurrent_Discriminant (Lo_Bound);
end if;
@@ -8206,16 +8179,6 @@ package body Sem_Attr is
Fold_Uint (N, Expr_Value (Hi_Bound), Static);
end if;
- -- Replace VAX Float_Type'Last with a reference to the temporary
- -- which represents the high bound of the type. This transformation
- -- is needed since the back end cannot evaluate 'Last on VAX.
-
- elsif Is_VAX_Float (P_Type)
- and then Nkind (Hi_Bound) = N_Identifier
- then
- Rewrite (N, New_Occurrence_Of (Entity (Hi_Bound), Sloc (N)));
- Analyze (N);
-
else
Check_Concurrent_Discriminant (Hi_Bound);
end if;