summaryrefslogtreecommitdiff
path: root/src/template/aix
blob: ed832849dae984f72145527d59b53c7307e3ee90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Set appropriate default compiler options if using xlc
# Note: configure will add -qnoansialias if the compiler accepts it,
# even if user specifies a non-default CFLAGS setting.
if test "$GCC" != yes ; then
  case $host_os in
    aix3.2.5 | aix4.1*)
      CFLAGS="-O -qmaxmem=16384 -qsrcmsg"
      ;;
    *)
      CFLAGS="-O2 -qmaxmem=16384 -qsrcmsg"
      ;;
  esac

  # Due to a compiler bug, see 20171013023536.GA492146@rfd.leadboat.com for details,
  # force restrict not to be used when compiling with xlc.
  FORCE_DISABLE_RESTRICT=yes
fi

# Native memset() is faster, tested on:
# 	AIX 5.1 and 5.2, XLC 6.0 (IBM's cc)
# 	AIX 5.3 ML3, gcc 4.0.1
MEMSET_LOOP_LIMIT=0