From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id CE6BD3858CDA for ; Tue, 24 Oct 2023 19:03:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CE6BD3858CDA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CE6BD3858CDA Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698174191; cv=none; b=s8PwL/UsOIupWovPYXOUzDvSnHfRu3QpLudnPVBnRW7Kso+fkTqY3Hp9SiAPBh5EKhOW3t0TJa+8Owdb+Wzn9HoGfQalNmAhAs87bUDtFJdv7OO3vy9PvacbPGhbMFLwo07NAnShJDD4mbD7wT146cAL3qac62jkOTu6bCiSkEg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698174191; c=relaxed/simple; bh=QfLg6kKaAr7Ft7gv0bWGUHlzCAYiYG17JQBmEmydPIg=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=pZrMCRUix7+rmgnNhZ5Rt8+S1GNwBPcUwy2gVbTeOZOj5fL+1Vrinjanqfm8PcSTUbItemuQuFcVvzo7PZdJbJoK6AgxkI945ksE0+jnrDUDe/l0bDPJEDGnUJlP8DjvVEnoYIAaDPovRVXnrDc836xyqsAmM9boVNuLVZWV/QA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698174189; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oP8prdoYfaVFC5Z29G0Tejz4hrSnCvZcfcw3b1WbJyk=; b=Jzt9BGZtPB4veIULmPh1qsMs5JmCYbxbIB1gec5XEzFb1K5571oUh5abStFlcxra+UDJ4h 25TbZFaVuXMmH1aTRhvAY56qKEXJpUc8VnCo6TprStYFbneoAgX6JjB2i3XDti7B8Jwusl LcZEaBiEMKux5RQ1+b+f+59I4nh1ZbQ= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-391-huS3yBLRP-6UGP-X-B9dog-1; Tue, 24 Oct 2023 15:03:07 -0400 X-MC-Unique: huS3yBLRP-6UGP-X-B9dog-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-65afd7515aaso67337746d6.0 for ; Tue, 24 Oct 2023 12:03:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698174187; x=1698778987; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oP8prdoYfaVFC5Z29G0Tejz4hrSnCvZcfcw3b1WbJyk=; b=LHnoDMAwcAjFRkdUD+dnOcLpGd/AT5II7l3tJNo0bfR7y7FGZIEzyhRTawngeC0bYG tbb9HokcG0E0d2I7/4jO+jTI8RT0uQMTpP0OdpNFeqY1YrULhZAOCDVbkUU/1pyBv7W8 34k5RQnFWTpe1q/UNRQi0RUepZS0pUQWAJg6iw41wDIPv+ECVgzMhbjeBztKWTbRDt51 tr9uQmu6V2JwyjkTgTPCdOopqwa/JURzgUvTogE6PO5oWC60o77ZVppHaKVy2rVFu4Q6 7F0gpMHZnxEw+PJ3fX1bI7abvw/R021ZC9GtoxdbFaDAGha5N6gavOtrZYrw7/ox90ZJ Il8w== X-Gm-Message-State: AOJu0YxEKcSN/40pmXJBXklTJozx6G1andLR/Rx41wVE6y3n/L+lJGzk 6pHkr5GewbPRqbqKxyqf/1+3qqRkNNdVff2BQAmeXX0CFuP3bTIJeXi0UtXYXQNUyxFKk9R+kUL pEFHWyMbuNjYluGQjPA== X-Received: by 2002:a05:622a:452:b0:418:a0f:90e9 with SMTP id o18-20020a05622a045200b004180a0f90e9mr13095364qtx.1.1698174187330; Tue, 24 Oct 2023 12:03:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwGQxNcDYqzV0minS9/77ITH9FtNY0HwB+Q2YjSs5m8x50ZEVIlcNZEQ7tCNtuR6ZG6bvOmg== X-Received: by 2002:a05:622a:452:b0:418:a0f:90e9 with SMTP id o18-20020a05622a045200b004180a0f90e9mr13095346qtx.1.1698174187092; Tue, 24 Oct 2023 12:03:07 -0700 (PDT) Received: from redhat.com (2603-7000-9500-34a5-0000-0000-0000-1db4.res6.spectrum.com. [2603:7000:9500:34a5::1db4]) by smtp.gmail.com with ESMTPSA id ki22-20020a05622a771600b00417fa0cd77esm3637005qtb.80.2023.10.24.12.03.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 12:03:06 -0700 (PDT) Date: Tue, 24 Oct 2023 15:03:04 -0400 From: Marek Polacek To: Iain Sandoe Cc: Richard Biener , GCC Patches Subject: Re: [PATCH v3] gcc: Introduce -fhardened Message-ID: References: <20230915150816.18190-1-polacek@redhat.com> <33319A1F-AC61-4D6C-BB47-984E2071A241@sandoe.co.uk> MIME-Version: 1.0 In-Reply-To: <33319A1F-AC61-4D6C-BB47-984E2071A241@sandoe.co.uk> User-Agent: Mutt/2.2.9 (2022-11-12) X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, Oct 24, 2023 at 10:34:22AM +0100, Iain Sandoe wrote: > hi Marek, > > > On 24 Oct 2023, at 08:44, Iain Sandoe wrote: > > On 23 Oct 2023, at 20:25, Marek Polacek wrote: > >> > >> On Thu, Oct 19, 2023 at 02:24:11PM +0200, Richard Biener wrote: > >>> On Wed, Oct 11, 2023 at 10:48 PM Marek Polacek wrote: > >>>> > >>>> On Tue, Sep 19, 2023 at 10:58:19AM -0400, Marek Polacek wrote: > >>>>> On Mon, Sep 18, 2023 at 08:57:39AM +0200, Richard Biener wrote: > >>>>>> On Fri, Sep 15, 2023 at 5:09 PM Marek Polacek via Gcc-patches > >>>>>> wrote: > >> > > > >> and I tried Darwin (104) and that fails with > >> > >> *** Configuration aarch64-apple-darwin21.6.0 not supported > >> > >> Is anyone else able to build gcc on those machines, or test the attached > >> patch? > > > > We’re still working on upstreaming the aarch64 Darwin port - the devt. branch > > is here; https://github.com/iains/gcc-darwin-arm64 (but it will be rebased soon > > because we just upstreamed some dependencies). > > > > In the meantime, I will put your patch into my test queue - hopefully before > > next week. > > actually, I rebased already .. (but not pushed yet, pending testing). > > aarch64-darwin21 bootstrapped fine with your patch (as did x86_64-darwin19) Thank you so much Iain! > === > > $ /opt/iains/aarch64-apple-darwin21/gcc-14-0-0/bin/gcc /source/test/hello.c -o hc -fhardened -Whardened > cc1: warning: ‘_FORTIFY_SOURCE’ is not enabled by ‘-fhardened’ because optimizations are turned off [-Whardened] > > $ /opt/iains/aarch64-apple-darwin21/gcc-14-0-0/bin/gcc /source/test/hello.c -o hc -fhardened -Whardened -O > That looks correct. > I’m about to run the testsuite, but if there’s something else to be tested please let me know (NOTE: I have not read the patch, just applied it and built). I am mostly curious about the fhardened* tests, if they all pass. Thanks, Marek