[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] how to name a switch
From: |
Michael Matz |
Subject: |
Re: [Tinycc-devel] how to name a switch |
Date: |
Sun, 24 Apr 2016 21:22:38 +0200 (CEST) |
User-agent: |
Alpine 2.20 (LSU 67 2015-01-07) |
Hi,
On Sun, 24 Apr 2016, Sergey Korshunoff wrote:
I need some switch to allow tcc behave like gcc/pcc in the code:
void vide(void); __asm__("vide: ret");
like
void vide(void); __asm__("globl vide\nvide: ret");
But this is not how GCC behaves:
% cat x.c
void vide(void); __asm__("vide: ret");
% gcc -S x.c -o -
.file "xx.c"
#APP
vide: ret
.ident "GCC: (SUSE Linux) 5.3.1 20160301 [gcc-5-branch revision
233849]"
So, vide is not marked global with GCC either. Can you show us a complete
example where GCC and TCC behaviour differs?
Ciao,
Michael.