public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/48694] New: possible memory hog bug
@ 2011-04-19 21:12 regehr at cs dot utah.edu
  2011-04-19 21:16 ` [Bug c/48694] " regehr at cs dot utah.edu
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: regehr at cs dot utah.edu @ 2011-04-19 21:12 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: possible memory hog bug
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: regehr@cs.utah.edu


Created attachment 24047
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24047
hog-inducing c code

It's not totally clear this is a bug, but the attached program is about 36 KB
and compiling it exhausts the RAM on a 6 GB x86-64 box.


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

* [Bug c/48694] possible memory hog bug
  2011-04-19 21:12 [Bug c/48694] New: possible memory hog bug regehr at cs dot utah.edu
@ 2011-04-19 21:16 ` regehr at cs dot utah.edu
  2011-04-19 21:52 ` regehr at cs dot utah.edu
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: regehr at cs dot utah.edu @ 2011-04-19 21:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from John Regehr <regehr at cs dot utah.edu> 2011-04-19 21:16:39 UTC ---
Sorry forgot to add this.

[regehr@gamow tmp011]$ current-gcc -O1 -fwhole-program small.c -w
current-gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

[regehr@gamow tmp011]$ current-gcc -v
Using built-in specs.
COLLECT_GCC=current-gcc
COLLECT_LTO_WRAPPER=/uusoc/exports/scratch/regehr/z/compiler-install/gcc-r172662-install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --with-libelf=/usr/local --enable-lto
--prefix=/home/regehr/z/compiler-install/gcc-r172662-install
--program-prefix=r172662- --enable-languages=c,c++
Thread model: posix
gcc version 4.7.0 20110418 (experimental) (GCC)


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

* [Bug c/48694] possible memory hog bug
  2011-04-19 21:12 [Bug c/48694] New: possible memory hog bug regehr at cs dot utah.edu
  2011-04-19 21:16 ` [Bug c/48694] " regehr at cs dot utah.edu
@ 2011-04-19 21:52 ` regehr at cs dot utah.edu
  2011-04-20  8:17 ` [Bug tree-optimization/48694] [4.7 Regression] " jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: regehr at cs dot utah.edu @ 2011-04-19 21:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from John Regehr <regehr at cs dot utah.edu> 2011-04-19 21:52:22 UTC ---
Same testcase dies after consuming about 14 GB virtual memory on a machine with
8 GB of RAM.


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

* [Bug tree-optimization/48694] [4.7 Regression] possible memory hog bug
  2011-04-19 21:12 [Bug c/48694] New: possible memory hog bug regehr at cs dot utah.edu
  2011-04-19 21:16 ` [Bug c/48694] " regehr at cs dot utah.edu
  2011-04-19 21:52 ` regehr at cs dot utah.edu
@ 2011-04-20  8:17 ` jakub at gcc dot gnu.org
  2011-04-20  9:23 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-20  8:17 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.6.0
   Last reconfirmed|                            |2011.04.20 08:17:14
          Component|c                           |tree-optimization
                 CC|                            |jakub at gcc dot gnu.org
     Ever Confirmed|0                           |1
            Summary|possible memory hog bug     |[4.7 Regression] possible
                   |                            |memory hog bug
   Target Milestone|---                         |4.7.0
      Known to fail|                            |4.7.0

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-20 08:17:14 UTC ---
This is PRE, in func_1.


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

* [Bug tree-optimization/48694] [4.7 Regression] possible memory hog bug
  2011-04-19 21:12 [Bug c/48694] New: possible memory hog bug regehr at cs dot utah.edu
                   ` (2 preceding siblings ...)
  2011-04-20  8:17 ` [Bug tree-optimization/48694] [4.7 Regression] " jakub at gcc dot gnu.org
@ 2011-04-20  9:23 ` rguenth at gcc dot gnu.org
  2011-04-21 22:39 ` arthur.j.odwyer at gmail dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-20  9:23 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-20 09:22:09 UTC ---
I'll have a looksee.


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

* [Bug tree-optimization/48694] [4.7 Regression] possible memory hog bug
  2011-04-19 21:12 [Bug c/48694] New: possible memory hog bug regehr at cs dot utah.edu
                   ` (3 preceding siblings ...)
  2011-04-20  9:23 ` rguenth at gcc dot gnu.org
@ 2011-04-21 22:39 ` arthur.j.odwyer at gmail dot com
  2011-04-26  9:23 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: arthur.j.odwyer at gmail dot com @ 2011-04-21 22:39 UTC (permalink / raw)
  To: gcc-bugs

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

Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arthur.j.odwyer at gmail
                   |                            |dot com

--- Comment #5 from Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> 2011-04-21 22:38:48 UTC ---
I just filed bug 48714, which is probably a duplicate of this, with a couple of
small test cases.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48714


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

* [Bug tree-optimization/48694] [4.7 Regression] possible memory hog bug
  2011-04-19 21:12 [Bug c/48694] New: possible memory hog bug regehr at cs dot utah.edu
                   ` (4 preceding siblings ...)
  2011-04-21 22:39 ` arthur.j.odwyer at gmail dot com
@ 2011-04-26  9:23 ` rguenth at gcc dot gnu.org
  2011-04-26  9:24 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-26  9:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-26 09:20:14 UTC ---
*** Bug 48714 has been marked as a duplicate of this bug. ***


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

* [Bug tree-optimization/48694] [4.7 Regression] possible memory hog bug
  2011-04-19 21:12 [Bug c/48694] New: possible memory hog bug regehr at cs dot utah.edu
                   ` (5 preceding siblings ...)
  2011-04-26  9:23 ` rguenth at gcc dot gnu.org
@ 2011-04-26  9:24 ` rguenth at gcc dot gnu.org
  2011-04-26  9:26 ` rguenth at gcc dot gnu.org
  2011-04-26 10:15 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-26  9:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-26 09:21:47 UTC ---
Author: rguenth
Date: Tue Apr 26 09:21:44 2011
New Revision: 172954

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172954
Log:
2011-04-26  Richard Guenther  <rguenther@suse.de>

    PR middle-end/48694
    * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
    * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
    compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat
    trees with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF
    is set.

    * gcc.dg/torture/pr48694-1.c: New testcase.
    * gcc.dg/torture/pr48694-2.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr48694-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr48694-2.c
Modified:
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.h


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

* [Bug tree-optimization/48694] [4.7 Regression] possible memory hog bug
  2011-04-19 21:12 [Bug c/48694] New: possible memory hog bug regehr at cs dot utah.edu
                   ` (6 preceding siblings ...)
  2011-04-26  9:24 ` rguenth at gcc dot gnu.org
@ 2011-04-26  9:26 ` rguenth at gcc dot gnu.org
  2011-04-26 10:15 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-26  9:26 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

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

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-26 09:22:01 UTC ---
Fixed.


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

* [Bug tree-optimization/48694] [4.7 Regression] possible memory hog bug
  2011-04-19 21:12 [Bug c/48694] New: possible memory hog bug regehr at cs dot utah.edu
                   ` (7 preceding siblings ...)
  2011-04-26  9:26 ` rguenth at gcc dot gnu.org
@ 2011-04-26 10:15 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-26 10:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-26 10:12:18 UTC ---
Author: rguenth
Date: Tue Apr 26 10:12:14 2011
New Revision: 172957

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172957
Log:
2011-04-26  Richard Guenther  <rguenther@suse.de>

    PR middle-end/48694
    * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
    * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
    compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat
    trees with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF
    is set.

    * gcc.dg/torture/pr48694-1.c: New testcase.
    * gcc.dg/torture/pr48694-2.c: Likewise.

Modified:
    trunk/gcc/ChangeLog


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

end of thread, other threads:[~2011-04-26 10:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19 21:12 [Bug c/48694] New: possible memory hog bug regehr at cs dot utah.edu
2011-04-19 21:16 ` [Bug c/48694] " regehr at cs dot utah.edu
2011-04-19 21:52 ` regehr at cs dot utah.edu
2011-04-20  8:17 ` [Bug tree-optimization/48694] [4.7 Regression] " jakub at gcc dot gnu.org
2011-04-20  9:23 ` rguenth at gcc dot gnu.org
2011-04-21 22:39 ` arthur.j.odwyer at gmail dot com
2011-04-26  9:23 ` rguenth at gcc dot gnu.org
2011-04-26  9:24 ` rguenth at gcc dot gnu.org
2011-04-26  9:26 ` rguenth at gcc dot gnu.org
2011-04-26 10:15 ` rguenth 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).