summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* a few depend:-related thingies that were still in.espie2019-12-213-10/+3
| | | | okay millert@, tb@
* mortimer unlinked libobjc from the build, but didn't know how to cvs rm.tedu2019-04-032-82/+0
| | | | | I don't know much about compilers, but what I do have are a very particular set of skills. Skills I have acquired over a very long career.
* Remove -S from install commandskn2019-02-242-4/+4
| | | | | | | | As of usr.bin/xinstall/install.c revision 1.68, -S is a no-op and install(1) will always create files safely, thus clean the option usage from the tree. Diff from Lauri Tirkkonen <lotheac at iki dot fi>, thanks.
* Add ARM EABI aliases and remove functions that are also provided by our libc.kettenis2018-01-041-1/+6
| | | | | | | | | This allows linking code compiled by clang with the gcc compiler driver and makes sure we always use the softfloat implementation in libc. The libc softfloat implementation is preferred over the one in libgcc as it implements rounding modes and floating point exceptions. ok patrick@
* build cpp on gcc4 architectures only, as clang ships with its ownrobert2017-07-241-1/+4
| | | | ok naddy@
* install gcc, g++ as gcc and g++ instead of cc, c++ and create linksrobert2017-07-244-7/+28
| | | | | | | to the latter on non-clang architectures and make sure we build gcc with itself because clang won't be able to build it ok naddy@
* more depends gc / yacc rules overhaulespie2017-07-191-4/+2
| | | | okay millert@
* remove misc. depend and yacc nits that no longer matter.espie2017-07-103-6/+4
| | | | okay millert@
* Always include Makefile.dep, conditionally including it based on thejsg2017-06-231-3/+1
| | | | | | | | | | existence of a .depend file can lead to various problems. The logic before rev 1.15 resulted in Makefile.dep always being included as DEPENDSFILE was never set so this returns to the old behaviour. ok espie@
* DEPENDSFILE comes from FreeBSD, we don't have it. replace it with itsespie2017-06-211-2/+2
| | | | | | value .depend, so that the conditional is really used. okay guenther@
* mark files as BUILDFIRST, or write explicit dependencies, so that mostespie2017-06-163-3/+8
| | | | | programs will build even without a make depend first. okay tb@ millert@
* Make gcc move switch tables into .rodata instead of .text on i386/amd64stefan2017-05-311-3/+3
| | | | | | | | | | | | For C++, gcc has to make use of comdat sections instead of .gnu.linkonce sections for this because switch tables and functions would now end up in different .gnu.linkonce sections. This can cause ld to sometimes incorrectly discard the switch tables, which causes linker errors. With comdat sections, making the switch table and function sections belong together is more reliable. ok deraadt@
* gcc4 on m88k still uses sjlj exceptions, as did arm before EABI.miod2017-02-151-1/+4
|
* Set the permissions of the specs file explicitly so that they don'ttb2016-11-084-7/+8
| | | | | | | depend on the umask. Install headers and info files with group bin like all the other headers and info files. ok stefan
* Move libcrypto, librpcsvc and gnu/usr.bin/cc/include from RDIRS to PRDIRS,tb2016-10-161-1/+7
| | | | | | | | | | | | | | and add prereq targets, so some header files are generated by BUILDUSER during 'make prereq' instead of by root during 'make includes'. Switch the order of 'make cleandir' and 'make includes' during 'make build' so we don't generate many files twice. Except for some machine@ symlinks from ${MACHINE}/stand, /usr/obj is now clean from files generated by root during 'make build'. Those will be cleaned up in a second step. help, testing & ok deraadt, input from natano, further testing rpe
* Set owner for /usr/lib/gcc-lib and /usr/include/g++ on install.natano2016-09-271-5/+5
| | | | initial diff and ok tb
* Switch OpenBSD/armv7 to ARM EABI (soft-float). This is a complete ABIpatrick2016-09-013-3/+16
| | | | | | break which cannot be easily crossed. ok kettenis@ jsg@
* remove three more sparc references noticed by jsgtedu2016-09-011-2/+2
|
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-2/+1
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* Add library-based __sync functions for mips64.visa2015-12-181-1/+5
| | | | Help with testing and ok kettenis@
* Enable -msecure-plt by default (on powerpc).kettenis2015-09-161-1/+2
| | | | ok pascal@
* Define HAVE_AS_REL16, as binutils 2.17 supports the R_PPC_REL16 reloc.kettenis2015-08-231-2/+2
| | | | | This makes the -msecure-plt option work, which is necessary to generate Secure-PLT ABI code.
* Define HAVE_AS_EXPLICIT_RELOCS and HAVE_AS_JSRDIRECT_RELOCS. These symbols aremiod2015-06-011-4/+4
| | | | | | | only used by the alpha backend and allow it to produce more precise relocation information, but need a recent as(1) for this to work. This will be necessary to enable secureplt by default.
* Add cpuid.h from clang r197399 with additional feature bits,jsg2014-09-101-2/+2
| | | | | | | | | and defines for compatibility with the equivalent gcc header. cpuid.h was introduced in gcc 4.3 and a compatible header has been included with recent versions of clang. Earlier version ok miod@. Tested in a ports bulk build by landry@.
* Build libgcc without SSP. With the new SSP-strong heuristics,martynas2014-04-081-2/+3
| | | | | | | _moddi3.o gets protected and landisk bootblocks got broken. Fundamentally this causes a link dependency on libc that we'll not always be able to satisfy. Spotted by deraadt@. OK matthew@, kettenis@, guenther@.
* Switch time_t, ino_t, clock_t, and struct kevent's ident and dataguenther2013-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
* Unbreak "make includes" with an empty /usr/include by creating the 'objc'mpi2013-07-011-1/+3
| | | | | | directory if it doesn't exist. ok sthen@, espie@
* Put libgcov.a in the same directory as libgcc.a rather than /usr/lib (unlikemiod2013-05-181-1/+2
| | | | FreeBSD).
* Build and install libgcov on gcc 4 platforms. Build machinery from FreeBSD.miod2013-05-182-1/+89
| | | | | | | This makes gcc -fprofile-arcs work again. Regression reported by Azwaw OUSADOU on tech@, thanks for noticing and sorry for the delay fixing this.
* A port of the current gcc 3.3.6 m88k backend to gcc 4.2.1.miod2013-05-083-6/+11
| | | | | | | | | | | | | | | | | | | | | Main features: - md constraints rewritten in RTL - md predicaties rewritten in RTL - md va_arg switched to gimple - abort() calls replaced with gcc_assert() or gcc_unreachable() for better diagnostics - support for non-ELF systems completely removed Missing: - conversion of the pipeline information from define_function_unit to define_automata not done yet (thus pipeline information currently removed) Known regressions against 3.3.6 so far: - no stack protector support yet - __builtin_setjmp doesn't restore the frame pointer correctly upon return from __builtin_longjmp - at least one case of optimization error when delay slots are not disabled. - libgcc is only built -fPIC, instead of static/fpic/fPIC.
* Don't create a c++filt.1->gcc.1 manpage link at install time, the c++filtmiod2013-03-301-2/+2
| | | | manpage comes from binutils.
* fix typo, keyword is exists, not existespie2012-10-131-2/+2
|
* Build gcc as non-PIE. PIE breaks precompiled headers and causes a seriouskettenis2012-09-161-1/+3
| | | | | | | performance hit on some architectures (almost 20% on hppa, more than 25% on sparc64). And there are no real benefits associated with ASLR for a compiler. ok deraadt@
* Clean up the correct file to fix parallel make failuresguenther2012-09-011-3/+3
| | | | ok deraadt@
* Add support for PIE-by-default in both ld and gcc. This is a completelypascal2012-08-281-1/+2
| | | | | | | | | | different approach than the one taken in kurt@'s original diff, but deemed better after discussion and diff exchange with kettenis@ and matthew@. Lots of feedback by kettenis@ and matthew@, prodding and encouragement by deraadt@. ok kettenis@ matthew@
* Add __ic_invalidate_array to libgcc on sh.kettenis2012-05-041-2/+2
| | | | ok miod@, jsg@
* Explicitely request -fno-stack-protector on sh when building the unwinder,miod2012-04-171-1/+4
| | | | for unwind-dw2.c fails to build otherwise.
* the fpu control symbol on sh (__fpscr_values) suddenly becomes localjsg2012-04-121-2/+2
| | | | | | | instead of global with gcc4 and this ends up breaking things in hard to debug ways. So move the definition to csu instead of libgcc. ok miod@
* backout gcc revision 112331 "optimized integer divide for SH4"jsg2012-04-121-3/+2
| | | | | | so we can use the existing sh libkern functions. ok miod@
* openbsd will never support __ARMEB__, so remove it herejasper2011-11-091-2/+2
| | | | ok deraadt@
* Add missing ia64 bits.kettenis2011-09-221-1/+7
|
* Override LIB2ADDEH on ia64. Probably not quite right, but at least this makeskettenis2011-09-181-1/+5
| | | | | it possible to build a cross compiler, and we don't really care about exception handling until we have a kernel to run C++ code on anyway.
* Port the -Wbounded extension from gcc3 to gcc4. Based on work started bynicm2011-09-151-2/+2
| | | | | | | | | | | | jasper@. This omits the sizeof(pointer) tracking which is very difficult to implement for gcc4 due to internal changes. Thanks to landry@ for running through a ports bulk build and both landry@ and jasper@ for fixing a few issues. ok deraadt millert jasper
* Add support for hppa64.kettenis2011-08-043-3/+18
| | | | ok deraadt@
* Add ia64 target.pirofti2011-07-041-1/+3
|
* Remove ueberold a.out configuration leftovers.miod2011-06-251-5/+4
|
* Put in the infrastructure for OpenBSD/arm gcc4 support. Not working, but workdrahn2011-04-061-1/+7
| | | | on this in-tree not diffs floating around for > 1 year. ok miod@
* Tweak definition and some uses of PREFIX macro to avoid includingguenther2011-03-062-5/+5
| | | | | | doubled slashes in compiled in paths. ok deraadt@, cross-compilation testing and ok drahn@
* Pick correct ranlib to operate on libgcc.a when cross-compilingmiod2010-10-231-1/+2
|
* GCC4 cross compilation support under OpenBSD.drahn2010-09-255-8/+24
|