From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#23261: 25.0.92; Undefined behavior in lib/stdint.h Date: Mon, 11 Apr 2016 00:23:15 -0700 Organization: UCLA Computer Science Department Message-ID: <570B50E3.7080704@cs.ucla.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1460359451 9367 80.91.229.3 (11 Apr 2016 07:24:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2016 07:24:11 +0000 (UTC) Cc: 23261@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 11 09:24:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1apWCf-0003qg-Qn for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2016 09:24:09 +0200 Original-Received: from localhost ([::1]:48979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apWCf-0007RK-1T for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2016 03:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apWCb-0007PI-AN for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2016 03:24:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apWCY-0007kb-4T for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2016 03:24:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apWCY-0007kX-16 for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2016 03:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1apWCX-0002GK-QQ for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2016 03:24:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Apr 2016 07:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23261 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23261-submit@debbugs.gnu.org id=B23261.14603594068645 (code B ref 23261); Mon, 11 Apr 2016 07:24:01 +0000 Original-Received: (at 23261) by debbugs.gnu.org; 11 Apr 2016 07:23:26 +0000 Original-Received: from localhost ([127.0.0.1]:57952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apWBy-0002FN-Jr for submit@debbugs.gnu.org; Mon, 11 Apr 2016 03:23:26 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apWBx-0002F8-Eb for 23261@debbugs.gnu.org; Mon, 11 Apr 2016 03:23:25 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9E885160FD3; Mon, 11 Apr 2016 00:23:19 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id TeHQpBid_OFb; Mon, 11 Apr 2016 00:23:19 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EBFEB160FF2; Mon, 11 Apr 2016 00:23:18 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jT8ogu15cNW6; Mon, 11 Apr 2016 00:23:18 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id CF82A160FD3; Mon, 11 Apr 2016 00:23:18 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:116371 Archived-At: > Could we maybe just remove stdint.h completely? It should always be > provided by the standard C library. Unfortunately stdint.h is not portable in practice, as many C implementations don't conform to C11 or even to C99. It sounds like your platform has a problem in this area. Emacs provides a replacement stdint.h on platforms that don't conform to the standards. I don't observe a problem with my clang installation (clang 3.7.0 on Fedora 23 x86-64). I configured with './configure CC=clang', and on my platform the system stdint.h was fine so lib/stdint.h was not created. Perhaps you could look in your config.log near the strings "checking whether stdint.h ..." and see why your clang has problems with its stdint.h, and debug what went wrong. Another possibility is to futz with your CFLAGS to cajole clang into not issuing the bogus warning. Yet another possibility is to switch to GCC.