summaryrefslogtreecommitdiff
path: root/gcc/ada/init.c
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-02 09:52:36 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-02 09:52:36 +0000
commit77a37c057147e4181013130dd7300835b8e62912 (patch)
tree66eda9b2379067894b4934aa671276a216b4e153 /gcc/ada/init.c
parent229c2354d5315ae45932c64ce51fa35e7ad3436a (diff)
downloadgcc-77a37c057147e4181013130dd7300835b8e62912.tar.gz
2011-09-02 Vincent Celier <celier@adacore.com>
* prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Declare "gcc" as the compiler driver so Is_Compilable returns True for sources. * prj-nmsc.adb (Override_Kind): When Kind is Sep, set the source for the body. 2011-09-02 Ed Schonberg <schonberg@adacore.com> * sem_prag.adb (Analyze_PPC_In_Decl_Part): for a class-wide condition, a reference to a controlling formal must be interpreted as having the class-wide type (or an access to such) so that the inherited condition can be properly applied to any overriding operation (see ARM12 6.6.1 (7)). 2011-09-02 Tristan Gingold <gingold@adacore.com> * init.c (__gnat_is_vms_v7): Fix case and add prototype for LIB$GETSYI. 2011-09-02 Javier Miranda <miranda@adacore.com> * exp_ch3.adb (Expand_N_Object_Declaration): Do not copy the initializing expression of a class-wide interface object declaration if its type is limited. 2011-09-02 Johannes Kanig <kanig@adacore.com> * sem_util.adb (Unique_Name): To obtain a unique name for enumeration literals, take into account the type name; the type is *not* the scope for an enumeration literal. 2011-09-02 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Check_Overriding_Indicator): add special check to reject an overriding indicator on a user-defined Adjust subprogram for a limited controlled type. 2011-09-02 Ed Schonberg <schonberg@adacore.com> * sem_res.adb (Resolve_Actuals): add missing call to Resolve for an actual that is a function call returning an unconstrained limited controlled type. 2011-09-02 Tristan Gingold <gingold@adacore.com> * g-socthi-vms.adb (c_sendmsg, c_recvmsg): Use unpacked msg if on vms 7 2011-09-02 Johannes Kanig <kanig@adacore.com> * alfa.ads (Name_Of_Heap_Variable): Change value of the HEAP variable from "HEAP" to __HEAP Change comment that refers to that variable * put_alfa.adb: Change comment that refers to that variable git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178458 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/init.c')
-rw-r--r--gcc/ada/init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/init.c b/gcc/ada/init.c
index 02771d57c7c..0cf32e8166f 100644
--- a/gcc/ada/init.c
+++ b/gcc/ada/init.c
@@ -1749,6 +1749,8 @@ __gnat_set_features (void)
/* Return true if the VMS version is 7.x. */
+extern unsigned int LIB$GETSYI (int *, ...);
+
#define SYI$_VERSION 0x1000
int
@@ -1763,7 +1765,7 @@ __gnat_is_vms_v7 (void)
desc.mbz = 0;
desc.adr = version;
- status = lib$getsyi (&code, 0, &desc);
+ status = LIB$GETSYI (&code, 0, &desc);
if ((status & 1) == 1 && version[1] == '7' && version[2] == '.')
return 1;
else