From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10598 invoked by alias); 30 Apr 2002 16:56:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 10575 invoked by uid 71); 30 Apr 2002 16:56:02 -0000 Resent-Date: 30 Apr 2002 16:56:02 -0000 Resent-Message-ID: <20020430165602.10574.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, chris@codefast.com Received:(qmail 6708 invoked by uid 61); 30 Apr 2002 16:53:02 -0000 Message-Id:<20020430165302.6707.qmail@sources.redhat.com> Date: Tue, 30 Apr 2002 09:56:00 -0000 From: chris@codefast.com Reply-To: chris@codefast.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/6517: gcc hangs on C compile with multiple "-I-" X-SW-Source: 2002-04/txt/msg01635.txt.bz2 List-Id: >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: