public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/55651] New: gcc hangs when "-Wp," is passed on the command line
@ 2012-12-11 18:19 steve.ulrich at broadcom dot com
2012-12-12 10:07 ` [Bug driver/55651] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: steve.ulrich at broadcom dot com @ 2012-12-11 18:19 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/55651] gcc hangs when "-Wp," is passed on the command line
2012-12-11 18:19 [Bug c/55651] New: gcc hangs when "-Wp," is passed on the command line steve.ulrich at broadcom dot com
@ 2012-12-12 10:07 ` rguenth at gcc dot gnu.org
2013-11-04 2:01 ` mingjie.xing at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-12-12 10:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55651
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-12-12
Component|c |driver
Ever Confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-12 10:07:21 UTC ---
It looks like cc1 treats
/usr/lib64/gcc/x86_64-suse-linux/4.6/cc1 -quiet -v "" t.c -quiet -dumpbase t.c
-mtune=generic -march=x86-64 -auxbase t -version -o /tmp/ccYYppXF.s
as reading from stdin? Yes, it does,
gcc -Wp, -c t.c < /dev/null
works just fine.
Somewhat odd behavior though ;) Confirmed. The driver should either
drop empty -Wp, or error.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/55651] gcc hangs when "-Wp," is passed on the command line
2012-12-11 18:19 [Bug c/55651] New: gcc hangs when "-Wp," is passed on the command line steve.ulrich at broadcom dot com
2012-12-12 10:07 ` [Bug driver/55651] " rguenth at gcc dot gnu.org
@ 2013-11-04 2:01 ` mingjie.xing at gmail dot com
2013-11-04 18:11 ` joseph at codesourcery dot com
2013-11-10 21:08 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: mingjie.xing at gmail dot com @ 2013-11-04 2:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55651
Mingjie Xing <mingjie.xing at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mingjie.xing at gmail dot com
--- Comment #2 from Mingjie Xing <mingjie.xing at gmail dot com> ---
Created attachment 31146
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31146&action=edit
This patch can fix the bug.
2013-11-04 Mingjie Xing <mingjie.xing@gmail.com>
* common.opt (Wa, Wl, Wp,): Change JoinedOrMissing to Joined.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/55651] gcc hangs when "-Wp," is passed on the command line
2012-12-11 18:19 [Bug c/55651] New: gcc hangs when "-Wp," is passed on the command line steve.ulrich at broadcom dot com
2012-12-12 10:07 ` [Bug driver/55651] " rguenth at gcc dot gnu.org
2013-11-04 2:01 ` mingjie.xing at gmail dot com
@ 2013-11-04 18:11 ` joseph at codesourcery dot com
2013-11-10 21:08 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: joseph at codesourcery dot com @ 2013-11-04 18:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55651
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Mon, 4 Nov 2013, mingjie.xing at gmail dot com wrote:
> 2013-11-04 Mingjie Xing <mingjie.xing@gmail.com>
>
> * common.opt (Wa, Wl, Wp,): Change JoinedOrMissing to Joined.
That sounds wrong. Empty arguments are valid here and should be passed
down as such. See the thread starting at
<http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00848.html> where a change
to the handling of empty arguments was rejected.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/55651] gcc hangs when "-Wp," is passed on the command line
2012-12-11 18:19 [Bug c/55651] New: gcc hangs when "-Wp," is passed on the command line steve.ulrich at broadcom dot com
` (2 preceding siblings ...)
2013-11-04 18:11 ` joseph at codesourcery dot com
@ 2013-11-10 21:08 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-11-10 21:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55651
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
As reported this is correct behavior.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-11-10 21:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-11 18:19 [Bug c/55651] New: gcc hangs when "-Wp," is passed on the command line steve.ulrich at broadcom dot com
2012-12-12 10:07 ` [Bug driver/55651] " rguenth at gcc dot gnu.org
2013-11-04 2:01 ` mingjie.xing at gmail dot com
2013-11-04 18:11 ` joseph at codesourcery dot com
2013-11-10 21:08 ` pinskia at gcc dot gnu.org
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).