This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/13329] New: -fcrossjumping (implied by -O1) pessimizes code


I've looked at the other crossjumping bugs, and this seems to be a different
problem. Here are two command lines for comparison:

A) gcc -lrt -O1 -o huff-cj huffbench.c
B) gcc -lrt -O1 -o huff-no-cj -fno-crossjumping huffbench.c

The soon-to-be attached program runs 10% slower when compiled with (A) than when
compiled with (B). The program operates correctly with either option;
crossjumping is simply inefficient.

My apologies for the length of the example code; I'll try to pare it down if
someone deems it necessary.

-- 
           Summary: -fcrossjumping (implied by -O1) pessimizes code
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: coyote at coyotegulch dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux
  GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]