From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id B90493858D20 for ; Wed, 30 Aug 2023 00:22:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B90493858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b95d5ee18dso76408081fa.1 for ; Tue, 29 Aug 2023 17:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693354928; x=1693959728; darn=gcc.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=zPfbUZ09tXuoLJxBUcQp3AgMaA/EsSp+13HdPg8tCWg=; b=NMTQ7L0igSNsng5FNrisfqPx68kz44qhmpQPnhKSlBAKqvJUVeI0KtQ4wLgK4VqSKu I+PkSd0G5TmaksqDAZ0/nZ0zUu5PqBCogEVgkmSa2hjfHTXVZqyY2zg9DYUgkszhDbYB gqbxWUSG59OBKTT/NpivqUaUipgRJD9PADim0mW652dK3Qd7RSFVHxHt+qtjsnI5z+SA f7YQEPo5fVI4x8WqXuD9Uza10YbO3izNUigE6jxzypGuDVN8J6AmrX0c5s34+4eBippv Xsq4o9eT2UtGosWvCMDvswjoy7wOcPkiEXLRX/orZjaCXpv/hz7x6nfa7KY0t/kqD/nh eGqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693354928; x=1693959728; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zPfbUZ09tXuoLJxBUcQp3AgMaA/EsSp+13HdPg8tCWg=; b=Xg5j91YmaLPLxs+fANUdft6S15uXJMS17ypmJSmzSy2YHrIy3ANfrYR9aHy0ujhyqG NTMIYFtx2Fa5TvanMWdXu9eVOs8KjZOr55U3r6A+HEc+HcbCTGLViKLC4rGV63CCwxDe YHiBrvLXF5WjDaN+g3/FUVdo3r8fGdsOe72Rv5mh4Rm6quk8TT76rrPM9Gg7hWLVTZ4U in146+zjVfzOG7gfw6XRjxg72EHTHMmcfCdeMW9bwRsbddyxsfnlQRWz6teymLuR86Sa 2z+z5PPwbnPM5SMuF9V7T/AnqEqZqG9LRYwNpG7irdhraEMEr2pBXJ31DuqwTCMZhkFu tdnA== X-Gm-Message-State: AOJu0Yxlkvicf6canj4ff2pGBfRSr3sWZ2VL1TfNUTgNjiOB4Pw5Fj8+ RztGTMUWUaI39bywjiGUHwHzrcNhxZX8DWhF6Er4JW2wOMU5nA== X-Google-Smtp-Source: AGHT+IFZTLtJkVJw/UK7/aWpkUzJ4eNOaGFwW3moAxtk84WMKZZTlZmNbr7jkHaG/jWJ59utY1a/7DzlVWOeIpACaE4= X-Received: by 2002:a2e:9045:0:b0:2bc:e827:a4f9 with SMTP id n5-20020a2e9045000000b002bce827a4f9mr555783ljg.30.1693354927605; Tue, 29 Aug 2023 17:22:07 -0700 (PDT) MIME-Version: 1.0 From: Andy Date: Wed, 30 Aug 2023 02:21:56 +0200 Message-ID: Subject: Pedantic mode and standard headers To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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: C90 mode allows GNU extensions, I I care about clean C90 because I try to write C90 ANTLR grammar. Pedantic mode helps. Standard header uses GNU extensions (?) and if I preprocess file, it wii: - pedantic mode change preprocessed file and no GNU extension in this file - in the preprocessed file will GNU extensions. I have questions: if in a preprocessed file will GNU extensions. it compile with Pedantic mode? Or pedantic will be used only on preprocessed part main .cpp file, for preprocessed standard headers file it uses GNU extensions?