aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2012-01-24 14:18:08 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2012-01-24 14:18:08 +0100
commit5460e1fc15f7f0bab22b39e76ae736ca43b7e654 (patch)
tree88cbd16a5c789e76196223fc4ab26df0a0ea8af5
parentaa9ec4db5f08f659b904199129d3c5e52564df49 (diff)
downloadgcc-5460e1fc15f7f0bab22b39e76ae736ca43b7e654.zip
gcc-5460e1fc15f7f0bab22b39e76ae736ca43b7e654.tar.gz
gcc-5460e1fc15f7f0bab22b39e76ae736ca43b7e654.tar.bz2
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
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/common.opt10
-rw-r--r--gcc/gcc.c2
3 files changed, 14 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4f27419..05ec2e1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/common.opt b/gcc/common.opt
index 0544478..ec1dbd1 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -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
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 71b369c..6cdd959 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -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\