public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/6517: gcc hangs on C compile with multiple "-I-"
@ 2002-04-30 9:56 chris
0 siblings, 0 replies; only message in thread
From: chris @ 2002-04-30 9:56 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-30 16:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-30 9:56 c/6517: gcc hangs on C compile with multiple "-I-" chris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).