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
640bd0bf
Commit
640bd0bf
authored
Mar 26, 2008
by
Arnaud Charlet
Committed by
Arnaud Charlet
Mar 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* adaint.c: Fix warnings.
From-SVN: r133595
parent
feb51530
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
gcc/ada/ChangeLog
+4
-0
gcc/ada/adaint.c
+11
-7
No files found.
gcc/ada/ChangeLog
View file @
640bd0bf
2008
-
03
-
26
Arnaud
Charlet
<
charlet
@
adacore
.
com
>
2008
-
03
-
26
Arnaud
Charlet
<
charlet
@
adacore
.
com
>
*
adaint
.
c
:
Fix
warnings
.
2008
-
03
-
26
Arnaud
Charlet
<
charlet
@
adacore
.
com
>
*
g
-
dirope
.
ads
,
g
-
dirope
.
adb
:
(
Dir_Type_Value
):
Moved
to
spec
.
*
g
-
dirope
.
ads
,
g
-
dirope
.
adb
:
(
Dir_Type_Value
):
Moved
to
spec
.
2008
-
03
-
26
Arnaud
Charlet
<
charlet
@
adacore
.
com
>
2008
-
03
-
26
Arnaud
Charlet
<
charlet
@
adacore
.
com
>
gcc/ada/adaint.c
View file @
640bd0bf
...
@@ -643,9 +643,9 @@ __gnat_get_debuggable_suffix_ptr (int *len, const char **value)
...
@@ -643,9 +643,9 @@ __gnat_get_debuggable_suffix_ptr (int *len, const char **value)
/* Returns the OS filename and corresponding encoding. */
/* Returns the OS filename and corresponding encoding. */
void
void
__gnat_os_filename
(
char
*
filename
,
char
*
w_filename
,
__gnat_os_filename
(
char
*
filename
,
char
*
w_filename
ATTRIBUTE_UNUSED
,
char
*
os_name
,
int
*
o_length
,
char
*
os_name
,
int
*
o_length
,
char
*
encoding
,
int
*
e_length
)
char
*
encoding
ATTRIBUTE_UNUSED
,
int
*
e_length
)
{
{
#if defined (_WIN32) && ! defined (__vxworks) && ! defined (CROSS_DIRECTORY_STRUCTURE)
#if defined (_WIN32) && ! defined (__vxworks) && ! defined (CROSS_DIRECTORY_STRUCTURE)
WS2SU
(
os_name
,
(
TCHAR
*
)
w_filename
,
o_length
);
WS2SU
(
os_name
,
(
TCHAR
*
)
w_filename
,
o_length
);
...
@@ -660,7 +660,7 @@ __gnat_os_filename (char *filename, char *w_filename,
...
@@ -660,7 +660,7 @@ __gnat_os_filename (char *filename, char *w_filename,
}
}
FILE
*
FILE
*
__gnat_fopen
(
char
*
path
,
char
*
mode
,
int
encoding
)
__gnat_fopen
(
char
*
path
,
char
*
mode
,
int
encoding
ATTRIBUTE_UNUSED
)
{
{
#if defined (_WIN32) && ! defined (__vxworks) && ! defined (CROSS_DIRECTORY_STRUCTURE)
#if defined (_WIN32) && ! defined (__vxworks) && ! defined (CROSS_DIRECTORY_STRUCTURE)
TCHAR
wpath
[
GNAT_MAX_PATH_LEN
];
TCHAR
wpath
[
GNAT_MAX_PATH_LEN
];
...
@@ -682,7 +682,7 @@ __gnat_fopen (char *path, char *mode, int encoding)
...
@@ -682,7 +682,7 @@ __gnat_fopen (char *path, char *mode, int encoding)
}
}
FILE
*
FILE
*
__gnat_freopen
(
char
*
path
,
char
*
mode
,
FILE
*
stream
,
int
encoding
)
__gnat_freopen
(
char
*
path
,
char
*
mode
,
FILE
*
stream
,
int
encoding
ATTRIBUTE_UNUSED
)
{
{
#if defined (_WIN32) && ! defined (__vxworks) && ! defined (CROSS_DIRECTORY_STRUCTURE)
#if defined (_WIN32) && ! defined (__vxworks) && ! defined (CROSS_DIRECTORY_STRUCTURE)
TCHAR
wpath
[
GNAT_MAX_PATH_LEN
];
TCHAR
wpath
[
GNAT_MAX_PATH_LEN
];
...
@@ -3033,6 +3033,10 @@ void GetTimeAsFileTime(LPFILETIME pTime)
...
@@ -3033,6 +3033,10 @@ void GetTimeAsFileTime(LPFILETIME pTime)
#if defined (linux)
#if defined (linux)
/* pthread affinity support */
/* pthread affinity support */
int
__gnat_pthread_setaffinity_np
(
pthread_t
th
,
size_t
cpusetsize
,
const
void
*
cpuset
);
#ifdef CPU_SETSIZE
#ifdef CPU_SETSIZE
#include <pthread.h>
#include <pthread.h>
int
int
...
@@ -3044,9 +3048,9 @@ __gnat_pthread_setaffinity_np (pthread_t th,
...
@@ -3044,9 +3048,9 @@ __gnat_pthread_setaffinity_np (pthread_t th,
}
}
#else
#else
int
int
__gnat_pthread_setaffinity_np
(
pthread_t
th
,
__gnat_pthread_setaffinity_np
(
pthread_t
th
ATTRIBUTE_UNUSED
,
size_t
cpusetsize
,
size_t
cpusetsize
ATTRIBUTE_UNUSED
,
const
void
*
cpuset
)
const
void
*
cpuset
ATTRIBUTE_UNUSED
)
{
{
return
0
;
return
0
;
}
}
...
...
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