From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63752 invoked by alias); 8 Apr 2015 20:33:33 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 63741 invoked by uid 89); 8 Apr 2015 20:33:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 08 Apr 2015 20:33:32 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t38KXRax006570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 8 Apr 2015 16:33:27 -0400 Received: from host1.jankratochvil.net (ovpn-116-21.ams2.redhat.com [10.36.116.21]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t38KXNLq006234 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 8 Apr 2015 16:33:25 -0400 Date: Wed, 08 Apr 2015 20:33:00 -0000 From: Jan Kratochvil To: Paul_Koning@dell.com Cc: eliz@gnu.org, gdb-patches@sourceware.org, pmuldoon@redhat.com Subject: Re: [PATCH v2 7/9] compile: New 'compile print' Message-ID: <20150408203322.GA11119@host1.jankratochvil.net> References: <20150406172623.31404.58833.stgit@host1.jankratochvil.net> <20150406172716.31404.8551.stgit@host1.jankratochvil.net> <83bnj1jgsw.fsf@gnu.org> <021F612D-0E51-44ED-BA7F-894A8B51F5BF@dell.com> <20150406175250.GA314@host1.jankratochvil.net> <0484210C-BBE9-4C64-8F51-7DC74ACF8F86@dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00308.txt.bz2 On Wed, 08 Apr 2015 22:11:58 +0200, Paul_Koning@dell.com wrote: > A related question: what controls the compiler switches sent to the compiler > for this operation? In some cases, specific switches may be needed to > produce the correct flavor of code generation, say -msoft-float or > -mabi=xyz. gdbarch_gcc_target_options() DW_AT_producer - -grecord-gcc-switches - gcc default if DWARF is present Some GDB overrides like -O0 -gdwarf-4 -fPIE etc. The specific switched you mention should get applied by DW_AT_producer. Some basic ones may be provided already by gdbarch_gcc_target_options(). Jan