AC_C_RESTRICT

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

 



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 (china@xxxxxxxxxxxxxxxxxx)


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux