GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-96821: Add config option `--with-strict-overflow` by matthiasgoergens · Pull Request #96823 · python/cpython Conversation
|
|
@ericsnowcurrently Please have a look. I think perhaps we should only add the flag when we detect that the compiler supports it? What do you think? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, please add a compiler flag check. FWIW, the autoconf changes themselves look good. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This seems okay to me too.
First, though:
How can we verify (now or in the future) that these modules can't use strict overflow or that everything else can?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Let's discuss this over on gh-96821. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
-fno-strict-overflow-fstrict-overflow
There was an error while loading. Please reload this page.
…9c.rst Co-authored-by: C.A.M. Gerlach <[email protected]>
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@AA-Turner Thanks for the suggestions! Much appreciated. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| [--with-strict-overflow], | ||
| [choose between -fstrict-overflow or -fno-strict-overflow (default is no)]),[], | ||
| [with_strict_overflow=no]) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry to pick on this further. I would like two more changes before merging:
AC_MSG_WARN if ac_cv_cc_supports_fstrict_overflow=no and --with-strict-overflow=yes ("--with-strict-overflow=yes specified, but your compiler does not support the -fstrict-overflow flag"
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Don't worry about picking on this, I'm just glad you care enough to make the effort!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just ping me when you've made the changes, and I'll get this merged.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for shepherding this through, @erlend-aasland! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
...and @matthiasgoergens for doing the work, of course. 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
(I'm working my way through some PRs which have been approved and are labeled "awaiting merge", hence my seemingly bolt from the blue comment. Why? Read here.) This work looks to be completed. Can someone merge? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I'm awaiting final changes. See #96823 (comment) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@erlend-aasland I was interested in picking this up, so I added the help message change you suggested here #96823 (comment) to the PR I was looking into adding the warn as well, but I'm not familiar with autoconf. The existing PR looks like it's missing something to me... should we be setting |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Great, thanks :)
Yes; if we don't, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Please pick this up, if you can. Thanks! I don't have as much time as I would like these days. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Okay, I think this is ready. I'm not familiar with autoconf, so apologies for any issues! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks, Shantanu! It looks good, AFAICS. As an improvement, we could rewrite the logic to only check for the compiler switch if |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Gentle ping @hauntsaninja @erlend-aasland This came up in discussion and it looks like we're really close to being |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think this is ready to merge if we need it. Erlend's last comment is a nice to have and I can address it in a follow up PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Nice to see this progressing! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks Shantanu and Matthias! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
) Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Shantanu <[email protected]>
* main: (21 commits) pythongh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives in sub interpreters module (python#102472) pythongh-95672: Fix versionadded indentation of get_pagesize in test.rst (pythongh-102455) pythongh-102416: Do not memoize incorrectly loop rules in the parser (python#102467) pythonGH-101362: Optimise PurePath(PurePath(...)) (pythonGH-101667) pythonGH-101362: Check pathlib.Path flavour compatibility at import time (pythonGH-101664) pythonGH-101362: Call join() only when >1 argument supplied to pathlib.PurePath() (python#101665) pythongh-102444: Fix minor bugs in `test_typing` highlighted by pyflakes (python#102445) pythonGH-102341: Improve the test function for pow (python#102342) Fix unused classes in a typing test (pythonGH-102437) pythongh-101979: argparse: fix a bug where parentheses in metavar argument of add_argument() were dropped (python#102318) pythongh-102356: Add thrashcan macros to filter object dealloc (python#102426) Move around example in to_bytes() to avoid confusion (python#101595) pythonGH-97546: fix flaky asyncio `test_wait_for_race_condition` test (python#102421) pythongh-96821: Add config option `--with-strict-overflow` (python#96823) pythongh-101992: update pstlib module documentation (python#102133) pythongh-63301: Set exit code when tabnanny CLI exits on error (python#7699) pythongh-101863: Fix wrong comments in EUC-KR codec (pythongh-102417) pythongh-102302 Micro-optimize `inspect.Parameter.__hash__` (python#102303) pythongh-102179: Fix `os.dup2` error reporting for negative fds (python#102180) pythongh-101892: Fix `SystemError` when a callable iterator call exhausts the iterator (python#101896) ...
* main: (37 commits) pythongh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives in sub interpreters module (python#102472) pythongh-95672: Fix versionadded indentation of get_pagesize in test.rst (pythongh-102455) pythongh-102416: Do not memoize incorrectly loop rules in the parser (python#102467) pythonGH-101362: Optimise PurePath(PurePath(...)) (pythonGH-101667) pythonGH-101362: Check pathlib.Path flavour compatibility at import time (pythonGH-101664) pythonGH-101362: Call join() only when >1 argument supplied to pathlib.PurePath() (python#101665) pythongh-102444: Fix minor bugs in `test_typing` highlighted by pyflakes (python#102445) pythonGH-102341: Improve the test function for pow (python#102342) Fix unused classes in a typing test (pythonGH-102437) pythongh-101979: argparse: fix a bug where parentheses in metavar argument of add_argument() were dropped (python#102318) pythongh-102356: Add thrashcan macros to filter object dealloc (python#102426) Move around example in to_bytes() to avoid confusion (python#101595) pythonGH-97546: fix flaky asyncio `test_wait_for_race_condition` test (python#102421) pythongh-96821: Add config option `--with-strict-overflow` (python#96823) pythongh-101992: update pstlib module documentation (python#102133) pythongh-63301: Set exit code when tabnanny CLI exits on error (python#7699) pythongh-101863: Fix wrong comments in EUC-KR codec (pythongh-102417) pythongh-102302 Micro-optimize `inspect.Parameter.__hash__` (python#102303) pythongh-102179: Fix `os.dup2` error reporting for negative fds (python#102180) pythongh-101892: Fix `SystemError` when a callable iterator call exhausts the iterator (python#101896) ...
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.