-2002-12-02 Frank Ch. Eigler <fche@redhat.com>
-
- * tracedis.c: s/boolean/bfd_boolean/ throughout, to match bfd change.
-
2002-11-29 Ben Elliston <bje@redhat.com>
* common-xml/interface.xml (print-insn-summary!): New pin.
* common-xml/behavior.xml (tracing): Mention print-insn-summary!.
+2002-10-16 Alexandre Oliva <aoliva@redhat.com>
+
+ * acinclude.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): Copied
+ from gcc/aclocal.m4.
+ * configure.in: Check for decls of vasprintf, asprintf and
+ basename.
+ * tracedis.cxx: Include config.h.
+
2002-10-03 Dave Brolley <brolley@redhat.com>
From Ben Elliston <bje@redhat.com>
* common-xml/interface.xml: Document gdb-breakpoint-{big,little}.
* common-xml/debugger-register-access.xml: Cont'd.
+2002-04-03 Ben Elliston <bje@redhat.com>
+
+ * Makefile.am (TRACEDIS): Remove.
+ (libcgencpu_la_SOURCES): Add tracedis.cxx.
+ * tracedis.c: Rename from this ..
+ * tracedis.cxx: .. to this.
+ (trace_printf): New static function.
+ (cgen_disassemble): Pass trace_printf with INIT_DISASSEMBLE_INFO.
+ * compCGEN.cxx: Do not #include "tracedis.h" within extern "C".
+
2002-03-14 Ben Elliston <bje@redhat.com>
* common-xml/behavior.xml (tracing): New behavior section.
(trace-extract?): Associate with "tracing" behavior.
(trace-result?): Likewise.
+2002-02-11 Ben Elliston <bje@redhat.com>
+
+ * Makefile.am (libcgencpu_la_SOURCES): Add fp.h, fp.cxx.
+ * fp.h: New file.
+ * fp.cxx: Likewise.
+
+2002-02-11 Frank Ch. Eigler <fche@redhat.com>
+
+ * configure, Makefile.in: Regenerated to correct build problem.
+
2002-02-06 Frank Ch. Eigler <fche@redhat.com>
* compCGEN.cxx (cgen_disassemble): New "isa_mask" argument.
2001-03-22 Ben Elliston <bje@redhat.com>
+ * configure.in: Add xstormy16 support.
+ * compCGEN.cxx: Add xstormy16 support.
* Makefile.in: Regenerate.
* configure: Likewise.
* aclocal.m4: Likewise.
--- /dev/null
+dnl See whether we need a declaration for a function.
+dnl The result is highly dependent on the INCLUDES passed in, so make sure
+dnl to use a different cache variable name in this macro if it is invoked
+dnl in a different context somewhere else.
+dnl gcc_AC_CHECK_DECL(SYMBOL,
+dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, INCLUDES]]])
+AC_DEFUN(gcc_AC_CHECK_DECL,
+[AC_MSG_CHECKING([whether $1 is declared])
+AC_CACHE_VAL(gcc_cv_have_decl_$1,
+[AC_TRY_COMPILE([$4],
+[#ifndef $1
+char *(*pfn) = (char *(*)) $1 ;
+#endif], eval "gcc_cv_have_decl_$1=yes", eval "gcc_cv_have_decl_$1=no")])
+if eval "test \"`echo '$gcc_cv_have_decl_'$1`\" = yes"; then
+ AC_MSG_RESULT(yes) ; ifelse([$2], , :, [$2])
+else
+ AC_MSG_RESULT(no) ; ifelse([$3], , :, [$3])
+fi
+])dnl
+
+dnl Check multiple functions to see whether each needs a declaration.
+dnl Arrange to define HAVE_DECL_<FUNCTION> to 0 or 1 as appropriate.
+dnl gcc_AC_CHECK_DECLS(SYMBOLS,
+dnl [ACTION-IF-NEEDED [, ACTION-IF-NOT-NEEDED [, INCLUDES]]])
+AC_DEFUN(gcc_AC_CHECK_DECLS,
+[for ac_func in $1
+do
+changequote(, )dnl
+ ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+changequote([, ])dnl
+gcc_AC_CHECK_DECL($ac_func,
+ [AC_DEFINE_UNQUOTED($ac_tr_decl, 1) $2],
+ [AC_DEFINE_UNQUOTED($ac_tr_decl, 0) $3],
+dnl It is possible that the include files passed in here are local headers
+dnl which supply a backup declaration for the relevant prototype based on
+dnl the definition of (or lack of) the HAVE_DECL_ macro. If so, this test
+dnl will always return success. E.g. see libiberty.h's handling of
+dnl `basename'. To avoid this, we define the relevant HAVE_DECL_ macro to
+dnl 1 so that any local headers used do not provide their own prototype
+dnl during this test.
+#undef $ac_tr_decl
+#define $ac_tr_decl 1
+ $4
+)
+done
+dnl Automatically generate config.h entries via autoheader.
+if test x = y ; then
+ patsubst(translit([$1], [a-z], [A-Z]), [\w+],
+ [AC_DEFINE([HAVE_DECL_\&], 1,
+ [Define to 1 if we found this declaration otherwise define to 0.])])dnl
+fi
+])
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl PARTICULAR PURPOSE.
+dnl See whether we need a declaration for a function.
+dnl The result is highly dependent on the INCLUDES passed in, so make sure
+dnl to use a different cache variable name in this macro if it is invoked
+dnl in a different context somewhere else.
+dnl gcc_AC_CHECK_DECL(SYMBOL,
+dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, INCLUDES]]])
+AC_DEFUN(gcc_AC_CHECK_DECL,
+[AC_MSG_CHECKING([whether $1 is declared])
+AC_CACHE_VAL(gcc_cv_have_decl_$1,
+[AC_TRY_COMPILE([$4],
+[#ifndef $1
+char *(*pfn) = (char *(*)) $1 ;
+#endif], eval "gcc_cv_have_decl_$1=yes", eval "gcc_cv_have_decl_$1=no")])
+if eval "test \"`echo '$gcc_cv_have_decl_'$1`\" = yes"; then
+ AC_MSG_RESULT(yes) ; ifelse([$2], , :, [$2])
+else
+ AC_MSG_RESULT(no) ; ifelse([$3], , :, [$3])
+fi
+])dnl
+
+dnl Check multiple functions to see whether each needs a declaration.
+dnl Arrange to define HAVE_DECL_<FUNCTION> to 0 or 1 as appropriate.
+dnl gcc_AC_CHECK_DECLS(SYMBOLS,
+dnl [ACTION-IF-NEEDED [, ACTION-IF-NOT-NEEDED [, INCLUDES]]])
+AC_DEFUN(gcc_AC_CHECK_DECLS,
+[for ac_func in $1
+do
+changequote(, )dnl
+ ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+changequote([, ])dnl
+gcc_AC_CHECK_DECL($ac_func,
+ [AC_DEFINE_UNQUOTED($ac_tr_decl, 1) $2],
+ [AC_DEFINE_UNQUOTED($ac_tr_decl, 0) $3],
+dnl It is possible that the include files passed in here are local headers
+dnl which supply a backup declaration for the relevant prototype based on
+dnl the definition of (or lack of) the HAVE_DECL_ macro. If so, this test
+dnl will always return success. E.g. see libiberty.h's handling of
+dnl `basename'. To avoid this, we define the relevant HAVE_DECL_ macro to
+dnl 1 so that any local headers used do not provide their own prototype
+dnl during this test.
+#undef $ac_tr_decl
+#define $ac_tr_decl 1
+ $4
+)
+done
+dnl Automatically generate config.h entries via autoheader.
+if test x = y ; then
+ patsubst(translit([$1], [a-z], [A-Z]), [\w+],
+ [AC_DEFINE([HAVE_DECL_\&], 1,
+ [Define to 1 if we found this declaration otherwise define to 0.])])dnl
+fi
+])
+
# Do all the work for Automake. This macro actually does too much --
# some checks are only needed if your package does certain things.
# But this isn't really a big deal.
/* Version number of package */
#undef VERSION
+/* Define to 1 if we found this declaration otherwise define to 0. */
+#undef HAVE_DECL_VASPRINTF
+
+/* Define to 1 if we found this declaration otherwise define to 0. */
+#undef HAVE_DECL_ASPRINTF
+
+/* Define to 1 if we found this declaration otherwise define to 0. */
+#undef HAVE_DECL_BASENAME
+
echo $ac_n "checking ARM family support""... $ac_c" 1>&6
-echo "configure:2311: checking ARM family support" >&5
+echo "configure:2368: checking ARM family support" >&5
echo "$ac_t""$sidtarget_arm" 1>&6
echo $ac_n "checking X86 family support""... $ac_c" 1>&6
-echo "configure:2325: checking X86 family support" >&5
+echo "configure:2382: checking X86 family support" >&5
echo "$ac_t""$sidtarget_x86" 1>&6
echo $ac_n "checking MIPS family support""... $ac_c" 1>&6
-echo "configure:2339: checking MIPS family support" >&5
+echo "configure:2412: checking MIPS family support" >&5
echo "$ac_t""$sidtarget_mips" 1>&6
echo $ac_n "checking M32R family support""... $ac_c" 1>&6
-echo "configure:2353: checking M32R family support" >&5
+echo "configure:2426: checking M32R family support" >&5
echo "$ac_t""$sidtarget_m32r" 1>&6
echo $ac_n "checking M68K family support""... $ac_c" 1>&6
-echo "configure:2367: checking M68K family support" >&5
+echo "configure:2440: checking M68K family support" >&5
echo "$ac_t""$sidtarget_m68k" 1>&6
echo $ac_n "checking PPC family support""... $ac_c" 1>&6
-echo "configure:2381: checking PPC family support" >&5
+echo "configure:2470: checking PPC family support" >&5
echo "$ac_t""$sidtarget_ppc" 1>&6
echo $ac_n "checking Sanyo Xstormy16 family support""... $ac_c" 1>&6
-echo "configure:2395: checking Sanyo Xstormy16 family support" >&5
+echo "configure:2561: checking Sanyo Xstormy16 family support" >&5
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2441: checking for $ac_word" >&5
+echo "configure:2645: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_GUILE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "links", so it can be a program name with args.
set dummy links; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2477: checking for $ac_word" >&5
+echo "configure:2681: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LINKS'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "xsltproc", so it can be a program name with args.
set dummy xsltproc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2517: checking for $ac_word" >&5
+echo "configure:2721: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_XSLTPROC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "sabcmd", so it can be a program name with args.
set dummy sabcmd; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2557: checking for $ac_word" >&5
+echo "configure:2761: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_SABLOTRON'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
+for ac_func in vasprintf asprintf basename
+do
+ ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
+echo "configure:2804: checking whether $ac_func is declared" >&5
+if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 2809 "configure"
+#include "confdefs.h"
+#undef $ac_tr_decl
+#define $ac_tr_decl 1
+
+#include <stdio.h>
+#include <string.h>
+
+
+int main() {
+#ifndef $ac_func
+char *(*pfn) = (char *(*)) $ac_func ;
+#endif
+; return 0; }
+EOF
+if { (eval echo configure:2824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ eval "gcc_cv_have_decl_$ac_func=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "gcc_cv_have_decl_$ac_func=no"
+fi
+rm -f conftest*
+fi
+
+if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
+ echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
+#define $ac_tr_decl 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
+#define $ac_tr_decl 0
+EOF
+
+fi
+
+done
+if test x = y ; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_DECL_VASPRINTF 1
+EOF
+ cat >> confdefs.h <<\EOF
+#define HAVE_DECL_ASPRINTF 1
+EOF
+ cat >> confdefs.h <<\EOF
+#define HAVE_DECL_BASENAME 1
+EOF
+fi
+
+
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
-ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
+ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
dnl building docs
RH_DOCBUILD_CHECK
+gcc_AC_CHECK_DECLS([vasprintf asprintf basename], [], [], [
+#include <stdio.h>
+#include <string.h>
+])
+
dnl Outputs
AC_OUTPUT(Makefile CGEN.sh)