[issue18407] Fix compiler warnings in pythoncore for Win64

2018-11-22 Thread STINNER Victor


STINNER Victor  added the comment:

Almost all compiler warnings on 64-bit Windows have been fixed: bpo-9566 
tracked most of them.

I extract the CryptGenRandom() fix from issue18407-2.diff. I rewrote the ast.c 
fix differently (use larger type, don't downcast).

The patch may still contains relevant changes on Python/dtoa.c and 
Python/getargs.c, but again, the most critical bugs and warnings have already 
been fixed. So I suggest to abandon issue18407-2.diff which has been written 5 
years ago.

Thanks Jeremy Kloth for the report and for the patch! I think that it's now 
time to close the issue. See bpo-9566 for the few remaining issues.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2018-11-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 4d73ae776140a583fdfe8f016d88cc767791e481 by Victor Stinner in 
branch 'master':
bpo-18407: ast.c uses Py_ssize_t for asdl_seq_LEN() iterator (GH-10655)
https://github.com/python/cpython/commit/4d73ae776140a583fdfe8f016d88cc767791e481


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2018-11-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c48ff73dd60bec5dcbe64bedeff91e6db26d98bc by Victor Stinner in 
branch 'master':
bpo-18407: win32_urandom() uses PY_DWORD_MAX (GH-10656)
https://github.com/python/cpython/commit/c48ff73dd60bec5dcbe64bedeff91e6db26d98bc


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2018-11-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9909

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2018-11-22 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2018-11-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9908
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2015-03-22 Thread Steve Dower

Steve Dower added the comment:

Does the patch still apply cleanly?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18407
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2015-03-22 Thread Mark Lawrence

Mark Lawrence added the comment:

Would someone like to review the patch please, being aware that there are other 
open issues relating to compiler warnings on Windows.

--
nosy: +steve.dower, zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18407
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have the stage set to patch review please.

--
nosy: +BreamoreBoy -brian.curtin
versions: +Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18407
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-10 Thread Jeremy Kloth

Jeremy Kloth added the comment:

Added new patch that removes the duplicate changes from issue #15792 and 
comments the lone explicit cast.

These changes fix 116 of the 216 warnings (54%!) for Win64.  Together with 
issue #15792 brings the remaining count to 72.

I am unsure if splitting the changes further makes much sense as guidance I 
have received on IRC and as others have noted in various bug reports about 
spamming the tracker with issues per file.

With that and MvL's comment in issue #18295, I do not think that it is 
advisable to separate out changes for that issue.

--
Added file: http://bugs.python.org/file30883/issue18407-2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread Jeremy Kloth

New submission from Jeremy Kloth:

The attached patch fixes compiler warnings for the pythoncore project when 
building on 64-bit Windows.

Fixes for built-in modules are not included, however.

--
files: issue18407.diff
keywords: patch
messages: 192686
nosy: brian.curtin, christian.heimes, haypo, jeremy.kloth, jkloth, loewis, 
tim.golden
priority: normal
severity: normal
status: open
title: Fix compiler warnings in pythoncore for Win64
Added file: http://bugs.python.org/file30864/issue18407.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread Jeremy Kloth

Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:


--
components: +Build, Windows
type:  - compile error
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread STINNER Victor

STINNER Victor added the comment:

-  AdditionalOptions/USECL:MS_OPTERON /GS- 
%(AdditionalOptions)/AdditionalOptions
+  BufferSecurityCheckfalse/BufferSecurityCheck

Please don't change too much things in the same patch. The issue #15792 is a 
better place for such change.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread STINNER Victor

STINNER Victor added the comment:

This issue duplicates the isuse #9566, but your patch is interesting. I created 
other more specific issues like #18295 and #18294.

-return lb - ll-ll_label;
+return Py_SAFE_DOWNCAST(lb - ll-ll_label, Py_intptr_t, int);

I don't think that such change is correct, IMO the right fix is to change the 
result type to Py_intptr_t.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread Jeremy Kloth

Jeremy Kloth added the comment:

Yeah, sorry.  This made it in by mistake.  It was in the tree just to
eliminate warning noise.

On Mon, Jul 8, 2013 at 1:20 PM, STINNER Victor rep...@bugs.python.org wrote:

 STINNER Victor added the comment:

 -  AdditionalOptions/USECL:MS_OPTERON /GS- 
 %(AdditionalOptions)/AdditionalOptions
 +  BufferSecurityCheckfalse/BufferSecurityCheck

 Please don't change too much things in the same patch. The issue #15792 is a 
 better place for such change.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue18407
 ___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread Jeremy Kloth

Jeremy Kloth added the comment:

The change in grammar.c:addlabel() is correct.  The return value is an
index into the ll-ll_label array, thus an int.  The code could be
rewritten to avoid the pointer addition by saving the value of
ll-ll_nlabels before it is incremented and return that instead,

On Mon, Jul 8, 2013 at 1:23 PM, STINNER Victor rep...@bugs.python.org wrote:

 STINNER Victor added the comment:

 This issue duplicates the isuse #9566, but your patch is interesting. I 
 created other more specific issues like #18295 and #18294.

 -return lb - ll-ll_label;
 +return Py_SAFE_DOWNCAST(lb - ll-ll_label, Py_intptr_t, int);

 I don't think that such change is correct, IMO the right fix is to change the 
 result type to Py_intptr_t.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue18407
 ___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread Jeremy Kloth

Jeremy Kloth added the comment:

Ugh, sorry for the bad quoting (silly GMail).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com