public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/80922] #pragma diagnostic ignored not honoured with -flto
       [not found] <bug-80922-4@http.gcc.gnu.org/bugzilla/>
@ 2021-02-14 23:24 ` msebor at gcc dot gnu.org
  2021-02-14 23:28 ` msebor at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-02-14 23:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80922

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |99098
      Known to fail|                            |10.2.0, 11.0, 7.3.0, 8.3.0,
                   |                            |9.2.0
                 CC|                            |msebor at gcc dot gnu.org
   Last reconfirmed|2017-05-31 00:00:00         |2021-2-14

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
No change in GCC 11.  FWIW, I tried the patch for pr98465 but it doesn't help:
https://gcc.gnu.org/pipermail/gcc-patches/2021-January/564060.html here.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99098
[Bug 99098] invalid/missing -Wfree-nonheap-object warnings

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/80922] #pragma diagnostic ignored not honoured with -flto
       [not found] <bug-80922-4@http.gcc.gnu.org/bugzilla/>
  2021-02-14 23:24 ` [Bug middle-end/80922] #pragma diagnostic ignored not honoured with -flto msebor at gcc dot gnu.org
@ 2021-02-14 23:28 ` msebor at gcc dot gnu.org
  2021-02-15  8:16 ` marxin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-02-14 23:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80922

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=98465

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
We should make sure the suppression works the same way with and without -flto.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/80922] #pragma diagnostic ignored not honoured with -flto
       [not found] <bug-80922-4@http.gcc.gnu.org/bugzilla/>
  2021-02-14 23:24 ` [Bug middle-end/80922] #pragma diagnostic ignored not honoured with -flto msebor at gcc dot gnu.org
  2021-02-14 23:28 ` msebor at gcc dot gnu.org
@ 2021-02-15  8:16 ` marxin at gcc dot gnu.org
  2022-04-21  9:29 ` marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-02-15  8:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80922

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.0                        |12.0

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
I can give it another try in the next stage1. It's not easy though.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/80922] #pragma diagnostic ignored not honoured with -flto
       [not found] <bug-80922-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-02-15  8:16 ` marxin at gcc dot gnu.org
@ 2022-04-21  9:29 ` marxin at gcc dot gnu.org
  2023-01-21  5:59 ` pefoley2 at pefoley dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-04-21  9:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80922

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.0                        |---

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/80922] #pragma diagnostic ignored  not honoured with -flto
       [not found] <bug-80922-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2022-04-21  9:29 ` marxin at gcc dot gnu.org
@ 2023-01-21  5:59 ` pefoley2 at pefoley dot com
  2023-01-21  6:17 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: pefoley2 at pefoley dot com @ 2023-01-21  5:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80922

pefoley2 at pefoley dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pefoley2 at pefoley dot com

--- Comment #8 from pefoley2 at pefoley dot com ---
Note that this appears to be affecting the gcc source tree.

Attempting a build with --with-build-config=bootstrap-lto --enable-werror
errors out with:
In function ‘release’,
    inlined from ‘release’ at ../../gcc/vec.h:1915:0,
    inlined from ‘__dt_base ’ at ../../gcc/vec.h:1574:0,
    inlined from ‘visit_reference_op_call.isra’ at
../../gcc/tree-ssa-sccvn.cc:5562:0:
../../gcc/vec.h:316: error: ‘free’ called on unallocated object ‘accesses’
[-Werror=free-nonheap-object]
  316 |   ::free (v);
      |
../../gcc/tree-ssa-sccvn.cc: In function ‘visit_reference_op_call.isra’:
../../gcc/tree-ssa-sccvn.cc:5457: note: declared here
 5457 |       auto_vec<ao_ref, accesses_limit> accesses;
      |
lto1: all warnings being treated as errors

Due to this pragma being ignored:
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/vec.h;h=a536b68732ddcb9ed7b223803308b3e079a53969;hb=HEAD#l300

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/80922] #pragma diagnostic ignored  not honoured with -flto
       [not found] <bug-80922-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2023-01-21  5:59 ` pefoley2 at pefoley dot com
@ 2023-01-21  6:17 ` pinskia at gcc dot gnu.org
  2023-01-23  4:33 ` pefoley2 at pefoley dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-21  6:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80922

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to pefoley2 from comment #8)
> Note that this appears to be affecting the gcc source tree.
> 
> Attempting a build with --with-build-config=bootstrap-lto --enable-werror
> errors out with:
 Yes but lto bootstrap disables werror on purpose so you adding --enable-werror
is not supported.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/80922] #pragma diagnostic ignored  not honoured with -flto
       [not found] <bug-80922-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2023-01-21  6:17 ` pinskia at gcc dot gnu.org
@ 2023-01-23  4:33 ` pefoley2 at pefoley dot com
  2023-03-31 11:56 ` marxin at gcc dot gnu.org
  2023-05-20 11:08 ` amonakov at gcc dot gnu.org
  8 siblings, 0 replies; 9+ messages in thread
From: pefoley2 at pefoley dot com @ 2023-01-23  4:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80922

--- Comment #10 from pefoley2 at pefoley dot com ---
It does? I wasn't aware of that.
My read of the configure options is that the two options are tangential.
And from a quick skim, I couldn't find anything that made enabling lto suppress
Werror.
Besides, regardless of whether it's supported or not, it's another example of
this issue in the wild.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/80922] #pragma diagnostic ignored  not honoured with -flto
       [not found] <bug-80922-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2023-01-23  4:33 ` pefoley2 at pefoley dot com
@ 2023-03-31 11:56 ` marxin at gcc dot gnu.org
  2023-05-20 11:08 ` amonakov at gcc dot gnu.org
  8 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-03-31 11:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80922

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
           Assignee|marxin at gcc dot gnu.org          |unassigned at gcc dot gnu.org

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/80922] #pragma diagnostic ignored  not honoured with -flto
       [not found] <bug-80922-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2023-03-31 11:56 ` marxin at gcc dot gnu.org
@ 2023-05-20 11:08 ` amonakov at gcc dot gnu.org
  8 siblings, 0 replies; 9+ messages in thread
From: amonakov at gcc dot gnu.org @ 2023-05-20 11:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80922

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bruno at clisp dot org

--- Comment #11 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
*** Bug 109916 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-05-20 11:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-80922-4@http.gcc.gnu.org/bugzilla/>
2021-02-14 23:24 ` [Bug middle-end/80922] #pragma diagnostic ignored not honoured with -flto msebor at gcc dot gnu.org
2021-02-14 23:28 ` msebor at gcc dot gnu.org
2021-02-15  8:16 ` marxin at gcc dot gnu.org
2022-04-21  9:29 ` marxin at gcc dot gnu.org
2023-01-21  5:59 ` pefoley2 at pefoley dot com
2023-01-21  6:17 ` pinskia at gcc dot gnu.org
2023-01-23  4:33 ` pefoley2 at pefoley dot com
2023-03-31 11:56 ` marxin at gcc dot gnu.org
2023-05-20 11:08 ` amonakov at gcc dot gnu.org

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).