From: Arnaud Charlet Date: Tue, 26 May 2015 09:42:58 +0000 (+0200) Subject: [multiple changes] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=556d1a44c8c7d5d72b0ee30146128013bde4f2af;p=gcc.git [multiple changes] 2015-05-26 Doug Rupp * init-vxsim.c (CPU): define as __VXSIM_CPU__ * sigtramp-vxworks-vxsim.c (CPU): Likewise. sigtramp-vxworks-target.inc: Add check for SIMLINUX. * sigtramp.h: Likewise. 2015-05-26 Robert Dewar * sem_aux.adb, sem_disp.adb, sem_util.ads: Add comment. * sem_util.adb: Minor reformatting From-SVN: r223675 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 960a118b110..c6e49b6ddab 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,15 @@ +2015-05-26 Doug Rupp + + * init-vxsim.c (CPU): define as __VXSIM_CPU__ + * sigtramp-vxworks-vxsim.c (CPU): Likewise. + sigtramp-vxworks-target.inc: Add check for SIMLINUX. + * sigtramp.h: Likewise. + +2015-05-26 Robert Dewar + + * sem_aux.adb, sem_disp.adb, sem_util.ads: Add comment. + * sem_util.adb: Minor reformatting + 2015-05-26 Yannick Moy * inline.adb (Has_Initialized_Type): Adapt to new names. diff --git a/gcc/ada/init-vxsim.c b/gcc/ada/init-vxsim.c index f3c05f167b2..9466dbc7915 100644 --- a/gcc/ada/init-vxsim.c +++ b/gcc/ada/init-vxsim.c @@ -34,12 +34,7 @@ structure is different for vxsim vs. real hardware. */ #undef CPU - -#ifndef __RTP__ -#define CPU SIMNT -#else -#define CPU SIMPENTIUM -#endif +#define CPU __VXSIM_CPU__ #include "vxWorks.h" #include "tconfig.h" diff --git a/gcc/ada/sem_aux.adb b/gcc/ada/sem_aux.adb index 63f74d9d63c..97a6e1b4061 100644 --- a/gcc/ada/sem_aux.adb +++ b/gcc/ada/sem_aux.adb @@ -481,6 +481,7 @@ package body Sem_Aux is if Ekind (E) = E_String_Literal_Subtype then return String_Literal_Low_Bound (E); else + -- Why is this not Type_Low_Bound (E)??? return Low_Bound (Scalar_Range (E)); end if; end Get_Low_Bound; diff --git a/gcc/ada/sem_disp.adb b/gcc/ada/sem_disp.adb index 52eda74da9b..1cbaef354b0 100644 --- a/gcc/ada/sem_disp.adb +++ b/gcc/ada/sem_disp.adb @@ -2243,6 +2243,9 @@ package body Sem_Disp is -- Is_Overriding_Subprogram -- ------------------------------ + -- Seems inefficient, build a whole list of subprograms to see if it + -- is non-empty??? + function Is_Overriding_Subprogram (E : Entity_Id) return Boolean is Inherited : constant Subprogram_List := Inherited_Subprograms (E); begin diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index 99bf2bab030..b2f6a5727da 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -5683,7 +5683,6 @@ package body Sem_Util is begin Encl_Unit := Enclosing_Comp_Unit_Node (N); - while Present (Encl_Unit) and then Nkind (Unit (Encl_Unit)) = N_Subunit loop diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads index 8394b105586..f899e759c8f 100644 --- a/gcc/ada/sem_util.ads +++ b/gcc/ada/sem_util.ads @@ -537,7 +537,7 @@ package Sem_Util is -- or indirectly (through a subunit) at the root of a subtree containing -- N. This may be either the same as Enclosing_Comp_Unit_Node, or if -- Enclosing_Comp_Unit_Node returns a subunit, then the corresponding - -- library unit. + -- library unit. If no such item is found, returns Empty??? function Enclosing_CPP_Parent (Typ : Entity_Id) return Entity_Id; -- Returns the closest ancestor of Typ that is a CPP type. diff --git a/gcc/ada/sigtramp-vxworks-target.inc b/gcc/ada/sigtramp-vxworks-target.inc index c89ece0cf0e..f31594d68b9 100644 --- a/gcc/ada/sigtramp-vxworks-target.inc +++ b/gcc/ada/sigtramp-vxworks-target.inc @@ -314,7 +314,7 @@ TCR("ldmfd sp, {r"S(CFA_REG)", fp, sp, pc}") #elif defined (i386) -#if CPU == SIMNT || CPU == SIMPENTIUM +#if CPU == SIMNT || CPU == SIMPENTIUM || CPU == SIMLINUX #define COMMON_CFI(REG) \ ".cfi_offset " S(REGNO_##REG) "," S(REG_SET_##REG) #else diff --git a/gcc/ada/sigtramp-vxworks-vxsim.c b/gcc/ada/sigtramp-vxworks-vxsim.c index 7e9f2b8aa81..918d9e5d4fa 100644 --- a/gcc/ada/sigtramp-vxworks-vxsim.c +++ b/gcc/ada/sigtramp-vxworks-vxsim.c @@ -34,12 +34,7 @@ ********************************************************/ #undef CPU - -#ifndef __RTP__ -#define CPU SIMNT -#else -#define CPU SIMPENTIUM -#endif +#define CPU __VXSIM_CPU__ #include "sigtramp.h" /* See sigtramp.h for a general explanation of functionality. */ diff --git a/gcc/ada/sigtramp.h b/gcc/ada/sigtramp.h index 2be20e5c3ec..bf872f5da02 100644 --- a/gcc/ada/sigtramp.h +++ b/gcc/ada/sigtramp.h @@ -62,7 +62,7 @@ typedef struct ucontext system headers so call it something unique. */ typedef void __sigtramphandler_t (int signo, void *siginfo, void *sigcontext); -#if CPU == SIMNT || CPU == SIMPENTIUM +#if CPU == SIMNT || CPU == SIMPENTIUM || CPU == SIMLINUX /* Vxsim requires a specially compiled handler. */ void __gnat_sigtramp_vxsim (int signo, void *siginfo, void *sigcontext, __sigtramphandler_t * handler);