Go to file
Janne Blomqvist 563a18bc20 Don't assume __secure_getenv is available
Glibc 2.17 made __secure_getenv an officially supported function, and
renamed it secure_getenv. The libgfortran configure has checked for
both of these, per
https://sourceware.org/glibc/wiki/Tips_and_Tricks/secure_getenv.

Unfortunately, while the dynamical library (libc.so) retains the
__secure_getenv symbol for backwards compatibility, the static library
(libc.a) does not. This means that a libgfortran.a compiled against an
older glibc will not work if one tries to link against a newer
libc.a. This creates problems for providing gfortran binary
distributions that work on as many target systems as possible.

Thus, retain the support for __secure_getenv but call it only via a
weak reference.

Backported from trunk.

2017-05-19  Janne Blomqvist  <jb@gcc.gnu.org>

	* libgfortran.h: HAVE_SECURE_GETENV: Don't check
	HAVE___SECURE_GETENV.
	* environ/runtime.c (secure_getenv): Use __secure_getenv via a
        weak reference.

From-SVN: r248273
2017-05-19 16:25:21 +03:00
INSTALL
config Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
contrib Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
fixincludes Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
gcc Daily bump. 2017-05-19 00:16:23 +00:00
gnattools Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
gotools Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
include Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
intl Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libada Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libatomic Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libbacktrace Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libcc1 Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libcilkrts Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libcpp Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libdecnumber Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libffi Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libgcc lb1spc.S: Emit .note.GNU-stack section for a non-executable stack. 2017-05-15 07:36:33 +00:00
libgfortran Don't assume __secure_getenv is available 2017-05-19 16:25:21 +03:00
libgo libgo: add "vendor" to pkgpath for vendored standard packages 2017-05-17 20:16:42 +00:00
libgomp Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libhsail-rt Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libiberty Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libitm Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libmpx Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libobjc Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
liboffloadmic Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libquadmath Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libsanitizer Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libssp Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
libstdc++-v3 PR libstdc++/80796 Add new std::search overload for C++17 2017-05-19 13:28:28 +01:00
libvtv Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
lto-plugin Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
maintainer-scripts gcc_release (build_gzip): Build xz tarball instead of bz2 tarball. 2017-05-18 18:50:52 +00:00
zlib Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog Update ChangeLog and version files for release 2017-05-02 12:42:24 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
MAINTAINERS Add RISC-V Maintainers 2017-03-20 16:11:32 +00:00
Makefile.def re PR bootstrap/77661 (--enable-maintainer-mode causes in-tree-build of MPC to fail) 2017-04-19 18:49:29 +00:00
Makefile.in re PR bootstrap/77661 (--enable-maintainer-mode causes in-tree-build of MPC to fail) 2017-04-19 18:49:29 +00:00
Makefile.tpl Restore Graphite fuse-*.c testing 2017-02-15 15:43:42 +01:00
README
compile
config-ml.in config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
config.guess * config.guess: Import latest from upstream. 2017-03-18 18:22:06 +00:00
config.rpath
config.sub * config.sub: Import latest version. 2016-12-29 22:04:53 +11:00
configure configure.ac: Enable LTO by default on darwin >= 9. 2017-03-22 17:51:18 +00:00
configure.ac configure.ac: Enable LTO by default on darwin >= 9. 2017-03-22 17:51:18 +00:00
depcomp
install-sh
libtool-ldflags
libtool.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
missing
mkdep
mkinstalldirs
move-if-change
symlink-tree
ylwrap

README

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.