History

fix for the previous commit: tcc_add_support() was used before definition

seyko committed 11 years ago

Commit 548a55e1 parent a1058371 file · +25 −25Browse files

Unified · Split

tccelf.c+25−25
@@ -1540,6 +1540,31 @@ static void add_init_array_defines(TCCState *s1, const char *section_name) · 1539 unmodified lines
1540 s->sh_num, sym_end);1540 s->sh_num, sym_end);
1541}1541}
1542 1542
1543static int tcc_add_support(TCCState *s1, const char *filename)
1544{
1545 char buf[1024];
1546 snprintf(buf, sizeof(buf), "%s/%s/%s", s1->tcc_lib_path,
1547 /* an cpu specific path inside tcc_lib_path, mainly for keeping libtcc1.a */
1548 #ifdef TCC_TARGET_I386
1549 "i386"
1550 #endif
1551 #ifdef TCC_TARGET_X86_64
1552 "x86-64"
1553 #endif
1554 #ifdef TCC_TARGET_ARM
1555 "arm"
1556 #endif
1557 #ifdef TCC_TARGET_ARM64
1558 "arm64"
1559 #endif
1560 #ifdef TCC_TARGET_C67
1561 "C67"
1562 #endif
1563 ,filename);
1564
1565 return tcc_add_file(s1, buf);
1566}
1567
1543ST_FUNC void tcc_add_bcheck(TCCState *s1)1568ST_FUNC void tcc_add_bcheck(TCCState *s1)
1544{1569{
1545#ifdef CONFIG_TCC_BCHECK1570#ifdef CONFIG_TCC_BCHECK
@@ -1575,31 +1600,6 @@ ST_FUNC void tcc_add_bcheck(TCCState *s1) · 29 unmodified lines
1575#endif1600#endif
1576}1601}
1577 1602
1578static inline int tcc_add_support(TCCState *s1, const char *filename)
1579{
1580 char buf[1024];
1581 snprintf(buf, sizeof(buf), "%s/%s/%s", s1->tcc_lib_path,
1582 /* an cpu specific path inside tcc_lib_path, mainly for keeping libtcc1.a */
1583 #ifdef TCC_TARGET_I386
1584 "i386"
1585 #endif
1586 #ifdef TCC_TARGET_X86_64
1587 "x86-64"
1588 #endif
1589 #ifdef TCC_TARGET_ARM
1590 "arm"
1591 #endif
1592 #ifdef TCC_TARGET_ARM64
1593 "arm64"
1594 #endif
1595 #ifdef TCC_TARGET_C67
1596 "C67"
1597 #endif
1598 ,filename);
1599
1600 return tcc_add_file(s1, buf);
1601}
1602
1603/* add tcc runtime libraries */1603/* add tcc runtime libraries */
1604ST_FUNC void tcc_add_runtime(TCCState *s1)1604ST_FUNC void tcc_add_runtime(TCCState *s1)
1605{1605{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t