This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FIX rs6000 -mpower


David Edelsohn wrote:

> >>>>> Tom Rix writes:
>
> Tom> No this is not a user error.
>
> Tom> New nnemonics are used by default.
>
> Tom> Look at aix43.h
> Tom> #define TARGET_DEFAULT MASK_NEW_MNEMONICS.
>
> Tom> I looked at -mcpu=power, it passes because it fixes this in
> Tom> rs6000_override_options.
>
>         TARGET_DEFAULT is MASK_NEW_MNEMONICS because the default for AIX
> is common mode -- neither MASK_POWERPC nor MASK_POWER defined.  The
> default mnemonics for common mode is the new mnemonics.
>
>         It is defaulting to MASK_NEW_MENMONICS because that is the only
> macro that needs to be set for the common mode architecture, not because
> it is defaulting to new mnemonics in a vacuum.
>
>         Again, this is user error.  This patch is never going in.

The user then has to explictly do
-mpower -mold-mnemonics
to override the implict
-mpower -mnew-mnemonics

When this corrected for the user if the user does
-mcpu=power


>
>
> David

--
Tom Rix
GCC Engineer
trix@redhat.com




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]