summaryrefslogtreecommitdiff
path: root/gnu/gcc
AgeCommit message (Collapse)Author
2011-07-04Let ia64 gcc compile.Paul Irofti
2011-06-25Remove ueberold a.out configuration leftovers.Miod Vallat
2011-06-25Fix gcc PR #35965 as suggested inMiod Vallat
http://gcc.gnu.org/ml/gcc-patches/2008-06/msg01641.html This fixes a stack protector code bug which only got triggered by some particular function patterns, such as libc's __vfprintf. ok drahn@
2011-04-28Bring back wprintf() for gcc4 libstdc++.Stefan Sperling
2011-04-27Merge from gcc3:Christian Weisgerber
Default gcc on alpha to -mfp-rounding-mode=d, to make code which assumes the rounding mode is always controlled by fpsetround() happy. ok martynas@, miod@
2011-04-24Back out wprintf diff and crank. Need to check more architectures first.Stefan Sperling
requested by and ok deraadt
2011-04-24Expose wprintf and friends in the std:: namespace. Major bump for libstdc++.Stefan Sperling
ok kettenis espie
2011-04-07Use the correct floating point type.Dale Rahn
2011-04-06Put in the infrastructure for OpenBSD/arm gcc4 support. Not working, but workDale Rahn
on this in-tree not diffs floating around for > 1 year. ok miod@
2011-03-14Fix compiler warning from recent HANDLE_PRAGMA_PACK_PUSH_POP addition.Dale Rahn
(Fix both ppc compilers in tree, was previously committed to wrong one). OK deraadt@ discusssed with millert@ otto@ and kettenis@
2011-03-02Fix patently broken handling of ios_base::showpos: "cout << showpos <<Matthew Dempsky
0" should output "+0", not "0". Diff from upstream (which is still GPLv2+) via Brad.
2011-03-02define HANDLE_PRAGMA_PACK_PUSH_POP just like on other platformsRobert Nagy
to get #pragma pack and #pragma push work in order to be compatible with MS compilers because there is some code out there (e.g. chromium) that uses these pragmas. ok kettenis@
2010-12-24define __throw_exception_again to something, so that g++ -fno-exceptionsMarc Espie
does not throw warnings for stuff like if () __throw_exception_again; which does happen in its own fucking headers. builds of qt3 should no longer warn... okay millert@, no objection kettenis@
2010-12-12Make sure GCC's idea about size_t and ptrdiff_t matches what we have inMark Kettenis
<sys/types.h>. ok miod@
2010-09-14Provide a LOCAL_ALIGNMENT() macro, as on other strict alignment architectures.Miod Vallat
2010-09-11Setup sane INCLUDE_DEFAULTS when cross compiling.Joel Sing
ok drahn@
2010-09-10Add infrastructure to build GCC 4.2.1 for OpenBSD/mips64. Only tested onMark Kettenis
loongson (mips64el). ok miod@
2010-09-09let gcc4 build on landiskJonathan Gray
initial diff from jasper, finished by me with help from miod ok jasper@ miod@ kettenis@
2010-08-29Make sure local arrays of chars are word-aligned on strict alignmentMark Kettenis
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@
2010-08-01Add infrastructure to buil GCC 4.2.1 on OpenBSD/sparc.Mark Kettenis
2010-08-01Make __builtin_return_address(0) work with -fstack-protector. Old diffMark Kettenis
from Jakub Jelinek that never made it into upstream GCC. Fixes ld.so. Found by drahn@ and me; ok miod@
2010-07-26Turn on -Wsystem-headers by default, so that glitches in our headersPhilip Guenthe
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@
2010-06-06Yet another underflow. Found while hunting down the ICEs that happenMatthias Kilian
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@
2010-06-06prevent segfault on amd64 when -Wmissing-include-dirs -I/nonexistentMarc Espie
(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@
2010-05-30Only enable -fstack-protector by default on targets that support it.Mark Kettenis
ok marco@
2010-05-30Fix ICE on hppa. Variant on minimal fix from GCC PR 34762.Mark Kettenis
ok deraadt@
2010-05-26make gcc4 lib sprintf/strcpy free.Marc Espie
activate proper C99 stuff. fix locale support when there's no locale. work common with kettenis@
2010-05-25Enable -fstack-protector by default.Robert Nagy
2010-05-24Link against libc_p and libpthread_p when -p or -pg is specified, like we didMark Kettenis
for gcc3. ok espie@
2010-05-23GCC PR C++/33094.Marc Espie
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@
2010-05-20turn off strict overflow for all optimizations on OpenBSD, also disable wrapv.Dale Rahn
ok kettenis@ robert@, tested by marco@, kevlo@ myself
2010-05-16Don't include -ftree-vrp in -O2 and higher as it has known bugs in gcc 4.2.Jonathan Gray
Fixes jdk builds among other things. ok robert@ espie@
2010-05-12wint_t is int on OpenBSD; ok kettenis@Christian Weisgerber
2010-05-12port -ftrampolines/-Wtrampolines support from gcc3.Marc Espie
comments and okay kettenis@
2010-05-12options.[ch] will auto-define those.Marc Espie
okay kettenis@
2010-05-11default to march=i486 for gcc4 as we no longer run on 386 class machinesJonathan Gray
and this lets gcc emit code with xadd/cmpxchg instructions. ok kettenis@
2010-05-10Use OPENBSD_OS_CPP_BUILTINS(), and add a few missing defines to make sureMark Kettenis
the types used by GCC match those in machine/_types.h.
2010-05-10reflect reality, those types must match libc.Marc Espie
and then, we can have a default facet when locales are not defined. (this lets std::istringstream work again)
2010-05-09-Wstack-larger-than-N for hppa/hppa64.Mark Kettenis
2010-05-09-Wstack-larger-than-N for sparc/sparc64.Mark Kettenis
2010-05-09Accept and ignore -Wbounded, fully implementing this is in the worksJonathan Gray
but this makes things less painful for people for the time being. ok kettenis@ robert@
2010-05-09Modift -fstack-protector support such that it works with the supportMark Kettenis
functions in our libc and continues to provide the function name to __stack_smash_handler(). ok miod@
2010-05-08Disable -Wpointer-sign in -WallRobert Nagy
2010-05-07Add the bits of code I wrote for the ports gcc that are necessary to handleMark Kettenis
StackGhost on sparc64.
2010-05-07Bring over changes from gcc3 (and gcc4 in ports) to make C++ exceptionMark Kettenis
handling work with shared libraries.
2010-05-07Add openbsd config headers for libstdc++-v3Robert Nagy
2010-05-04Merge from gcc3 our configuration for alpha, including these localChristian Weisgerber
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@
2010-05-02Disable MASK_HARD_QUAD like we did for gcc3.Mark Kettenis
2010-04-29Implement -Wvariable-decl.Mark Kettenis
ok robert@
2010-04-29#undef GLOBAL_ASM_OPMarco Peereboom
suggestion kettenis ok drahn