Age | Commit message (Collapse) | Author |
|
tries to check for an old, known to be flawed, ld version, but the in-tree
ld causes a false positive.
|
|
function, this change was made in the 3.4.0 release of gcc.
ok deraadt@
|
|
reported by sturm@. fixes libarchive on mips64.
ok millert@, miod@. tested by jasper@.
|
|
reported by sturm@. fixes libarchive on sparc64 for naddy@, sturm@.
mips is missing them too; but it has not been tested.
ok millert@, miod@.
|
|
- fix g++ regress so it can find libstdc++ in the objdir
okay espie@ kettenis@
|
|
(TF floats between conversions). also fixes perl. reported and
tested by naddy@. been in snaps for months. go ahead miod@
|
|
-fpie & -fPIE which are similar to -fpic & -fPIC except that the resulting
objects can not be used in shared libraries due to an additional
optimization for pie. This also adds the -pie link flag which produces a
pie executable given pic or pie objects. Combining -pie with -static is
currently disabled. The only gcc3 arch that doesn't support pie at moment
is arm due to binutils relocation bugs.
ok kettenis@
|
|
PR #5033; gcc 2.95 will need a similar fix (soon).
|
|
|
|
|
|
__udivti3, because MUST_PASS_IN_STACK always returned 1 on amd64;
pr#5780
reported by Simon Kuhnle
tested by Simon Kuhnle, sthen@, brad@
double-checked & tweak from miod@
ok sthen@, brad@
|
|
with several ports on alpha and does not produce a significant slowdown.
Suggestion to patch gcc directly from millert@
Diff and ok from miod@
ok pvalchev@, martin@, deraadt@
|
|
|
|
anymore.
|
|
"looks okay" espie@
|
|
warnings and/or unexpected operation when such statements are multi-insn
macros, such as li/dli. Backported from gcc 3.3.6.
|
|
``[3.4 Regression] Incorrect optimisation of loop termination condition''
This is a complete backport of this commit:
2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
PR optimization/13260
* sh-protos.h (sh_expand_t_scc): Declare.
* sh.h (PREDICATE_CODES): Add cmpsi_operand.
* sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
* sh.md (cmpsi): Use cmpsi_operand. If T_REG is compared to
something that is not a CONST_INT, copy it into a pseudo register.
(subc): Fix description of new T value.
(slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
(sltu, sleu, sgeu): Likewise.
(seq, sne): Likewise. Use sh_expand_t_scc.
* PR target/15886
``[3.3/3.4/4.0 Regression] SH: Miscompilation with -O2 -fPIC''
This is a complete backport of this commit:
2004-06-11 J"orn Rennecke <joern.rennecke@superh.com>
* sh.h (ALLOCATE_INITIAL_VALUE): Use return_address_pointer_rtx.
* PR target/21255
``%R and %S are not safe to use from asms''
This is a complete backport of this commit:
2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
PR target/21255
* sh.c (print_operand, %R and %S): Add handling of floating point
registers, memory, constants and invalid operands.
* Non PR
- CAN_ELIMINATE() is modified to prevent fp -> sp elimination when
a frame pointer needs to be preserved. I have serious reasons to
think this will help propolice operation.
|
|
``[3.3 only] set_fpscr isn't PIC even when __PIC__ defined; bad for
prelinking, causes glibc-3.2.3 check-textrel test to fail''
Correctly address fpscr_values[] in set_fpscr() when compiled PIC.
This is a partial backport of this commit:
2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
information in SHmedia case too.
(__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
Likewise.
(__set_fpscr): Use an access via GOT for PIC case.
|
|
|
|
|
|
GNU developers wear grey. GNU developers use autoconf and friends to configure
their software in the best possible way for the platform it is intended to run
on.
This frees us from the tedious job of, say, editing files hidden deep inside
the sources to, say, tell the code that 64-bit platforms (you know, those
which always define __LPA64__ and _LP64 among other things) have 64-bit
integer types (one such platform even defines the completely unexpected symbol
__mips64__.)
GNU developers work much harder than we do, because they're so frightfully
clever. I'm really awfully glad I'm a BSD developer.
|
|
install.
Prompted and tested by drahn@
|
|
The sh architecture required some different linkage than most platforms,
This fixes those other requirements.
|
|
okay miod@
|
|
OpenBSD or VMS, or -fstack-check; this was missed when disabling stack checks
a few months ago.
ok kettenis@
|
|
Okay miod@
|
|
auto declarations which size are not known at compile time.
This flag will eventually be added to the kernel makefiles so that we
can rely on -Wstack-larger-than work.
ok deraadt@ mbalmer@ otto@ marco@
|
|
|
|
okay kettenis@ (`if it builds' and it does)
|
|
|
|
object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD.
|
|
MASK_NO_SPACE_REGS.
ok miod
|
|
OpenBSD, regardless of the size of a long.
OK kettenis@ espie@
|
|
|
|
declare functions .export, which is now redundant. This makes symbol
aliases created with attribute("alias") visible.
ok deraadt@
|
|
with -fstack-check, for consistency with other platforms; ok kettenis@
|
|
with suggestsion from kettenis. ok miod@
|
|
always saved upon context switches, as FPU registers are heavily used for
long long computations (don't ask). Gcc default to -m4.
Credits to drahn@ otto@ and deraadt@ for feedback and help testing.
Upgrade procedure if you don't want to use the damn snapshots:
- build and install new kernel, reboot off it
- build new gcc, do not install it yet
- make includes
- install new gcc
- build and install lib/csu and lib/libc
- make build
|
|
|
|
ok brad@
|
|
defined.
ok miod@
|
|
tested by naddy@, deanna@; ok brad@
|
|
change in shl_sext_kind(). ok miod@ deraadt@
|
|
preprocessor directives in it; then do our changes only if either
OPENBSD_NATIVE or OPENBSD_CROSS is defined; then disable -fregmove
for now.
ok otto@
|
|
compiler to have the same default options as native.
The changes to cross build a native compiler is not quite complete.
"Get this in" miod@
|
|
especially since we have the tools.
problem reported by Ryan McBride, okay deraadt@, mcbride@
|
|
|
|
shared binaries/libraries.
|
|
|
|
|