This is the mail archive of the gcc@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]

Re: powerpc & unaligned block moves with fp registers


>>>>> DJ Delorie writes:

>> The strict requirements are an OS issue, not a CPU issue.

DJ> There is no OS.

	Then call it a "target".  The point is that it is not providing
the expected PowerPC environment if it cannot handle any alignment traps.
If you have an embedded OS or bare-bones, stand-alone program that does
not provide a trap handler and does not use the firmware trap handler, it
is a unique target.

	If you want to make the target's overridden version of
SLOW_UNALIGNED_ACCESS CPU-dependent, then rs6000_cpu is a global enum
available for that purpose.  Use that global variable in the special
version of the macro.

	I do not see anything that prevents implementing the
rs6000_emit_move change portably and giving you all of the control you
require by overriding SLOW_UNALIGNED_ACCESS macro for your configuration.

	Please submit a revised patch.

David


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