summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-05 07:46:42 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-05 07:46:42 +0000
commit831d5e1ff32b5e2bfa92ea8d60fc0a5c231970f4 (patch)
treedb67eedaba2a5fb8c804a875079f770f63011d3e
parent7e6224aba0b1981132291490d8069812ec0ff519 (diff)
downloadppe42-gcc-831d5e1ff32b5e2bfa92ea8d60fc0a5c231970f4.tar.gz
ppe42-gcc-831d5e1ff32b5e2bfa92ea8d60fc0a5c231970f4.zip
* toplev.c (display_target_options): Don't print twice.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47659 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/toplev.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1eb92922f70..b9d1fe97a49 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-12-05 Neil Booth <neil@daikokuya.demon.co.uk>
+
+ * toplev.c (display_target_options): Don't print twice.
+
Wed Dec 5 00:42:16 EST 2001 John Wehle (john@feith.com)
* emit-rtl.c (set_unique_reg_note): Don't set
diff --git a/gcc/toplev.c b/gcc/toplev.c
index fc2e8b6cdab..9b074251a17 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3697,6 +3697,12 @@ static void
display_target_options ()
{
int undoc,i;
+ static bool displayed = false;
+
+ /* Avoid double printing for --help --target-help. */
+ if (displayed)
+ return;
+ displayed = true;
if (ARRAY_SIZE (target_switches) > 1
#ifdef TARGET_OPTIONS
OpenPOWER on IntegriCloud