From owner-freebsd-questions@freebsd.org Sun Jun 11 00:25:09 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DC64BF980A for ; Sun, 11 Jun 2017 00:25:09 +0000 (UTC) (envelope-from friedrich.locke@gmail.com) Received: from mail-qk0-x243.google.com (mail-qk0-x243.google.com [IPv6:2607:f8b0:400d:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 35D6D68217 for ; Sun, 11 Jun 2017 00:25:09 +0000 (UTC) (envelope-from friedrich.locke@gmail.com) Received: by mail-qk0-x243.google.com with SMTP id d14so4129080qkb.1 for ; Sat, 10 Jun 2017 17:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-transfer-encoding; bh=JM3So1IB/qvZ+wRwg3i0KyP+Euv9or3f6R1/m0phErY=; b=nLOv9Aiur0gpxUNwCU6nLb5stIj12pSD4qu6P6lwt3sDg4k/amHWlKx0nlI26wy8SK CwN34iIh1R1BC0/cATOHLxJFpGY4GdyX5YrNj1YreH00/UZzRJFKQLvbr/iV2wGW/pxs +M9EpcAyZR1yhVCnrP5Hy0nkintIOr/HF39/xZjaShTAVeVLhhd+qFDPTYMXi1XYvqx3 vWWCOvLA28TWa5Qxhe25WgmyNlAksu9XUQkSvQr8ebipXMCmcTxQ4r/J7/SS5HHOLdh1 3VTbf0QJrDd4nmaj5N9DYXdFMq4DUwbFHs0KLh1auZx2AOYJPOLJpUtHeCbGVc8RSPXP erEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-transfer-encoding; bh=JM3So1IB/qvZ+wRwg3i0KyP+Euv9or3f6R1/m0phErY=; b=PUw89U+ZEPxIXteakWL3LHXeqtl35a22tBUKYg406sqG4UKwR+EVbB0RqWWoBdwsnZ fbY1xEFxXjwhn3/grqdW4zxXdkSxIojqe5y3TsiCUqve8OsculFjIBw8qAGr0UiO4UA3 XuRSMCx34qJ4fZWttV2yarXevhCjkkIMEaV/9+QHcFineVGozNEjS8gP9bH5Hl8icJcN iGS5erkrWI69B35AyhFiM3Uluu1b0y1GkGyt+mX1UxCOlvgO8ty51dfTCHv1TedfFa03 nxyTYAnsFhORGKcOTVKn8/nCKVwSIGEAYVpPhXexcmCZou2XBVDcAdK9KWGzZCy/0VL9 bLFA== X-Gm-Message-State: AKS2vOzGHep1rm/EwqWbRbT8HM8weWClu4OLkAVrjmA3434BwTOg+xeF QOQhfyIVih6mOhV+ X-Received: by 10.55.76.140 with SMTP id z134mr56496861qka.35.1497140708464; Sat, 10 Jun 2017 17:25:08 -0700 (PDT) Received: from [192.168.0.103] (186-247-54-119.user.veloxzone.com.br. [186.247.54.119]) by smtp.gmail.com with ESMTPSA id w81sm4169314qkg.23.2017.06.10.17.25.07 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 10 Jun 2017 17:25:08 -0700 (PDT) Message-ID: <593C8DE1.4060803@gmail.com> Date: Sat, 10 Jun 2017 21:25:05 -0300 From: Friedrich Locke User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Eduardo Morras , freebsd-questions@freebsd.org Subject: Re: -O2 flag References: <593C4679.5010104@gmail.com> <20170610223753.4e37600d2c32d0b689144e00@yahoo.es> In-Reply-To: <20170610223753.4e37600d2c32d0b689144e00@yahoo.es> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2017 00:25:09 -0000 i switched to clan40, same error, i.e., it still persist. The problem is that open OpenBSD/amd64 6.1, "gcc -O2" works 100 %. What could it be the problem ? Em 10/06/2017 17:37, Eduardo Morras via freebsd-questions escreveu: > On Sat, 10 Jun 2017 16:20:25 -0300 > Friedrich Locke wrote: > >> Hi folks, >> >> i am trying compile a program with cc on freebsd 11. >> When i use -O2 compilation flag, the compiled code is giving error on >> execution, but with i omit -O2 everything works ok. >> >> Have anybody already faced such problem ? > > No, which compiler are you using? Which version? Are you using the last > version? It looks like a bug in the compiler, perhaps modifying your > code you can bypass it. > > In FreeBSD 11, the default cc is clang38, try with clang40. To install > it, use port llvm40, it includes clang40 now: > > #pkg install llvm40 > > and use clang40 instead cc. > >> Thanks in advance. > > HTH > > --- --- > Eduardo Morras > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >