This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/6517: gcc hangs on C compile with multiple "-I-"
- From: chris at codefast dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 30 Apr 2002 16:53:02 -0000
- Subject: c/6517: gcc hangs on C compile with multiple "-I-"
- Reply-to: chris at codefast dot com
>Number: 6517
>Category: c
>Synopsis: gcc hangs on C compile with multiple "-I-"
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 30 09:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Christopher Koch
>Release: 3.0.4
>Organization:
>Environment:
AIX 4.3.3.0 cross compiling for solaris2.8
System: AIX f80 3 4 000F0FBD4C00
host: powerpc-ibm-aix4.3.3.0
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ../gcc-3.0.4/configure --target=sparc-sun-solaris2.8
--prefix=/host/f/aix433/cross-sol28 --enable-languages=c
--with-local-prefix=/host/f/aix433/cross-sol28/sparc-sun-solaris2.8
--with-gnu-as --with-gnu-ld
>Description:
gcc 3.0.4 hangs when multiple "-I-" options are given on a C compile
line. I cannot include preprocessor output since none is produced
due to the hanging. Here is the command that was run, along with the
output produced before gcc hung:
% sparc-sun-solaris2.8-gcc -I- -I- hello-world.c
cc1: -I- specified twice
>How-To-Repeat:
Run a command line similar to the one shown above. The C file does
not matter, since it never gets that far. I cannot provide the
preprocessor output, as none is produced. However, here is the
output when the same command is run with -v and -save-temps (this
actually does not hang):
% sparc-sun-solaris2.8-gcc -v -save-temps -I- -I- hello-world.c
Reading specs from
/host/f/aix433/cross-sol28/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4/specs
Configured with: ../gcc-3.0.4/configure --target=sparc-sun-solaris2.8
--prefix=/host/f/aix433/cross-sol28 --enable-languages=c
--with-local-prefix=/host/f/aix433/cross-sol28/sparc-sun-solaris2.8
--with-gnu-as --with-gnu-ld
Thread model: posix
gcc version 3.0.4
/host/f/aix433/cross-sol28/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4/cpp0 -lang\
-c -v -I- -I- -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=4 -Dsparc -\
Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D_\
_SVR4 -D__sparc -D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__ -D\
__STDC_HOSTED__=1 -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc hello-world\
.c hello-world.i
cpp0: -I- specified twice
========== RETURN CODE: 1
>Fix:
Simply remove the extra -I- from the command line and it will work fine.
>Release-Note:
>Audit-Trail:
>Unformatted: