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: Tue, 4 Oct 2016 10:14:35 -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> <20161003224010.GA18009@waltdnes.org> <57F36D65.4000808@free.fr>
On Tue, Oct 04, 2016 at 10:50:45AM +0200, Mason wrote
> On 04/10/2016 00:40, waltdnes wrote:
>
> > 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...
>
> For my personal education, can you tell me in what way the commands
> above failed to work? (You did copy the trailing dash, right?)
Sorry, I goofed up somewhere, probably the trailing dash. I tried
again, and this time it worked. I got the following...
[i660][waltdnes][~] echo | gcc -xc -S -fverbose-asm -march=atom -o v1.s -
[i660][waltdnes][~] echo | gcc -xc -S -fverbose-asm -march=bonnell -o v2.s -
[i660][waltdnes][~] diff -u v1.s v2.s
--- v1.s 2016-10-04 10:08:05.484318802 -0400
+++ v2.s 2016-10-04 10:08:23.980319927 -0400
@@ -2,7 +2,7 @@
# GNU C (Gentoo 4.9.3 p1.5, pie-0.6.4) version 4.9.3
# (x86_64-pc-linux-gnu)
# compiled by GNU C version 4.9.3, GMP version 6.0.0, MPFR version 3.1.3-p4, MPC version 1.0.2
# GGC heuristics: --param ggc-min-expand=100 --param
# ggc-min-heapsize=131072
-# options passed: - -march=atom -auxbase-strip v1.s -fverbose-asm
+# options passed: - -march=bonnell -auxbase-strip v2.s -fverbose-asm
# -fstack-protector-strong
# options enabled: -faggressive-loop-optimizations
# -fasynchronous-unwind-tables -fauto-inc-dec -fcommon
--
Walter Dnes <waltdnes@waltdnes.org>