From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7CD5D385BF81; Mon, 22 Jun 2020 13:33:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7CD5D385BF81 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592832806; bh=ujRicvsd3ecbgIqPjR7zdE5w/vzOai4SAiZtRhBWKuU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AeAsIttD3uh+WlW64eXxGupujPR7aDOCqHco5zLbSxaJFJzsNrGQLN3La6CJ1teD9 Ctr80WmE+YzWzHo1MYHnlSYtDcnAziAI/LDhArSNIz0rR3QnNay+J1IvS+e3cnEoku Fz8XzJi/wtzCJV7Nfl6SICWEyYx9tqu/Cain2PAo= From: "yyc1992 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/95777] Allow specifying more than one target options at the same time in target and target_clones attribute Date: Mon, 22 Jun 2020 13:33:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 10.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yyc1992 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2020 13:33:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95777 --- Comment #2 from Yichao Yu --- I only tested this with `target_clones` and it seems that I misread the document for `target`. So this is only an issue with `target_clones` attrib= ute. `target` support this just fine. So to be more clear, using an example from the doc, it seems impossible to = do the equivalent of `target("sse4.1,arch=3Dcore2")` using `target_clones`. Do= ing `target_clones("sse4.1,arch=3Dcore2")` will create two functions instead of= one. (of course in reality what I might actually want is to make `target_clones`= do `target("sse4.1,arch=3Dcore2")` and target("default")).=