[Bug target/60941] [4.7/4.8/4.9/4.10 regression] miscompilation of firefox javascript interpreter

2014-04-23 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60941

Eric Botcazou  changed:

   What|Removed |Added

 Target||sparc64-*-*
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-04-23
 CC||ebotcazou at gcc dot gnu.org
  Known to work||4.5.4
   Target Milestone|--- |4.7.4
Summary|gcc 4.8.3/sparc64   |[4.7/4.8/4.9/4.10
   |miscompiles firefox |regression] miscompilation
   |javascript interpreter  |of firefox javascript
   ||interpreter
 Ever confirmed|0   |1
  Known to fail||4.10.0, 4.7.4, 4.8.3, 4.9.0

--- Comment #2 from Eric Botcazou  ---
I can reproduce the bug on Solaris with the following testcase:

extern void abort ();

static void __attribute__((noinline))
set (unsigned long *l)
{
  *l = 31;
}

int main (void)
{
  unsigned long l;
  int i;

  set (&l);
  i = (int) l;
  l = (unsigned long)(unsigned int)(2 << i);
  if (l != 0)
abort ();
  return 0;
}


[Bug target/60941] [4.7/4.8/4.9/4.10 regression] miscompilation of firefox javascript interpreter

2014-04-23 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60941

Eric Botcazou  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC|ebotcazou at gcc dot gnu.org   |
   Assignee|unassigned at gcc dot gnu.org  |ebotcazou at gcc dot 
gnu.org

--- Comment #3 from Eric Botcazou  ---
Investigating.


[Bug target/60941] [4.7/4.8/4.9/4.10 regression] miscompilation of firefox javascript interpreter

2014-04-24 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60941

Richard Biener  changed:

   What|Removed |Added

   Keywords||wrong-code
   Priority|P3  |P2


[Bug target/60941] [4.7/4.8/4.9/4.10 regression] miscompilation of firefox javascript interpreter

2014-04-25 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60941

--- Comment #4 from Eric Botcazou  ---
Author: ebotcazou
Date: Fri Apr 25 10:39:14 2014
New Revision: 209790

URL: http://gcc.gnu.org/viewcvs?rev=209790&root=gcc&view=rev
Log:
PR target/60941
* config/sparc/sparc.md (ashlsi3_extend): Delete.

Added:
trunk/gcc/testsuite/gcc.c-torture/execute/20140425-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sparc/sparc.md
trunk/gcc/testsuite/ChangeLog


[Bug target/60941] [4.7/4.8/4.9/4.10 regression] miscompilation of firefox javascript interpreter

2014-04-25 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60941

--- Comment #5 from Eric Botcazou  ---
Author: ebotcazou
Date: Fri Apr 25 10:43:28 2014
New Revision: 209791

URL: http://gcc.gnu.org/viewcvs?rev=209791&root=gcc&view=rev
Log:
PR target/60941
* config/sparc/sparc.md (ashlsi3_extend): Delete.

Added:
branches/gcc-4_9-branch/gcc/testsuite/gcc.c-torture/execute/20140425-1.c
  - copied unchanged from r209790,
trunk/gcc/testsuite/gcc.c-torture/execute/20140425-1.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/config/sparc/sparc.md
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


[Bug target/60941] [4.7/4.8/4.9/4.10 regression] miscompilation of firefox javascript interpreter

2014-04-25 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60941

--- Comment #6 from Eric Botcazou  ---
Author: ebotcazou
Date: Fri Apr 25 10:46:18 2014
New Revision: 209792

URL: http://gcc.gnu.org/viewcvs?rev=209792&root=gcc&view=rev
Log:
PR target/60941
* config/sparc/sparc.md (ashlsi3_extend): Delete.

Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/execute/20140425-1.c
  - copied unchanged from r209791,
trunk/gcc/testsuite/gcc.c-torture/execute/20140425-1.c
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/config/sparc/sparc.md
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


[Bug target/60941] [4.7/4.8/4.9/4.10 regression] miscompilation of firefox javascript interpreter

2014-04-25 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60941

--- Comment #7 from Eric Botcazou  ---
Author: ebotcazou
Date: Fri Apr 25 10:47:44 2014
New Revision: 209793

URL: http://gcc.gnu.org/viewcvs?rev=209793&root=gcc&view=rev
Log:
PR target/60941
* config/sparc/sparc.md (ashlsi3_extend): Delete.

Added:
branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/execute/20140425-1.c
  - copied unchanged from r209791,
trunk/gcc/testsuite/gcc.c-torture/execute/20140425-1.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/config/sparc/sparc.md
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


[Bug target/60941] [4.7/4.8/4.9/4.10 regression] miscompilation of firefox javascript interpreter

2014-04-25 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60941

Eric Botcazou  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Eric Botcazou  ---
Thanks for reporting the problem and distilling a reduced testcase.