public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103575] New: gcc/fold-const-call.c:432:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] since r12-5576-ga3b31fe3692894e80de16b4059a89a309e409687
@ 2021-12-06  9:53 marxin at gcc dot gnu.org
  2021-12-06  9:53 ` [Bug c++/103575] " marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-12-06  9:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103575
           Summary: gcc/fold-const-call.c:432:1: warning: non-void
                    function does not return a value in all control paths
                    [-Wreturn-type] since
                    r12-5576-ga3b31fe3692894e80de16b4059a89a309e409687
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

Since the revision, clang complains:

/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-clang/build/gcc/fold-const-call.c:432:1:
warning: non-void function does not return a value in all control paths
[-Wreturn-type]
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-clang/build/gcc/fold-const-call.c:465:1:
warning: non-void function does not return a value in all control paths
[-Wreturn-type]

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

* [Bug c++/103575] gcc/fold-const-call.c:432:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] since r12-5576-ga3b31fe3692894e80de16b4059a89a309e409687
  2021-12-06  9:53 [Bug c++/103575] New: gcc/fold-const-call.c:432:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] since r12-5576-ga3b31fe3692894e80de16b4059a89a309e409687 marxin at gcc dot gnu.org
@ 2021-12-06  9:53 ` marxin at gcc dot gnu.org
  2021-12-06  9:58 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-12-06  9:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org
   Last reconfirmed|                            |2021-12-06
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

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

* [Bug c++/103575] gcc/fold-const-call.c:432:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] since r12-5576-ga3b31fe3692894e80de16b4059a89a309e409687
  2021-12-06  9:53 [Bug c++/103575] New: gcc/fold-const-call.c:432:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] since r12-5576-ga3b31fe3692894e80de16b4059a89a309e409687 marxin at gcc dot gnu.org
  2021-12-06  9:53 ` [Bug c++/103575] " marxin at gcc dot gnu.org
@ 2021-12-06  9:58 ` pinskia at gcc dot gnu.org
  2021-12-06  9:59 ` pinskia at gcc dot gnu.org
  2021-12-13 16:31 ` marxin at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-06  9:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There was a discussion about this one. Clang is wrong as 0-3 are all handled
for the 2bit bitfield.

Also I thought there was another bug filed already.

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

* [Bug c++/103575] gcc/fold-const-call.c:432:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] since r12-5576-ga3b31fe3692894e80de16b4059a89a309e409687
  2021-12-06  9:53 [Bug c++/103575] New: gcc/fold-const-call.c:432:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] since r12-5576-ga3b31fe3692894e80de16b4059a89a309e409687 marxin at gcc dot gnu.org
  2021-12-06  9:53 ` [Bug c++/103575] " marxin at gcc dot gnu.org
  2021-12-06  9:58 ` pinskia at gcc dot gnu.org
@ 2021-12-06  9:59 ` pinskia at gcc dot gnu.org
  2021-12-13 16:31 ` marxin at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-06  9:59 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes dup of bug 103492.

*** This bug has been marked as a duplicate of bug 103492 ***

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

* [Bug c++/103575] gcc/fold-const-call.c:432:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] since r12-5576-ga3b31fe3692894e80de16b4059a89a309e409687
  2021-12-06  9:53 [Bug c++/103575] New: gcc/fold-const-call.c:432:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] since r12-5576-ga3b31fe3692894e80de16b4059a89a309e409687 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-12-06  9:59 ` pinskia at gcc dot gnu.org
@ 2021-12-13 16:31 ` marxin at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-12-13 16:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://github.com/llvm/llv
                   |                            |m-project/issues/52666

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Upstream LLVM bug:
https://github.com/llvm/llvm-project/issues/52666

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

end of thread, other threads:[~2021-12-13 16:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06  9:53 [Bug c++/103575] New: gcc/fold-const-call.c:432:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] since r12-5576-ga3b31fe3692894e80de16b4059a89a309e409687 marxin at gcc dot gnu.org
2021-12-06  9:53 ` [Bug c++/103575] " marxin at gcc dot gnu.org
2021-12-06  9:58 ` pinskia at gcc dot gnu.org
2021-12-06  9:59 ` pinskia at gcc dot gnu.org
2021-12-13 16:31 ` marxin 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).