GCC: Inefficient register usage?
Fri Aug 25 09:01:00 GMT 2000
Further to the volatile discussion, I saw this on the gcc-bugs list:
From: firstname.lastname@example.org [ mailto:email@example.com]On
Behalf Of Mike Stump
Sent: 15 June 2000 23:10
To: firstname.lastname@example.org; email@example.com; firstname.lastname@example.org
Subject: Re: Poor code generation for M68k volatile variables
> Date: Thu, 15 Jun 2000 09:32:24 -0600
> From: Eric Norum <email@example.com>
> To: firstname.lastname@example.org, Joel Sherril <email@example.com>
> Declaring a variable `volatile' makes access to it less efficient on
> m68k targets.
Yes. Search the mailing list archives for volatile_ok, and my name.
You will find a patch to fix the compiler, the same test case as the
test case you found, a complete discussion and so on.
The solution, if you want to push it forward, is to define a new flag
#define MD_RESPECTS_VOLATILE 1
in your port file, and go through the entire port file, and ensure
that all uses of things comply with the volatile semantics, and then
conditionalize the old patch that fixes this with the condition of
MD_RESPECTS_VOLATILE being defined and true.
Voila, there you have it.
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to firstname.lastname@example.org
More information about the crossgcc