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
7769c9de
Commit
7769c9de
authored
May 20, 2015
by
Jonathan Wakely
Committed by
Jonathan Wakely
May 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
From-SVN: r223450
parent
793cac74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
libstdc++-v3/ChangeLog
+2
-0
libstdc++-v3/testsuite/util/testsuite_fs.h
+5
-10
No files found.
libstdc++-v3/ChangeLog
View file @
7769c9de
2015-05-20 Jonathan Wakely <jwakely@redhat.com>
2015-05-20 Jonathan Wakely <jwakely@redhat.com>
* testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
PR libstdc++/66078
PR libstdc++/66078
* include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
* include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
overload for pointers.
overload for pointers.
...
...
libstdc++-v3/testsuite/util/testsuite_fs.h
View file @
7769c9de
...
@@ -26,10 +26,8 @@
...
@@ -26,10 +26,8 @@
#include <iostream>
#include <iostream>
#include <string>
#include <string>
#include <cstdio>
#include <cstdio>
#if defined(_GNU_SOURCE) || _XOPEN_SOURCE >= 500 || _POSIX_C_SOURCE >= 200112L
#include <stdlib.h>
# include <stdlib.h>
#include <unistd.h>
# include <unistd.h>
#endif
namespace
__gnu_test
namespace
__gnu_test
{
{
...
@@ -84,12 +82,9 @@ namespace __gnu_test
...
@@ -84,12 +82,9 @@ namespace __gnu_test
::
close
(
fd
);
::
close
(
fd
);
p
=
tmp
;
p
=
tmp
;
#else
#else
char
*
tmp
=
tempnam
(
"."
,
"test."
);
char
buf
[
64
];
if
(
!
tmp
)
std
::
sprintf
(
buf
,
"test.%lu"
,
(
unsigned
long
)
::
getpid
());
throw
std
::
experimental
::
filesystem
::
filesystem_error
(
"tempnam failed"
,
p
=
buf
;
std
::
error_code
(
errno
,
std
::
generic_category
()));
p
=
tmp
;
::
free
(
tmp
);
#endif
#endif
return
p
;
return
p
;
}
}
...
...
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