Skip to content

Commit

Permalink
* configure.ac (*-*-linux-android*): Set target_makefile_frag.
Browse files Browse the repository at this point in the history
	* configure: Regenerate.
config/
	* mt-android: New file.
libstdc++-v3/
	* src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248853 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ebotcazou committed Jun 3, 2017
1 parent a977cac commit a703ac2
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2017-06-03 Eric Botcazou <ebotcazou@adacore.com>

* configure.ac (*-*-linux-android*): Set target_makefile_frag.
* configure: Regenerate.

2017-05-31 Martin Liska <mliska@suse.cz>

* configure.ac: Add handling of stage2_werror_flags to
Expand Down
4 changes: 4 additions & 0 deletions config/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2017-06-03 Eric Botcazou <ebotcazou@adacore.com>

* mt-android: New file.

2017-02-13 Richard Biener <rguenther@suse.de>

* isl.m4: Remove support for ISL 0.14.
Expand Down
1 change: 1 addition & 0 deletions config/mt-android
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CXXFLAGS_FOR_TARGET += -D_GNU_SOURCE -fexceptions -frtti
3 changes: 3 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -6930,6 +6930,9 @@ case "${target}" in
nios2-*-elf*)
target_makefile_frag="config/mt-nios2-elf"
;;
*-*-linux-android*)
target_makefile_frag="config/mt-android"
;;
*-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
target_makefile_frag="config/mt-gnu"
;;
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2521,6 +2521,9 @@ case "${target}" in
nios2-*-elf*)
target_makefile_frag="config/mt-nios2-elf"
;;
*-*-linux-android*)
target_makefile_frag="config/mt-android"
;;
*-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
target_makefile_frag="config/mt-gnu"
;;
Expand Down
4 changes: 4 additions & 0 deletions libstdc++-v3/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2017-06-03 Eric Botcazou <ebotcazou@adacore.com>

* src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.

2017-06-02 Jonathan Wakely <jwakely@redhat.com>

PR libstdc++/80624
Expand Down
3 changes: 2 additions & 1 deletion libstdc++-v3/src/filesystem/dir.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ fs::_Dir::advance(error_code* ec, directory_options options)

int err = std::exchange(errno, 0);
const auto entp = readdir(dirp);
std::swap(errno, err);
// std::swap cannot be used with Bionic's errno
err = std::exchange(errno, err);

if (entp)
{
Expand Down

0 comments on commit a703ac2

Please sign in to comment.