Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ce8cddc1
Commit
ce8cddc1
authored
May 31, 2015
by
Eric Botcazou
Committed by
Eric Botcazou
May 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* s-oscons-tmplt.c: Add explicit tests for Android alongside Linux.
From-SVN: r223900
parent
fee22a80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
gcc/ada/ChangeLog
+4
-0
gcc/ada/s-oscons-tmplt.c
+7
-6
No files found.
gcc/ada/ChangeLog
View file @
ce8cddc1
2015
-
05
-
31
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
s
-
oscons
-
tmplt
.
c
:
Add
explicit
tests
for
Android
alongside
Linux
.
2015
-
05
-
30
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
2015
-
05
-
30
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
adaint
.
c
:
Test
for
__linux__
instead
of
linux
and
__sun__
instead
*
adaint
.
c
:
Test
for
__linux__
instead
of
linux
and
__sun__
instead
...
...
gcc/ada/s-oscons-tmplt.c
View file @
ce8cddc1
...
@@ -86,7 +86,7 @@ pragma Style_Checks ("M32766");
...
@@ -86,7 +86,7 @@ pragma Style_Checks ("M32766");
** a number of non-POSIX but useful/required features.
** a number of non-POSIX but useful/required features.
**/
**/
#if defined (__linux__)
#if defined (__linux__)
|| defined (__ANDROID__)
/* Define _XOPEN_SOURCE to get IOV_MAX */
/* Define _XOPEN_SOURCE to get IOV_MAX */
# if !defined (_XOPEN_SOURCE)
# if !defined (_XOPEN_SOURCE)
...
@@ -157,7 +157,7 @@ pragma Style_Checks ("M32766");
...
@@ -157,7 +157,7 @@ pragma Style_Checks ("M32766");
# include <_types.h>
# include <_types.h>
#endif
#endif
#if
def __linux__
#if
defined (__linux__) || defined (__ANDROID__)
# include <pthread.h>
# include <pthread.h>
# include <signal.h>
# include <signal.h>
#endif
#endif
...
@@ -1191,7 +1191,7 @@ CND(MSG_WAITALL, "Wait for full reception")
...
@@ -1191,7 +1191,7 @@ CND(MSG_WAITALL, "Wait for full reception")
#endif
#endif
CND
(
MSG_NOSIGNAL
,
"No SIGPIPE on send"
)
CND
(
MSG_NOSIGNAL
,
"No SIGPIPE on send"
)
#if
def __linux__
#if
defined (__linux__) || defined (__ANDROID__)
# define MSG_Forced_Flags "MSG_NOSIGNAL"
# define MSG_Forced_Flags "MSG_NOSIGNAL"
#else
#else
# define MSG_Forced_Flags "0"
# define MSG_Forced_Flags "0"
...
@@ -1356,7 +1356,7 @@ CND(SIZEOF_struct_hostent, "struct hostent")
...
@@ -1356,7 +1356,7 @@ CND(SIZEOF_struct_hostent, "struct hostent")
#define SIZEOF_struct_servent (sizeof (struct servent))
#define SIZEOF_struct_servent (sizeof (struct servent))
CND
(
SIZEOF_struct_servent
,
"struct servent"
)
CND
(
SIZEOF_struct_servent
,
"struct servent"
)
#if defined (__linux__)
#if defined (__linux__)
|| defined (__ANDROID__)
#define SIZEOF_sigset (sizeof (sigset_t))
#define SIZEOF_sigset (sizeof (sigset_t))
CND
(
SIZEOF_sigset
,
"sigset"
)
CND
(
SIZEOF_sigset
,
"sigset"
)
#endif
#endif
...
@@ -1456,7 +1456,8 @@ CND(CLOCK_THREAD_CPUTIME_ID, "Thread CPU clock")
...
@@ -1456,7 +1456,8 @@ CND(CLOCK_THREAD_CPUTIME_ID, "Thread CPU clock")
CNS
(
CLOCK_RT_Ada
,
""
)
CNS
(
CLOCK_RT_Ada
,
""
)
#endif
#endif
#if defined (__APPLE__) || defined (__linux__) || defined (DUMMY)
#if defined (__APPLE__) || defined (__linux__) || defined (__ANDROID__) \
|| defined (DUMMY)
/*
/*
-- Sizes of pthread data types
-- Sizes of pthread data types
...
@@ -1499,7 +1500,7 @@ CND(PTHREAD_RWLOCKATTR_SIZE, "pthread_rwlockattr_t")
...
@@ -1499,7 +1500,7 @@ CND(PTHREAD_RWLOCKATTR_SIZE, "pthread_rwlockattr_t")
CND
(
PTHREAD_RWLOCK_SIZE
,
"pthread_rwlock_t"
)
CND
(
PTHREAD_RWLOCK_SIZE
,
"pthread_rwlock_t"
)
CND
(
PTHREAD_ONCE_SIZE
,
"pthread_once_t"
)
CND
(
PTHREAD_ONCE_SIZE
,
"pthread_once_t"
)
#endif
/* __APPLE__ || __linux__ */
#endif
/* __APPLE__ || __linux__
|| __ANDROID__
*/
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment