From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6915 invoked by alias); 11 Dec 2012 18:19:05 -0000 Received: (qmail 6867 invoked by uid 48); 11 Dec 2012 18:18:46 -0000 From: "steve.ulrich at broadcom dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/55651] New: gcc hangs when "-Wp," is passed on the command line Date: Tue, 11 Dec 2012 18:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: steve.ulrich at broadcom dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg01138.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55651 Bug #: 55651 Summary: gcc hangs when "-Wp," is passed on the command line Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: steve.ulrich@broadcom.com If a user neglects to add the required parameter at the end of the "-Wp," prefix and just lists "-Wp," on the command line, gcc hangs. To reproduce, issue the following commands: $ cp /dev/null testfile.c $ gcc -Wp, -c testfile.c This has been reproduced on a GCC cross compiler for PowerPC, and also for ARM, so is believed to be reproducible regardless of the target CPU architecture. "gcc -v" output: Using built-in specs. COLLECT_GCC=/projects/nwsoft-toolchains/brl/brl_2.1/brl_2.1.0/northstar/usr/bin/arm-broadcom-linux-uclibcgnueabi-gcc COLLECT_LTO_WRAPPER=/projects/nwsoft-toolchains/brl/brl_2.1/brl_2.1.0/northstar/usr/libexec/gcc/arm-broadcom-linux-uclibcgnueabi/4.7.2/lto-wrapper Target: arm-broadcom-linux-uclibcgnueabi Configured with: /projects/broadcom-linux/Northstar/tools/output/toolchain/gcc-4.7.2/configure --prefix=/projects/nwsoft-toolchains/brl/brl_2.1/brl_2.1.0/northstar/usr --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-broadcom-linux-uclibcgnueabi --enable-languages=c,c++ --with-sysroot=/projects/nwsoft-toolchains/brl/brl_2.1/brl_2.1.0/northstar/usr/arm-broadcom-linux-uclibcgnueabi/sysroot --with-build-time-tools=/projects/nwsoft-toolchains/brl/brl_2.1/brl_2.1.0/northstar/usr/arm-broadcom-linux-uclibcgnueabi/bin --disable-__cxa_atexit --enable-target-optspace --disable-libgomp --with-gnu-ld --disable-libssp --disable-multilib --enable-tls --enable-shared --with-gmp=/projects/nwsoft-toolchains/brl/brl_2.1/brl_2.1.0/northstar/usr --with-mpfr=/projects/nwsoft-toolchains/brl/brl_2.1/brl_2.1.0/northstar/usr --with-mpc=/projects/nwsoft-toolchains/brl/brl_2.1/brl_2.1.0/northstar/usr --disable-nls --enable-threads --disable-decimal-float --with-float=soft --with-abi=aapcs-linux --with-arch=armv7-a --with-tune=cortex-a9 --with-pkgversion='Buildroot 2012.11-git-00621-gc13e2bc-dirty' --with-bugurl=http://bugs.buildroot.net/ --with-pkgversion='Broadcom Linux v2.1' Thread model: posix gcc version 4.7.2