Bug 3829 - Code uses Build.BUILD_ARCH
Summary: Code uses Build.BUILD_ARCH
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 3694
  Show dependency treegraph
 
Reported: 2007-01-04 13:52 UTC by Andrew Cagney
Modified: 2007-01-04 13:52 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2007-01-04 13:52:53 UTC
Code shouldn't be looking at the build arch, instead it should be looking at
attributes such as the word-size, or what the executable was built as (--target=
is not reliable, cf i386 vs i686).

frysk/proc/TestIsa.java:314:    if (!Build.BUILD_ARCH.equals("x86_64"))
frysk/proc/TestIsa.java:371:    if (!Build.BUILD_ARCH.equals("x86_64"))
frysk/proc/IsaFactory.java:94:          if (frysk.core.Build.BUILD_ARCH.equals
("x86_64"))
frysk/proc/IsaFactory.java:102:       if
(frysk.core.Build.BUILD_ARCH.equals("powerpc64"))
frysk/junit/TestCase.java:76:    if (Build.BUILD_ARCH.indexOf ("powerpc") != - 1) {
frysk/junit/TestCase.java:88:    if (Build.BUILD_ARCH.indexOf ("_64") != - 1) {
frysk/junit/Runner.java:273:        this.archBuild = Build.BUILD_ARCH;
frysk/junit/Runner.java:315:        this.archBuild = Build.BUILD_ARCH;
frysk/junit/Runner.java:581:    setBuildArch (Build.BUILD_ARCH);
lib/opcodes/tests/TestOpcodes.java:79:    //boolean is64 =
Build.BUILD_ARCH.indexOf("_64") != - 1;
lib/opcodes/tests/TestOpcodes.java:82:    if
(Build.BUILD_ARCH.indexOf("powerpc") != - 1)
lib/opcodes/tests/TestOpcodes.java:98:    else if
(Build.BUILD_ARCH.indexOf("_64") != - 1)
lib/opcodes/tests/DummyByteBuffer.java:54:    if
(Build.BUILD_ARCH.indexOf("powerpc") != - 1)
lib/opcodes/tests/DummyByteBuffer.java:70:    else if
(Build.BUILD_ARCH.indexOf("_64") != - 1)
bugzilla/3349.xml:51:        testRunner.setBuildArch(Build.BUILD_ARCH);
bugzilla/2712.xml:277:to replace "ppc" with "powerpc" to
match Build.BUILD_ARCH.