mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-23 01:40:32 +08:00
file-format.exp (gcc_target_object_format): Use ${tool}_target_compile, not gcc_target_compile.
* lib/file-format.exp (gcc_target_object_format): Use ${tool}_target_compile, not gcc_target_compile. * lib/target-supports.exp (check_alias_available): Likewise. (check_gc_sections_available): Likewise. * g++.dg/ext/attrib10.C: Use dg-require-alias. * g++.old-deja/g++.ext/attrib5.C: Use dg-require-weak and dg-require-alias. From-SVN: r77295
This commit is contained in:
parent
f63fd68beb
commit
bfa21a28ea
@ -3,6 +3,16 @@
|
||||
PR c++/13086
|
||||
* g++.dg/warn/incomplete1.C: Remove xfail.
|
||||
|
||||
2004-02-04 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* lib/file-format.exp (gcc_target_object_format): Use
|
||||
${tool}_target_compile, not gcc_target_compile.
|
||||
* lib/target-supports.exp (check_alias_available): Likewise.
|
||||
(check_gc_sections_available): Likewise.
|
||||
* g++.dg/ext/attrib10.C: Use dg-require-alias.
|
||||
* g++.old-deja/g++.ext/attrib5.C: Use dg-require-weak and
|
||||
dg-require-alias.
|
||||
|
||||
2004-02-04 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/13969
|
||||
|
@ -1,4 +1,5 @@
|
||||
// PR c++/12795
|
||||
// { dg-require-alias "" }
|
||||
|
||||
void foo()
|
||||
{
|
||||
|
@ -1,5 +1,7 @@
|
||||
// { dg-do run { xfail alpha*-dec-osf* *-*-hms i?86-pc-cygwin *-*-coff hppa2*-hp-hpux11* } }
|
||||
// { dg-do run { xfail alpha*-dec-osf* *-*-hms i?86-pc-cygwin *-*-coff } }
|
||||
// Test that attributes weak and alias coexist.
|
||||
// { dg-require-weak "" }
|
||||
// { dg-require-alias "" }
|
||||
|
||||
extern "C" {
|
||||
void f () __attribute__((weak, alias ("_f")));
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
proc gcc_target_object_format { } {
|
||||
global gcc_target_object_format_saved
|
||||
global tool
|
||||
|
||||
if [info exists gcc_target_object_format_saved] {
|
||||
verbose "gcc_target_object_format returning saved $gcc_target_object_format_saved" 2
|
||||
@ -33,7 +34,7 @@ proc gcc_target_object_format { } {
|
||||
puts $open_file "void foo(void) { }"
|
||||
close $open_file
|
||||
|
||||
gcc_target_compile objfmtst.c objfmtst.o object ""
|
||||
${tool}_target_compile objfmtst.c objfmtst.o object ""
|
||||
|
||||
catch {
|
||||
set output [exec $objdump_name --file-headers objfmtst.o ]
|
||||
|
@ -99,7 +99,8 @@ proc check_visibility_available { } {
|
||||
|
||||
proc check_alias_available { } {
|
||||
global alias_available_saved
|
||||
|
||||
global tool
|
||||
|
||||
if [info exists alias_available_saved] {
|
||||
verbose "check_alias_available returning saved $alias_available_saved" 2
|
||||
} else {
|
||||
@ -110,7 +111,7 @@ proc check_alias_available { } {
|
||||
# about the program.
|
||||
puts $f "void g() {} void f() __attribute__((alias(\"g\")));"
|
||||
close $f
|
||||
set lines [gcc_target_compile "tmp.c" "tmp.o" object ""]
|
||||
set lines [${tool}_target_compile "tmp.c" "tmp.o" object ""]
|
||||
file delete "tmp.c"
|
||||
|
||||
if [string match "" $lines] then {
|
||||
@ -148,10 +149,11 @@ proc check_alias_available { } {
|
||||
|
||||
proc check_gc_sections_available { } {
|
||||
global gc_sections_available_saved
|
||||
global tool
|
||||
|
||||
if {![info exists gc_sections_available_saved]} {
|
||||
# Check if the ld used by gcc supports --gc-sections.
|
||||
set gcc_ld [lindex [gcc_target_compile "-print-prog-name=ld" "" "none" ""] 0]
|
||||
set gcc_ld [lindex [${tool}_target_compile "-print-prog-name=ld" "" "none" ""] 0]
|
||||
set ld_output [remote_exec host "$gcc_ld" "--help"]
|
||||
if { [ string first "--gc-sections" $ld_output ] >= 0 } {
|
||||
set gc_sections_available_saved 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user