public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "eggert at cs dot ucla.edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61118] [11/12/13/14/15 Regression] Indirect call generated for pthread_cleanup_push with constant cleanup function Date: Mon, 29 Apr 2024 04:26:40 +0000 [thread overview] Message-ID: <bug-61118-4-sVVCCGlIgk@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-61118-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61118 Paul Eggert <eggert at cs dot ucla.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eggert at cs dot ucla.edu --- Comment #32 from Paul Eggert <eggert at cs dot ucla.edu> --- Created attachment 58065 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58065&action=edit Run "gunzip t.i.gz; gcc -O2 -S -Wclobbered t.i" to reproduce the false positives I ran into this bug today when compiling GNU Emacs with gcc (GCC) 14.0.1 20240411 (Red Hat 14.0.1-0) on x86-64 (Fedora 40). I didn't see it with earlier GCC releases so I thought I'd attach a test case, derived from Emacs. Compile with: gunzip t.i gcc -O2 -S -Wclobbered t.i and the incorrect diagnostics are: t.i: In function ‘internal_lisp_condition_case’: t.i:7969:15: warning: variable ‘sym’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered] 7969 | Lisp_Object sym = XSYMBOL_WITH_POS (a)->sym; | ^~~ t.i:94273:43: warning: argument ‘var’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered] 94273 | internal_lisp_condition_case (Lisp_Object var, Lisp_Object bodyform, | ~~~~~~~~~~~~^~~
next prev parent reply other threads:[~2024-04-29 4:26 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-05-08 20:45 [Bug c/61118] New: Spurious -Wclobbered warning generated by gcc 4.9.0 for pthread_cleanup_push tavianator at gmail dot com 2015-04-02 5:48 ` [Bug middle-end/61118] " douzzer at mega dot nu 2015-09-10 10:17 ` lambertarthur22 at gmail dot com 2021-05-14 9:47 ` [Bug middle-end/61118] [9/10/11/12 Regression] Indirect call generated for pthread_cleanup_push with constant cleanup function jakub at gcc dot gnu.org 2021-06-01 8:06 ` rguenth at gcc dot gnu.org 2022-05-27 9:35 ` [Bug middle-end/61118] [10/11/12/13 " rguenth at gcc dot gnu.org 2022-06-28 10:30 ` jakub at gcc dot gnu.org 2023-07-07 10:30 ` [Bug middle-end/61118] [11/12/13/14 " rguenth at gcc dot gnu.org 2024-04-29 4:26 ` eggert at cs dot ucla.edu [this message] 2024-04-29 4:41 ` [Bug middle-end/61118] [11/12/13/14/15 " pinskia at gcc dot gnu.org
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-61118-4-sVVCCGlIgk@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).