re PR driver/47249 (ICE in common_handle_option, at opts.c:1695 with unknown option passed to cc1)

PR driver/47249
	* common.opt (-pie, -shared, pie, shared): Change from Common to
	Driver.
	* gcc.c (display_help): Display help for -pie and -shared.

From-SVN: r183474
This commit is contained in:
Jakub Jelinek 2012-01-24 14:18:08 +01:00 committed by Jakub Jelinek
parent aa9ec4db5f
commit 5460e1fc15
3 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2012-01-24 Jakub Jelinek <jakub@redhat.com>
PR driver/47249
* common.opt (-pie, -shared, pie, shared): Change from Common to
Driver.
* gcc.c (display_help): Display help for -pie and -shared.
2012-01-24 Georg-Johann Lay <avr@gjlay.de>
PR target/49868

View File

@ -1,6 +1,6 @@
; Options for the language- and target-independent parts of the compiler.
; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
; Free Software Foundation, Inc.
;
; This file is part of GCC.
@ -313,7 +313,7 @@ Common Alias(pedantic)
Common Alias(pedantic-errors)
-pie
Common Alias(pie)
Driver Alias(pie)
-pipe
Driver Alias(pipe)
@ -367,7 +367,7 @@ Common Alias(p)
Driver Alias(save-temps)
-shared
Common Alias(shared)
Driver Alias(shared)
-specs
Driver Separate Alias(specs=)
@ -2380,7 +2380,7 @@ x
Driver Joined Separate
shared
Common RejectNegative Negative(pie)
Driver RejectNegative Negative(pie)
Create a shared library
shared-libgcc
@ -2413,7 +2413,7 @@ symbolic
Driver
pie
Common RejectNegative Negative(shared)
Driver RejectNegative Negative(shared)
Create a position independent executable
z

View File

@ -2988,6 +2988,8 @@ display_help (void)
fputs (_(" -S Compile only; do not assemble or link\n"), stdout);
fputs (_(" -c Compile and assemble, but do not link\n"), stdout);
fputs (_(" -o <file> Place the output into <file>\n"), stdout);
fputs (_(" -pie Create a position independent executable\n"), stdout);
fputs (_(" -shared Create a shared library\n"), stdout);
fputs (_("\
-x <language> Specify the language of the following input files\n\
Permissible languages include: c c++ assembler none\n\