[Bug target/65987] [6 Regression] [SH] Wrong jump generated for gcc.dg/tree-prof/va-arg-pack-1.c with -fprofile-use

2015-05-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65987

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Target Milestone|--- |6.0


[Bug target/65987] [6 Regression] [SH] Wrong jump generated for gcc.dg/tree-prof/va-arg-pack-1.c with -fprofile-use

2015-05-04 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65987

Kazumoto Kojima kkojima at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Kazumoto Kojima kkojima at gcc dot gnu.org ---
Fixed.


[Bug target/65987] [6 Regression] [SH] Wrong jump generated for gcc.dg/tree-prof/va-arg-pack-1.c with -fprofile-use

2015-05-04 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65987

--- Comment #2 from Kazumoto Kojima kkojima at gcc dot gnu.org ---
Author: kkojima
Date: Mon May  4 23:25:58 2015
New Revision: 222783

URL: https://gcc.gnu.org/viewcvs?rev=222783root=gccview=rev
Log:
PR target/65987
* config/sh/sh.c (output_far_jump, split_branches): Take into account
  sectiion crossing jumps.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sh/sh.c


[Bug target/65987] [6 Regression] [SH] Wrong jump generated for gcc.dg/tree-prof/va-arg-pack-1.c with -fprofile-use

2015-05-02 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65987

--- Comment #1 from Kazumoto Kojima kkojima at gcc dot gnu.org ---
Created attachment 35445
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35445action=edit
patch for section crossing jumps

It turns out that some SH specific jump optimizations don't take into
account section crossing jumps.  I'm testing the attached patch.