Commit 556d1a44 by Arnaud Charlet

[multiple changes]

2015-05-26  Doug Rupp  <rupp@adacore.com>

	* 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  <dewar@adacore.com>

	* sem_aux.adb, sem_disp.adb, sem_util.ads: Add comment.
	* sem_util.adb: Minor reformatting

From-SVN: r223675
parent 90a4b336
2015-05-26 Doug Rupp <rupp@adacore.com>
* 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 <dewar@adacore.com>
* sem_aux.adb, sem_disp.adb, sem_util.ads: Add comment.
* sem_util.adb: Minor reformatting
2015-05-26 Yannick Moy <moy@adacore.com> 2015-05-26 Yannick Moy <moy@adacore.com>
* inline.adb (Has_Initialized_Type): Adapt to new names. * inline.adb (Has_Initialized_Type): Adapt to new names.
......
...@@ -34,12 +34,7 @@ ...@@ -34,12 +34,7 @@
structure is different for vxsim vs. real hardware. */ structure is different for vxsim vs. real hardware. */
#undef CPU #undef CPU
#define CPU __VXSIM_CPU__
#ifndef __RTP__
#define CPU SIMNT
#else
#define CPU SIMPENTIUM
#endif
#include "vxWorks.h" #include "vxWorks.h"
#include "tconfig.h" #include "tconfig.h"
......
...@@ -481,6 +481,7 @@ package body Sem_Aux is ...@@ -481,6 +481,7 @@ package body Sem_Aux is
if Ekind (E) = E_String_Literal_Subtype then if Ekind (E) = E_String_Literal_Subtype then
return String_Literal_Low_Bound (E); return String_Literal_Low_Bound (E);
else else
-- Why is this not Type_Low_Bound (E)???
return Low_Bound (Scalar_Range (E)); return Low_Bound (Scalar_Range (E));
end if; end if;
end Get_Low_Bound; end Get_Low_Bound;
......
...@@ -2243,6 +2243,9 @@ package body Sem_Disp is ...@@ -2243,6 +2243,9 @@ package body Sem_Disp is
-- Is_Overriding_Subprogram -- -- 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 function Is_Overriding_Subprogram (E : Entity_Id) return Boolean is
Inherited : constant Subprogram_List := Inherited_Subprograms (E); Inherited : constant Subprogram_List := Inherited_Subprograms (E);
begin begin
......
...@@ -5683,7 +5683,6 @@ package body Sem_Util is ...@@ -5683,7 +5683,6 @@ package body Sem_Util is
begin begin
Encl_Unit := Enclosing_Comp_Unit_Node (N); Encl_Unit := Enclosing_Comp_Unit_Node (N);
while Present (Encl_Unit) while Present (Encl_Unit)
and then Nkind (Unit (Encl_Unit)) = N_Subunit and then Nkind (Unit (Encl_Unit)) = N_Subunit
loop loop
......
...@@ -537,7 +537,7 @@ package Sem_Util is ...@@ -537,7 +537,7 @@ package Sem_Util is
-- or indirectly (through a subunit) at the root of a subtree containing -- 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 -- N. This may be either the same as Enclosing_Comp_Unit_Node, or if
-- Enclosing_Comp_Unit_Node returns a subunit, then the corresponding -- 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; function Enclosing_CPP_Parent (Typ : Entity_Id) return Entity_Id;
-- Returns the closest ancestor of Typ that is a CPP type. -- Returns the closest ancestor of Typ that is a CPP type.
......
...@@ -314,7 +314,7 @@ TCR("ldmfd sp, {r"S(CFA_REG)", fp, sp, pc}") ...@@ -314,7 +314,7 @@ TCR("ldmfd sp, {r"S(CFA_REG)", fp, sp, pc}")
#elif defined (i386) #elif defined (i386)
#if CPU == SIMNT || CPU == SIMPENTIUM #if CPU == SIMNT || CPU == SIMPENTIUM || CPU == SIMLINUX
#define COMMON_CFI(REG) \ #define COMMON_CFI(REG) \
".cfi_offset " S(REGNO_##REG) "," S(REG_SET_##REG) ".cfi_offset " S(REGNO_##REG) "," S(REG_SET_##REG)
#else #else
......
...@@ -34,12 +34,7 @@ ...@@ -34,12 +34,7 @@
********************************************************/ ********************************************************/
#undef CPU #undef CPU
#define CPU __VXSIM_CPU__
#ifndef __RTP__
#define CPU SIMNT
#else
#define CPU SIMPENTIUM
#endif
#include "sigtramp.h" #include "sigtramp.h"
/* See sigtramp.h for a general explanation of functionality. */ /* See sigtramp.h for a general explanation of functionality. */
......
...@@ -62,7 +62,7 @@ typedef struct ucontext ...@@ -62,7 +62,7 @@ typedef struct ucontext
system headers so call it something unique. */ system headers so call it something unique. */
typedef void __sigtramphandler_t (int signo, void *siginfo, void *sigcontext); 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. */ /* Vxsim requires a specially compiled handler. */
void __gnat_sigtramp_vxsim (int signo, void *siginfo, void *sigcontext, void __gnat_sigtramp_vxsim (int signo, void *siginfo, void *sigcontext,
__sigtramphandler_t * handler); __sigtramphandler_t * handler);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment