[Bug driver/55651] gcc hangs when "-Wp," is passed on the command line

2013-11-10 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55651

Andrew Pinski  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #4 from Andrew Pinski  ---
As reported this is correct behavior.


[Bug driver/55651] gcc hangs when "-Wp," is passed on the command line

2013-11-04 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55651

--- Comment #3 from joseph at codesourcery dot com  ---
On Mon, 4 Nov 2013, mingjie.xing at gmail dot com wrote:

> 2013-11-04  Mingjie Xing  
> 
> * 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 
 where a change 
to the handling of empty arguments was rejected.


[Bug driver/55651] gcc hangs when "-Wp," is passed on the command line

2013-11-03 Thread mingjie.xing at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55651

Mingjie Xing  changed:

   What|Removed |Added

 CC||mingjie.xing at gmail dot com

--- Comment #2 from Mingjie Xing  ---
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  

* common.opt (Wa, Wl, Wp,): Change JoinedOrMissing to Joined.


[Bug driver/55651] gcc hangs when "-Wp," is passed on the command line

2012-12-12 Thread rguenth at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55651



Richard Biener  changed:



   What|Removed |Added



 Status|UNCONFIRMED |NEW

   Last reconfirmed||2012-12-12

  Component|c   |driver

 Ever Confirmed|0   |1



--- Comment #1 from Richard Biener  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.