| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
This reverts commit 76adc5770f4ab5b1aaa2e5dde6104efc06431fe2.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Add a --multiarch-triplet switch to configure. The switch will allow
files to be search for each default path in path/<triplet> and then
path.
Default paths handled that way:
- CONFIG_TCC_SYSINCLUDE_PATHS
- CONFIG_TCC_LIBPATH
- path to crt*.o
- path to libgcc_s.so.1
Path missing: elf interpreter path (will be handled in another commit)
|
| | |
|
| |
|
|
|
| |
After commit 4d6a4a26e08ef8581c70d29f578a42ab7d738c2d, the changes in
configure are no longer needed.
|
| |
|
|
|
| |
* CONFIG_TCC_*LDDIR should not be exported if no --*lddir option is used.
* Don't write a : at the beginning of extralddir
|
| |
|
|
|
|
|
|
|
|
|
| |
By default, tcc search libraries in /lib and /usr/local/lib while crt*.o
files are searched in /usr/lib and ld.so is searched in /lib.
Unfortunetely the path are hardcoded in source code. This patch allow
tcc to look in an other directory and also to look in extra directories.
It's then possible to make tcc search libraries in /lib/x86_64-linux-gnu
and /usr/local/lib/x86_64-linux-gnu while crt*.o files are searched in
/usr/lib/x86_64-linux-gnu and ld.so is searched in
/lib/x86_64-linux-gnu.
|
| |
|
|
|
|
|
| |
* Set CFLAGS entirely in configure if not already set.
* Compile bcheck.c with the same flags as the other source files
* Don't strip binaries by default (GB are cheap now) but provide a
--strip-binaries option in configure script.
|
| |
|
|
| |
Add arm, armv5tejl and armv7l to the list of supported arm architectures
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
win32/64 cross-compilers now build libtcc1.a and install it
together with the windows headers in a 'win32' sub-directory
of TCCDIR.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
info files are introduced by commit 3f829d11ff231980383c384df2ae38e369cd8079
This patch helps packagers to avoid problems when install to $DESTDIR
>>> Starting src_install
make -j3 bindir=/tmp/paludis/dev-lang-tcc-9999/image//usr/bin libdir=/tmp/paludis/dev-lang-tcc-9999/image//usr/lib tccdir=/tmp/paludis/dev-lang-tcc-9999/image//usr/lib/tcc includedir=/tmp/paludis/dev-lang-tcc-9999/image//usr/include docdir=/tmp/paludis/dev-lang-tcc-9999/image//usr/share/doc/tcc-9999 mandir=/tmp/paludis/dev-lang-tcc-9999/image//usr/share/man install
mkdir -p "/tmp/paludis/dev-lang-tcc-9999/image//usr/bin"
install -m755 tcc "/tmp/paludis/dev-lang-tcc-9999/image//usr/bin"
mkdir -p "/tmp/paludis/dev-lang-tcc-9999/image//usr/share/man/man1"
install tcc.1 "/tmp/paludis/dev-lang-tcc-9999/image//usr/share/man/man1"
mkdir -p /usr/share/info
install tcc-doc.info "/usr/share/info"
ACCESS DENIED open_wr: /usr/share/info/tcc-doc.info
install: cannot create regular file `/usr/share/info/tcc-doc.info': Permission denied
make: *** [install] Error 1
/usr/libexec/paludis/utils/emake: emake returned error 2
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
|
| |
|
|
| |
Add info file creation in tcc Makefile
|
| |
|
|
|
| |
+ Add i686-AT386 to the list of x86 platform
+ Define SA_SIGINFO is not defined
|
| |
|
|
|
| |
Doesn't seem to work on windows
This reverts commit 27988c5e6648810db2074a2e80edaf74678e9977.
|
| |
|
|
|
| |
Fix the $RANDOM bashism properly by using mktemp.
mktemp is part of MSYS so this should work on UNIXes and Windows
|
| |
|
|
| |
Fixes commit dc265feb63c70a1a76fb566a6c05fe62246b65a0
|
| |
|
|
|
|
|
|
| |
configure and gcctestsuite.sh shell scripts contains bashisms although being
bourne shell script. This patch fixes the following bashisms:
* Use of $RANDOM variable (replaced by reading in /dev/urandom)
* Use == in tests instead of just =
* Use $[] for arithmetic computation istead of $(())
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* additional make target for lib/tcc1.def on non-win32 builds
tcc1.def was formerly lib/libtcc1.a but has bee made into its
own Makefile target, tcc1.def
* use mv instead of cp on config.h
this fixes a mistake I made which caused Makefile to rebuild
all targets every time
* make links from libtcc.so.1.0 to libtcc.so.1 and libtcc.so
|
| | |
|
| |
|
|
| |
for distros that want static libs
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Add support for:
- armv5tel
- armv6j
- armv7a
|
| |
|
|
|
|
|
| |
Prefixing $prefix with $(DESTDIR) is an error as it could lead for
example to mandir being equal to $(DESTDIR)$prefix/man where
$prefix itself is equal to $(DESTDIR)/usr/local which make man be equal
to $(DESTDIR)$(DESTDIR)/usr/local/man
|
| |
|
|
|
|
| |
Previously ./configure --prefix=/foo --help didn't show the help-text
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
| |
|
|
| |
Suggested by Shlomi Fish
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Most change was done in #ifdef TCC_TARGET_X86_64. So, nothing should be broken by this change.
Summary of current status of x86-64 support:
- produces x86-64 object files and executables.
- the x86-64 code generator is based on x86's.
-- for long long integers, we use 64bit registers instead of tcc's generic implementation.
-- for float or double, we use SSE. SSE registers are not utilized well (we only use xmm0 and xmm1).
-- for long double, we use x87 FPU.
- passes make test.
- passes ./libtcc_test.
- can compile tcc.c. The compiled tcc can compile tcc.c, too. (there should be some bugs since the binary size of tcc2 and tcc3 is differ where tcc tcc.c -o tcc2 and tcc2 tcc.c -o tcc3)
- can compile links browser. It seems working.
- not tested well. I tested this work only on my linux box with few programs.
- calling convention of long-double-integer or struct is not exactly the same as GCC's x86-64 ABI.
- implementation of tcc -run is naive (tcc -run tcctest.c works, but tcc -run tcc.c doesn't work). Relocating 64bit addresses seems to be not as simple as 32bit environments.
- shared object support isn't unimplemented
- no bounds checker support
- some builtin functions such as __divdi3 aren't supported
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds a switch --with-libgcc to configure.
When passed it prevents libtcc1.a from being built and links to
/lib/libgcc_s.so.1 instead of PREFIX/lib/tcc/libtcc1.a.
It will work on ARM when using libgcc from GCC >= 4.2.0.
Prior versions don't have the __floatun[sd]i[sdx]f functions.
It won't work on i386 because of two missing symbols emitted when
floats are cast to integers, but users can provide those symbols
(global short constants) in their code if needed.
Daniel
|
| |
|
|
|
|
|
|
|
| |
This patch is useful for cross compilers. Without this patch tcc
tries to use the host's libraries, crt*.o and include files.
The patch prepends a string to all default paths. The string can
be passed to configure with --sysroot=string.
Daniel
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|