aboutsummaryrefslogtreecommitdiffstats
path: root/powerpc/macosx/CPragmas.ml
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2009-11-03 08:43:54 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2009-11-03 08:43:54 +0000
commit0486654fac91947fec93d18a0738dd7aa10bcf96 (patch)
tree4f6b954a2dcc74df25c05bc4c15f0f317aa2d780 /powerpc/macosx/CPragmas.ml
parente47dcb416c68da4e559d70e633276f7227659740 (diff)
downloadcompcert-0486654fac91947fec93d18a0738dd7aa10bcf96.tar.gz
compcert-0486654fac91947fec93d18a0738dd7aa10bcf96.zip
PowerPC/EABI port: preliminary support for #pragma section and
#pragma use_section. Some clean-ups in Cil2Csyntax. Separate mach-dep parts of extraction/extraction.v into <arch>/extractionMachdep.v git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1167 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'powerpc/macosx/CPragmas.ml')
-rw-r--r--powerpc/macosx/CPragmas.ml28
1 files changed, 28 insertions, 0 deletions
diff --git a/powerpc/macosx/CPragmas.ml b/powerpc/macosx/CPragmas.ml
new file mode 100644
index 00000000..f48064ce
--- /dev/null
+++ b/powerpc/macosx/CPragmas.ml
@@ -0,0 +1,28 @@
+(* *********************************************************************)
+(* *)
+(* The Compcert verified compiler *)
+(* *)
+(* Xavier Leroy, INRIA Paris-Rocquencourt *)
+(* *)
+(* Copyright Institut National de Recherche en Informatique et en *)
+(* Automatique. All rights reserved. This file is distributed *)
+(* under the terms of the GNU General Public License as published by *)
+(* the Free Software Foundation, either version 2 of the License, or *)
+(* (at your option) any later version. This file is also distributed *)
+(* under the terms of the INRIA Non-Commercial License Agreement. *)
+(* *)
+(* *********************************************************************)
+
+(* Platform-dependent handling of pragmas *)
+
+(* No pragmas supported on PowerPC/MacOS *)
+
+let initialize () = ()
+
+(* PowerPC-specific: say if an atom is in a small data area *)
+
+let atom_is_small_data a ofs = false
+
+(* PowerPC-specific: determine section to use for a particular symbol *)
+
+let section_for_atom a init = None