Changeset d9b757b in freewrt


Ignore:
Timestamp:
Jan 16, 2007, 6:40:15 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
53a8dc7
Parents:
5257e40
Message:

Note: this still does not eliminate all problems in gcc3, see

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30477 for details

  • also add -fwrapv to the default *build* cflags, people whose build OSes have gcc <3.3 or non-gcc are SOL unless they predefine CFLAGS. http://gcc.gnu.org/ml/gcc/2006-12/msg00749.html implies that gcc it- self with -On (n>0) or -fno-wrapv miscompiles itself(!), and in com- bination with gcc PR#30477 this means that any gcc2 or gcc3 on the *build* os potentially miscompiles gcc for the target too.

git-svn-id: svn://www.freewrt.org/branches/common-adk@1606 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rules.mk

    r5257e40 rd9b757b  
    6969
    7070ifeq ($(strip ${CFLAGS}),)
    71 CFLAGS:=                -Os -fno-ident
     71CFLAGS:=                -Os -fno-ident -fwrapv
    7272endif
    7373HOST_CFLAGS:=           ${CFLAGS}
    74 TARGET_CFLAGS:=         $(strip -Os -fno-ident ${TARGET_CFLAGS} -fhonour-copts)
     74TARGET_CFLAGS:=         $(strip -Os -fno-ident ${TARGET_CFLAGS} -fwrapv -fhonour-copts)
    7575
    7676ifneq (${show},)
Note: See TracChangeset for help on using the changeset viewer.