This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
compiling empty files fails
- To: gcc-bugs at gcc dot gnu dot org
- Subject: compiling empty files fails
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 12 Sep 2000 21:24:04 -0700
- Cc: Zack Weinberg <zack at blastula dot phys dot columbia dot edu>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Various packages (among them glibc) assumes that compiling an empty
file simply produces an object file with no definitions. The current
gcc returns an error. In fact, it is the preprocessor which fails.
To reproduce:
echo > foo.c
gcc -c foo.c
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------