public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/19097] New: Lots of else ifs take forever to compile
@ 2004-12-21  1:57 phython at gcc dot gnu dot org
  2005-03-05 19:53 ` [Bug rtl-optimization/19097] [3.4/4.0/4.1 regression] Quadratic behavior with many sets for the same register in gcse CPROP pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 50+ messages in thread
From: phython at gcc dot gnu dot org @ 2004-12-21  1:57 UTC (permalink / raw)
  To: gcc-bugs

The following bit of code doesn't compile on my laptop (at -O2) because gcc gets
killed. This happens with gcc 3.3.5 and gcc 3.4.3 and gcc 4.0

#define CL0(a) else if (b == a) { f(); }
#define CL1(a) CL0(a##0) CL0(a##1) CL0(a##2) CL0(a##3) CL0(a##4) CL0(a##5) \
 CL0(a##6) CL0(a##7) CL0(a##8) CL0(a##9)
#define CL2(a) CL1(a##0) CL1(a##1) CL1(a##2) CL1(a##3) CL1(a##4) CL1(a##5) \
 CL1(a##6) CL1(a##7) CL1(a##8) CL1(a##9)
#define CL3(a) CL2(a##0) CL2(a##1) CL2(a##2) CL2(a##3) CL2(a##4) CL2(a##5) \
 CL2(a##6) CL2(a##7) CL2(a##8) CL2(a##9)
#define CL4(a) CL3(a##0) CL3(a##1) CL3(a##2) CL3(a##3) CL3(a##4) CL3(a##5) \
 CL3(a##6) CL3(a##7) CL3(a##8) CL3(a##9)
#define CL5(a) CL4(a##0) CL4(a##1) CL4(a##2) CL4(a##3) CL4(a##4) CL4(a##5) \
 CL4(a##6) CL4(a##7) CL4(a##8) CL4(a##9)

void f();

void a() {
  int b;
  if (b == 1) { f(); }
  CL4(1)
}

 Changing if (b == 1) to if (b) fixes the large compile time on gcc 4.0, but
keeps the large compile time problem with gcc 3.3 and 3.4.

-- 
           Summary: Lots of else ifs take forever to compile
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: phython at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-12-24 13:03 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-19097-7737@http.gcc.gnu.org/bugzilla/>
2005-10-16 23:20 ` [Bug rtl-optimization/19097] [3.4/4.0/4.1 regression] Quadratic behavior with many sets for the same register in gcse CPROP steven at gcc dot gnu dot org
2005-10-18  8:36 ` bonzini at gcc dot gnu dot org
2005-10-18 12:25 ` amacleod at redhat dot com
2005-10-29 22:38 ` steven at gcc dot gnu dot org
2005-10-31  2:02 ` mmitchel at gcc dot gnu dot org
2005-10-31 13:33 ` amacleod at redhat dot com
2005-10-31 14:41 ` amacleod at redhat dot com
2005-10-31 15:04 ` dberlin at gcc dot gnu dot org
2005-10-31 15:19 ` amacleod at gcc dot gnu dot org
2005-10-31 17:12 ` steven at gcc dot gnu dot org
2005-11-08  0:18 ` steven at gcc dot gnu dot org
2005-11-08  6:48 ` phython at gcc dot gnu dot org
2006-01-08 16:02 ` [Bug rtl-optimization/19097] [3.4/4.0/4.1/4.2 " steven at gcc dot gnu dot org
2006-01-08 16:08 ` steven at gcc dot gnu dot org
2006-01-08 16:14 ` steven at gcc dot gnu dot org
2006-01-08 18:16 ` steven at gcc dot gnu dot org
2006-01-08 18:32 ` steven at gcc dot gnu dot org
2006-01-08 18:40 ` steven at gcc dot gnu dot org
2006-01-09 22:26 ` [Bug rtl-optimization/19097] [4.1/4.2 regression] Quadratic behavior with many sets for the same register in VRP steven at gcc dot gnu dot org
2006-02-05 21:37 ` steven at gcc dot gnu dot org
2006-02-05 22:47 ` steven at gcc dot gnu dot org
2006-02-24  0:26 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:38 ` mmitchel at gcc dot gnu dot org
2006-08-24 20:50 ` amylaar at gcc dot gnu dot org
2006-10-10 11:19 ` [Bug tree-optimization/19097] " rguenth at gcc dot gnu dot org
2007-02-14  9:04 ` [Bug tree-optimization/19097] [4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
2007-09-17 13:11 ` rguenth at gcc dot gnu dot org
2007-11-09 22:08 ` steven at gcc dot gnu dot org
2007-11-11  5:17 ` sebpop at gmail dot com
2007-11-11  9:24 ` stevenb dot gcc at gmail dot com
2007-11-11 12:17 ` rguenth at gcc dot gnu dot org
2007-12-18 13:47 ` steven at gcc dot gnu dot org
2008-01-23  9:12 ` steven at gcc dot gnu dot org
2008-01-23 10:31 ` rguenth at gcc dot gnu dot org
2008-07-04 16:48 ` [Bug tree-optimization/19097] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-03-31 16:43 ` [Bug tree-optimization/19097] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:28 ` rguenth at gcc dot gnu dot org
2009-12-24 13:03 ` steven at gcc dot gnu dot org
2004-12-21  1:57 [Bug rtl-optimization/19097] New: Lots of else ifs take forever to compile phython at gcc dot gnu dot org
2005-03-05 19:53 ` [Bug rtl-optimization/19097] [3.4/4.0/4.1 regression] Quadratic behavior with many sets for the same register in gcse CPROP pinskia at gcc dot gnu dot org
2005-03-05 23:37 ` steven at gcc dot gnu dot org
2005-06-08  3:32 ` phython at gcc dot gnu dot org
2005-06-08  9:38 ` steven at gcc dot gnu dot org
2005-06-08 12:44 ` phython at gcc dot gnu dot org
2005-08-23  7:29 ` phython at gcc dot gnu dot org
2005-08-25  5:44 ` phython at gcc dot gnu dot org
2005-08-25  6:40 ` phython at gcc dot gnu dot org
2005-08-25  7:06 ` phython at gcc dot gnu dot org
2005-09-19  0:14 ` pinskia at gcc dot gnu dot org
2005-09-19  0:15 ` steven at gcc dot gnu dot org
2005-09-30 14:43 ` amacleod at redhat dot com

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