diff options
author | Fred Fish <fnf@specifix.com> | 1996-07-30 04:26:25 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-07-30 04:26:25 +0000 |
commit | 80f600a4b27520fd5294f2575a6398dc391179a2 (patch) | |
tree | 1eb334cbc4f117749ce24a820f16257b829488b3 /gdb | |
parent | 6f35989529aa84d4a183482b8a846a6012255bb9 (diff) | |
download | gdb-80f600a4b27520fd5294f2575a6398dc391179a2.zip gdb-80f600a4b27520fd5294f2575a6398dc391179a2.tar.gz gdb-80f600a4b27520fd5294f2575a6398dc391179a2.tar.bz2 |
* configure.in: Expand "long long" test to include code that triggers
known problem on HPUX with native compiler.
(configure): Regenerated.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rwxr-xr-x | gdb/configure | 79 | ||||
-rw-r--r-- | gdb/configure.in | 7 |
3 files changed, 54 insertions, 38 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3f172b4..c5ac97e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com> + + * configure.in: Expand "long long" test to include code that triggers + known problem on HPUX with native compiler. + (configure): Regenerated. + Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com) * somsolib.c (som_solib_create_inferior_hook): Don't diff --git a/gdb/configure b/gdb/configure index 99dadbe..52d1eda 100755 --- a/gdb/configure +++ b/gdb/configure @@ -1557,10 +1557,15 @@ else int main() { return 0; } int t() { + long long foo; +void bar () +{ + switch (foo & 2) { case 0: return; } +} ; return 0; } EOF -if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gdb_cv_c_long_long=yes else @@ -1588,7 +1593,7 @@ else gdb_cv_printf_has_long_long=no else cat > conftest.$ac_ext <<EOF -#line 1592 "configure" +#line 1597 "configure" #include "confdefs.h" int main () { @@ -1598,7 +1603,7 @@ int main () { return (strcmp ("12345", buf)); } EOF -{ (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } +{ (eval echo configure:1607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } if test -s conftest && (./conftest; exit) 2>/dev/null; then gdb_cv_printf_has_long_long=yes else @@ -1622,7 +1627,7 @@ if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1626 "configure" +#line 1631 "configure" #include "confdefs.h" int main() { return 0; } @@ -1630,7 +1635,7 @@ int t() { long double foo; ; return 0; } EOF -if { (eval echo configure:1634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_long_double=yes else @@ -1658,7 +1663,7 @@ else gdb_cv_printf_has_long_double=no else cat > conftest.$ac_ext <<EOF -#line 1662 "configure" +#line 1667 "configure" #include "confdefs.h" int main () { @@ -1668,7 +1673,7 @@ int main () { return (strncmp ("3.14159", buf, 7)); } EOF -{ (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } +{ (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } if test -s conftest && (./conftest; exit) 2>/dev/null; then gdb_cv_printf_has_long_double=yes else @@ -1693,7 +1698,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1697 "configure" +#line 1702 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1717,7 +1722,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1747,7 +1752,7 @@ else ac_cv_func_mmap=no else cat > conftest.$ac_ext <<EOF -#line 1751 "configure" +#line 1756 "configure" #include "confdefs.h" /* Thanks to Mike Haertel and Jim Avera for this test. */ @@ -1816,7 +1821,7 @@ main() } EOF -{ (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } +{ (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } if test -s conftest && (./conftest; exit) 2>/dev/null; then ac_cv_func_mmap=yes else @@ -2008,12 +2013,12 @@ if test "$ac_x_includes" = NO; then # First, try using that file with no special directory specified. cat > conftest.$ac_ext <<EOF -#line 2012 "configure" +#line 2017 "configure" #include "confdefs.h" #include <$x_direct_test_include> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -2080,7 +2085,7 @@ if test "$ac_x_libraries" = NO; then ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS" cat > conftest.$ac_ext <<EOF -#line 2084 "configure" +#line 2089 "configure" #include "confdefs.h" int main() { return 0; } @@ -2088,7 +2093,7 @@ int t() { ${x_direct_test_function}() ; return 0; } EOF -if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* LIBS="$ac_save_LIBS" # We can link X programs with no special library path. @@ -2209,7 +2214,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lICE $LIBS" cat > conftest.$ac_ext <<EOF -#line 2213 "configure" +#line 2218 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -2221,7 +2226,7 @@ int t() { IceConnectionNumber() ; return 0; } EOF -if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2257,7 +2262,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldnet $LIBS" cat > conftest.$ac_ext <<EOF -#line 2261 "configure" +#line 2266 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -2269,7 +2274,7 @@ int t() { dnet_ntoa() ; return 0; } EOF -if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2296,7 +2301,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldnet_stub $LIBS" cat > conftest.$ac_ext <<EOF -#line 2300 "configure" +#line 2305 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -2308,7 +2313,7 @@ int t() { dnet_ntoa() ; return 0; } EOF -if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2340,7 +2345,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <<EOF -#line 2344 "configure" +#line 2349 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -2352,7 +2357,7 @@ int t() { t_accept() ; return 0; } EOF -if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2383,7 +2388,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <<EOF -#line 2387 "configure" +#line 2392 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -2395,7 +2400,7 @@ int t() { socket() ; return 0; } EOF -if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2493,12 +2498,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2497 "configure" +#line 2502 "configure" #include "confdefs.h" #include <tclInt.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -2699,13 +2704,13 @@ else ac_cv_c_tclib="-l$installedtcllibroot" else cat > conftest.$ac_ext <<EOF -#line 2703 "configure" +#line 2708 "configure" #include "confdefs.h" Tcl_AppInit() { exit(0); } EOF -{ (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } +{ (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } if test -s conftest && (./conftest; exit) 2>/dev/null; then ac_cv_c_tcllib="-l$installedtcllibroot" else @@ -2815,12 +2820,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2819 "configure" +#line 2824 "configure" #include "confdefs.h" #include <tk.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -3047,13 +3052,13 @@ else ac_cv_c_tklib="-l$installedtklibroot" else cat > conftest.$ac_ext <<EOF -#line 3051 "configure" +#line 3056 "configure" #include "confdefs.h" Tcl_AppInit() { exit(0); } EOF -{ (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } +{ (eval echo configure:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } if test -s conftest && (./conftest; exit) 2>/dev/null; then ac_cv_c_tklib="-l$installedtklibroot" else @@ -3094,7 +3099,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <<EOF -#line 3098 "configure" +#line 3103 "configure" #include "confdefs.h" int main() { return 0; } @@ -3102,7 +3107,7 @@ int t() { main() ; return 0; } EOF -if { (eval echo configure:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3132,7 +3137,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldld $LIBS" cat > conftest.$ac_ext <<EOF -#line 3136 "configure" +#line 3141 "configure" #include "confdefs.h" int main() { return 0; } @@ -3140,7 +3145,7 @@ int t() { main() ; return 0; } EOF -if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else diff --git a/gdb/configure.in b/gdb/configure.in index 0325100..62464d5 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -66,7 +66,12 @@ dnl See if compiler supports "long long" type. AC_MSG_CHECKING(for long long support in compiler) AC_CACHE_VAL(gdb_cv_c_long_long, -[AC_TRY_COMPILE(, [long long foo;], +[AC_TRY_COMPILE(, [ +long long foo; +void bar () +{ + switch (foo & 2) { case 0: return; } +}], gdb_cv_c_long_long=yes, gdb_cv_c_long_long=no)]) AC_MSG_RESULT($gdb_cv_c_long_long) if test $gdb_cv_c_long_long = yes; then |