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: unassig...@gcc.gnu.org ReportedBy: steve.ulr...@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