From 76306300264278fbe7cb8ee7f3c37419e740e424 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Wed, 5 Dec 2001 07:46:42 +0000 Subject: [PATCH] * toplev.c (display_target_options): Don't print twice. From-SVN: r47659 --- gcc/ChangeLog | 4 ++++ gcc/toplev.c | 6 ++++++ 2 files changed, 10 insertions(+) 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 + + * 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 -- 2.30.2