[Bug tree-optimization/37617] [4.4 Regression] ICE on valid code

2008-10-01 Thread rguenth at gcc dot gnu dot org


--- Comment #4 from rguenth at gcc dot gnu dot org  2008-10-01 13:44 ---
Indeed.  This exposes a bug as we do not fold VIEW_CONVERT_EXPR char * (0.0).
As we never initialize NEW_SETS for FRE we should not try to add to it.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED
   Last reconfirmed|2008-09-22 21:09:59 |2008-10-01 13:44:26
   date||


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



[Bug tree-optimization/37617] [4.4 Regression] ICE on valid code

2008-10-01 Thread rguenth at gcc dot gnu dot org


--- Comment #5 from rguenth at gcc dot gnu dot org  2008-10-01 16:24 ---
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug tree-optimization/37617] [4.4 Regression] ICE on valid code

2008-10-01 Thread rguenth at gcc dot gnu dot org


--- Comment #6 from rguenth at gcc dot gnu dot org  2008-10-01 16:24 ---
Subject: Bug 37617

Author: rguenth
Date: Wed Oct  1 16:23:23 2008
New Revision: 140816

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140816
Log:
2008-10-01  Richard Guenther  [EMAIL PROTECTED]

PR tree-optimization/37617
* tree-ssa-pre.c (create_expression_by_pieces): During FRE
do not add to the NEW_SETS.

* gcc.c-torture/compile/pr37617.c: New testcase.

Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr37617.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-pre.c


-- 


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



[Bug tree-optimization/37617] [4.4 Regression] ICE on valid code

2008-10-01 Thread edwintorok at gmail dot com


--- Comment #7 from edwintorok at gmail dot com  2008-10-01 16:43 ---
Thanks, gcc4.4 doesn't crash anymore now.


-- 

edwintorok at gmail dot com changed:

   What|Removed |Added

 Status|RESOLVED|VERIFIED


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



[Bug tree-optimization/37617] [4.4 Regression] ICE on valid code

2008-09-22 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2008-09-22 21:00 ---
This worked with:
gcc version 4.4.0 20080917 (experimental) [trunk revision 140434] (GCC) 

But fails with:
GNU C (GCC) version 4.4.0 20080922 (experimental) [trunk revision 140563]
(i386-apple-darwin8.11.1)

The ICE is in bitmap_insert_into_set_1.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||rguenth at gcc dot gnu dot
   ||org, pinskia at gcc dot gnu
   ||dot org
  Component|rtl-optimization|tree-optimization


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



[Bug tree-optimization/37617] [4.4 Regression] ICE on valid code

2008-09-22 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2008-09-22 21:09 ---
Reduced even further and will reproduce with both LP32 and LP64 targets (as
long as float is 32bits and double is 64bits):
typedef union
{
  char *string;
  double dval;
  float fval;
} yystype;
char *f(void)
{
  yystype tok;
  tok.dval = 0;
  return (tok.string);
}
char *f1(void)
{
  yystype tok;
  tok.fval = 0;
  return (tok.string);
}


--- CUT ---
This was most likely introduced with the value numbering of unions.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2008-09-22 21:09:59
   date||


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