Changeset 158


Ignore:
Timestamp:
Jan 16, 2008, 9:17:27 PM (17 years ago)
Author:
katerina
Message:

Default to +O2 with HP-UX cc.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r157 r158  
    170170                CFLAGS=`echo $CFLAGS | sed 's%\-g%%' `
    171171          fi
    172           if test -z "`echo "$CFLAGS" | grep "\-fast" 2> /dev/null`"; then
    173                 CFLAGS="$CFLAGS -fast"
     172          if test -z "`echo "$CFLAGS" | grep "\+O2" 2> /dev/null`"; then
     173                CFLAGS="$CFLAGS +O2"
    174174          fi
    175175        fi
  • trunk/docs/Changelog

    r156 r158  
    112.4.2:
     2        * change HP-UX default optimization to +O2 since +O3 breaks cutest
    23        * put result vector of rng in skey struct
    34        * fix more compiler warnings, and a potential (compiler-dependent)
  • trunk/src/CuTest.c

    r137 r158  
    242242{
    243243        char buf[STRING_MAX];
    244         if (fabs(expected - actual) <= delta) return;
     244#define SH_FABS(a) (((a) < 0) ? -(a) : (a))
     245        if (SH_FABS(expected - actual) <= delta) return;
    245246        sprintf(buf, "expected <%lf> but was <%lf>", expected, actual);
    246247        CuFail_Line(tc, file, line, message, buf);
Note: See TracChangeset for help on using the changeset viewer.