public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/63397] New: signed integer overflows in ira.c
@ 2014-09-28  9:55 trippels at gcc dot gnu.org
  2014-12-15 22:19 ` [Bug rtl-optimization/63397] " vmakarov at gcc dot gnu.org
  2014-12-16  7:10 ` trippels at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-28  9:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63397
           Summary: signed integer overflows in ira.c
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
                CC: vmakarov at gcc dot gnu.org

gcc build with -fsanitize=undefined shows:

markus@x4 testsuite % gcc -c -Os  gcc.dg/atomic/c11-atomic-exec-3.c
gcc/ira.c:2465:24: runtime error: signed integer overflow: -2095982000 +
-65536000 cannot be represented in type 'int'
gcc/ira.c:2472:31: runtime error: signed integer overflow: -2095102000 +
-65536000 cannot be represented in type 'int'


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

* [Bug rtl-optimization/63397] signed integer overflows in ira.c
  2014-09-28  9:55 [Bug rtl-optimization/63397] New: signed integer overflows in ira.c trippels at gcc dot gnu.org
@ 2014-12-15 22:19 ` vmakarov at gcc dot gnu.org
  2014-12-16  7:10 ` trippels at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2014-12-15 22:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Mon Dec 15 22:18:51 2014
New Revision: 218766

URL: https://gcc.gnu.org/viewcvs?rev=218766&root=gcc&view=rev
Log:
2014-12-15  Vladimir Makarov  <vmakarov@redhat.com>

    PR rtl-optimization/63397
    * ira-int.h (ira_overall_cost, ira_reg_cost, ira_mem_cost): Use
    int64_t.
    (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
    * ira.c (ira_overall_cost, ira_overall_cost_before): Ditto.
    (ira_reg_cost, ira_mem_cost): Ditto.
    (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
    (calculate_allocation_cost, do_reload): Use the right
    format for int64_t values.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ira-int.h
    trunk/gcc/ira.c


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

* [Bug rtl-optimization/63397] signed integer overflows in ira.c
  2014-09-28  9:55 [Bug rtl-optimization/63397] New: signed integer overflows in ira.c trippels at gcc dot gnu.org
  2014-12-15 22:19 ` [Bug rtl-optimization/63397] " vmakarov at gcc dot gnu.org
@ 2014-12-16  7:10 ` trippels at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-12-16  7:10 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Fixed. Thanks.


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

end of thread, other threads:[~2014-12-16  7:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-28  9:55 [Bug rtl-optimization/63397] New: signed integer overflows in ira.c trippels at gcc dot gnu.org
2014-12-15 22:19 ` [Bug rtl-optimization/63397] " vmakarov at gcc dot gnu.org
2014-12-16  7:10 ` trippels 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).