Commit Graph

  • 738606dbd5 Use RELA relocations properly for R_DATA_PTR on x86_64. Edmund Grimley Evans 2015-02-21 21:29:03 +00:00
  • 86c850fc58 tcc-doc.texi: Explain VT_LLOCAL a bit better. Edmund Grimley Evans 2015-02-20 23:01:01 +00:00
  • ff3f9aa6ba Fix handling of case_reg in switch statement. Edmund Grimley Evans 2015-02-20 23:16:00 +00:00
  • a6c3ce6ec0 The "open a whisky and cut your finger open" patch Thomas Preud'homme 2015-02-18 04:22:25 +00:00
  • ff783b94c7 Add support for .p2align asm directive. Reimar Döffinger 2015-01-20 08:49:49 +01:00
  • fb6331e0fa Fix macro expansion of empty args. Reimar Döffinger 2015-01-18 22:00:10 +01:00
  • a6149c6dbb Set CONFIG_MULTIARCHDIR for cross compilers. Reimar Döffinger 2015-01-18 21:21:59 +01:00
  • ae09558d71 Build also WinCE cross compiler when cross compilers enabled. Reimar Döffinger 2015-01-18 21:16:34 +01:00
  • e260b03686 Allow tcc to understand a setob,... opcodes as alias to seto,... seyko 2015-01-06 22:59:19 +03:00
  • c334b59142 Warn about a conflicting compile options spectified on the command line. Try "tcc -E -c tccasm.c -o tccasm.o" seyko 2015-01-06 22:19:45 +03:00
  • b93179f3c0 .i as file extension Add a ".i" extension as alias for ".c" GCC and file extensions: .i C source code which should not be preprocessed. seyko 2015-01-06 16:01:41 +03:00
  • 524abd46b4 round() in test (24_math_library) fail because there are no defs included. gcc complain but work right and tcc simply fail to compile right. seyko 2015-01-05 18:23:32 +03:00
  • 77ef3b2929 crt1.c revision Carlos Montiers 2014-12-30 00:25:52 -03:00
  • 5a76c5d2f3 Fix parsing of binary floating point number Lee Duhem 2014-12-15 16:32:08 +08:00
  • 20a5845a47 tcc.h (BufferedFile): Remove unnecessary static memory allocation Lee Duhem 2014-12-11 09:58:53 +08:00
  • f1703e2b2f libtcc.c (put_extern_sym2): Extend the scope of buf to match its use Lee Duhem 2014-12-11 09:46:36 +08:00
  • 4bf3f6c965 .gitignore: Ignore Emacs temporary files Lee Duhem 2014-12-11 09:55:54 +08:00
  • 73e8f6b60a Makefile: Add rules to create tags and TAGS. Lee Duhem 2014-11-26 11:48:07 +08:00
  • 4ae462b668 .gitignore: Ignore generated files. Lee Duhem 2014-11-26 11:40:14 +08:00
  • 9b14e8715a little optimization to crt1 Carlos Montiers 2014-11-23 01:51:38 -03:00
  • f40b82295e __getmainargs compatibility checking success Carlos Montiers 2014-11-22 19:00:49 -03:00
  • 1e07ea71d3 win32: fix implicit function warning James Buren 2014-11-03 16:16:03 -06:00
  • c5cdd8e87f Add cross-compiler build script for x64. Pierre R. Mai 2014-10-21 00:27:15 +02:00
  • 26b26f355f Filter-out warning about softfloat in tests2 Matteo Cypriani 2014-10-16 11:17:46 -04:00
  • 09919777ba Add fix for XMM register handling in function calls for x64. Pierre R. Mai 2014-10-17 13:47:51 +02:00
  • 9d7fb33360 tccgen: use lvalue as result from bitfield assignment grischka 2014-09-23 12:30:08 +02:00
  • 87d879aa7b Accept CPPFLAGS from the environment Matteo Cypriani 2014-09-07 11:57:09 -04:00
  • 63376d7712 tccelf: layout_sections: add missing param strsec Matteo Cypriani 2014-09-07 11:29:38 -04:00
  • b84cdf6214 Clear CFLAGS & LDFLAGS in tests Matteo Cypriani 2014-09-07 11:05:58 -04:00
  • 178275dc0c Don't build libtcc1 with -fstack-protector-strong Matteo Cypriani 2014-09-07 10:47:02 -04:00
  • 14745bdeb7 tccgen: nocode_wanted: do not output constants grischka 2014-08-01 10:59:38 +02:00
  • 12f43953ed win64: fix resource file support grischka 2014-08-01 10:51:28 +02:00
  • 73a7dd79af Removed the error message and minor changes. Carlos Montiers 2014-07-17 01:08:47 -04:00
  • 7c474b4da3 __getmainargs return int, not void, and on error, it return -1 and let argv untouched, also argc. Added a if checking the result of it. Carlos Montiers 2014-07-16 22:22:05 -04:00
  • f2ee6b1759 Fix mistake. Change jb by jbe. tiny c round (INT_MAX = 0x7FFFFFFF) to a DWORD boundary and it becomes 0x80000000. Jle treats as -214783648, but Jbe treats as 214783648. Thanks to Jason Hood for explain me this. Carlos Montiers 2014-07-10 20:41:51 -04:00
  • 8257829623 Fix problem using alloca function, executable crashed even with a exception handler function, when try to allocate INT_MAX. Patch provided by Jason Hood in private e-mail, when I ask to him for help. He say: Feel free to pass it on to the mailing list. Carlos Montiers 2014-07-10 00:37:20 -04:00
  • 89000c18dc Rename: 68_macro_concat.c -> 68_macro_param_list_err_1.c 69_macro_concat.c -> 69_macro_param_list_err_2.c and Remove spaces jiang 2014-07-01 23:54:49 +08:00
  • b31e80a43a Specify license of lib/armeabi.c Thomas Preud'homme 2014-07-01 22:01:16 +08:00
  • a3fc543459 bug: jiang 2014-06-29 20:35:57 +08:00
  • 799512388c Revert the many un-reviewed commits starting from early April David Mertens 2014-06-24 22:16:17 -04:00
  • 6e0a658e96 win64: try to fix linkage grischka 2014-05-08 17:32:29 +02:00
  • f26fdaefd8 revert vstore() jiang 2014-06-23 01:08:54 +08:00
  • 1fa0fe2786 Revert "Win: Enable use "*.def + *.c" files as library instead of *.a by "-l" option" Thomas Coudray 2014-06-20 13:26:29 +01:00
  • 7a3f6d4941 Win: Enable use "*.def + *.c" files as library instead of *.a by "-l" option YX Hao 2014-06-16 16:00:46 +08:00
  • d316836008 Let init_putz one-time generation. At the same time, increase the GCC style warning --------------------------------------------------------------------------- int main() { int a[10] = {[5]=5}; return 0; } jiang 2014-05-28 22:09:49 +08:00
  • 89134dd7b0 Considering the effect of CH_EOF on line_num jiang 2014-05-28 21:51:50 +08:00
  • 698b16960a Modify the 66_macro_concat_end.expect jiang 2014-05-28 10:38:26 +08:00
  • bcf60562e0 The number of rows to display warning is wrong For example: #define TOK_ASM_weak TOK_WEAK1 #define TOK_ASM_weak TOK_WEAK Output: C8.c:3: warning: TOK_ASM_weak redefined jiang 2014-05-23 15:46:08 +08:00
  • 9c78da8a32 forget Delete __va_ld_reg jiang 2014-05-21 12:50:12 +08:00
  • 3d608d4b54 Delete a = (a > = 0)? A: -a; \ jiang 2014-05-20 15:23:55 +08:00
  • 0199123dd7 clean '\t' jiang 2014-05-20 15:18:59 +08:00
  • f8b4f59f8b In the local use of local stack, use a global stack in the global time jiang 2014-05-20 14:59:37 +08:00
  • e5e7f488e2 int main() { struct st { int aa:16; int bb:16; } s; s.aa = 1; s.bb = 2; return 0; } objdump -d: elf64-x86-64 Disassembly of section .text: jiang 2014-05-17 12:32:00 +08:00
  • a94ed43094 Improved '\ n' output effect (# pragma pack (push, 8), # pragma pack (pop)) jiang 2014-05-17 12:06:18 +08:00
  • 196c999515 1 macro_push and macro_pop work I made a mistake, no matter the definition does not define can be macro_push. And the modified tcctest.c test 2, pack: in the compiler under the mode of s1->ppfp, I have no clear ideas1->ppfp Some advice thank you Roy to me.This patch, I hope I can pass the Roy test jiang 2014-05-17 00:55:02 +08:00
  • 276553c6b2 add push_macro test again jiang 2014-05-16 15:44:51 +08:00
  • 52891b6ff6 fix push_macro, asked Tom to help me testfix push_macro jiang 2014-05-16 12:15:00 +08:00
  • 5a514107c4 When tcc.exe update, abitest-tcc.exe not updated. For security, you must first clean up jiang 2014-05-15 12:09:43 +08:00
  • 5d0785d0e1 Add warning 4 jiang 2014-05-14 21:01:00 +08:00
  • fcb3772a34 Add warning 3 struct st {int a;} ss; int b; b = ss; jiang 2014-05-14 20:44:53 +08:00
  • 07614b5e22 clean '\t' jiang 2014-05-14 12:45:58 +08:00
  • c6345b5a8a restore 2dd8587c2f32d17a2cd0443a60a614a3fa9bbe29 jiang 2014-05-13 22:05:38 +08:00
  • 72f466c24c Modify tcc_error ("invalid type",); jiang 2014-05-13 22:00:42 +08:00
  • 8d5e0cf083 fix 14d0aa450f jiang 2014-05-13 21:57:35 +08:00
  • 03687729ec Add warning 2 For example: struct A { int b: 16; int c: 16 }; sizeof (struct A); jiang 2014-05-09 22:41:45 +08:00
  • 14d0aa450f Add warning For example: struct A { int b []; }; jiang 2014-05-09 22:35:19 +08:00
  • 0f51ccd4e4 win64: try to fix linkage grischka 2014-05-08 17:32:29 +02:00
  • ad787abea6 fix bug if (seen_reg_num + reg_count <= 8) jiang 2014-05-08 15:39:50 +08:00
  • 899d26605c Revert "update static void parse_number()" grischka 2014-05-06 18:24:41 +02:00
  • 5e56fb635a Return to: e20c1eb99e 1: The new patch for the other machines still have the problem. 2: libcrt Rename (what if gcc had libcrt as well) 3: parse_number exact problem 4: VT_VLS is to allow tcc Compile the following int b = 9; struct st { int a; int b [b] }; struct st st1; st1.b [8] = 9; printf ("% d \ n", st1.b [8]); jiang 2014-05-04 13:18:31 +08:00
  • 089dea355a tcc on i386 are still having problems at work.Thank Roy report again. Struck on several variables can be connected to commit in the register. I am worried whether tcc can run the os. Since my machine is ubuntu 64 bits I can test my machine. jiang 2014-05-03 23:51:09 +08:00
  • a0d45c1bcd forget commit tccge.c for i386 jiang 2014-05-03 00:39:40 +08:00
  • 6755b4a3de Modify i386-gen.c, Thank Roy Tam reported problems jiang 2014-05-03 00:33:19 +08:00
  • e647c3137d Fix x86-64 vla For example, it should look like this High stack ------------- ----- Func_ret_sub ------------ ---- Vla stack ------------- ---- Known loc -------------- Low jiang 2014-05-02 23:45:48 +08:00
  • 6c8207633f Fixes include the double quotes bug Added push_macro, pop_macro support Fix pack bug, when output with-E will pack the bug jiang 2014-05-02 11:23:54 +08:00
  • 5b52a44b52 gen_putz () and struct_copy (), is to reduce the third-party call that generates faster code tcc Now only for x86-64 parse_number also to reduce the reliance on third-party libraries, allowing faster analysis tcc jiang 2014-05-02 09:42:33 +08:00
  • ee99fd45ab Add a comment. ref: 2a8905c93b Sorry, I used the wrong command, I did not mean it. Thank grischka jiang 2014-05-02 00:39:50 +08:00
  • 504d40a328 Attention: never use hard tabs other than 8 (eight) wide grischka 2014-05-01 15:33:29 +02:00
  • 59a22d59a2 update for x86_64-gen.c jiang 2014-05-01 20:58:43 +08:00
  • 2742fbcf95 clean jiang 2014-05-01 15:19:03 +08:00
  • 87a850f553 fix its own making bug. Improved init_putz (). Modify the tests / Makefile to make the test more secure jiang 2014-05-01 15:15:01 +08:00
  • 9e3713facd Expansion code again for x86_64-gen jiang 2014-05-01 01:48:50 +08:00
  • 2b2e7f85d7 rename i386-tok.h i386-asm.c, add PRINTF_ASM_CODE jiang 2014-04-30 19:30:30 +08:00
  • ba61fd9cd1 rename libtcc1.c jiang 2014-04-30 17:35:44 +08:00
  • 5af0ea7fb8 Fix va_arg bug, Fix type conversion bug, an increase of loc_stack () function is used to manage loc jiang 2014-04-30 15:26:45 +08:00
  • 9ff288648b Restore eda2c756ed jiang 2014-04-30 14:24:44 +08:00
  • 515169f21b Reduce the generation of machine code for x86_64, Less of size jiang 2014-04-29 23:57:22 +08:00
  • 2a8905c93b So that the generated code, and more short jiang 2014-04-29 16:05:16 +08:00
  • 02e2fe3c26 Add support for load/store of _Bool value Thomas Preud'homme 2013-06-14 16:18:16 +02:00
  • e20c1eb99e fix test3 for x86_64-gen.c jiang 2014-04-28 19:43:02 +08:00
  • 89f7aea980 fix abitest.c for x86_64 bug jiang 2014-04-28 14:05:55 +08:00
  • deaee6c249 fix tccpp.c jiang 2014-04-28 12:53:18 +08:00
  • 857f7dbfa6 update static void parse_number(const char *p) for tccpp.c jiang 2014-04-28 12:42:36 +08:00
  • 4b50557553 add test for abitest.c jiang 2014-04-28 12:28:56 +08:00
  • 2ac238fc50 tccpe: adjust for new 'hidden' symbols feature grischka 2014-04-17 17:01:28 +02:00
  • 6b7a6fcbc8 Improve efficiency of macro concatenation Thomas Preud'homme 2014-04-14 20:45:10 +08:00
  • 356c6f6293 Remove unused variable Michael Matz 2014-04-14 05:41:57 +02:00
  • e69c506617 x86_64: Handle PLT relocs to hidden symbols Michael Matz 2014-04-14 04:58:05 +02:00
  • a9fda392a0 Parse assembler .hidden directive Michael Matz 2014-04-14 03:33:50 +02:00
  • fbda78aefe Parse and emit hidden visibility Michael Matz 2014-04-14 02:53:11 +02:00