Go to file
Janne Blomqvist 7d5ee21935 Simplify handling of special files.
2011-10-31  Janne Blomqvist  <jb@gcc.gnu.org>

* io/file_pos.c (st_rewind): Handle regular and special files
identically.
* io/intrinsics.c (fseek_sub): Don't check whether we think the
file is seekable, just do what the caller says.
* io/transfer.c (skip_record): First try to seek, then fallback to
reading and throwing away what we read.
* io/unit.c (update_position): Don't check whether file is
seekable, just try to do what we're told.
(unit_truncate): Likewise.
* io/unix.c (struct unix_stream): Remove special_file flag.
(buf_flush): Remove code for handling unseekable files.
(buf_seek): Likewise.
(fd_to_stream): Use buffered IO only for regular files.
(file_length): Remove is_seekable() call.
(is_seekable): Remove function.
(is_special): Likewise.
* io/unix.h: Remove prototypes for is_seekable and is_special.

From-SVN: r180701
2011-10-31 16:45:50 +02:00
boehm-gc configure.ac (THREADS): Remove posix95. 2011-08-08 15:39:35 +00:00
config Centralize PICFLAG configuration 2011-08-22 16:54:02 +00:00
contrib testsuite-management: New. 2011-09-13 16:24:47 -04:00
fixincludes re PR lto/48851 (lto-plugin.c:224:7: error: missing sentinel in function call [-Werror=format]) 2011-10-25 20:07:19 +00:00
gcc cgraphunit.c: Don't mark clones as static constructors. 2011-10-31 14:26:38 +00:00
gnattools Makefile.in (LOOSE_WARN): Delete. 2011-10-12 22:41:57 +00:00
include obstack.h [!GNUC] (obstack_free): Avoid cast to int. 2011-10-21 21:35:29 -04:00
INSTALL
intl
libada Makefile.in (LOOSE_WARN): Delete. 2011-10-12 22:41:57 +00:00
libcpp Implement C++11 user-defined literals. 2011-10-26 15:30:59 -04:00
libdecnumber remove useless if-before-free tests 2011-04-20 18:19:03 +00:00
libffi re PR libffi/49594 (bootstrap failure in libffi:darwin_closure for powerpc-darwin8) 2011-09-04 19:19:39 +00:00
libgcc morestack.S: Correct CFI information to do proper returns throughout function. 2011-10-28 22:03:56 +00:00
libgfortran Simplify handling of special files. 2011-10-31 16:45:50 +02:00
libgo syscalls: Rewrite awk script to work with nawk. 2011-10-27 04:56:46 +00:00
libgomp posix95: Remove empty directory. 2011-10-10 19:27:31 +00:00
libiberty * setproctitle.c (setproctitle): Use "GNU/Linux" in comment. 2011-10-29 00:09:39 +00:00
libjava exception.cc (parse_lsda_header): hardcode ttype_encoding for older ARM EABI toolchains. 2011-10-20 13:56:12 +00:00
libmudflap re PR middle-end/43513 (The stack pointer is adjusted twice) 2011-07-31 10:02:12 +00:00
libobjc exception.c (parse_lsda_header): hardcode ttype_encoding for older ARM EABI toolchains. 2011-10-20 13:57:21 +00:00
libquadmath Makefile.am (FLAGS_TO_PASS): Define. 2011-09-21 15:36:03 +01:00
libssp re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5) 2011-03-21 12:24:17 +00:00
libstdc++-v3 prerequisites.xml: Refer to GCC (instead of gcc) and GNU/Linux. 2011-10-30 15:33:11 +00:00
lto-plugin re PR lto/47247 (Linker plugin specification makes it difficult to handle COMDATs) 2011-10-02 10:41:24 +00:00
maintainer-scripts update_version_svn (IGNORE_BRANCHES): Add gcc-4_3-branch. 2011-06-27 11:05:50 +00:00
zlib
ABOUT-NLS
ChangeLog config.sub: Import these changes from the config project: 2011-10-27 09:45:55 +00:00
ChangeLog.tree-ssa
compile
config-ml.in MAINTAINERS (crx port, [...]): Remove. 2011-03-22 19:58:18 +00:00
config.guess oops - omitted from previous delta. 2011-06-06 10:34:35 +00:00
config.rpath
config.sub config.sub: Import these changes from the config project: 2011-10-27 09:45:55 +00:00
configure configure.ac (tic6x-*-*): Remove gdb from noconfigdirs. 2011-08-14 12:25:15 +00:00
configure.ac configure.ac (tic6x-*-*): Remove gdb from noconfigdirs. 2011-08-14 12:25:15 +00:00
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS * MAINTAINERS (Write After Approval): Add myself. 2011-10-25 09:39:49 +00:00
Makefile.def Makefile.def (language=c++): Add check-c++0x and check-target-libmudflap-c++. 2011-07-16 23:34:13 -04:00
Makefile.in Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): Add libsupc++ to link directories. 2011-07-20 12:08:11 -04:00
Makefile.tpl Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): Add libsupc++ to link directories. 2011-07-20 12:08:11 -04:00
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

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.