From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93577 invoked by alias); 5 Sep 2017 10:58:10 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 93566 invoked by uid 89); 5 Sep 2017 10:58:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-wm0-f46.google.com Received: from mail-wm0-f46.google.com (HELO mail-wm0-f46.google.com) (74.125.82.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 05 Sep 2017 10:58:03 +0000 Received: by mail-wm0-f46.google.com with SMTP id i145so17488353wmf.1 for ; Tue, 05 Sep 2017 03:58:03 -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:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jbrpdRRNZe50Z7iINclMeTUcZUiTDvJa5hWs4RQnrvg=; b=PjweGDjijU7C3cZ5DN23PH5Vaeu5Bb8oWNEf8gmEdEKhNywYlneaqicsyFLrVhQRi9 YPbsLUTQJyeU3/uYvyKFh/uv/4WoE+bjOv7mdTCKHcOuEKxNXx8cQNtC8DXvYqRWKY70 /LnNxBm5YSBqw/g4jTlJCWxKhwdeZhLYO6Fa4Sd/DIsG/8/kMXsgJrcdNCQhY9rUvbUc /hsbWNgYor1Q4uPpD4gM5WX0QadvGDFAqso2ogdE814jz9xPokSc7pvU6FB7u4eMjNS2 d1QM1pq/VNmiNA9UkDPz9G3mKhpQ0fzwVOgRuvjvCdAt755iPPP7qwqRTePLwRLs9Lax sgnw== X-Gm-Message-State: AHPjjUh+XLbKF4LTemDBCWRIXpCsZDLr5upPnoJqdggRuoIGxsqr+aGZ Lhd6AKrYLCmUMZPPEPspLeYUO4fF/rHV X-Google-Smtp-Source: ADKCNb4+xlKsLArCKdVF07Yu8viuvgo23fLUVidZ9D7qnqRKO7rc3Z4LVV7eNU4x0AaF4W/xe6lrGdHqSB0ewXFhf5A= X-Received: by 10.80.154.229 with SMTP id p92mr1714351edb.24.1504609081453; Tue, 05 Sep 2017 03:58:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.181.114 with HTTP; Tue, 5 Sep 2017 03:58:00 -0700 (PDT) In-Reply-To: References: From: Eric Gallager Date: Tue, 05 Sep 2017 10:58:00 -0000 Message-ID: Subject: Re: [00/77] Add wrapper classes for machine_modes To: Gerald Pfeifer Cc: Richard Sandiford , gcc-patches@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00246.txt.bz2 On 9/3/17, Gerald Pfeifer wrote: > Hi Richard, > > I'm afraid your patchset has broken bootstrap on i686-unknown-freebsd10.3, > in fact, it appears on FreeBSD in general (amd64-unknown-freebsd11 as > well): > > > /scratch/tmp/gerald/GCC-HEAD/gcc/builtins.c:4913:6: error: cannot pass > object of non-POD type 'scalar_int_mode' through variadic function; call > will abort at runtime [-Wnon-pod-varargs] > > ptr_mode, bot, ptr_mode); > ^ > > /scratch/tmp/gerald/GCC-HEAD/gcc/builtins.c:4913:21: error: cannot pass > object of non-POD type 'scalar_int_mode' through variadic function; call > will abort at runtime [-Wnon-pod-varargs] > > ptr_mode, bot, ptr_mode); > ^ > > > Digging into this, I believe this is due to clang 3.4.1 serving as system > compiler (which probably is why nobody else reported this so far): > > c++ -std=gnu++98 -fno-PIE -c -g -DIN_GCC -fno-strict-aliasing > -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall > -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format > -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long > -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H > : > -o calls.o -MT calls.o -MMD -MP -MF ./.deps/calls.TPo > /scratch/tmp/gerald/GCC-HEAD/gcc/calls.c > > Gerald > Note that bug 64867 exists to add this warning for gcc, too: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64867