[Bug tree-optimization/78121] [7 Regression] ice in set_value_range

2016-11-14 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78121

kugan at gcc dot gnu.org changed:

   What|Removed |Added

 CC||gerhard.steinmetz.fortran@t
   ||-online.de

--- Comment #9 from kugan at gcc dot gnu.org ---
*** Bug 78258 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/78121] [7 Regression] ice in set_value_range

2016-11-10 Thread aldyh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78121

Aldy Hernandez  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||aldyh at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #8 from Aldy Hernandez  ---
Fixed in mainline.

[Bug tree-optimization/78121] [7 Regression] ice in set_value_range

2016-11-08 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78121

--- Comment #7 from kugan at gcc dot gnu.org ---
Author: kugan
Date: Wed Nov  9 01:41:26 2016
New Revision: 241989

URL: https://gcc.gnu.org/viewcvs?rev=241989=gcc=rev
Log:
Fix ice in set_value_range
gcc/ChangeLog:

2016-11-09  Kugan Vivekanandarajah  

PR ipa/78121
* ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
Also fold constant passed as argument while computing value range.
(propagate_constants_accross_call): Pass param type.
* ipa-prop.c: export ipa_get_callee_param_type.
* ipa-prop.h: export ipa_get_callee_param_type.

gcc/testsuite/ChangeLog:

2016-11-09  Kugan Vivekanandarajah  

PR ipa/78121
* gcc.dg/ipa/pr78121.c: New test.



Added:
trunk/gcc/testsuite/gcc.dg/ipa/pr78121.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-cp.c
trunk/gcc/ipa-prop.c
trunk/gcc/ipa-prop.h
trunk/gcc/testsuite/ChangeLog

[Bug tree-optimization/78121] [7 Regression] ice in set_value_range

2016-11-05 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78121

--- Comment #6 from kugan at gcc dot gnu.org ---
(In reply to David Binderman from comment #5)
> (In reply to kugan from comment #4)
> > Created attachment 39904 [details]
> > untested patch
> > 
> > testing this patch
> 
> patch any good ?

Posted at https://gcc.gnu.org/ml/gcc-patches/2016-10/msg02309.html
waiting for Honza's approval.

[Bug tree-optimization/78121] [7 Regression] ice in set_value_range

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

--- Comment #5 from David Binderman  ---
(In reply to kugan from comment #4)
> Created attachment 39904 [details]
> untested patch
> 
> testing this patch

patch any good ?

[Bug tree-optimization/78121] [7 Regression] ice in set_value_range

2016-10-26 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78121

--- Comment #4 from kugan at gcc dot gnu.org ---
Created attachment 39904
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39904=edit
untested patch

testing this patch

[Bug tree-optimization/78121] [7 Regression] ice in set_value_range

2016-10-26 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78121

kugan at gcc dot gnu.org changed:

   What|Removed |Added

 CC||kugan at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |kugan at gcc dot gnu.org

--- Comment #3 from kugan at gcc dot gnu.org ---
Looks like ipa-vrp issue. I will have a look.

[Bug tree-optimization/78121] [7 Regression] ice in set_value_range

2016-10-26 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78121

--- Comment #2 from David Binderman  ---
(In reply to David Binderman from comment #1)
> The blotch character in the quotes near the end seems to have ASCII value
> 267.
> Dunno why it's not displaying correctly.

267 is a tad high for a char that supposedly can only go to 255.
Suspect octal 267. Probably character b7, in hex.

Output from od, if that helps

[Bug tree-optimization/78121] [7 Regression] ice in set_value_range

2016-10-26 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78121

--- Comment #1 from David Binderman  ---
After reduction.

a;
static fn1(c) unsigned char c;
{
  if (a)
fn2(c);
  fn1('#');
}
fn3() { fn1('�'); }

The blotch character in the quotes near the end seems to have ASCII value 267.
Dunno why it's not displaying correctly.

[Bug tree-optimization/78121] [7 Regression] ice in set_value_range

2016-10-26 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78121

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
  Component|c   |tree-optimization
   Target Milestone|--- |7.0
Summary|ice in set_value_range  |[7 Regression] ice in
   ||set_value_range