summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
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 /gcc/toplev.c
parent7e6224aba0b1981132291490d8069812ec0ff519 (diff)
downloadgcc-831d5e1ff32b5e2bfa92ea8d60fc0a5c231970f4.tar.gz
* 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
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c6
1 files changed, 6 insertions, 0 deletions
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