diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-12-21 11:23:43 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-12-21 11:23:43 -0500 |
commit | b6304613bf0bb1c188bed30eb3df6e3e154b4196 (patch) | |
tree | 7bac85fd0d40747b29ae49797977820d4d28fbe5 /gdb/testsuite/lib | |
parent | 35adc03f3787405297259a1706608bdeaab4fda9 (diff) | |
download | gdb-b6304613bf0bb1c188bed30eb3df6e3e154b4196.zip gdb-b6304613bf0bb1c188bed30eb3df6e3e154b4196.tar.gz gdb-b6304613bf0bb1c188bed30eb3df6e3e154b4196.tar.bz2 |
Remove references to HP CC/aCC compiler from testsuite
The HP CC/aCC compiler is exclusive to HP-UX, for which support has been
explicitly removed. Therefore, It does not make sense to keep tests
for these compilers' quirks.
gdb/testsuite/ChangeLog:
* gdb.base/break.exp: Remove references to HP CC/aCC compilers.
* gdb.base/call-ar-st.exp: Likewise.
* gdb.base/callfuncs.exp: Likewise.
* gdb.base/condbreak.exp: Likewise.
* gdb.base/constvars.exp: Likewise.
* gdb.base/hbreak2.exp: Likewise.
* gdb.base/langs.exp: Likewise.
* gdb.base/list.exp: Likewise.
* gdb.base/long_long.exp: Likewise.
* gdb.base/ptype.exp: Likewise.
* gdb.base/scope.exp: Likewise.
* gdb.base/signals.exp: Likewise.
* gdb.base/so-impl-ld.exp: Likewise.
* gdb.base/varargs.exp: Likewise.
* gdb.base/volatile.exp: Likewise.
* gdb.base/whatis.exp: Likewise.
* gdb.cp/cplusfuncs.exp: Likewise.
* gdb.cp/inherit.exp: Likewise.
* gdb.cp/local.exp: Likewise.
* gdb.cp/member-ptr.exp: Likewise.
* gdb.cp/method.exp: Likewise.
* gdb.cp/overload.exp: Likewise.
* gdb.cp/templates.exp: Likewise.
* gdb.stabs/weird.exp: Likewise.
* lib/compiler.c: Likewise.
* lib/compiler.cc: Likewise.
* lib/cp-support.exp: Likewise.
* lib/gdb.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/compiler.c | 25 | ||||
-rw-r--r-- | gdb/testsuite/lib/compiler.cc | 23 | ||||
-rw-r--r-- | gdb/testsuite/lib/cp-support.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 15 |
4 files changed, 3 insertions, 62 deletions
diff --git a/gdb/testsuite/lib/compiler.c b/gdb/testsuite/lib/compiler.c index f0e4559..ef6efe9 100644 --- a/gdb/testsuite/lib/compiler.c +++ b/gdb/testsuite/lib/compiler.c @@ -28,18 +28,11 @@ test_compiler_info. TODO: all clients should use test_compiler_info and should not - use gcc_compiled, hp_cc_compiler, or hp_aCC_compiler. + use gcc_compiled. */ -/* Note the semicolon at the end of this line. Older versions of - hp c++ have a bug in string preprocessing: if the last token on a - line is a string, then the preprocessor concatenates the next line - onto the current line and eats the newline! That messes up TCL of - course. That happens with HP aC++ A.03.13, but it no longer happens - with HP aC++ A.03.45. */ - -set compiler_info "unknown" ; +set compiler_info "unknown" #if defined (__GNUC__) #if defined (__GNUC_PATCHLEVEL__) @@ -50,20 +43,6 @@ set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ "unknown"} -] #endif #endif -#if defined (__HP_CXD_SPP) -/* older hp ansi c, such as A.11.01.25171.gp, defines this */ -set compiler_info [join {hpcc __HP_CXD_SPP} -] -#endif - -#if defined (__HP_cc) -/* newer hp ansi c, such as B.11.11.28706.gp, defines this */ -set compiler_info [join {hpcc __HP_cc} -] -#endif - -#if defined (__HP_aCC) -set compiler_info [join {hpacc __HP_aCC} -] -#endif - #if defined (__xlc__) /* IBM'x xlc compiler. NOTE: __xlc__ expands to a double quoted string of four numbers seperated by '.'s: currently "7.0.0.0" */ diff --git a/gdb/testsuite/lib/compiler.cc b/gdb/testsuite/lib/compiler.cc index f550acc..b0a104c 100644 --- a/gdb/testsuite/lib/compiler.cc +++ b/gdb/testsuite/lib/compiler.cc @@ -20,14 +20,7 @@ /* This file is exactly like compiler.c. I could just use compiler.c if I could be sure that every C++ compiler accepted extensions of ".c". */ -/* Note the semicolon at the end of this line. Older versions of - hp c++ have a bug in string preprocessing: if the last token on a - line is a string, then the preprocessor concatenates the next line - onto the current line and eats the newline! That messes up TCL of - course. That happens with HP aC++ A.03.13, but it no longer happens - with HP aC++ A.03.45. */ - -set compiler_info "unknown" ; +set compiler_info "unknown" #if defined (__GNUC__) #if defined (__GNUC_PATCHLEVEL__) @@ -38,20 +31,6 @@ set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ "unknown"} -] #endif #endif -#if defined (__HP_CXD_SPP) -/* older hp ansi c, such as A.11.01.25171.gp, defines this */ -set compiler_info [join {hpcc __HP_CXD_SPP} -] -#endif - -#if defined (__HP_cc) -/* newer hp ansi c, such as B.11.11.28706.gp, defines this */ -set compiler_info [join {hpcc __HP_cc} -] -#endif - -#if defined (__HP_aCC) -set compiler_info [join {hpacc __HP_aCC} -] -#endif - #if defined (__xlc__) /* IBM'x xlc compiler. NOTE: __xlc__ expands to a double quoted string of four numbers seperated by '.'s: currently "7.0.0.0" */ diff --git a/gdb/testsuite/lib/cp-support.exp b/gdb/testsuite/lib/cp-support.exp index ab88030..a63fa07 100644 --- a/gdb/testsuite/lib/cp-support.exp +++ b/gdb/testsuite/lib/cp-support.exp @@ -176,8 +176,6 @@ proc cp_check_errata { expected_string actual_string errata_table } { # # "A*" versus "A *" and "A&" versus "A &" in user methods. # -# Test with hp ACC. -# # -- chastain 2004-08-07 proc cp_test_ptype_class { in_exp in_testname in_key in_tag in_class_table { in_tail "" } { in_errata_table { } } { in_ptype_arg /r } } { diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 333b988..caf6ad4 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3084,8 +3084,6 @@ if [info exists compiler_info] { } set gcc_compiled 0 -set hp_cc_compiler 0 -set hp_aCC_compiler 0 # Figure out what compiler I am using. # The result is cached so only the first invocation runs the compiler. @@ -3152,8 +3150,6 @@ proc get_compiler_info {{arg ""}} { # Legacy global data symbols. global gcc_compiled - global hp_cc_compiler - global hp_aCC_compiler if [info exists compiler_info] { # Already computed. @@ -3214,15 +3210,11 @@ proc get_compiler_info {{arg ""}} { # Set the legacy symbols. set gcc_compiled 0 - set hp_cc_compiler 0 - set hp_aCC_compiler 0 if { [regexp "^gcc-1-" "$compiler_info" ] } { set gcc_compiled 1 } if { [regexp "^gcc-2-" "$compiler_info" ] } { set gcc_compiled 2 } if { [regexp "^gcc-3-" "$compiler_info" ] } { set gcc_compiled 3 } if { [regexp "^gcc-4-" "$compiler_info" ] } { set gcc_compiled 4 } if { [regexp "^gcc-5-" "$compiler_info" ] } { set gcc_compiled 5 } - if { [regexp "^hpcc-" "$compiler_info" ] } { set hp_cc_compiler 1 } - if { [regexp "^hpacc-" "$compiler_info" ] } { set hp_aCC_compiler 1 } # Log what happened. verbose -log "get_compiler_info: $compiler_info" @@ -3232,13 +3224,6 @@ proc get_compiler_info {{arg ""}} { uplevel \#0 { set true 1 } uplevel \#0 { set false 0 } - # Use of aCC results in boolean results being displayed as - # "true" or "false" - if { $hp_aCC_compiler } { - uplevel \#0 { set true true } - uplevel \#0 { set false false } - } - return 0 } |