Changeset edaeca5 in freewrt for target/linux


Ignore:
Timestamp:
Oct 1, 2006, 12:14:22 PM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
2d8fac1
Parents:
b917538
Message:

enable -fno-delayed-branch.

It solves the stability problems with squashfs-overlay and squashfs-symlink
filesystems. This is a performance issue. In OpenWrt whiterussian with 2.4.30 and
the 003-bcm47xx_cache_fixes.patch has solved it for many routers.
This seems to not help with 2.4.33.3 or 2.4.32. May be we will find
a better way later, but I don't care about performance, when my routers
crashes suddenly or different applications like cups behaving strange.

If you see in dmesg "Calibrating delay loop... 3.12 BogoMIPS", you
should definitively try -fno-delayed-branch.

See http://en.wikipedia.org/wiki/Branch_prediction
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Optimize-Options.html#index-fdelayed_002dbranch-400

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@801 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • target/linux/generic-2.4/patches/050-build_flags.patch

    rb917538 redaeca5  
    2727 
    2828-CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
    29 +CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -Os \
     29+CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-delayed-branch \
    3030          -fno-strict-aliasing -fno-common
    3131 ifndef CONFIG_FRAME_POINTER
Note: See TracChangeset for help on using the changeset viewer.