Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxdE3-0003IS-D9 for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Sep 2018 19:12:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxdE1-0006rQ-Qy for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Sep 2018 19:12:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxdE1-0006rJ-Kz for pgsql-bugs@lists.postgresql.org; Wed, 05 Sep 2018 19:12:25 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxdDy-0004Xh-4a for pgsql-bugs@postgresql.org; Wed, 05 Sep 2018 19:12:24 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id B5B73EF6EF9C for ; Wed, 5 Sep 2018 12:12:19 -0700 (MST) Date: Wed, 5 Sep 2018 12:12:19 -0700 (MST) From: Andre_Mikulec To: pgsql-bugs@postgresql.org Message-ID: <1536174739741-0.post@n3.nabble.com> In-Reply-To: <943.1536170035@sss.pgh.pa.us> References: <943.1536170035@sss.pgh.pa.us> Subject: Re: Bug: x86_64-w64-mingw32 REL_11_STABLE with features: UpdateStatisticsForTypeChange internal compiler error MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk It is an up-to-date compiler. AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build $ x86_64-w64-mingw32-gcc --version x86_64-w64-mingw32-gcc.exe (Rev1, Built by MSYS2 project) 8.2.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. These people here do not think that "a missing return statement" is a good idea. Why and how does GCC compile a function with a missing return statement? https://stackoverflow.com/questions/7280877/why-and-how-does-gcc-compile-a-function-with-a-missing-return-statement " The subtraction of 32 was carried out in the %eax register. And in the x86 calling convention, that is the register in which the return value is expected to be! So... you got lucky. " Of $ view /w/R-3.5._/postgres/src/backend/commands/statscmds.c Here is the function. 419 void 420 UpdateStatisticsForTypeChange(Oid statsOid, Oid relationOid, int attnum, 421 Oid oldColumnType, Oid newColumnType) 422 { 423 /* 424 * Currently, we don't actually need to do anything here. For both 425 * ndistinct and functional-dependencies stats, the on-disk representation 426 * is independent of the source column data types, and it is plausible to 427 * assume that the old statistic values will still be good for the new 428 * column contents. (Obviously, if the ALTER COLUMN TYPE has a USING 429 * expression that substantially alters the semantic meaning of the column 430 * values, this assumption could fail. But that seems like a corner case 431 * that doesn't justify zapping the stats in common cases.) 432 * 433 * Future types of extended stats will likely require us to work harder. 434 */ 435 } <---------- ** The error is here at line 435 and position 1. ** -- Sent from: http://www.postgresql-archive.org/PostgreSQL-bugs-f2117394.html