summaryrefslogtreecommitdiffstats
path: root/gnu/gcc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Provide a LOCAL_ALIGNMENT() macro, as on other strict alignment architectures.miod2010-09-141-0/+2
|
* Setup sane INCLUDE_DEFAULTS when cross compiling.jsing2010-09-111-0/+11
| | | | ok drahn@
* Add infrastructure to build GCC 4.2.1 for OpenBSD/mips64. Only tested onkettenis2010-09-102-60/+169
| | | | | | loongson (mips64el). ok miod@
* let gcc4 build on landiskjsg2010-09-095-227/+376
| | | | | | initial diff from jasper, finished by me with help from miod ok jasper@ miod@ kettenis@
* Make sure local arrays of chars are word-aligned on strict alignmentkettenis2010-08-292-0/+6
| | | | | | | | | | | | | | | | architectures, just like what is done for global ones. This isn't just an optiization. There is a long tradition of building packets in arrays of chars on the stack by using casts to types that require stricter alignment. Ignore the language lawyers say it isn't explicitly allowed by the C standard. Historically many (all?) C compilers have handled that just fine, so it is stupid to break this. Thanks to mikeb@ for finding the GCC bug report against upstream GCC 4.2.1. This fixes hppa/hppa64 and sparc/sparc64 as discuessed with miod@ (upstream only fixed sparc/sparc64). Other strict alignment architectures will need similar fixes. ok deraadt@, mikeb@, miod@
* Add infrastructure to buil GCC 4.2.1 on OpenBSD/sparc.kettenis2010-08-011-0/+79
|
* Make __builtin_return_address(0) work with -fstack-protector. Old diffkettenis2010-08-011-9/+14
| | | | | from Jakub Jelinek that never made it into upstream GCC. Fixes ld.so. Found by drahn@ and me; ok miod@
* Turn on -Wsystem-headers by default, so that glitches in our headersguenther2010-07-261-1/+1
| | | | | | | | aren't silently ignored but rather get warned about and fixed. Purely stylistic warnings like -Wredundant-decls are your own problem however. testing help from landry@, header fixes from kettenis@ ok deraadt@
* Yet another underflow. Found while hunting down the ICEs that happenkili2010-06-061-1/+1
| | | | | | | | from time to time when building the www/larbin port. This is an independent bugfix, and it's different from 4.5.0. ok espie@
* prevent segfault on amd64 when -Wmissing-include-dirs -I/nonexistentespie2010-06-061-1/+14
| | | | | | | | | | | | | (happens even with empty files), as diagnosed with kili@ on evolution-database. We obviously need to check the token chain and go up if we're at the start of a buffer (unless we're really at the start unless we have to give up). Independent fix. Same functionality as code found on the gcc 4.5 branch, but completely different lines. okay miod@
* Only enable -fstack-protector by default on targets that support it.kettenis2010-05-302-1/+3
| | | | ok marco@
* Fix ICE on hppa. Variant on minimal fix from GCC PR 34762.kettenis2010-05-301-1/+1
| | | | ok deraadt@
* make gcc4 lib sprintf/strcpy free.espie2010-05-267-13/+16
| | | | | | | activate proper C99 stuff. fix locale support when there's no locale. work common with kettenis@
* Enable -fstack-protector by default.robert2010-05-251-1/+1
|
* Link against libc_p and libpthread_p when -p or -pg is specified, like we didkettenis2010-05-241-1/+2
| | | | | | for gcc3. ok espie@
* GCC PR C++/33094.espie2010-05-231-1/+1
| | | | | | | | | C++ semantics fix. Member constants can be file-local, if they're not external. Fixes build of py-tagpy, which barfs in Boost otherwise. (original fix, different text from gcc 4.2.4) okay deraadt@, kettenis@
* turn off strict overflow for all optimizations on OpenBSD, also disable wrapv.drahn2010-05-202-2/+2
| | | | ok kettenis@ robert@, tested by marco@, kevlo@ myself
* Don't include -ftree-vrp in -O2 and higher as it has known bugs in gcc 4.2.jsg2010-05-161-1/+0
| | | | | | Fixes jdk builds among other things. ok robert@ espie@
* wint_t is int on OpenBSD; ok kettenis@naddy2010-05-121-0/+3
|
* port -ftrampolines/-Wtrampolines support from gcc3.espie2010-05-122-0/+17
| | | | comments and okay kettenis@
* options.[ch] will auto-define those.espie2010-05-122-6/+0
| | | | okay kettenis@
* default to march=i486 for gcc4 as we no longer run on 386 class machinesjsg2010-05-111-1/+1
| | | | | | and this lets gcc emit code with xadd/cmpxchg instructions. ok kettenis@
* Use OPENBSD_OS_CPP_BUILTINS(), and add a few missing defines to make surekettenis2010-05-101-4/+10
| | | | the types used by GCC match those in machine/_types.h.
* reflect reality, those types must match libc.espie2010-05-102-4/+4
| | | | | | | and then, we can have a default facet when locales are not defined. (this lets std::istringstream work again)
* -Wstack-larger-than-N for hppa/hppa64.kettenis2010-05-091-0/+3
|
* -Wstack-larger-than-N for sparc/sparc64.kettenis2010-05-091-0/+3
|
* Accept and ignore -Wbounded, fully implementing this is in the worksjsg2010-05-091-0/+4
| | | | | | but this makes things less painful for people for the time being. ok kettenis@ robert@
* Modift -fstack-protector support such that it works with the supportkettenis2010-05-091-52/+48
| | | | | | | functions in our libc and continues to provide the function name to __stack_smash_handler(). ok miod@
* Disable -Wpointer-sign in -Wallrobert2010-05-081-2/+0
|
* Add the bits of code I wrote for the ports gcc that are necessary to handlekettenis2010-05-071-0/+27
| | | | StackGhost on sparc64.
* Bring over changes from gcc3 (and gcc4 in ports) to make C++ exceptionkettenis2010-05-071-0/+9
| | | | handling work with shared libraries.
* Add openbsd config headers for libstdc++-v3robert2010-05-074-0/+282
|
* Merge from gcc3 our configuration for alpha, including these localnaddy2010-05-045-124/+188
| | | | | | | | | | | | | | | | | | changes: * Do not force -msmall-data if -fpic and -mlarge-data if -fPIC. Instead, have both -fpic and -fPIC only select pic code generation, and use whatever memory mode is specified (with -mlarge-data being the implicit default). * -Wstack-larger-than support. * Disable stack frame checking in the prologue under OpenBSD, unless you compile with -fstack-check, for consistency with other platforms. * -mno-ieee option to disable IEEE mode. ok kettenis@
* Disable MASK_HARD_QUAD like we did for gcc3.kettenis2010-05-021-1/+1
|
* Implement -Wvariable-decl.kettenis2010-04-292-0/+6
| | | | ok robert@
* #undef GLOBAL_ASM_OPmarco2010-04-291-0/+1
| | | | suggestion kettenis ok drahn
* Backout last commit. This has not been shown to the appropriate people andkettenis2010-04-291-0/+1
| | | | almost certainly breaks non-powerpc targets.
* Fix a couple of crtsavres issues found after initial checkin. closer now.drahn2010-04-292-1/+4
|
* Add the bits to compile a working powerpc kernel. This is a work inmarco2010-04-292-1/+132
| | | | | | progress. most of the smarts from drahn, ok drahn
* Enable -fwrapv by default. It's what many programmers expect and accordingkettenis2010-04-281-1/+1
| | | | | | | to miod@ "has a history of being required to build security concerned software". ok guenther@, jsg@, robert@
* Work around the fact that our .comm directive is somewhat non-standard.kettenis2010-04-261-0/+24
|
* Add hppa support, loosely based on the existing GCC 3.3.5 support. Many bitskettenis2010-04-251-0/+161
| | | | removed that are now unnecessary.
* merge more local changes:robert2010-02-245-2/+23
| | | | | | - disable unsafe builtins - create a stub for -Wbounded - move strict aliasing to -O3
* This typo in check_for_nested_with_variably_modified was present for 4 yearsrobert2009-11-041-1/+1
| | | | | | | and hampered the inliner without anyone noticing. fixes gcc bug #36367 reported by henning petersen
* Replace mmap/default precompiled header support using a brk/sbrkkurt2009-10-181-0/+107
| | | | | | implementation since random mmap breaks the default approach. Note that gcc may not be compiled with PIE support or it will break this implementation too.
* merge some gcc-local(1) changes:robert2009-10-154-2/+30
| | | | | | - disable -fident by default - disable -fstrict-aliasing with -O2 - add support for -Wstack-larger-than-N (only for i386 and amd64 for now)
* teach gcc about our kprintf and syslog format attributesrobert2009-10-151-0/+62
|
* only enable SF, DF, XF, TF modes in libgcc if we are building with gcc4, so we can bootstrap with gcc3 firstrobert2009-10-151-0/+2
|
* fix at-file.texi pathrobert2009-10-151-1/+1
|
* add target configuration for openbsdrobert2009-10-155-24/+186
|