Bug 1409962

Summary: gcc does not support -marm
Product: [Fedora] Fedora Reporter: william estrada <MrUmunhum>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: davejohansen, jakub, jwakely, law, mpolacek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-04 07:48:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description william estrada 2017-01-04 02:54:53 UTC
Description of problem:
Fedora 23 
Linux mt-umunhum-wireless.net 4.8.13-100.fc23.x86_64 #1 SMP Fri Dec 9 14:51:40 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Man page form gcc states '-marm' is supported but gcc -marm returns error:

gcc -marm event.c
gcc: error: unrecognized command line option ‘-marm’

man gcc
           ARM Options -mapcs-frame  -mno-apcs-frame -mabi=name
           -mapcs-stack-check  -mno-apcs-stack-check -mapcs-float
           -mno-apcs-float -mapcs-reentrant  -mno-apcs-reentrant
           -msched-prolog  -mno-sched-prolog -mlittle-endian  -mbig-endian
           -mfloat-abi=name -mfp16-format=name -mthumb-interwork
           -mno-thumb-interwork -mcpu=name  -march=name  -mfpu=name
           -mtune=name -mprint-tune-info -mstructure-size-boundary=n
           -mabort-on-noreturn -mlong-calls  -mno-long-calls -msingle-pic-base
           -mno-single-pic-base -mpic-register=reg -mnop-fun-dllimport
           -mpoke-function-name -mthumb  -marm -mtpcs-frame  -mtpcs-leaf-frame
           -mcaller-super-interworking  -mcallee-super-interworking -mtp=name
           -mtls-dialect=dialect -mword-relocations -mfix-cortex-m3-ldrd
           -munaligned-access -mneon-for-64bits -mslow-flash-data
           -masm-syntax-unified -mrestrict-it


Version-Release number of selected component (if applicable):gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --disable-libgcj --with-isl --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 5.3.1 20160406 (Red Hat 5.3.1-6) (GCC) 




How reproducible:


Steps to Reproduce:
1.gcc -marm file.c
2.
3.

Actual results:

gcc: error: unrecognized command line option ‘-marm’

Expected results:

compile for Arm processor

Additional info:

Comment 1 Jakub Jelinek 2017-01-04 07:48:53 UTC
-marm option is listed as ARM option, so you need ARM native gcc or cross-compiler to arm to use it.  So, it will work in gcc.armv7hl package, or in
gcc-arm-linux-gnu.x86_64 (or any other architecture).  The latter is a cross-compiler from the cross-gcc package.