[Bug tree-optimization/19096] Wrong code with -ftree-vectorize

2004-12-21 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-21 08:30 
---
My bad, I used wrong tree... The problem is in these patches:
http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01381.html and not in mainline.


-- 
   What|Removed |Added

 CC||rakdver at gcc dot gnu dot
   ||org
Version|4.0.0   |unknown


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


[Bug tree-optimization/19067] ICE in tree-if-conv

2004-12-21 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-21 09:28 
---
*** Bug 19096 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||belyshev at lubercy dot com


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


[Bug target/19102] [3.4 Regression] -march=pentium3 breaks linux kernel compiles w/ gcc-3_4-branch as of 2004/12/20

2004-12-21 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-21 12:22 
---
/* reduced testcase, use -O1 -march=pentium3 */

int unknown_bootoption (void)
{
  int i, j, k, l;
  for (i = 0; i  2; i++)
  asm volatile(
   :=a (j), =S (k), =c (l)
   :1 (0), 2 (0));
  return 0;
}


-- 
   What|Removed |Added

 CC||rth at gcc dot gnu dot org
   Severity|normal  |critical
 Status|UNCONFIRMED |NEW
  Component|c   |target
 Ever Confirmed||1
  GCC build triplet|i686-ark-linux  |
   GCC host triplet|i686-ark-linux  |
 GCC target triplet|i686-ark-linux  |i686-*-*
   Keywords||ice-on-valid-code
   Last reconfirmed|-00-00 00:00:00 |2004-12-21 12:22:41
   date||
Summary|-march=pentium3 breaks linux|[3.4 Regression] -
   |kernel compiles w/ gcc-3_4- |march=pentium3 breaks linux
   |branch as of 2004/12/20 |kernel compiles w/ gcc-3_4-
   ||branch as of 2004/12/20
   Target Milestone|--- |3.4.4


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


[Bug tree-optimization/19107] New: regclass.c miscompiled by -ftree-vectorize

2004-12-21 Thread belyshev at lubercy dot com
Hope I didn't mess anything with my gcc tree :)

Steps to reproduce:

1. apply the patch to regclass.c
2. compile record_operand_costs.i with -O1 -ftree-vectorize and link into cc1
3. use testcase bug.i to see segmentation fault

-- 
   Summary: regclass.c miscompiled by -ftree-vectorize
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Keywords: wrong-code
  Severity: normal
  Priority: P2
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-*-*


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


[Bug tree-optimization/19107] regclass.c miscompiled by -ftree-vectorize

2004-12-21 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-21 14:10 
---
Created an attachment (id=7795)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7795action=view)
patch to regclass.c (1840 bytes)


-- 


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


[Bug tree-optimization/19107] regclass.c miscompiled by -ftree-vectorize

2004-12-21 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-21 14:11 
---
Created an attachment (id=7796)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7796action=view)
failing function (5644 bytes)


-- 


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


[Bug tree-optimization/19107] regclass.c miscompiled by -ftree-vectorize

2004-12-21 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-21 14:12 
---
Created an attachment (id=7797)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7797action=view)
testcase (349 bytes)


-- 


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


[Bug libgcj/19109] Creating archives with java.util.zip

2004-12-21 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-21 14:48 
---
It works for me with mainline.

-- 
   What|Removed |Added

   Keywords||wrong-code
  Known to work||4.0.0


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


[Bug tree-optimization/19096] New: Wrong code with -ftree-vectorize

2004-12-20 Thread belyshev at lubercy dot com
use -O1 -ftree-vectorize to reproduce:
--
extern void abort (void);

static unsigned int prime_tab[] = {7, 127};

int main (void)
{
  unsigned int n, low, mid, high;

  n = 64;
  low = 0;
  high = 1;
  while (low != high)
{
  mid = low + (high - low) / 2;
  if (n  prime_tab[mid])
low = mid + 1;
  else
high = mid;
}
  
  if (n  prime_tab[low])
abort ();
  return low;
}
--

-- 
   Summary: Wrong code with -ftree-vectorize
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Keywords: wrong-code
  Severity: normal
  Priority: P2
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i386-pc-linux-gnu


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


[Bug rtl-optimization/19077] Internal compiler error compiling MPlayer

2004-12-19 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-19 18:46 
---
Created an attachment (id=7779)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7779action=view)
reduced testcase (1535 bytes)

This testcase is invalid and crashes 3.4 (both c and c++) and --enable-checking
4.0. Use -g3 to reproduce.

-- 


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


[Bug debug/19077] [3.4/4.0 Regression] Internal compiler error compiling MPlayer

2004-12-19 Thread belyshev at lubercy dot com


-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
  Component|rtl-optimization|debug
 Ever Confirmed||1
  GCC build triplet|i686-pc-linux-gnu   |
   GCC host triplet|i486-pc-linux-gnu   |
 GCC target triplet|i486-pc-linux-gnu   |
  Known to fail||3.4.4 4.0.0
  Known to work||3.3.5
   Last reconfirmed|-00-00 00:00:00 |2004-12-19 18:51:51
   date||
Summary|Internal compiler error |[3.4/4.0 Regression]
   |compiling MPlayer   |Internal compiler error
   ||compiling MPlayer
   Target Milestone|--- |3.4.4


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


[Bug target/17643] ICE in propagate_one_insn, at flow.c:1582

2004-12-19 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-20 05:27 
---
No, 3.0.4 release i used was FSF, not Debian.
ftp://gcc.gnu.org/pub/gcc/releases/gcc-3.0.4/gcc-core-3.0.4.tar.gz

-- 


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


[Bug middle-end/18548] [4.0 Regression] Miscompiles code generated by Gambit-C Scheme-C compiler

2004-12-18 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-18 15:28 
---
Original testcase now fixed.


-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug tree-optimization/15678] [4.0 Regression] Compilation time increased by 10-20%

2004-12-17 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-17 17:57 
---
3.4.4   4.0.0 (*A)  4.0.0 (*B)  deltaA  deltaB

time to compile one empty function, ms:

cc1-O0  0.4334  0.5908  0.5836   36% 35%
cc1plus-O0  0.6155  0.4700  0.4613  -24%-25%

cc1-O2  0.8090  1.3886  1.3090   71% 62%
cc1plus-O2  0.9213  1.4436  1.3767   57% 49%


startup time, i.e. time to compile empty file, ms:

cc1-O0  18.318.117.4 -1% -5%
cc1plus-O0  22.221.020.4 -5% -8%

cc1-O2  20.419.319.1 -5% -6%
cc1plus-O2  23.722.321.7 -6% -8%


*A -- gcc 4.0.0 20041217 compiled by gcc 3.4.4 20041217
*B -- gcc 4.0.0 20041217 compiled by itself.

All errors are within 0.05 .. 0.5 %


-- 
   What|Removed |Added

   Last reconfirmed|2004-11-16 21:59:16 |2004-12-17 17:57:14
   date||


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


[Bug middle-end/18548] [4.0 Regression] Miscompiles code generated by Gambit-C Scheme-C compiler

2004-12-17 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-17 23:28 
---
We expanding this:

  ___r2.303 = MAX_EXPR ___r3.316, *((int *) ___r2.303 + 1B);

into this:

(insn 12778 12777 12779 1127 (set (reg/v:SI 1280 [ ___r2.303 ])
(reg/v:SI 1273 [ ___r3.316 ])) -1 (nil)
(nil))

(insn 12779 12778 12780 1127 (set (reg:CCGC 17 flags)
(compare:CCGC (reg/v:SI 1280 [ ___r2.303 ])
(mem:SI (plus:SI (reg/v:SI 1280 [ ___r2.303 ])
(const_int 1 [0x1])) [0 S4 A32]))) -1 (nil)
(nil))

... which is wrong. So the problem is with expander, unless i am mistaken.

-- 
   What|Removed |Added

  Component|tree-optimization   |middle-end


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


[Bug c++/19034] [3.4/4.0 Regression] internal compiler error: in cp_tree_equal, at cp/tree.c:1633

2004-12-16 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-16 15:08 
---
// reduced testcase

template bool C  struct B
{
};

templatetypename S int foo();
templatetypename S int foo1();

templatetypename T struct bar : public B (sizeof(fooT()) == 1)
{
};

templatetypename T struct bar1 : public B (sizeof(foo1T()) == 1)
{
};


-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Keywords||ice-on-valid-code
  Known to fail||3.4.4 4.0.0
  Known to work||3.3.5
   Last reconfirmed|-00-00 00:00:00 |2004-12-16 15:08:27
   date||
Summary|internal compiler error: in |[3.4/4.0 Regression]
   |cp_tree_equal, at   |internal compiler error: in
   |cp/tree.c:1633  |cp_tree_equal, at
   ||cp/tree.c:1633
   Target Milestone|--- |3.4.4


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


[Bug c++/19034] [3.4/4.0 Regression] internal compiler error: in cp_tree_equal, at cp/tree.c:1633

2004-12-16 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-16 15:20 
---
: Search converges between 2003-06-18-trunk (#268) and 2003-06-19-trunk (#269).


-- 
   What|Removed |Added

  Known to fail|3.4.4 4.0.0 |3.4.0 3.4.1 3.4.2 3.4.3
   ||3.4.4 4.0.0


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


[Bug tree-optimization/18548] [4.0 Regression] Miscompiles code generated by Gambit-C Scheme-C compiler

2004-12-16 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-16 14:12 
---
Failing with just '-O1' and -fno-tree-dominator-opts is a workaround.

-- 
   What|Removed |Added

  Component|middle-end  |tree-optimization
  GCC build triplet|i686-pc-linux-gnu   |
   GCC host triplet|i686-pc-linux-gnu   |
 GCC target triplet|i686-pc-linux-gnu   |
   Keywords||wrong-code
  Known to fail||4.0.0
  Known to work||3.4.4
Summary|Miscompiles code generated  |[4.0 Regression] Miscompiles
   |by Gambit-C Scheme-C   |code generated by Gambit-C
   |compiler|Scheme-C compiler
   Target Milestone|--- |4.0.0


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


[Bug target/18932] [3.4/4.0 regression] ICE in copyprop_hardreg_forward_1, at regrename.c

2004-12-12 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-12 19:20 
---
testcase for 4.0.0, use -O2 to reproduce:

char m[2];
char o[2];
short i[2];
int t[2];

void foo ()
{
  int c;
  
  for (c = 0; c  2; c++)
{
  if (i[c  0xff]  4)
o[0] = 0;
  else if (i[c  0xff]  128)
{
  m[c] = t[c  0xff];
  o[c] = c;
}
  
  if ((i[c  0xff]  136) || (i[c  0xff]  4))
o[0] = 0;
}
}

/usr/local/libexec/gcc/i686-pc-linux-gnu/4.0.0/cc1 -quiet tc-i386.c -O2
tc-i386.c: In function ‘foo’:
tc-i386.c:25: error: insn does not satisfy its constraints:
(insn 166 96 98 5 (parallel [
(set (reg:CCNO 17 flags)
(compare:CCNO (and:QI (reg:QI 4 si [orig:107 D.1127 ] [107])
(const_int -120 [0xff88]))
(const_int 0 [0x0])))
(set (reg:QI 4 si [orig:107 D.1127 ] [107])
(and:QI (reg:QI 4 si [orig:107 D.1127 ] [107])
(const_int -120 [0xff88])))
]) 207 {*andqi_2} (nil)
(expr_list:REG_UNUSED (reg:QI 4 si [orig:107 D.1127 ] [107])
(nil)))
tc-i386.c:25: internal compiler error: in copyprop_hardreg_forward_1, at
regrename.c:1567


-- 
   What|Removed |Added

  Known to fail|3.4.4   |3.4.4 4.0.0
   Last reconfirmed|2004-12-10 21:06:02 |2004-12-12 19:20:28
   date||
Summary|[3.4 regression]  - |[3.4/4.0 regression] ICE in
   |march=pentium4 -O2 causes   |copyprop_hardreg_forward_1,
   |ICE |at regrename.c


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


[Bug middle-end/18921] [4.0 Regression] wrong code with operator ?

2004-12-11 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-11 15:40 
---
Fixed.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug target/18932] [3.4 regression] -march=pentium4 -O2 causes ICE

2004-12-10 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-10 21:06 
---
// small testcase:

int bar (int p, char c)
{
 foo (p, c);
 if (c  0xF0)
  return p;
}


-- 
   What|Removed |Added

  GCC build triplet|i686-pc-linux-gnu   |
   GCC host triplet|i686-pc-linux-gnu   |
  Known to fail||3.4.4
  Known to work||3.4.3
   Last reconfirmed|-00-00 00:00:00 |2004-12-10 21:06:02
   date||
   Target Milestone|--- |3.4.4


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


[Bug tree-optimization/18921] New: [4.0 Regression] wrong code with operator ?

2004-12-10 Thread belyshev at lubercy dot com
this program aborts if compiled with any options:

extern void abort (void);

int foo (int k)
{
  unsigned char j = 0;
  (k ? 0 : j++) == -1;
  return j;
}

int main ()
{
  if (!foo (0))
abort ();
  return 0;
}


-- 
   Summary: [4.0 Regression] wrong code with operator ?
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Keywords: wrong-code
  Severity: critical
  Priority: P2
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug tree-optimization/18921] [4.0 Regression] wrong code with operator ?

2004-12-10 Thread belyshev at lubercy dot com


-- 
   What|Removed |Added

  Known to fail||4.0.0
  Known to work||3.3.5 3.4.4
   Target Milestone|--- |4.0.0


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


[Bug c++/18922] [3.4/4.0 Regression] ICE in tree_low_cst, at tree.c:3315

2004-12-10 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-10 11:35 
---
// minimized testcase:

char *hebrewdb[0][2] = {};


-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
  Known to fail||3.3.5 3.4.4
  Known to work||4.0.0
   Last reconfirmed|-00-00 00:00:00 |2004-12-10 11:35:02
   date||
Summary|ICE  in tree_low_cst, at|[3.4/4.0 Regression] ICE  in
   |tree.c:3315 |tree_low_cst, at tree.c:3315
   Target Milestone|--- |3.4.4


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


[Bug c++/18865] [4.0 Regression] ICE in cp_expr_size, at cp/cp-objcp-common.c:86

2004-12-07 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-07 10:20 
---
// reduced testcase

struct T
{
  T ();
  T (const T);
  T operator= (const T);
};

struct S {
  void *p;
  T t;
  void *q;
};

void foo ()
{
  S s = {0, T (), 0};
}


-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
  GCC build triplet|i686-linux-gnu  |
   GCC host triplet|i686-linux-gnu  |
 GCC target triplet|i686-linux-gnu  |
   Keywords||ice-on-valid-code
  Known to fail||4.0.0
  Known to work||3.4.4
   Last reconfirmed|-00-00 00:00:00 |2004-12-07 10:20:29
   date||
Summary|ICE in cp_expr_size, at |[4.0 Regression] ICE in
   |cp/cp-objcp-common.c:86 |cp_expr_size, at cp/cp-
   ||objcp-common.c:86
   Target Milestone|--- |4.0.0


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


[Bug target/18564] ICE: output_operand: invalid expression as operand

2004-12-07 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-07 10:25 
---
Why did you mark this bug as a duplicate?

Because all these bugs (18542, 18563, 18564) triggered on one testcase and have
identical backtrace.


-- 


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


[Bug c/18867] New: [4.0 Regression] ICE on invalid switch quantity

2004-12-07 Thread belyshev at lubercy dot com
current mainline crashes on this invalid code:

void f()
{
  float x;
  switch (x) {case 0: break;};
}


bug.c: In function `f':
bug.c:4: error: switch quantity not an integer
bug.c:4: internal compiler error: Segmentation fault

: Search converges between 2004-07-20-trunk (#491) and 2004-07-21-trunk (#492).

-- 
   Summary: [4.0 Regression] ICE on invalid switch quantity
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Keywords: ice-on-invalid-code
  Severity: normal
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug c/18867] [4.0 Regression] ICE on invalid switch quantity

2004-12-07 Thread belyshev at lubercy dot com


-- 
   What|Removed |Added

  Known to fail||4.0.0
  Known to work||3.4.4
   Target Milestone|--- |4.0.0


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


[Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-06 15:58 
---
Was fixed by this patch:

2004-10-18  Jakub Jelinek  [EMAIL PROTECTED]

* config/i386/i386.md (addqi_1_slp): Test for incdec_operand
operand 1 instead of 2

-- 
   What|Removed |Added

 Status|REOPENED|RESOLVED
  Known to fail|3.4.1 3.4.3 |3.4.1 3.4.2
  Known to work|3.3.5 3.4.0 4.0.0   |3.3.5 3.4.0 3.4.3 4.0.0
 Resolution||FIXED
   Target Milestone|3.4.4   |3.4.3


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


[Bug target/17643] [3.3/3.4/4.0 Regression] ICE in propagate_one_insn, at flow.c:1582

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-06 20:54 
---
Regression from 3.0.4

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   GCC host triplet|hppa-linux-gnu  |
   Keywords||ice-on-valid-code
  Known to fail||3.4.2 3.4.4 3.3.4 3.2.3
   ||4.0.0
  Known to work||3.0.4
   Last reconfirmed|-00-00 00:00:00 |2004-12-06 20:54:39
   date||
Summary|ICE in propagate_one_insn,  |[3.3/3.4/4.0 Regression] ICE
   |at flow.c:1582  |in propagate_one_insn, at
   ||flow.c:1582
   Target Milestone|--- |3.4.4


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


[Bug rtl-optimization/17728] [3.4 Regression] ICE in extract_insn, at recog.c:2083, unrecognizable insn

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-06 21:29 
---
/* reduced testcase, use -O0 */

void div (register int *d, int i, int j, short k)
{
  d [i] = j / k;
}


-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
  GCC build triplet|hppa2.0w-hp-hpux11.00   |
   GCC host triplet|hppa2.0w-hp-hpux11.00   |
  Known to fail||3.4.1 3.4.4
  Known to work||3.3.4 4.0.0
   Last reconfirmed|-00-00 00:00:00 |2004-12-06 21:29:58
   date||
Summary|ICE in extract_insn, at |[3.4 Regression] ICE in
   |recog.c:2083, unrecognizable|extract_insn, at
   |insn|recog.c:2083, unrecognizable
   ||insn
   Target Milestone|--- |3.4.4


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


[Bug middle-end/18861] New: [4.0 Regression] ICE Segmentation fault in try_crossjump_to_edge at ../../gcc/gcc/cfgcleanup.c:1637

2004-12-06 Thread belyshev at lubercy dot com
use '-O2 -finline-functions -ftracer -floop-optimize2' to reproduce:

extern void fancy_abort (void) __attribute__ ((__noreturn__));

int
reverse_condition (int code)
{
  switch (code)
{
case 4:
  return 3;
case 3:
  return 4;
case 6:
  return 7;
case 7:
  return 8;
case 8:
  return 5;
case 5:
  return 6;

default:
  fancy_abort ();
}
}

int
reversed_comparison_code_parts (int code, int code2)
{
  switch (code)
{
case 4:
case 3:
  return reverse_condition (code);
}

  if (code2 == 1)
return reverse_condition (code);

  return 0;
}

backtrace:

Program received signal SIGSEGV, Segmentation fault.
try_crossjump_to_edge (mode=19, e1=0x7, e2=0x40219a08) at
../../gcc/gcc/cfgcleanup.c:1637
1637  s-count += s2-count;
(gdb) bt
#0  try_crossjump_to_edge (mode=19, e1=0x7, e2=0x40219a08) at
../../gcc/gcc/cfgcleanup.c:1637
#1  0x08178cfa in try_crossjump_bb (mode=19, bb=0x4021acb0) at
../../gcc/gcc/cfgcleanup.c:1810
#2  0x08179acc in cleanup_cfg (mode=19) at ../../gcc/gcc/cfgcleanup.c:1997
#3  0x083b8127 in rest_of_handle_flow2 () at ../../gcc/gcc/passes.c:1322
#4  0x083b8b20 in rest_of_compilation () at ../../gcc/gcc/passes.c:1728
#5  0x080c91aa in execute_pass_list (pass=0x852ba80) at
../../gcc/gcc/tree-optimize.c:516
#6  0x080c93f1 in tree_rest_of_compilation (fndecl=0x4020f244)
at ../../gcc/gcc/tree-optimize.c:652
#7  0x080615d1 in c_expand_body (fndecl=0x4020f244) at 
../../gcc/gcc/c-decl.c:6387
#8  0x083e1167 in cgraph_expand_function (node=0x4020f4fc) at
../../gcc/gcc/cgraphunit.c:822
#9  0x083e1e8b in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1689
#10 0x0838fa67 in toplev_main (argc=1075931488, argv=0x85d1498) at
../../gcc/gcc/toplev.c:1005
#11 0x080a7bae in main (argc=1075931488, argv=0x40216960) at 
../../gcc/gcc/main.c:35

-- 
   Summary: [4.0 Regression] ICE Segmentation fault in
try_crossjump_to_edge at ../../gcc/gcc/cfgcleanup.c:1637
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Keywords: ice-on-valid-code
  Severity: normal
  Priority: P2
 Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug bootstrap/18853] Bootstrap Problem

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-06 22:45 
---
testcase reduced from jump.i is now in bug 18861


-- 


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


[Bug middle-end/18861] [4.0 Regression] ICE Segmentation fault in try_crossjump_to_edge at ../../gcc/gcc/cfgcleanup.c:1637

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-06 22:58 
---
: Search converges between 2004-10-25-161001-trunk (#610) and
2004-10-26-161001-trunk (#611).

-- 


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


[Bug rtl-optimization/17810] [3.4 Regression] internal compiler error: in verify_local_live_at_start for arm-rtems, arm-linux

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-06 23:53 
---
/* slightly reduced testcase, use '-mcpu=arm920 -O3' */

struct sui_event;

typedef struct sui_event
{
  unsigned short what;
  int abrakadabra [3];
} sui_event_t;

static sui_event_t sui_event_buf;
static sui_event_t sui_global_event_buf;

short draw_request;

int
sui_get_uid_event ()
{
  int rc;

  if (rc  0)
  return rc;
  return 0;
}

int
sui_get_event (sui_event_t *event, int k)
{

  if (k != 0)
{
  *event = sui_event_buf;
  sui_event_buf.what = 0;
  return 0;
}
  
  if (sui_global_event_buf.what != 0)
{
  *event = sui_global_event_buf;
  return 0;
}

  memset (event, 0, sizeof (sui_event_t));
  
  if (sui_get_uid_event ()  0)
return 1;

  if (draw_request)
{
  draw_request = 0;
  return 1;
}

  return 0;
}


-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
  GCC build triplet|i586-pc-linux-gnu   |
   GCC host triplet|i586-pc-linux-gnu   |
  Known to fail||3.4.2 3.4.4
  Known to work||3.3.4
   Last reconfirmed|-00-00 00:00:00 |2004-12-06 23:53:41
   date||
Summary|internal compiler error: in |[3.4 Regression] internal
   |verify_local_live_at_start  |compiler error: in
   |for arm-rtems, arm-linux|verify_local_live_at_start
   ||for arm-rtems, arm-linux
   Target Milestone|--- |3.4.4


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


[Bug target/18542] [3.4 only] ICE: output_operand: invalid expression as operand

2004-12-06 Thread belyshev at lubercy dot com


-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
  Known to fail|3.4.0 3.4.3 |3.4.0 3.4.3 3.4.4
   Last reconfirmed|-00-00 00:00:00 |2004-12-07 00:02:33
   date||


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


[Bug target/18542] [3.4 regression] ICE: output_operand: invalid expression as operand

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-07 00:15 
---
*** Bug 18563 has been marked as a duplicate of this bug. ***

-- 


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


[Bug target/18564] ICE: output_operand: invalid expression as operand

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-07 00:15 
---


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

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug target/18563] ICE: output_operand: invalid expression as operand

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-07 00:15 
---


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

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug target/18542] [3.4 regression] ICE: output_operand: invalid expression as operand

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-07 00:15 
---
*** Bug 18564 has been marked as a duplicate of this bug. ***

-- 


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


[Bug target/18592] [3.3/3.4 regression] [m68k] ICE in output_operand: invalid expression as operand

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-07 00:39 
---
// small testcase, use '-O2'

void foo (int j, int k)
{
for(;;) {
switch (j) {
case 2: j = 1;  break;
case 1: switch (k) {} break;
case 4: switch (k) {} break;
case 3: switch (k) {} break;
case 5: j = 1; break;
}
}
}


-- 
   What|Removed |Added

  Known to fail|3.3.5 3.4.3 |3.3.5 3.4.3 3.4.4
   Last reconfirmed|2004-11-23 17:11:09 |2004-12-07 00:39:26
   date||


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


[Bug target/18823] [3.4 regression] [ia64-linux] ICE in ia64_st_address_bypass_p, at config/ia64/ia64.c:7387

2004-12-06 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-07 01:17 
---
// reduced testcase, use '-O2':

typedef struct lock {
  void* holder;
  int mux;
} lock;

void getHeavyLock (lock *lk,  lock *old)
{
  __sync_bool_compare_and_swap_di ((long *) old, (long) old, 1);
  if (!lk)
lk = (lock*) 1;
  lk-holder = old;
  lk-mux = 0;
}


-- 
   What|Removed |Added

   Severity|critical|normal
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
  GCC build triplet|ia64-linux  |
   GCC host triplet|ia64-linux  |
  Known to fail|3.4.3   |3.4.3 3.4.4
   Last reconfirmed|-00-00 00:00:00 |2004-12-07 01:17:21
   date||


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


[Bug c++/18825] [4.0 Rergession] ICE segmentation fault in wv2

2004-12-04 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-04 12:48 
---
// reduced testcase:

templateclass T class A
{
  void f ();
};

templateclass T class B
{
  friend void AT::f ();
};

int f ()
{
  Bint b;
}


-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Keywords||ice-on-valid-code
  Known to fail||4.0.0
  Known to work||3.4.4
   Last reconfirmed|-00-00 00:00:00 |2004-12-04 12:48:36
   date||
Summary|ICE in wv2  |[4.0 Rergession] ICE
   ||segmentation fault in wv2
   Target Milestone|--- |4.0.0


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


[Bug c++/18825] [4.0 Rergession] ICE segmentation fault in wv2

2004-12-04 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-04 12:57 
---
: Search converges between 2004-07-12-trunk (#484) and 2004-07-13-trunk (#485).

-- 


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


[Bug target/18779] SSE2 intrinsics cause segmentation fault and internal compiler error

2004-12-02 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-02 10:30 
---


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

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug target/14981] [3.4 Regression] ICE in _mm_xor_pd for SSE2 with -O1

2004-12-02 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-02 10:30 
---
*** Bug 18779 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||jochang at gmail dot com


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


[Bug tree-optimization/18687] [4.0 Regression] ~50% compile time regression

2004-12-02 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-03 00:24 
---
3.4.4   4.0.0   delta

hashes.c:
-O0 0.0515  0.05262%   
-O1 0.078   0.157   101%
-O2 0.123   0.19861%

infcodes.c:
-O0 0.0907  0.09333%  
-O1 0.137   0.24881%
-O2 0.224   0.32846%

Average speedup (not only -O0) is 6%.


-- 
   What|Removed |Added

   Last reconfirmed|2004-11-30 13:09:22 |2004-12-03 00:24:07
   date||


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


[Bug c/18753] [3.4 Regression] GCC internal error with -O3 and -finstrument-functions with gcc-3.4

2004-12-01 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-12-01 11:58 
---
Confirmed, -O1 -funit-at-a-time -finline-functions -finstrument-function is
enough to reproduce.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Keywords||ice-on-valid-code
  Known to fail||3.4.4
  Known to work||3.3.5 4.0.0
   Last reconfirmed|-00-00 00:00:00 |2004-12-01 11:58:05
   date||
Summary|GCC internal error with -O3 |[3.4 Regression] GCC
   |and -finstrument-functions  |internal error with -O3 and
   |with gcc-3.4|-finstrument-functions with
   ||gcc-3.4
   Target Milestone|--- |3.4.4


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


[Bug tree-optimization/18712] [4.0 Regression] ICE: vector VEC(basic_block) push domain error, in insert_phi_nodes_for at tree-into-ssa.c:1049

2004-11-29 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-29 08:03 
---
Introduced by this patch:

2004-11-23  Diego Novillo  [EMAIL PROTECTED]

PR tree-optimization/18618
* tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
(insert_phi_nodes_for): Change third argument to VEC(basic_block).


-- 
   What|Removed |Added

   Severity|normal  |critical
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2004-11-29 08:03:36
   date||
   Target Milestone|--- |4.0.0


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


[Bug tree-optimization/18712] New: [4.0 Regression] ICE: vector VEC(basic_block) push domain error, in insert_phi_nodes_for at tree-into-ssa.c:1049

2004-11-28 Thread belyshev at lubercy dot com
use '-O1':

void *eintr_source (void *arg)
{
  int ts = 0;
  
  if (arg)
foo ();
  
  while (1)
{
  if (arg)
foo ();
  
  foo1 (ts);
}
  
  return 0;
}


-- 
   Summary: [4.0 Regression] ICE: vector VEC(basic_block) push
domain error, in insert_phi_nodes_for at tree-into-
ssa.c:1049
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Keywords: ice-on-valid-code
  Severity: normal
  Priority: P2
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug tree-optimization/18687] [4.0 Regression] ~50% compile time regression

2004-11-27 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-27 18:44 
---
Created an attachment (id=7618)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7618action=view)
perl script (463 bytes)

Use this script to get more accurate timings. (install
http://search.cpan.org/~jhi/BSD-Resource-1.24/ if you want to get even more
accurate timings).


-- 


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


[Bug tree-optimization/18595] [4.0 Regression] IV-OPTS is O(N^3)

2004-11-26 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-27 01:45 
---
(In reply to comment #3)
 Of course it's not very useful to claim that some algorithm
 is O(N^x) when you don't say what N is...

N is number of nested loops.


-- 


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


[Bug c++/17278] [4.0 Regression] 24% C++ compile-time regression in comparison with 3.4.1 at -O1 optimization level

2004-11-26 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-27 03:35 
---
   3.4.4 4.0.0 delta
-
-O0  8.2   7.1  -13%
-O1 11.0  16.5   50%
-O2 23.3  21.8   -6%


-- 


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


[Bug tree-optimization/15678] [4.0 Regression] Compilation time increased by 10-20%

2004-11-26 Thread belyshev at lubercy dot com


-- 
   What|Removed |Added

OtherBugsDependingO||18687
  nThis||


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


[Bug tree-optimization/18687] New: [4.0 Regression] ~50% compile time regression

2004-11-26 Thread belyshev at lubercy dot com
These two files taken from linux kernel (hashes.c) and zlib (infcodes.c)

hashes.c:

3.4.4   4.0.0   delta

-O0 0.045   0.0499%
-O1 0.067   0.144  115%
-O2 0.108   0.177   64%

infcodes.c:

3.4.4   4.0.0   delta

-O0 0.080   0.0867%
-O1 0.120   0.223   86%
-O2 0.196   0.295   51%

-- 
   Summary: [4.0 Regression] ~50% compile time regression
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Keywords: compile-time-hog
  Severity: normal
  Priority: P2
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org
 BugsThisDependsOn: 15678


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


[Bug tree-optimization/18687] [4.0 Regression] ~50% compile time regression

2004-11-26 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-27 04:31 
---
Created an attachment (id=7616)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7616action=view)
3338 bytes


-- 


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


[Bug tree-optimization/18687] [4.0 Regression] ~50% compile time regression

2004-11-26 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-27 04:32 
---
Created an attachment (id=7617)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7617action=view)
9535 bytes


-- 


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


[Bug tree-optimization/18595] [4.0 Regression] IV-OPTS is O(N^3)

2004-11-25 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-25 11:16 
---
use this awk script to generate testcase (first arg is number of loops):

BEGIN {
ORS=
print int f ()\n{\tint 
for (j = 0; j  ARGV [1]; j++)
print j j , 
print a;\n\ta = 0;\n
print \tfor (j0 = 0; j0  2; j0 ++)\n
for (j = 1; j  ARGV [1]; j++)
print \tfor (j j  = j j-1 ; j j   2; j j ++)\n
print \ta += 
for (j = 0; j  ARGV [1]-1; j++)
print j j  + 
print j j ;\n\treturn a;\n}\n
}


N loops   Time, s
 50.05
100.17
150.38
201.14
252.81
304.68
357.52
4013.6
4521.8
5025.6
5533.9


-- 
   What|Removed |Added

   Severity|minor   |normal
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Keywords||memory-hog
  Known to fail||4.0.0
   Last reconfirmed|-00-00 00:00:00 |2004-11-25 11:16:30
   date||
Summary|IV-OPTS is slow (and does   |[4.0 Regression] IV-OPTS is
   |not scale)  |O(N^3)
   Target Milestone|--- |4.0.0


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


[Bug tree-optimization/18673] New: [4.0 Regression] PRE is O(N^4)

2004-11-25 Thread belyshev at lubercy dot com
using same awk script as in comment #2 to bug 18595 and -O1 -fno-ivopts one can
show that pre is O(N^4):

Nloops  Time, s
 50 1.12
 60 3.02
 70 6.41
 8011.4
 9019.4
10030.1
11044.7
12064.8
150   163.5

-- 
   Summary: [4.0 Regression] PRE is O(N^4)
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Keywords: compile-time-hog
  Severity: normal
  Priority: P2
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug bootstrap/18574] bootstrap comprison failed

2004-11-20 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-20 14:01 
---
I can confirm this on i686-pc-linux-gnu:

Bootstrap comparison failure!
./fold-const.o differs
./loop.o differs


-- 
   What|Removed |Added

   Severity|normal  |critical
  GCC build triplet|x86_64-unknown-linux-gnu|
   GCC host triplet|x86_64-unknown-linux-gnu|
 GCC target triplet|x86_64-unknown-linux-gnu|
   Target Milestone|--- |4.0.0


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


[Bug tree-optimization/15678] [4.0 Regression] Compilation time increased by 10-20%

2004-11-16 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-16 21:59 
---
-O0 3.4.4   4.0.0   diff

cc1 18.423.8+29%
cc1plus 24.319.5-20%


-O2 3.4.4   4.0.0   diff

cc1 32.858.0+77%
cc1plus 37.156.8+53%


-fomit-frame-pointer is implied.


-- 
   What|Removed |Added

   Last reconfirmed|2004-05-27 18:23:14 |2004-11-16 21:59:16
   date||


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


[Bug tree-optimization/18475] New: [4.0 Regression] ICE Segmentation fault in tree_verify_flow_info with -funswitch-loops

2004-11-14 Thread belyshev at lubercy dot com
-
/* { dg-options -O1 -funswitch-loops } */

extern int bar (void);

void foo (int c, int b)
{
 retry:
  switch (c)
{
case 1: return;
case 2:
  if (b)
c = bar ();
  if (c != 3)
goto retry;
  break;
}
}
-
Program received signal SIGSEGV, Segmentation fault.
tree_verify_flow_info () at ../../gcc/gcc/tree-cfg.c:3727
3727gcc_assert (!label_bb-aux || label_bb-aux == (void 
*)1);
(gdb) where
#0  tree_verify_flow_info () at ../../gcc/gcc/tree-cfg.c:3727
#1  0x083c0793 in verify_flow_info () at ../../gcc/gcc/cfghooks.c:212
#2  0x080b8dba in cleanup_tree_cfg () at ../../gcc/gcc/tree-cfg.c:890
#3  0x080cbe52 in execute_pass_list (pass=0x853bd00) at
../../gcc/gcc/tree-optimize.c:508
#4  0x080cbe65 in execute_pass_list (pass=0x853bf80) at
../../gcc/gcc/tree-optimize.c:546
#5  0x080cbe65 in execute_pass_list (pass=0x853b6c0) at
../../gcc/gcc/tree-optimize.c:546
#6  0x080cc0a9 in tree_rest_of_compilation (fndecl=0xb7b279f8) at
../../gcc/gcc/tree-optimize.c:640
#7  0x08061d23 in c_expand_body (fndecl=0xb7b279f8) at 
../../gcc/gcc/c-decl.c:6379
#8  0x083f0a5d in cgraph_expand_function (node=0xb7b27e0c) at
../../gcc/gcc/cgraphunit.c:822
#9  0x083f0bf8 in cgraph_assemble_pending_functions () at
../../gcc/gcc/cgraphunit.c:305
#10 0x083f126d in cgraph_finalize_function (decl=0xb7b279f8, nested=0 '\0') at
../../gcc/gcc/cgraphunit.c:388
#11 0x0806229c in finish_function () at ../../gcc/gcc/c-decl.c:6351
#12 0x0804b774 in yyparse () at c-parse.y:401
#13 0x0804fdfb in c_parse_file () at c-parse.y:2908
#14 0x08096cd6 in c_common_parse_file (set_yydebug=0) at 
../../gcc/gcc/c-opts.c:1095
#15 0x0839cdbd in toplev_main (argc=0, argv=0x85e1451) at 
../../gcc/gcc/toplev.c:985
#16 0xb7ed8ad8 in __libc_start_main (main=0x80a98d0 main, argc=5,
ubp_av=0xb594, init=0x8491fe0 __libc_csu_init, fini=0xb8000ca0
_rtld_local_ro, rtld_fini=0, stack_end=0xb58c) at
../sysdeps/generic/libc-start.c:209
#17 0x08049a91 in _start () at ../sysdeps/i386/elf/start.S:119
-

-- 
   Summary: [4.0 Regression] ICE Segmentation fault in
tree_verify_flow_info with -funswitch-loops
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Keywords: ice-on-valid-code
  Severity: normal
  Priority: P2
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug target/18421] ICE in reload_cse_simplify_operands, at postreload.c:391

2004-11-14 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-14 13:53 
---
// small testcase, use -O1 -m5200:

extern char n;
void foo (char *s)
{
  n += *s + 9;
}


-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
  GCC build triplet|i686-linux-gnu  |
   GCC host triplet|i686-linux-gnu  |
  Known to fail||3.4.3 3.4.4
   Last reconfirmed|-00-00 00:00:00 |2004-11-14 13:53:05
   date||
Summary|Internal Compiler Error |ICE in
   ||reload_cse_simplify_operands
   ||, at postreload.c:391


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


[Bug tree-optimization/18475] [4.0 Regression] ICE Segmentation fault in tree_verify_flow_info with -funswitch-loops

2004-11-14 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-14 15:14 
---
*** Bug 18478 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||kazu at cs dot umass dot edu


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


[Bug tree-optimization/18478] ICE with -funroll-loops

2004-11-14 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-14 15:14 
---
heh, i am first :)

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

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug tree-optimization/18478] ICE with -funroll-loops

2004-11-14 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-14 15:19 
---
gah pardon, my fault.


-- 
   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|DUPLICATE   |


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


[Bug tree-optimization/18478] [4.0 Regression] ICE with -funroll-loops

2004-11-14 Thread belyshev at lubercy dot com


-- 
   What|Removed |Added

   Severity|critical|normal
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
  GCC build triplet|i686-pc-linux-gnu   |
   GCC host triplet|i686-pc-linux-gnu   |
 GCC target triplet|i686-pc-linux-gnu   |
  Known to fail||4.0.0
   Last reconfirmed|-00-00 00:00:00 |2004-11-14 15:20:43
   date||
Summary|ICE with -funroll-loops |[4.0 Regression] ICE with -
   ||funroll-loops
   Target Milestone|--- |4.0.0
Version|unknown |4.0.0


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


[Bug middle-end/17961] ICE for operation on small vector with altivec enabled

2004-10-31 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-01 02:48 ---
Confirmed with -DVECSIZE=2, here the backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x08164577 in extract_fixed_bit_field (tmode=SImode, op0=0x0, offset=0,
bitsize=16, bitpos=16, 
target=0x0, unsignedp=1) at ../../gcc/gcc/expmed.c:1674
1674  if (GET_CODE (op0) == SUBREG || REG_P (op0))

#0  0x08164577 in extract_fixed_bit_field (tmode=SImode, op0=0x0, offset=0,
bitsize=16, bitpos=16, target=0x0, unsignedp=1) at ../../gcc/gcc/expmed.c:1674
#1  0x08165021 in extract_split_bit_field (op0=0xb7b3c360, bitsize=32,
bitpos=16, unsignedp=0) at ../../gcc/gcc/expmed.c:1920
#2  0x081645f4 in extract_fixed_bit_field (tmode=SImode, op0=0xb7b3c360,
offset=0, bitsize=32, bitpos=16, target=0xb7b3c330, unsignedp=0) at
../../gcc/gcc/expmed.c:1678
#3  0x0816449d in extract_bit_field (str_rtx=0x9, bitsize=32, bitnum=0,
unsignedp=0, target=0xb7b3c330, mode=SImode, tmode=SImode) at
../../gcc/gcc/expmed.c:1622
#4  0x081795ba in expand_expr_real_1 (exp=0xb7b3b050, target=0xb7b3c330,
tmode=SImode, modifier=EXPAND_NORMAL, alt_rtl=0xbfffe808) at
../../gcc/gcc/expr.c:7038
#5  0x08177a24 in expand_expr_real (exp=0xb7b3b050, target=0xb7b3c330,
tmode=SImode, modifier=EXPAND_NORMAL, alt_rtl=0xbfffe808) at
../../gcc/gcc/expr.c:6205
#6  0x08173269 in store_expr (exp=0xb7b3b050, target=0xb7b3c330, call_param_p=0)
at ../../gcc/gcc/expr.c:3887
#7  0x08172ed3 in expand_assignment (to=0xb7b42f80, from=0xb7b3b050) at
../../gcc/gcc/expr.c:3766
#8  0x0817bbed in expand_expr_real_1 (exp=0xb7abd4ec, target=0x0,
tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=0x0) at ../../gcc/gcc/expr.c:7987
#9  0x081779ee in expand_expr_real (exp=0xb7abd4ec, target=0xb7abc300,
tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=0x0) at ../../gcc/gcc/expr.c:6199
#10 0x08298263 in expand_expr_stmt (exp=0xb7abd4ec) at expr.h:493
#11 0x082bda71 in expand_gimple_basic_block (bb=0xb7b42c98,
dump_file=0xb7b3b208) at ../../gcc/gcc/cfgexpand.c:1133
#12 0x082bdebb in tree_expand_cfg () at ../../gcc/gcc/cfgexpand.c:1306
#13 0x0809d4f4 in execute_one_pass (pass=0x84d4de0) at
../../gcc/gcc/tree-optimize.c:508
#14 0x0809d5bb in execute_pass_list (pass=0x84d4de0) at
../../gcc/gcc/tree-optimize.c:545
#15 0x0809d797 in tree_rest_of_compilation (fndecl=0xb7b425d0) at
../../gcc/gcc/tree-optimize.c:640
#16 0x08059682 in c_expand_body (fndecl=0xb7b425d0) at ../../gcc/gcc/c-decl.c:6363
#17 0x082e004c in cgraph_expand_function (node=0xb7b42744) at
../../gcc/gcc/cgraphunit.c:822
#18 0x082df625 in cgraph_assemble_pending_functions () at
../../gcc/gcc/cgraphunit.c:305
#19 0x082df727 in cgraph_finalize_function (decl=0xb7b425d0, nested=0 '\0') at
../../gcc/gcc/cgraphunit.c:388
#20 0x0805963a in finish_function () at ../../gcc/gcc/c-decl.c:6335
#21 0x0804a412 in yyparse () at c-parse.y:401
#22 0x0804f80e in c_parse_file () at c-parse.y:2908
#23 0x0807eebe in c_common_parse_file (set_yydebug=32) at
../../gcc/gcc/c-opts.c:1095
#24 0x082a0485 in compile_file () at ../../gcc/gcc/toplev.c:986
#25 0x082a1cde in do_compile () at ../../gcc/gcc/toplev.c:2074
#26 0x082a1d3c in toplev_main (argc=32, argv=0xb564) at
../../gcc/gcc/toplev.c:2106
#27 0x0808c1f8 in main (argc=32, argv=0x20) at ../../gcc/gcc/main.c:35



-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
  Known to fail||4.0.0
   Last reconfirmed|-00-00 00:00:00 |2004-11-01 02:48:55
   date||


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


[Bug middle-end/17961] ICE for operation on small vector with altivec enabled

2004-10-31 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-11-01 03:03 ---
3.4.3 rejects -DVECSIZE=2 code with error: no vector mode with the size and
type specified could be found


-- 


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


[Bug target/18235] [3.3/3.4 Regression] gcc 3.4.1 and there is internal compiler error when tryed compile crypto-5.2.1.tar.bz2

2004-10-30 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-10-30 21:41 ---
use '-Os -msse2' for this small testcase:

typedef int m64 __attribute__ ((mode (V2SI)));

static inline int bar (m64 i)
{
  long long t = (long long) i;
  return t;
}

void foo (int *C)
{
  m64 s1;
  C[0] = bar (s1);
}


-- 
   What|Removed |Added

 Status|WAITING |NEW
 Ever Confirmed||1
 GCC target triplet||i*86-*-* sse2
  Known to fail||3.3.4 3.4.3 3.4.2 3.4.1
   Last reconfirmed|-00-00 00:00:00 |2004-10-30 21:41:51
   date||
Summary|gcc 3.4.1 and there is  |[3.3/3.4 Regression]  gcc
   |internal compiler error when|3.4.1 and there is internal
   |tryed compile crypto-   |compiler error when tryed
   |5.2.1.tar.bz2   |compile crypto-5.2.1.tar.bz2
   Target Milestone|--- |3.4.4


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


[Bug target/18235] [3.3/3.4 Regression] gcc 3.4.1 and there is internal compiler error when tryed compile crypto-5.2.1.tar.bz2

2004-10-30 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-10-30 21:51 ---


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

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


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


[Bug rtl-optimization/16104] [3.4/4.0 regression] ICE in reload_cse_simplify_operands, at postreload.c:378 with SSE2 code on -O2

2004-10-30 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-10-30 21:51 ---
*** Bug 18235 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||michalkr10 at poczta dot
   ||onet dot pl


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


[Bug rtl-optimization/16104] [3.3/3.4 regression] ICE in reload_cse_simplify_operands, at postreload.c:378 with SSE2 code on -O2

2004-10-30 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-10-30 22:16 ---
this is small testcase for original bug (ICE in postreload.c),
it fails in 3.3 and 3.4 but not in 4.0.0, use -Os -msse2 to repeat:
-
void foo (int *j)
{
  int __attribute__ ((mode (V2SI))) k;
  long long t = (long long) k;
  j[0] = t;
}
-

Note I cannot repeat this bug on 4.0.0 neither with this nor with Volker's
testcases, so I cleared 4.0 regression flag.


-- 
   What|Removed |Added

 GCC target triplet||i*86-*-* sse2
  Known to fail|3.4.0 4.0.0 |3.3.3 3.3.4 3.4.0 3.4.1
   ||3.4.2 3.4.3
  Known to work|3.3.3   |4.0.0
   Last reconfirmed|2004-06-20 19:22:09 |2004-10-30 22:16:07
   date||
Summary|[3.4/4.0 regression] ICE in |[3.3/3.4 regression] ICE in
   |reload_cse_simplify_operands|reload_cse_simplify_operands
   |, at postreload.c:378 with  |, at postreload.c:378 with
   |SSE2 code on -O2|SSE2 code on -O2
   Target Milestone|3.4.3   |3.4.4


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


[Bug middle-end/18238] New: ICE in convert_move, at expr.c:588

2004-10-30 Thread belyshev at lubercy dot com
this is a fork from bug 16104
--
int foo  (int __attribute__ ((__mode__ (__V2SI__))) i)
{
  return (long long) i;
}
--

-- 
   Summary: ICE in convert_move, at expr.c:588
   Product: gcc
   Version: 3.4.3
Status: UNCONFIRMED
  Keywords: ice-on-valid-code, rejects-valid
  Severity: normal
  Priority: P2
 Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug middle-end/18238] ICE in convert_move, at expr.c:588

2004-10-30 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-10-30 22:45 ---
3.3.4 error: can't convert between vector values of different size
3.4.3 internal compiler error: in convert_move, at expr.c:588
4.4.0 error: invalid cast from type ‘int __vector__’ to type ‘long long int’


-- 
   What|Removed |Added

  Known to fail||3.3.4 3.4.0 3.4.1 3.4.2
   ||3.4.3 4.0.0


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


[Bug c/18239] [4.0 Regression] ICE in get_parm_info with werid attribute

2004-10-30 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-10-30 22:57 ---
Confirmed.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
  Known to fail||4.0.0
  Known to work||3.4.3
   Last reconfirmed|-00-00 00:00:00 |2004-10-30 22:57:19
   date||
   Target Milestone|--- |4.0.0


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


[Bug middle-end/18238] ICE in convert_move, at expr.c:588

2004-10-30 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-10-30 23:04 ---
gcc and g++ 3.3.4: error: can't convert between vector values of different size
gcc and g++ 3.4.0: internal compiler error: in convert_move, at expr.c:588
g++ 4.0.0: invalid cast from type ‘int __vector__’ to type ‘long long int’

my gcc 4.0.0 accepted this even with -mmmx, hmm...


-- 


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


[Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1

2004-10-15 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-10-16 00:50 ---
Still ICEs on today's 3.4 branch. (Note comment #8).

-- 
   What|Removed |Added

   Last reconfirmed|2004-09-20 14:44:04 |2004-10-16 00:50:13
   date||


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


[Bug tree-optimization/15678] [4.0 Regression] Compilation time increased by 10-20%

2004-09-28 Thread belyshev at lubercy dot com


-- 
   What|Removed |Added

  BugsThisDependsOn||17707


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


[Bug tree-optimization/17707] New: [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps

2004-09-28 Thread belyshev at lubercy dot com
This testcase (from bug 15678) shows quadratic time in cgraph_reset_static_var_maps:

#define F0(a) void a(){}
#define F1(a) F0(a##0) F0(a##1) F0(a##2) F0(a##3) F0(a##4) F0(a##5) F0(a##6)
#define F2(a) F1(a##0) F1(a##1) F1(a##2) F1(a##3) F1(a##4) F1(a##5) F1(a##6)
#define F3(a) F2(a##0) F2(a##1) F2(a##2) F2(a##3) F2(a##4) F2(a##5) F2(a##6)
#define F4(a) F3(a##0) F3(a##1) F3(a##2) F3(a##3) F3(a##4) F3(a##5) F3(a##6)
#define F5(a) F4(a##0)/*F4(a##1) F4(a##2) F3(a##3) F3(a##4) F3(a##5) F3(a##6)*/

F5(f)

-- 
   Summary: [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Keywords: compile-time-hog
  Severity: normal
  Priority: P2
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 15678
 nThis:


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


[Bug tree-optimization/17707] [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps

2004-09-28 Thread belyshev at lubercy dot com

--- Additional Comments From belyshev at lubercy dot com  2004-09-28 09:43 ---
(In reply to comment #0)

 #define F5(a) F4(a##0)/*F4(a##1) F4(a##2) F3(a##3) F3(a##4) F3(a##5) F3(a##6)*/
   ^^  ^^   ^^  ^^
   these should be F4


-- 
   What|Removed |Added

   Target Milestone|--- |4.0.0


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