summaryrefslogtreecommitdiff
path: root/cg.c
diff options
context:
space:
mode:
authorJohn van Groningen2015-10-22 12:54:53 +0000
committerJohn van Groningen2015-10-22 12:54:53 +0000
commit8afac173dac7b0bbd4e8d441b58b5c2e57658033 (patch)
tree35acd5f1eb17441a2ceb38d011df672d3a4efaaf /cg.c
parentfix typo (diff)
add option -pic to generate position independent code on ARM
Diffstat (limited to 'cg.c')
-rw-r--r--cg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/cg.c b/cg.c
index 19cc953..7e8f16d 100644
--- a/cg.c
+++ b/cg.c
@@ -107,8 +107,10 @@ int profile_table_flag;
#ifdef G_POWER
int fmadd_flag=1;
#endif
-#if defined (LINUX) && defined (G_AI64)
+#if (defined (LINUX) && defined (G_AI64)) || defined (ARM)
int pic_flag=0;
+#endif
+#if defined (LINUX) && defined (G_AI64)
int rts_got_flag=0;
char **sl_mods;
char *no_sl_mods=NULL;
@@ -759,6 +761,10 @@ int main (int argc,char **argv)
else if (!strcmp (s,"sse64"))
sse_128=0;
#endif
+#ifdef ARM
+ else if (!strcmp (s,"pic"))
+ pic_flag=1;
+#endif
#if defined (LINUX) && defined (G_AI64)
else if (!strcmp (s,"pic")){
pic_flag=1;