aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
Commit message (Collapse)AuthorAgeFilesLines
* * and #pragma pop_macro("macro_name")seyko2015-04-211-1/+4
| | | | | | | | | | * give warning if pragma is unknown for tcc * don't free asm_label in sym_free(), it's a job of the asm_free_labels(). The above pragmas are used in the mingw headers. Thise pragmas are implemented in gcc-4.5+ and current clang.
* -fdollar-in-identifiers addonseyko2015-04-201-1/+1
| | | | | | | * disable a -fdollar-in-identifiers option in assembler files * a test is added This is a patch addon from Daniel Holden.
* Add support for .p2align asm directive.Reimar Döffinger2015-01-201-0/+8
| | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* Parse assembler .hidden directiveMichael Matz2014-04-141-4/+8
| | | | | This makes TCCs assembler understand the '.hidden symbol' directive (and emits a STV_HIDDEN ELF symbol then).
* Corrected spelling mistakes in comments and stringsVincent Lefevre2014-04-071-1/+1
|
* configure: cleanupgrischka2013-02-141-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add quotes: eval opt=\"$opt\" - use $source_path/conftest.c for OOT build - add fn_makelink() for OOT build - do not check lddir etc. on Windows/MSYS - formatting config-print.c - rename to conftest.c (for consistency) - change option e to b - change output from that from "yes" to "no" - remove inttypes.h dependency - simpify version output Makefile: - improve GCC warning flag checks tcc.h: - add back default CONFIG_LDDIR - add default CONFIG_TCCDIR also (just for fun) tccpp.c: - fix Christian's last warning tccpp.c: In function ‘macro_subst’: tccpp.c:2803:12: warning: ‘*((void *)&cval+4)’ is used uninitialized in this function [-Wuninitialized] That the change fixes the warning doesn't make sense but anyway. libtcc.c: - tcc_error/warning: print correct source filename/line for token :paste: (also inline :asm:) lddir and multiarch logic still needs fixing.
* Compile tccasm.c conditionally (TCC_CONFIG_ASM)Thomas Preud'homme2012-01-061-0/+2
| | | | | Only compile the content of tccasm.c if inline assembly is supported for this architecture by testing the presence of macro TCC_CONFIG_ASM.
* rename error/warning -> tcc_(error/warning)grischka2011-08-111-23/+23
|
* Remove unused variablesThomas Preud'homme2011-05-161-2/+1
| | | | | Remove unused local variables and declare them conditionally when they are used only on some architectures.
* tccasm: support alternate .type syntaxesJoe Soroka2011-02-241-8/+9
|
* tccasm: support .weak labelsJoe Soroka2011-02-011-0/+4
|
* accept multiple comma separated symbols for .globl/.global directives, like ↵Joe Soroka2011-01-201-2/+2
| | | | gas does
* libtcc: new function tcc_open_bf to create BufferedFilegrischka2010-11-251-16/+6
| | | | | | | | Use it in: - tcc_open - tcc_compile_string - tcc_define_symbol - tcc_assemble_inline
* Move asm label functions from tccasm.c to tccgen.cThomas Preud'homme2010-09-141-35/+0
| | | | | | | | | | * Move functions parse_asm_str and asm_label_instr from tccasm.c to tccgen.c * Remove CONFIG_TCC_ASM_LABEL macro as asm label are available on all archs. See: http://lists.nongnu.org/archive/html/tinycc-devel/2010-09/msg00026.html for the rationale.
* Add support of asm label for functions.Thomas Preud'homme2010-09-101-0/+20
| | | | | | Add support for asm labels for functions, that is the ability to rename a function at assembly level with __asm__ ("newname") appended in function declaration.
* Revert "tccpp: Allow local labels to start with a dot"Daniel Glöckner2010-05-061-4/+1
| | | | | | This reverts commit f740485a5ab2ecef741bf1161b9feeea9c18cac0. It breaks access to structure elements starting with L
* tccasm: Detect (but ignore) .ident directiveDetlef Riekenberg2010-04-051-0/+18
| | | | | | | tcc is now able to compile many asm files generated by gcc -- By by ... Detlef
* tccasm: Detect (but ignore) .size directiveDetlef Riekenberg2010-04-051-0/+21
| | | | | -- By by ... Detlef
* tccasm: Support .type directive (only name,@function)Detlef Riekenberg2010-04-051-0/+31
| | | | | -- By by ... Detlef
* tccpp: Allow local labels to start with a dotDetlef Riekenberg2010-04-051-1/+4
| | | | | -- By by ... Detlef
* tccasm: Detect (but ignore) the .file directiveDetlef Riekenberg2010-04-051-0/+18
| | | | | | | | | Some patches, to allow tcc to compile asm sources generated by gcc and help tcc with the autoconf stuff used in Wine ( http://source.winehq.org/git/wine.git/ ) -- By by ... Detlef
* tccpp: convert TOK_GET macro into functiongrischka2010-01-141-1/+2
|
* allow tcc be build from separate objectsgrischka2009-12-201-8/+10
| | | | If you want that, run: make NOTALLINONE=1
* tccasm: make VT_VOID symbols ST_NOTYPE, elf-wisegrischka2009-12-191-0/+6
| | | | | | | This was confusing objdump such that it did not print disassembly with -d. Also, put filename as with C compilation
* first support of x86_64 assemblyFrederic Feret2009-11-131-0/+6
|
* added 16-bit x86 assembly supportFrederic Feret2009-11-131-0/+14
|
* fix some warninggrischka2009-07-181-4/+4
|
* Import more changesets from Rob Landley's fork (part 2)grischka2007-11-211-1/+1
|
* support for empty input register section in asm (Filip Navara)bellard2005-09-031-13/+15
|
* added -f[no-]leading-underscorebellard2005-06-151-1/+1
|
* pool for symbol allocationbellard2004-11-071-1/+1
|
* copyright updatebellard2004-10-271-1/+1
|
* added .quad asm directivebellard2004-10-251-0/+27
|
* added .ascii and .asciz directivesbellard2004-10-231-7/+20
|
* absolute symbols support - .org, .fill and .previous directivesbellard2004-10-181-36/+189
|
* both .globl and .global directives are accepted by asbellard2004-10-021-0/+1
|
* changed license to LGPLbellard2003-05-241-11/+11
|
* various asm directives - char support (Dave Long)bellard2003-04-281-1/+77
|
* asm number parsing (thanks to Dave Long)bellard2003-04-211-2/+2
|
* fixed inline asm without operand casebellard2003-04-141-3/+8
|
* asm supportbellard2003-01-061-0/+744