public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "larryv at macports dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63810] gcc sets incorrect macro for OS X deployment targets Date: Fri, 14 Nov 2014 09:16:00 -0000 [thread overview] Message-ID: <bug-63810-4-gL0YPgkfpb@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-63810-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810 --- Comment #4 from Lawrence Velázquez <larryv at macports dot org> --- Created attachment 33969 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33969&action=edit patch against 4.9 branch for handling deployment targets correctly Patched GCC 4.9.2 matched the behavior of Apple LLVM Compiler 6.0 (clang-600.0.54) over 8,451 out of 8,464 test strings. The 13 mismatches are due to a bug in clang. >From gcc-bugs-return-466728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Nov 14 09:18:44 2014 Return-Path: <gcc-bugs-return-466728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12239 invoked by alias); 14 Nov 2014 09:18:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12195 invoked by uid 48); 14 Nov 2014 09:18:41 -0000 From: "larryv at macports dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63810] gcc sets incorrect macro for OS X deployment targets Date: Fri, 14 Nov 2014 09:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: larryv at macports dot org X-Bugzilla-Status: NEW 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: attachments.created Message-ID: <bug-63810-4-rUMO4OR8qD@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-63810-4@http.gcc.gnu.org/bugzilla/> References: <bug-63810-4@http.gcc.gnu.org/bugzilla/> 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-SW-Source: 2014-11/txt/msg01200.txt.bz2 Content-length: 371 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810 --- Comment #5 from Lawrence Velázquez <larryv at macports dot org> --- Created attachment 33970 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33970&action=edit patch against 4.8 branch for handling deployment targets correctly This patch incorporates and supersedes attachment 33932 from bug 61407. >From gcc-bugs-return-466729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Nov 14 09:21:44 2014 Return-Path: <gcc-bugs-return-466729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15274 invoked by alias); 14 Nov 2014 09:21:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15224 invoked by uid 48); 14 Nov 2014 09:21:37 -0000 From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/63862] New: C frontend converts shift-count to int while standard wants integer promotions Date: Fri, 14 Nov 2014 09:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: <bug-63862-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg01201.txt.bz2 Content-length: 1312 https://gcc.gnu.org/bugzilla/show_bug.cgi?idc862 Bug ID: 63862 Summary: C frontend converts shift-count to int while standard wants integer promotions Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org CC: jsm28 at gcc dot gnu.org /* Convert the non vector shift-count to an integer, regardless of size of value being shifted. */ if (TREE_CODE (TREE_TYPE (op1)) != VECTOR_TYPE && TYPE_MAIN_VARIANT (TREE_TYPE (op1)) != integer_type_node) op1 = convert (integer_type_node, op1); while C99 6.5.7 says "The integer promotions are performed on each of the operands". The above pessimizes gcc.c-torture/execute/shiftopt-1.c which does void utest (unsigned int x) { if (-1 >> x != -1) link_error (); } and thus expects us to know that the shift amount is nonnegative. But with the C frontend generating -1 >> (int)x we don't know that anymore (and thus if I fix the bogus fold-const.c code which strips sign-changing conversions on x before asking tree_expr_nonnegative_p it fails to optimize).
next prev parent reply other threads:[~2014-11-14 9:16 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-11-11 2:00 [Bug driver/63810] New: " jeremyhu at macports dot org 2014-11-11 7:38 ` [Bug target/63810] " fxcoudert at gcc dot gnu.org 2014-11-14 9:09 ` larryv at macports dot org 2014-11-14 9:16 ` larryv at macports dot org [this message] 2014-11-14 21:21 ` howarth at bromo dot med.uc.edu 2014-11-14 21:24 ` larryv at macports dot org 2014-11-14 21:59 ` larryv at macports dot org 2014-11-18 6:40 ` larryv at macports dot org 2014-11-18 7:31 ` larryv at macports dot org 2014-11-18 9:32 ` fxcoudert at gcc dot gnu.org 2014-12-22 22:42 ` egall at gwmail dot gwu.edu 2015-05-15 6:54 ` vq at larryv dot me 2015-05-15 22:52 ` fxcoudert at gcc dot gnu.org 2015-05-16 2:16 ` vq at larryv dot me 2015-05-16 7:58 ` fxcoudert at gcc dot gnu.org 2015-05-20 22:01 ` vq at larryv dot me 2015-05-28 12:27 ` mrs at gcc dot gnu.org 2015-05-28 16:08 ` vq at larryv dot me
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-63810-4-gL0YPgkfpb@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).