Changeset 13336


Ignore:
Timestamp:
Dec 27, 2009, 4:35:26 AM (10 years ago)
Author:
plkrueger
Message:

Try to conditionally inhibit format (printf) warnings on all platforms;
these warnings are very occasionally useful but are more often just
annoying. (I'm not positive that all platforms' versions of GCC understand
-Wno-format; we'll see.)

Try to ensure that -O2 is used on all platforms.

Location:
trunk/source/lisp-kernel
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/darwinppc/Makefile

    r13066 r13336  
    5555CDEBUG = -g
    5656COPT = -O2
     57# Once in a while, -Wformat says something useful.  The odds are against that,
     58# however.
     59WFORMAT = -Wno-format
    5760
    5861.s.o:
    5962        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(ASFLAGS) -o $@
    6063.c.o:
    61         $(CC) -c -arch ppc $< $(CDEFINES) $(CDEBUG) $(COPT) -Wno-deprecated-declarations -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  $(MDYNAMIC_NO_PIC) -o $@
     64        $(CC) -c -arch ppc $< $(CDEFINES) $(CDEBUG) $(COPT) -Wno-deprecated-declarations $(WFORMAT) -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  $(MDYNAMIC_NO_PIC) -o $@
    6265
    6366SPOBJ = ppc-spjump.o ppc-spentry.o  ppc-subprims.o
  • trunk/source/lisp-kernel/darwinppc64/Makefile

    r13066 r13336  
    5858CDEBUG = -g
    5959COPT = -O2
     60# Once in a while, -Wformat says something useful.  The odds are against that,
     61# however.
     62WFORMAT = -Wno-format
    6063
    6164.s.o:
    6265        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(ASFLAGS) -o $@
    6366.c.o:
    64         $(CC) -c $< -arch ppc64 -m64 $(CDEFINES) $(CDEBUG) $(COPT) $(MDYNAMIC_NO_PIC) -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o $@
     67        $(CC) -c $< -arch ppc64 -m64 $(CDEFINES) $(CDEBUG) $(COPT) $(MDYNAMIC_NO_PIC) $(WFORMAT) -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o $@
    6568
    6669SPOBJ = ppc-spjump.o ppc-spentry.o ppc-subprims.o
  • trunk/source/lisp-kernel/darwinx8632/Makefile

    r13212 r13336  
    2828CDEBUG = -g
    2929COPT = -O2
     30# Once in a while, -Wformat says something useful.  The odds are against that,
     31# however.
     32WFORMAT = -Wno-format
    3033CC=gcc-4.0
    3134
     
    3336        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(ASFLAGS) -o $@
    3437.c.o:
    35         $(CC) -c -arch i386 $< $(CDEFINES) $(CDEBUG) $(COPT) $(MDYNAMIC_NO_PIC) -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o $@
     38        $(CC) -c -arch i386 $< $(CDEFINES) $(CDEBUG) $(COPT) $(MDYNAMIC_NO_PIC) $(WFORMAT) -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o $@
    3639
    3740SPOBJ = x86-spjump32.o x86-spentry32.o x86-subprims32.o
  • trunk/source/lisp-kernel/darwinx8664/Makefile

    r13066 r13336  
    5252CDEBUG = -g
    5353COPT = -O2
     54# Once in a while, -Wformat says something useful.  The odds are against that,
     55# however.
     56WFORMAT = -Wno-format
    5457
    5558.s.o:
    5659        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(ASFLAGS) -o $@
    5760.c.o:
    58         $(CC) -c $< -arch x86_64 -m64 $(CDEFINES) $(CDEBUG) $(COPT) $(MDYNAMIC_NO_PIC) -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o $@
     61        $(CC) -c $< -arch x86_64 -m64 $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) $(MDYNAMIC_NO_PIC) -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o $@
    5962
    6063SPOBJ = x86-spjump64.o x86-spentry64.o x86-subprims64.o
  • trunk/source/lisp-kernel/freebsdx8632/Makefile

    r13212 r13336  
    2424CDEBUG = -g
    2525COPT = -O2
     26# Once in a while, -Wformat says something useful.  The odds are against that,
     27# however.
     28WFORMAT = -Wno-format
    2629
    2730
     
    5760        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
    5861.c.o:
    59         $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -m32 -o $@
     62        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m32 -o $@
    6063
    6164LINKSCRIPTFILE = #
  • trunk/source/lisp-kernel/freebsdx8664/Makefile

    r13066 r13336  
    2424CDEBUG = -g
    2525COPT = #-O2
     26# Once in a while, -Wformat says something useful.  The odds are against that,
     27# however.
     28WFORMAT = -Wno-format
    2629
    2730
     
    5457        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
    5558.c.o:
    56         $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -m64 -o $@
     59        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m64 -o $@
    5760
    5861LINKSCRIPTFILE = # ./elf_x86_64.x
  • trunk/source/lisp-kernel/linuxx8632/Makefile

    r13212 r13336  
    2424CDEBUG = -g
    2525COPT = -O2
     26# Once in a while, -Wformat says something useful.  The odds are against that,
     27# however.
     28WFORMAT = -Wno-format
    2629
    2730# If the linker supports a "--hash-style=" option, use traditional
     
    3942        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
    4043.c.o:
    41         $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -m32 -o $@
     44        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m32 -o $@
    4245
    4346SPOBJ = pad.o x86-spjump32.o x86-spentry32.o x86-subprims32.o
  • trunk/source/lisp-kernel/linuxx8664/Makefile

    r13066 r13336  
    2424CDEBUG = -g
    2525COPT = -O2
     26# Once in a while, -Wformat says something useful.  The odds are against that,
     27# however.
     28WFORMAT = -Wno-format
    2629
    2730# If the linker supports a "--hash-style=" option, use traditional
     
    3942        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
    4043.c.o:
    41         $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -m64 -o $@
     44        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m64 -o $@
    4245
    4346SPOBJ = pad.o x86-spjump64.o x86-spentry64.o x86-subprims64.o
  • trunk/source/lisp-kernel/solarisx64/Makefile

    r13066 r13336  
    3434CDEBUG = -g
    3535COPT = #-O2
     36# Once in a while, -Wformat says something useful.  The odds are against that,
     37# however.
     38WFORMAT = -Wno-format
    3639
    3740
     
    4043        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
    4144.c.o:
    42         $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -m64 -o $@
     45        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m64 -o $@
    4346
    4447SPOBJ = pad.o x86-spjump64.o x86-spentry64.o x86-subprims64.o
  • trunk/source/lisp-kernel/solarisx86/Makefile

    r13212 r13336  
    3434CDEBUG = -g
    3535COPT = -O2
     36# Once in a while, -Wformat says something useful.  The odds are against that,
     37# however.
     38WFORMAT = -Wno-format
    3639
    3740
     
    4043        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
    4144.c.o:
    42         $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -m32 -o $@
     45        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m32 -o $@
    4346
    4447SPOBJ = pad.o x86-spjump32.o x86-spentry32.o x86-subprims32.o
  • trunk/source/lisp-kernel/win32/Makefile

    r13212 r13336  
    2626CDEBUG = -g
    2727COPT = -O2
     28# Once in a while, -Wformat says something useful.  The odds are against that,
     29# however.
     30WFORMAT = -Wno-format
    2831
    2932# If the linker supports a "--hash-style=" option, use traditional
     
    5356        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
    5457.c.o:
    55         $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) ${SUPPRESS_UNDERSCORES} -mno-cygwin -o $@
     58        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) ${SUPPRESS_UNDERSCORES} -mno-cygwin -o $@
    5659
    5760# order matters: x86-spjump32.o must be first.
  • trunk/source/lisp-kernel/win64/Makefile

    r13066 r13336  
    2727CDEFINES = -DWIN_64 -DWINDOWS -D_REENTRANT -DX86 -DX8664 -D_GNU_SOURCE -DHAVE_TLS -DEMUTLS -DTCR_IN_GPR
    2828CDEBUG = -g
    29 COPT = #-O2
     29COPT = -O2
     30# Once in a while, -Wformat says something useful.  The odds are against that,
     31# however.
     32WFORMAT = -Wno-format
     33
    3034
    3135# If the linker supports a "--hash-style=" option, use traditional
     
    5357        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
    5458.c.o:
    55         $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) ${SUPPRESS_UNDERSCORES} -m64 -o $@
     59        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) ${SUPPRESS_UNDERSCORES} -m64 -o $@
    5660
    5761SPOBJ = pad.o x86-spjump64.o x86-spentry64.o x86-subprims64.o
Note: See TracChangeset for help on using the changeset viewer.