emacs-devel
[Top][All Lists]
Advanced

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

preparing the pretest


From: Francesco Potorti`
Subject: preparing the pretest
Date: Wed, 25 Sep 2002 14:15:25 +0200

While preparing a pretest, I did a make bootstrap after upgrading my
default gcc to 3.2.  I get many of these:

gcc -c -D_BSD_SOURCE   -Demacs -DHAVE_CONFIG_H -DUSE_LUCID  -I. 
-I/home/pot/gnu/emacs-pretest/src -D_BSD_SOURCE -I/usr/X11R6/include -g -O2 
-DPURESIZE=5000000 -I../src dired.c
In file included from dired.c:93:
regex.h:541:1: warning: "__restrict_arr" redefined
In file included from /usr/include/features.h:283,
                 from /usr/lib/gcc-lib/i386-linux/3.2.1/include/stdio.h:37,
                 from s/gnu-linux.h:157,
                 from config.h:371,
                 from dired.c:23:
/usr/include/sys/cdefs.h:212:1: warning: this is the location of the previous 
definition

The warning does not appear when using gcc 2.95 (and did not appear with
gcc 3.0).  The reason is that src/regex.h has this:


===File ~/gnu/emacs-pretest/src/regex.h=====================
/* For now unconditionally define __restrict_arr to expand to nothing.
   Ideally we would have a test for the compiler which allows defining
   it to restrict.  */
#define __restrict_arr
============================================================

and <sys/cdefs.h> has this:


===File /usr/include/sys/cdefs.h============================
/* ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
     array_name[restrict]
   GCC 3.1 supports this.  */
#if __GNUC_PREREQ (3,1) && !defined __GNUG__
# define __restrict_arr __restrict
#else
# ifdef __GNUC__
#  define __restrict_arr        /* Not supported in old GCC.  */
# else
#  if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
#   define __restrict_arr       restrict
#  else
/* Some other non-C99 compiler.  */
#   define __restrict_arr       /* Not supported.  */
#  endif
# endif
#endif
============================================================




reply via email to

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