From owner-freebsd-stable@FreeBSD.ORG Fri Mar 28 20:25:45 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 193C9ADC; Fri, 28 Mar 2014 20:25:45 +0000 (UTC) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B1BEE5B; Fri, 28 Mar 2014 20:25:44 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id p9so4060197lbv.4 for ; Fri, 28 Mar 2014 13:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=zFBa1eJBIdNrl3jnT2+CrKtR8C5BalTakg1biw2jAEw=; b=EDRUDYPfXdtkMLk8pKSRksPMfSQKN3hy/MwBnrdQ0pvcLpiKZCivUPVNO2C3Xcyjhh Y8AdxRam8lHFKmdCEOHHfkZv44mhoxyKTlkZL+Aj7Wi76XII9k1uY4YWux5WtjzFjkdd wqwrMHw/QRQ01ra6TDkCwe/kNB1uHouuzPvCm6VlIBTt4/EQbEi4lHMxpFu3Uc9zeTQu Q2RB24BCF5FgpOV/p5cgselCU1MrNM0jjRLG6OeeebAPDZ9hC9+UY3HxI4IWNZLCSwHN OmWqE0bDgKqjTf5lnw1bjBvZGNGRA4S54i+I1TJTzMaYczYiFDUfz7IO5k1xQMWFLYfV lrdg== MIME-Version: 1.0 X-Received: by 10.152.120.195 with SMTP id le3mr7016725lab.6.1396038342095; Fri, 28 Mar 2014 13:25:42 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.169.68 with HTTP; Fri, 28 Mar 2014 13:25:42 -0700 (PDT) In-Reply-To: References: <20140328165121.13797.qmail@mailgate.gta.com> <6F2AEDEC-4173-45B0-9C21-1D80E33660F6@FreeBSD.org> <1396029772.81853.150.camel@revolution.hippie.lan> Date: Fri, 28 Mar 2014 13:25:42 -0700 X-Google-Sender-Auth: 7BKaz2r-Hk5J1EmDm_Kga9H91tY Message-ID: Subject: Re: HEADS UP: merged llvm/clang 3.4 From: Craig Rodrigues To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Cc: Larry Baird , FreeBSD stable , Ian Lepore X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2014 20:25:45 -0000 On Fri, Mar 28, 2014 at 11:11 AM, Dimitry Andric wrote: > > You need to rebuild the system anyway, if you want debug information, so > nothing changed? If you insist on wanting to use the crummy gdb in > base, which should have been axed years ago, then just use > DEBUG_FLAGS=-gdwarf-2, otherwise use ports gdb, which any sensible > person should do. > > -Dimitry > This kind of thing is OK for HEAD, but to me seems like something which is not OK for a stable branch. Before your change: "cc -g" from base + gdb in base = can debug After your change: "cc -g" from base + gdb in base = cannot debug Is it possible to modify clang in base, so that on the stable branches, "cc -g" will output dwarf-2 instead of dwarf-4 by default? I understand that installing gdb from ports, changing compiler flags from -g to -gdwarf-2 in Makefiles, or switching to compiling with gcc are all reasonable workarounds, but this seems a bit like POLA for a stable branch. -- Craig