From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c01::232; helo=mail-pl0-x232.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl0-x232.google.com (mail-pl0-x232.google.com [IPv6:2607:f8b0:400e:c01::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 663D020355209 for ; Tue, 7 Nov 2017 18:21:24 -0800 (PST) Received: by mail-pl0-x232.google.com with SMTP id h12so312039pln.7 for ; Tue, 07 Nov 2017 18:25:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=9+whQH1BjfT3FmOLCQFNwFAfJdU4Z7kqInr5nhac+DQ=; b=XTwhquw6Tetyuh9SSKseo+7VjEAPdIEdls5bVUyyIOmkLCGRZipqub88dG6Q5fHH+9 GWgYKuM3txMVx7Dm4y4gnkkt/9ejAWO6llPGlLs+Ncxfstyrun5h7jTN9C/ciyXbc0/U 08+GDgFqLhR7eRQd7kqtIbtsdzzd6NCtz5H4k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=9+whQH1BjfT3FmOLCQFNwFAfJdU4Z7kqInr5nhac+DQ=; b=UgMR/8NKkqxjyVf3il0kUOK99lX8Ftb+2wosJXXB5dZ2+06FPRtmm58/HosVOTy8Rd ujniDBgQmqnVq4NYWRWWQ4Wq1TaIEooZbi+vvZ9lZjNRI5kDe4vYKOfhgWOTA7DpKKLO T7TNR0ZEbRU4l5rwnZf+tJ09B8xwb6Z82PTciOsC2x0mdYGiXuOqRWTu0rulEUtqNX+z vixiZvH34XCyScbP5Ma+OSLgx7pYWuEnYyXZgQYNNi8YP7ONyf2bOqiTTcSC40IQHPpY Hj062nKdyBy+3jtpkQlaFoVgGGvnhJ03/jM6FWhsqZN5HqgPBwd3SEGUFq2wAv3Jq4xP fHUQ== X-Gm-Message-State: AJaThX4WnkpFUAReQXMZiOOUkaoQ8Kc1SG/xv3agGlWEPEwgJb6bJLzK xSZO3O+Kr9TeuCUgh9Lq/oNuAA== X-Google-Smtp-Source: ABhQp+QTTY/y60xrTqkq80srACaGiXwKVUhJK1E67IHO7gIOLMVh+w5LwUcmr6igOONSIfIm0jDXvg== X-Received: by 10.84.244.2 with SMTP id g2mr739936pll.264.1510107924114; Tue, 07 Nov 2017 18:25:24 -0800 (PST) Received: from [10.189.19.158] ([45.56.152.90]) by smtp.gmail.com with ESMTPSA id a17sm7078770pfk.173.2017.11.07.18.25.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Nov 2017 18:25:23 -0800 (PST) To: "edk2-devel@lists.01.org" Cc: "Zhu, Yonghong" , "Gao, Liming" From: Heyi Guo Message-ID: <145387dc-028f-c75f-6df3-cb0ead996eb8@linaro.org> Date: Wed, 8 Nov 2017 10:25:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Subject: Why do we use -g option of gcc even for RELEASE build? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 02:21:24 -0000 Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Hi folks, From gcc manual, -g option seems to produce debugging information. In tools_def.template, -g is included in GCC_ALL_CC_FLAGS, so it will also be enabled for RELEASE build with gcc tool chain. Any special reason to do that? Thanks and regards, Heyi