From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89482 invoked by alias); 1 May 2018 19:53:49 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 89470 invoked by uid 89); 1 May 2018 19:53:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Received:sk:p10-v6m, H*c:alternative, Best X-HELO: mail-oi0-f46.google.com Received: from mail-oi0-f46.google.com (HELO mail-oi0-f46.google.com) (209.85.218.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 01 May 2018 19:53:48 +0000 Received: by mail-oi0-f46.google.com with SMTP id n65-v6so10968719oig.6 for ; Tue, 01 May 2018 12:53:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Aa93dCZ4gFvZnY996AFm40j57uJwIpdz98sGqTenOas=; b=GvSeAAE2BYy5tglwEW6FaALSKYXvGItvIu56M8x9WmwqBCrdFSzi3AXBWo4cYvX32y VUj3iKwA4Xnde/4cFAYlKRv7PJUK6/kQ9f7c6bP0e6dgZARgqVlG8PJKcdHjLozP1bcC yitFjWEmLbKUQn7yVltFLJUuYP06PuKLBYnnhK+AQhNuFCa2ZXByHyM7SDLcINehQ+ed PnDmqKfbznmm6hOj8/RzT63T4opchZ++8JpFG9Fgr6qf3JV4EqJIQA5+UvqP4V1A33O8 WeAm7WYTLCyevujZOj8uPlJ4HNWUsIxCgPZ64Fm52Z4IlDiZMk62cpclk7pVdotaT6TS sHuQ== X-Gm-Message-State: ALQs6tDe+UEDCETn4g/QK4s8MYrz9rhlBxbcpq0xYJDjDX+dHP0X35DB ZhqL/a0GA1PnF1CBDsjGl2EAQExQG9Drg4S6WMw= X-Google-Smtp-Source: AB8JxZrJEo9gcuwTEjMYpdf0iS86PoB6Zpa4Y5SZGtr04XeYduYi2DvwxEO+c8hXwtgDDua7EnvobPvhVlZmGkwA/RU= X-Received: by 2002:aca:720a:: with SMTP id p10-v6mr11030062oic.180.1525204426011; Tue, 01 May 2018 12:53:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.138.4.149 with HTTP; Tue, 1 May 2018 12:53:45 -0700 (PDT) From: Chengnian Sun Date: Tue, 01 May 2018 19:53:00 -0000 Message-ID: Subject: Should GCC emit the same code for compilation with '-g' and without '-g' To: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-05/txt/msg00010.txt.bz2 Hi, Does gcc have a requirement about the impact of emitting debug info on the generated code? Should the code be the same no matter whether '-g' is specified? Thank you. -- Best Regards. Chengnian