Ludo Brands wrote:
membar and stbar are instructions available as of sparc v9. To get fpc
running on a sparc <v9 I have commented out
def_system_macro('FPC_HAS_MEMBAR'); in compiler/options.pas. Is there a
command line option that does the same?

I wonder whether this would be worth considering on a per-OS basis? Working from memory, when I last looked I think that Linux initialised the processor to a mode where it didn't reorder memory accesses so (if my recollection of the documentation is correct) didn't require membars, in which case an RTL startup check for an unexpected mode should suffice.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to