This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Is "-march=atom" deprecated?
- From: waltdnes at waltdnes dot org
- To: GCC help list <gcc-help at gcc dot gnu dot org>
- Date: Mon, 3 Oct 2016 18:40:10 -0400
- Subject: Re: Is "-march=atom" deprecated?
- Authentication-results: sourceware.org; auth=none
- References: <20160928231454.GA21018@waltdnes.org> <8610e4a4-0e60-1633-f245-3f8051473487@redhat.com> <20160930030411.GA31976@waltdnes.org> <57F21F85.3060802@free.fr>
On Mon, Oct 03, 2016 at 11:06:13AM +0200, Mason wrote
> It does look like 'atom' and 'bonnell' are similar.
>
> I don't have 4.9 handy, try this:
>
> echo | gcc -xc -S -fverbose-asm -march=atom -o v1.s -
> echo | gcc -xc -S -fverbose-asm -march=bonnell -o v2.s -
> diff -u v1.s v2.s
>
> Maybe they are identical?
Thanks for the idea. I had to do it a bit differently to get it to
work. I took a simple "Hello World" program, and ran...
gcc -xc -S -fverbose-asm -march=atom -o v1.s hello.c
gcc -xc -S -fverbose-asm -march=bonnell -o v2.s hello.c
[i660][waltdnes][~/.x] diff -s v1.s v2.s
5c5
< # options passed: hello.c -march=atom -auxbase-strip v1.s -fverbose-asm
---
> # options passed: hello.c -march=bonnell -auxbase-strip v2.s -fverbose-asm
They appear to be identical, right down to the assembler level. But
when an option becomes "undocumented", it can be removed without notice.
I'll play it safe and go with "-march=bonnell".
--
Walter Dnes <waltdnes@waltdnes.org>