public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/19821] New: Preprocessor oom with nested vector operations
@ 2005-02-08 17:35 pochini at shiny dot it
  2005-02-08 18:51 ` [Bug preprocessor/19821] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: pochini at shiny dot it @ 2005-02-08 17:35 UTC (permalink / raw)
  To: gcc-bugs

With 4 nested vec_add()'s gcc goes out of memory on my 512MB+1GBswap ppc box. 
With 3 adds it consumes about 150MB of memory and eventually succeeds. The 
preprocessor expands the y=... line into an exagerately huge expression. fftw3 
fails to compile because of this.
Tested on gcc 3.4.1 and 3.4.3, stable versions. They were configured with the 
following options:

./configure --prefix=/usr/ --enable-shared --enable-threads=posix --with-system-
zlib --enable-__cxa_atexit --disable-checking --enable-altivec --with-cpu=7450 -
-enable-languages=c,c++,objc



#include <altivec.h>

main() {
	vector float y, a, b;

	y = vec_add(a, vec_add(a, vec_add(a, vec_add(a, b))));
}

# gcc -maltivec c.c

-- 
           Summary: Preprocessor oom with nested vector operations
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pochini at shiny dot it
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-unknown-linux-gnu
  GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu


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


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

* [Bug preprocessor/19821] Preprocessor oom with nested vector operations
  2005-02-08 17:35 [Bug preprocessor/19821] New: Preprocessor oom with nested vector operations pochini at shiny dot it
@ 2005-02-08 18:51 ` pinskia at gcc dot gnu dot org
  2005-02-08 19:25 ` neil at daikokuya dot co dot uk
  2005-02-09  3:21 ` pochini at shiny dot it
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-08 18:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-08 13:27 -------


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

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


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


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

* [Bug preprocessor/19821] Preprocessor oom with nested vector operations
  2005-02-08 17:35 [Bug preprocessor/19821] New: Preprocessor oom with nested vector operations pochini at shiny dot it
  2005-02-08 18:51 ` [Bug preprocessor/19821] " pinskia at gcc dot gnu dot org
@ 2005-02-08 19:25 ` neil at daikokuya dot co dot uk
  2005-02-09  3:21 ` pochini at shiny dot it
  2 siblings, 0 replies; 4+ messages in thread
From: neil at daikokuya dot co dot uk @ 2005-02-08 19:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From neil at daikokuya dot co dot uk  2005-02-08 14:02 -------
Subject: Re:  New: Preprocessor oom with nested vector operations

pochini at shiny dot it wrote:-

> With 4 nested vec_add()'s gcc goes out of memory on my 512MB+1GBswap ppc box. 
> With 3 adds it consumes about 150MB of memory and eventually succeeds. The 
> preprocessor expands the y=... line into an exagerately huge expression. fftw3 
> fails to compile because of this.

But it is ridiculously big.  If you think it's expanding it wrong then
please elaborate.  Otherwise don't use brain-dead macros 8-)


-- 


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


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

* [Bug preprocessor/19821] Preprocessor oom with nested vector operations
  2005-02-08 17:35 [Bug preprocessor/19821] New: Preprocessor oom with nested vector operations pochini at shiny dot it
  2005-02-08 18:51 ` [Bug preprocessor/19821] " pinskia at gcc dot gnu dot org
  2005-02-08 19:25 ` neil at daikokuya dot co dot uk
@ 2005-02-09  3:21 ` pochini at shiny dot it
  2 siblings, 0 replies; 4+ messages in thread
From: pochini at shiny dot it @ 2005-02-09  3:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pochini at shiny dot it  2005-02-08 18:48 -------
Sorry for the noise, I didn't find #19411 while browsing the database.

-- 


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


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

end of thread, other threads:[~2005-02-08 18:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-08 17:35 [Bug preprocessor/19821] New: Preprocessor oom with nested vector operations pochini at shiny dot it
2005-02-08 18:51 ` [Bug preprocessor/19821] " pinskia at gcc dot gnu dot org
2005-02-08 19:25 ` neil at daikokuya dot co dot uk
2005-02-09  3:21 ` pochini at shiny dot it

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).