autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_C_RESTRICT


From: Albert Chin
Subject: AC_C_RESTRICT
Date: Fri, 31 Mar 2006 14:25:51 -0600
User-agent: Mutt/1.5.6i

Autoconf 2.59 chooses __restrict on HP-UX 11.x. Indeed, the following
works:
  $ cat a.c
void
foo (int var) {
  float * __restrict x;
}

However, this fails:
  $ cat a.c
void
foo (int __restrict var) {
  float * __restrict x;
}
  $ cc -c a.c
cc: "a.c", line 2: error 1671: Illegal use of restrict.

Should AC_C_RESTRICT be updated to include a function call with
restrict in the parameter list to catch the above?

-- 
albert chin (address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]