Opened 9 years ago

Closed 9 years ago

#12125 closed bug (fixed)

'setarch x86' doesn't work as expected

Reported by: haiqu Owned by: nobody
Priority: high Milestone: R1/beta1
Component: - General Version: R1/Development
Keywords: setarch Cc:
Blocked By: Blocking:
Platform: All

Description

~> gcc -v
using priority 5
Reading specs from /packages/gcc-2.95.3_2014_10_14-3/.self/develop/tools/lib/gcc-lib/i586-pc-haiku/2.95.3-haiku-2014_07_26/specs
gcc version 2.95.3-haiku-2014_07_26
~> setarch x86
~> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/boot/system/develop/tools/x86/bin/../lib/gcc/i586-pc-haiku/4.8.4/lto-wrapper
Target: i586-pc-haiku
Configured with: /sources/buildtools-1a00a76b58ae57d24bd4d774f6323c4ea62dd1e7/configure --build=i586-pc-haiku --prefix=/packages/gcc_x86-4.8.4_2014_12_21-1/.self/develop/tools/x86 --libexecdir=/packages/gcc_x86-4.8.4_2014_12_21-1/.self/develop/tools/x86/lib --mandir=/packages/gcc_x86-4.8.4_2014_12_21-1/.self/documentation/man --docdir=/packages/gcc_x86-4.8.4_2014_12_21-1/.self/documentation/packages/gcc_x86 --enable-threads=posix --disable-nls --enable-shared --with-gnu-ld --with-gnu-as --enable-version-specific-runtime-libs --enable-languages=c,c++ --enable-lto --enable-frame-pointer --with-pkgversion=2014_12_21 --enable-__cxa-atexit --with-hybrid-secondary=x86
Thread model: posix
gcc version 4.8.4 (2014_12_21) 
~> setarch x86
~> gcc -v
using priority 5
Reading specs from /packages/gcc-2.95.3_2014_10_14-3/.self/develop/tools/lib/gcc-lib/i586-pc-haiku/2.95.3-haiku-2014_07_26/specs
gcc version 2.95.3-haiku-2014_07_26
~> 

As you can see, unless one checks the compiler that's being currently used an error could be easily made here.

Change History (2)

comment:1 by waddlesplash, 9 years ago

Milestone: UnscheduledR1/beta1
Priority: normalhigh
Type: enhancementbug

comment:2 by jessicah, 9 years ago

Resolution: fixed
Status: newclosed

Fixed in hrev49259.

Note: See TracTickets for help on using tickets.