public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/56187] New: void arithmetic in unwind-dw2-fde.c
@ 2013-02-02 21:05 nwmcsween at gmail dot com
  2013-02-02 21:38 ` [Bug libgcc/56187] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: nwmcsween at gmail dot com @ 2013-02-02 21:05 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56187

             Bug #: 56187
           Summary: void arithmetic in unwind-dw2-fde.c
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: nwmcsween@gmail.com


--- unwind-dw2-fde.c    2011-11-02 15:26:35.000000000 +0000
+++ unwind-dw2-fde.c.diff       2013-02-02 20:59:47.887775367 +0000
@@ -878,7 +878,7 @@

       if (pc < pc_begin)
        hi = i;
-      else if (pc >= pc_begin + pc_range)
+      else if (pc >= (char *)pc_begin + (char *)pc_range)
        lo = i + 1;
       else
        return f;


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

* [Bug libgcc/56187] void arithmetic in unwind-dw2-fde.c
  2013-02-02 21:05 [Bug libgcc/56187] New: void arithmetic in unwind-dw2-fde.c nwmcsween at gmail dot com
@ 2013-02-02 21:38 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-02-02 21:38 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56187

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-02-02
     Ever Confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-02-02 21:38:39 UTC ---
GNU C defines void arithmetic as being the same as char pointer arithmetic and
this code is always compiled with GCC.

Also your patch is incorrect it should be:
+      else if (pc >= (char *)pc_begin + pc_range)
If we are going apply it in the first place.


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

end of thread, other threads:[~2013-02-02 21:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-02 21:05 [Bug libgcc/56187] New: void arithmetic in unwind-dw2-fde.c nwmcsween at gmail dot com
2013-02-02 21:38 ` [Bug libgcc/56187] " pinskia 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).