summaryrefslogtreecommitdiff
path: root/gnu/egcs
AgeCommit message (Collapse)Author
2004-04-21Add luna88k related directories and information to the build infrastructure.Miod Vallat
ok deraadt@, millert@, krw@ - mdoc ok jmc@
2004-04-19fix mysql bug: http://bugs.mysql.com/bug.php?id=1442Hiroaki Etoh
changed the order of array relocation with the depth first order of variable sco pe. ok pvalchev@
2004-04-08In GO_IF_LREGITIMATE_ADDRESS(), use RTX_OK_FOR_BASE_P() to check for aMiod Vallat
valid base register for indexed addressing, rather than providing an incomplete inline version. This allows constructs such as (plus:SI (reg:SI (subreg:SI (reg:DI 1)))) to properly pass through the reload phase if optimization is enabled. Such a construct can be generated with buf[index + index2] = value; if either index or index2 are long long. Fixes the ICE in zsh Src/Zle/computil.c.
2004-04-06When optimizing a logical arithmetic operation, which operands are bothMiod Vallat
comparisons using different operators, make sure to generate an insn with the correct mode. This means that constructs like if (c != -1 & i < 9999) and if ((i<=7) | (value != 0)) as found in transfig and teTeX, respectively, will now compile with optimization. Note the single & or | in these constructs - this kind is rare enough for this bug to have remained unnoticed until now...
2004-03-19Disable caller-save (which is enabled at -O2 or -Os) as it suffers from aMiod Vallat
few bugs in the 2.95 codebase, one of them being fatal to m88k. A real fix will come after 3.5. ok deraadt@
2004-02-27Teach gcc the proper "set" syntax for __attribute__ ((alias)) to workMiod Vallat
on mvme88k. ok deraadt@ espie@
2004-02-21kill old copies of gcc-localMarc Espie
2004-02-21zap cccp.1, install phantom info.Marc Espie
ok theo
2004-01-23USE_GCC3 switch, now that propolice is in.Marc Espie
2004-01-22to fix the issue "missing return at end of function and ProPolice", ↵Hiroaki Etoh
calculate_can_reach_end skips the NOTE_INSN_FUNCTION_END with _ssp_ label to the original NOTE_INSN_FUNCTION_END. ok otto
2004-01-15extra target to make sure tconfig.h is rebuilt, to use with libobjc.Marc Espie
2004-01-12don't add -lm -lstdc++ if -shared, consistent with gcc -shared which doesn'tMarc Espie
link libc.
2004-01-04rename BUGS section to CAVEATS more appropriately; ok avsm & othersPeter Valchev
2003-12-28Document kprintf %: removal here too; anilMiod Vallat
2003-12-21Kill non-standard kernel printf %: braindead extension for good.Miod Vallat
ok markus@ drahn@
2003-12-03HOST_CFLAGS need to find libiberty too, even on vax!Marc Espie
ok deraadt@
2003-11-25Protect against ARRAY_SIZE redefinitionMarc Espie
2003-11-24bye, bye, they moved.Marc Espie
(all these changes were okay'ed millert@, btw)
2003-11-24Switch to using libiberty in new location.Marc Espie
Disable building of cxxfilt in gcc, build it from its own directory.
2003-10-31add pegasos to config.guess matchesDale Rahn
2003-10-07toplev.c, flags.h: add -fstack-protector-all option to generate protection ↵Hiroaki Etoh
instruments for every functions. ok pvalchev@
2003-10-07flag_stack_protection enables to genereate protecting instruments for every ↵Hiroaki Etoh
functions. ok pvalchev@
2003-10-07rtl_epilogue: fix pp warning message trouble at -Wmissing-noreturn.Hiroaki Etoh
ok pvalchev@
2003-10-07copy_args_for_protection: fix the problem that move_arg_location may corrupt ↵Hiroaki Etoh
the contents of DECL_RTL (parms). ok pvalchev@
2003-10-06This is one of these eerie moments when you realize that a significant partMiod Vallat
of your beliefs are wrong. In this case, trust in gcc. When computing the address of a field in a structure on stack, and: - the offset of the structure relative to the stack pointer and - the offset of the field relative to the structure have no _bits_ in common (for example, accessing field at structure(8) with the structure at sp(64)), triggers a gcc optimization in the following improvement: (plus (plus (frame_pointer offset_for_structure) offset_for_field)) changing into (plus (frame_pointer direct_offset_for_field)) In the aforementioned "no bits in common" case, gcc will use (or (plus frame_pointer offset_for_structure) offset_for_field) which is not necessarily correct, depending on the value of the frame pointer... Checking generated assembly code for a kernel compilation pointed out that ALL architectures were affected by this bug (some, such as m88k, alpha and sparc64, being much more affected than others, such as vax and m68k). Our first move was to backport a fix for this found in the gcc 3.x branch, however it relies upon several microbugfixes scattered around, and produced a misbehaving kernel on one particular machine. So what goes in with this commit is just a conservative fix which disables this particular "bitwise or is fun" optimization. Problem discovery and analysis by yours truly. Fix by etoh@ and I. Tested on all supported architectures by various people, including deraadt@, henning@, mickey@, naddy@ and I.
2003-10-01Introduce a new target switch, -mmemcpy (and -mno-memcpy).Miod Vallat
This switch forces block copy operations to always fallback to memcpy() when it is not done by inline load and stores, rather than using the m88k movstr* functions found in libgcc. The name of this option has been choosen after the mips back end, which has a similar option. Right now, this is a no-op since these functions are disabled due to (yet) another gcc bug; but this will help building standalone code, such as the kernel and boot blocks, without having to link against libgcc.
2003-09-05Stop the bounds checker warning on a bound of 0, so now it only triggersAnil Madhavapeddy
on negative values. Suppresses some warnings on code which is useless but legal. deraadt@ ok
2003-09-03- use displays and indentJason McIntyre
- use .Sq
2003-09-03- new sentence, new lineJason McIntyre
- section reorder - use .Sq instead of `' - kill whitespace - typos
2003-09-02A slightly reworked version of the "default to -fno-ident" change, whichMiod Vallat
improves diffability against stock gcc sources, for us alzheimer-impaired people. Requested by deraadt@ (no functional change)
2003-08-26stop dumping "GCC: (GNU) 2.95.3 20010125 (prerelease, propolice)" intoTed Unangst
every object by default. ok avsm@ henning@ marc@
2003-08-21A port of the g++ bugfix found atMiod Vallat
http://gcc.gnu.org/ml/gcc-bugs/1999-08n/msg00621.html and described in the related thread. This particular problem used to not be triggered (or not often), but the use of propolice affects the instruction flow, and started triggering it more often, for example in Qt's qmenubar class. Ironically, running with /etc/malloc.conf->AJ would neuter the bug in this case... Problem tracked by espie@ and etoh@, tested by various, ok deraadt@
2003-08-21fix symbol name error in mcount functionality in a.out->ELF transition.Dale Rahn
This changes the real definition to __mcount, but with a weak mcount for compat. On the next major bump the weak alias should be removed. Without this diff the compiler symbol mcount conflicts with the user mcount() function.
2003-08-19typo in comment, compiler vs. complierBrad Smith
2003-08-10sprintf -> snprintf, okay millert@.Marc Espie
2003-08-09fix for mcount call to allow .text sizes larger than 512k; epsie@ okMichael Shalayeff
2003-08-08On some architectures, being too optimistic in preserve_subexpressions_p(),Miod Vallat
for example when -fexpensive-optimizations is used, sometimes causes incorrect code sequences to be generated. As -fexpensive-optimizations is implied by -O2, this means we are potentially affected by this in numerous places... so add a specific workaround to nullify expensizve-optimizations in preserve_subexpressions_p() on a known-to-be-affected basis. So far, only alpha, powerpc, m88k, sparc and sparc64 are affected. Problem tracked down by henning@ - analysis by etoh@ and I - ugly workaround by me - ok deraadt@
2003-08-07Disable the so-called optimized memcpy functions for small (less than a fewMiod Vallat
hundred bytes) block copies. While the functions themselves are probably optimal or not far from it, the code responsible for their invocation is not, and has a bad tendency of miscomputing the destination buffer address, especially when optimization is used. This is a temporary measure, these functions will be reenabled once a good fix is ready. ok deraadt@ espie@
2003-08-06Check for and skip variable-length arrays while bounds checking insteadAnil Madhavapeddy
of erroring out in a later sanity check. Error noticed by jolan@ This only affects the -Wbounded case
2003-08-01A working gcc 2.95/m88k compiler, for some low standard value of working.Miod Vallat
Configuration settings mostly borrowed from the former gcc 2.8 configuration. A few typos and fixes backported from gcc 3.3, and a hell lot of fixes from my fingertips. This is enough to yield a compiler which will produce correct code at -O0. Optimization is slightly broken for some constructs, and more fixes are in the pipeline. ok deraadt@
2003-07-29change_arg_use_in_operand: convert "set () (incoming_args)" to "set () (plus ↵Hiroaki Etoh
(vfp const))". The incoming_args alone is derived from the address operation of the 1st function argument. This fixes to protect the 1st function argument from buffer overflow. ok pvalcehv@
2003-07-29push_frame_in_args: fix netpbm-alpha problem, changes the memory corruption ↵Hiroaki Etoh
at modifying the argument information. ok pvalchev@
2003-07-29rtl_epilogue: convert "set () (incoming_args)" to "set () (plus (vfp const))".Hiroaki Etoh
The incoming_args alone is derived from the address operation of the 1st function argument. This fixes to protect the 1st function argument from buffer overflow. ok pvalchev@
2003-07-25kill a bit of whitespace at EOL;Jason McIntyre
2003-07-25New format attribute __kprintf__, which understands the special kernelAnil Madhavapeddy
format args (%r,%z,%:,%b). A step towards reenabling -Wformat in the kernel again ... deraadt@ ok
2003-07-22openbsd64 is a 64 BIT (not but) v9 processor; pointed out by millert.Jason Wright
2003-07-22now that gcc generates "correct" calls to the quad emulation library andJason Wright
the libc functions are in place, remove HARD_QUAD from sparc64. (If you actually want it, for some demented reason, look at -mhard-quad-float, void where prohibited).
2003-07-22the version of gcc in the tree doesn't generate the correct callingJason Wright
convention for the _Qp_* functions. Rather than fix it, rely on the fact that it does produce correct calls to the _Q_* functions and provide a shim in libc (already committed) to deal with it.
2003-07-11don't hardcode the default linker emulation type.Brad Smith
ok drahn@
2003-06-28remove a superfulous argument to a sorry() callAnil Madhavapeddy
deraadt@ ok