Skip to content

Commit

Permalink
Add make templates for gcc6 for Petit Larceny
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars T Hansen committed Jul 27, 2017
1 parent 540f81f commit cf5c6ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Asm/Standard-C/dumpheap-unix.sch
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@
'petit-unix-static-gcc-v4)
((match-gcc-version? " 5.")
'petit-unix-static-gcc-v5)
((match-gcc-version? " 6.")
'petit-unix-static-gcc-v6)
(else
(error 'dumpheap-unix.sch
"Unmatched GCC version."))
Expand Down
12 changes: 11 additions & 1 deletion src/Rts/make-templates.sch
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
. ,(lambda ()
(values make-template-petit-unix-gcc-v5
make-template-target-petit-unix-shared)))
(petit-unix-shared-gcc-v6
. ,(lambda ()
(values make-template-petit-unix-gcc-v6
make-template-target-petit-unix-shared)))
(petit-macosx-shared-gcc
. ,(lambda ()
(values make-template-petit-macosx-gcc-shared
Expand All @@ -109,6 +113,10 @@
. ,(lambda ()
(values make-template-petit-unix-gcc-v5
make-template-target-petit-unix-static)))
(petit-unix-static-gcc-v6
. ,(lambda ()
(values make-template-petit-unix-gcc-v6
make-template-target-petit-unix-static)))
(petit-win32-static-mingw-v3
. ,(lambda ()
(values make-template-petit-unix-gcc-v3
Expand Down Expand Up @@ -171,7 +179,7 @@ ASFLAGS = -I$(INC_ROOT)/ -I$(INC_ROOT)/Sys/ -I$(INC_ROOT)/Shared/
"CFLAGS+=-c "
(case version
((gcc-v3) " ")
((gcc-v4 gcc-v5) " -fno-stack-protector "))
((gcc-v4 gcc-v5 gcc-v6) " -fno-stack-protector "))
" -falign-functions=4 -m32 -I$(INC_ROOT)/Standard-C"))
(define (makefile-variable-definitions version)
(let ((lines (lambda strings
Expand All @@ -193,6 +201,8 @@ ASFLAGS = -I$(INC_ROOT)/ -I$(INC_ROOT)/Sys/ -I$(INC_ROOT)/Shared/
(template-common (makefile-variable-definitions 'gcc-v4)))
(define make-template-petit-unix-gcc-v5
(template-common (makefile-variable-definitions 'gcc-v5)))
(define make-template-petit-unix-gcc-v6
(template-common (makefile-variable-definitions 'gcc-v6)))

; Native Larceny with Sassy back-end: Unix: NASM macro assembler for Rts
(define make-template-sassy-unix-gcc
Expand Down

0 comments on commit cf5c6ce

Please sign in to comment.