From owner-freebsd-bugs Thu Jun 15 20:30:10 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id ECC8B37BFA8 for ; Thu, 15 Jun 2000 20:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA04888; Thu, 15 Jun 2000 20:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 775D737BD00; Thu, 15 Jun 2000 20:29:42 -0700 (PDT) Message-Id: <20000616032942.775D737BD00@hub.freebsd.org> Date: Thu, 15 Jun 2000 20:29:42 -0700 (PDT) From: yakisoba@f2.dion.ne.jp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: gnu/19326: Fix GCC Target Macro 'i386/freebsd.h'. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19326 >Category: gnu >Synopsis: Fix GCC Target Macro 'i386/freebsd.h'. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 15 20:30:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Naohiko Tsuji >Release: FreeBSD 4.0-STABLE i386 >Organization: >Environment: __FreeBSD_version >= 400012 (GCC 2.95.X and later) >Description: GCC 2.95 or later, document 'description' field added to 'TARGET_SWITCHES' and 'TARGET_OPTIONS' structure. But 'i386/freebsd.h' is not added the field. === i386/i386.h with GCC 2.95.2 === ... #define TARGET_SWITCHES \ { { "80387", MASK_80387, "Use hardware fp" }, \ ^^^^^^^^^^^^^^^^^^^ { "no-80387", -MASK_80387, "Do not use hardware fp" },\ ... SUBTARGET_SWITCHES \ { "", MASK_SCHEDULE_PROLOGUE | TARGET_DEFAULT, 0 }} ... === i386/freebsd.h rev 1.34 === ... #undef SUBTARGET_SWITCHES #define SUBTARGET_SWITCHES \ { "profiler-epilogue", MASK_PROFILER_EPILOGUE}, \ { "no-profiler-epilogue", -MASK_PROFILER_EPILOGUE}, \ { "aout", MASK_AOUT}, \ { "no-aout", -MASK_AOUT}, \ { "underscores", MASK_UNDERSCORES}, \ { "no-underscores", -MASK_UNDERSCORES}, ... >How-To-Repeat: >Fix: Add Null field. === i386/freebsd.h === ... #undef SUBTARGET_SWITCHES #define SUBTARGET_SWITCHES \ { "profiler-epilogue", MASK_PROFILER_EPILOGUE, "" }, \ ... ^^^^ Or add pretty good 'description'. === i386/freebsd.h === ... #undef SUBTARGET_SWITCHES #define SUBTARGET_SWITCHES \ { "profiler-epilogue", MASK_PROFILER_EPILOGUE, "Function profiler epilogue" },\ ... So print it like below. yakisoba % gcc -v --help ... Target specific options: ... -mno-80387 Do not use hardware fp -m80387 Use hardware fp ... -mprofiler-epilogue Function profiler epilogue ... >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message