public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/106698] `-O2 -flto` cause linker warning
       [not found] <bug-106698-4@http.gcc.gnu.org/bugzilla/>
@ 2022-10-05 10:12 ` ebotcazou at gcc dot gnu.org
  2022-10-05 10:12 ` ebotcazou at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2022-10-05 10:12 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-10-05
     Ever confirmed|0                           |1

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> I suspect the diagnostic code does not handle negative lower bounds arrays
> correctly.

Yes, see https://gcc.gnu.org/pipermail/gcc-patches/2022-August/599820.html

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

* [Bug tree-optimization/106698] `-O2 -flto` cause linker warning
       [not found] <bug-106698-4@http.gcc.gnu.org/bugzilla/>
  2022-10-05 10:12 ` [Bug tree-optimization/106698] `-O2 -flto` cause linker warning ebotcazou at gcc dot gnu.org
@ 2022-10-05 10:12 ` ebotcazou at gcc dot gnu.org
  2022-10-05 11:49 ` [Bug tree-optimization/106698] bogus -Wstringop-overflow warning on Ada code with LTO cvs-commit at gcc dot gnu.org
  2022-10-05 11:54 ` ebotcazou at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2022-10-05 10:12 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

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

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

* [Bug tree-optimization/106698] bogus -Wstringop-overflow warning on Ada code with LTO
       [not found] <bug-106698-4@http.gcc.gnu.org/bugzilla/>
  2022-10-05 10:12 ` [Bug tree-optimization/106698] `-O2 -flto` cause linker warning ebotcazou at gcc dot gnu.org
  2022-10-05 10:12 ` ebotcazou at gcc dot gnu.org
@ 2022-10-05 11:49 ` cvs-commit at gcc dot gnu.org
  2022-10-05 11:54 ` ebotcazou at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-10-05 11:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>:

https://gcc.gnu.org/g:853ce8eea4ff97850a987167e603387b3d0f1401

commit r13-3084-g853ce8eea4ff97850a987167e603387b3d0f1401
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Wed Oct 5 12:21:03 2022 +0200

    Fix bogus -Wstringop-overflow warning in Ada

    It comes from a discrepancy between get_offset_range, which uses a signed
    type, and handle_array_ref, which uses an unsigned one, to do computations.

    gcc/
            PR tree-optimization/106698
            * pointer-query.cc (handle_array_ref): Fix handling of low bound.

    gcc/testsuite/
            * gnat.dg/lto26.adb: New test.
            * gnat.dg/lto26_pkg1.ads, gnat.dg/lto26_pkg1.adb: New helper.
            * gnat.dg/lto26_pkg2.ads, gnat.dg/lto26_pkg2.adb: Likewise.

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

* [Bug tree-optimization/106698] bogus -Wstringop-overflow warning on Ada code with LTO
       [not found] <bug-106698-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2022-10-05 11:49 ` [Bug tree-optimization/106698] bogus -Wstringop-overflow warning on Ada code with LTO cvs-commit at gcc dot gnu.org
@ 2022-10-05 11:54 ` ebotcazou at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2022-10-05 11:54 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
   Target Milestone|---                         |13.0
         Resolution|---                         |FIXED

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Fixed on the mainline.

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

end of thread, other threads:[~2022-10-05 11:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-106698-4@http.gcc.gnu.org/bugzilla/>
2022-10-05 10:12 ` [Bug tree-optimization/106698] `-O2 -flto` cause linker warning ebotcazou at gcc dot gnu.org
2022-10-05 10:12 ` ebotcazou at gcc dot gnu.org
2022-10-05 11:49 ` [Bug tree-optimization/106698] bogus -Wstringop-overflow warning on Ada code with LTO cvs-commit at gcc dot gnu.org
2022-10-05 11:54 ` ebotcazou 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).