qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 2caa26e388b1c904d2f12fb09f84df7e761d8331
parent 3c5cd9fdd099dc13e75383fef302e3ef610b439d
Author: Quentin Carbonneaux <quentin@c9x.me>
Date:   Mon, 11 Apr 2022 14:54:44 +0200

move nx stack annotation to gas.c

Diffstat:
Mgas.c | 2++
Mmain.c | 5+----
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/gas.c b/gas.c @@ -141,6 +141,8 @@ gasemitfin(FILE *f) int sz, i; double d; + if (gasasm == Gaself) + fprintf(f, ".section .note.GNU-stack,\"\",@progbits\n\n"); if (!stash) return; fprintf(f, "/* floating point constants */\n.data\n"); diff --git a/main.c b/main.c @@ -188,11 +188,8 @@ main(int ac, char *av[]) fclose(inf); } while (++optind < ac); - if (!dbg) { + if (!dbg) gasemitfin(outf); - if (asmmode == Gaself) - fprintf(outf, ".section .note.GNU-stack,\"\",@progbits\n"); - } exit(0); }