[Bug c++/53050] ssa_forward_propagate_and_combine: segmentation fault

2015-11-11 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53050

Markus Trippelsdorf  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #10 from Markus Trippelsdorf  ---
The issue from comment 8 is tracked by PR68305.
Closing this one.

[Bug c++/53050] ssa_forward_propagate_and_combine: segmentation fault

2015-11-11 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53050

David Binderman  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---

--- Comment #8 from David Binderman  ---
Seems to go wrong with gcc trunk dated 2015

/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:112:10:
int
ernal compiler error: tree check: expected class ‘expression’, have
‘exceptional
’ (ssa_name) in tree_operand_check, at tree.h:3436

0x10114c7 tree_class_check_failed(tree_node const*, tree_code_class, char
const*
, int, char const*)
../../src/trunk/gcc/tree.c:9638
0xfe85d2 expr_check(tree_node*, char const*, int, char const*)
../../src/trunk/gcc/tree.h:3107
0xfe85d2 tree_operand_check(tree_node*, int, char const*, int, char const*)
../../src/trunk/gcc/tree.h:3436
0xfe85d2 vect_get_constant_vectors
../../src/trunk/gcc/tree-vect-slp.c:2746

It compiled ok a few days ago.

[Bug c++/53050] ssa_forward_propagate_and_combine: segmentation fault

2015-11-11 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53050

Markus Trippelsdorf  changed:

   What|Removed |Added

 CC||trippels at gcc dot gnu.org

--- Comment #9 from Markus Trippelsdorf  ---
Quick reduction, several uninitialized vars.

markus@x4 tmp % cat b.ii
class A;
class B {
public:
  B(A *);
};
template  char saturate_cast(int p1) { return p1 > 0; }
class A {
  virtual void operator()(const unsigned char **, unsigned char *);
};
struct C : A {
  C(int) {}
  void operator()(const unsigned char **, unsigned char *p2) {
int i, a;
double b;
int *c;
unsigned char *D = p2;
for (; i; i += 2) {
  int d = a + c[i], e = a + c[i + 1];
  D[i] = saturate_cast(d * b);
  D[i + 1] = saturate_cast(e * b);
}
  }
};
int f;
void getColumnSumFilter() { B(new C(f)); }

markus@x4 tmp % g++ -O3 -c b.ii
b.ii: In member function ‘virtual void C::operator()(const unsigned char**,
unsigned char*)’:
b.ii:12:8: internal compiler error: tree check: expected class ‘expression’,
have ‘exceptional’ (ssa_name) in tree_operand_check, at tree.h:3436
   void operator()(const unsigned char **, unsigned char *p2) {
^

0xf398a7 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
../../gcc/gcc/tree.c:9638
0xf12861 expr_check(tree_node*, char const*, int, char const*)
../../gcc/gcc/tree.h:3107
0xf12861 tree_operand_check(tree_node*, int, char const*, int, char const*)
../../gcc/gcc/tree.h:3436
0xf12861 vect_get_constant_vectors
../../gcc/gcc/tree-vect-slp.c:2744
0xf12bb3 vect_get_slp_defs(vec, _slp_tree*,
vec, va_heap, vl_ptr>*, int)
../../gcc/gcc/tree-vect-slp.c:3025
0xee249a vectorizable_condition(gimple*, gimple_stmt_iterator*, gimple**,
tree_node*, int, _slp_tree*)
../../gcc/gcc/tree-vect-stmts.c:7389
0xef4998 vect_transform_stmt(gimple*, gimple_stmt_iterator*, bool*, _slp_tree*,
_slp_instance*)
../../gcc/gcc/tree-vect-stmts.c:8020
0xf0bd7d vect_schedule_slp_instance
../../gcc/gcc/tree-vect-slp.c:3482
0xf0bbd9 vect_schedule_slp_instance
../../gcc/gcc/tree-vect-slp.c:3363
0xf0bbd9 vect_schedule_slp_instance
../../gcc/gcc/tree-vect-slp.c:3363
0xf0d886 vect_schedule_slp(vec_info*)
../../gcc/gcc/tree-vect-slp.c:3547
0xefab65 vect_transform_loop(_loop_vec_info*)
../../gcc/gcc/tree-vect-loop.c:6619
0xf15287 vectorize_loops()
../../gcc/gcc/tree-vectorizer.c:533

[Bug c++/53050] ssa_forward_propagate_and_combine: segmentation fault

2013-05-08 Thread dcb314 at hotmail dot com

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

David Binderman dcb314 at hotmail dot com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |

--- Comment #6 from David Binderman dcb314 at hotmail dot com 2013-05-08 
08:27:18 UTC ---
I tried the same C++ source code on trunk from 20130508 and I got

/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp: In
function ‘void cv::medianBlur_SortNet(const cv::Mat, cv::Mat, int) [with Op =
cv::MinMax16u; VecOp = cv::MinMaxVec16u]’:
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7121 = _4220 + iftmp.108_26;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7133 = _4187 + iftmp.111_27;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7111 = _50 + iftmp.108_26;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7123 = _782 + iftmp.111_27;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7113 = _3912 + iftmp.108_26;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7125 = _3745 + iftmp.111_27;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7115 = _2356 + iftmp.108_26;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7127 = _2274 + iftmp.111_27;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7117 = _3261 + iftmp.108_26;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7129 = _4117 + iftmp.111_27;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7119 = _761 + iftmp.108_26;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
error: invalid (pointer) operands to plus/minus
slsr_7131 = _256 + iftmp.111_27;
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
internal compiler error: verify_gimple failed
0xacc9b9 verify_gimple_in_cfg(function*)
../../src/trunk/gcc/tree-cfg.c:4792
0xa018f7 execute_function_todo
../../src/trunk/gcc/passes.c:1969
0xa022c7 execute_todo
../../src/trunk/gcc/passes.c:2002
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://gcc.gnu.org/bugs.html for instructions.

This compiled ok on 20130505, so something has gone wrong in the last
few days.

[Bug c++/53050] ssa_forward_propagate_and_combine: segmentation fault

2013-05-08 Thread rguenth at gcc dot gnu.org


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



Richard Biener rguenth at gcc dot gnu.org changed:



   What|Removed |Added



 Status|REOPENED|RESOLVED

 Resolution||FIXED



--- Comment #7 from Richard Biener rguenth at gcc dot gnu.org 2013-05-08 
08:42:53 UTC ---

Confirmed - but this is a different bug in SLSR - PR57203.


[Bug c++/53050] ssa_forward_propagate_and_combine: segmentation fault

2012-04-23 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53050

Richard Guenther rguenth at gcc dot gnu.org changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

--- Comment #5 from Richard Guenther rguenth at gcc dot gnu.org 2012-04-23 
10:37:28 UTC ---
*** Bug 53032 has been marked as a duplicate of this bug. ***


[Bug c++/53050] ssa_forward_propagate_and_combine: segmentation fault

2012-04-20 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53050

Richard Guenther rguenth at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2012-04-20
 AssignedTo|unassigned at gcc dot   |rguenth at gcc dot gnu.org
   |gnu.org |
 Ever Confirmed|0   |1

--- Comment #2 from Richard Guenther rguenth at gcc dot gnu.org 2012-04-20 
09:14:14 UTC ---
I have a patch.


[Bug c++/53050] ssa_forward_propagate_and_combine: segmentation fault

2012-04-20 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53050

--- Comment #3 from Richard Guenther rguenth at gcc dot gnu.org 2012-04-20 
10:17:54 UTC ---
Author: rguenth
Date: Fri Apr 20 10:17:46 2012
New Revision: 186620

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=186620
Log:
2012-04-20  Richard Guenther  rguent...@suse.de

PR tree-optimization/53050
* tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
Do only one transform on COND_EXPRs at the same time.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-ssa-forwprop.c


[Bug c++/53050] ssa_forward_propagate_and_combine: segmentation fault

2012-04-20 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53050

Richard Guenther rguenth at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #4 from Richard Guenther rguenth at gcc dot gnu.org 2012-04-20 
10:20:05 UTC ---
Fixed.


[Bug c++/53050] ssa_forward_propagate_and_combine: segmentation fault

2012-04-19 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53050

--- Comment #1 from dcb dcb314 at hotmail dot com 2012-04-19 20:02:12 UTC ---
Created attachment 27196
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27196
gzipped C++ source code