Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1058169 - fails to compile with g++ on ARM and with arm-gp2x-linux-g++ on X86 as well, but works with g++ on x86
Summary: fails to compile with g++ on ARM and with arm-gp2x-linux-g++ on X86 as well, ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 20
Hardware: arm
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-27 07:11 UTC by spital
Modified: 2014-01-27 07:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-27 07:19:18 UTC


Attachments (Terms of Use)
source files and output (deleted)
2014-01-27 07:11 UTC, spital
no flags Details

Description spital 2014-01-27 07:11:14 UTC
Created attachment 855951 [details]
source files and output

Description of problem:

arm-gp2x-linux-g++ -save-temps -c idlib/Lib.cpp -I/usr/include
Lib.s: Assembler messages:
Lib.s:1623: Error: bad instruction `int $0x03'

The same instruction is in x86 assembly.

Please see the attachment

Please see 0out.x86, 0out.x86.cross.arm, 0out.arm

Version-Release number of selected component (if applicable):

g++ (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)

arm-gp2x-linux-g++ (GCC) 4.1.2 (Fedora GP2X 4.1.2-14.fc18)

#ARM# g++ (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)

Comment 1 Jakub Jelinek 2014-01-27 07:19:18 UTC
__asm__ __volatile__ ("int $0x03");
in the source.  Why do you think this should work on any other arch but i?86/x86_64?  Use __builtin_trap () or abort () or something similar if you want to crash.


Note You need to log in before you can comment on or make changes to this bug.