Commit Graph

731 Commits

Author SHA1 Message Date
matt
700fb1c20d Always supply LIB_PATH in case one of the included scripts set it to
something inappropriate.
2014-02-06 18:28:28 +00:00
matt
b3a8421d95 Don't unset LIB_PATH, just override it. 2014-02-06 15:40:47 +00:00
wiz
1193e8963a Try improving a comment. 2014-02-03 14:15:07 +00:00
christos
fef7521afe remove stale comment and explain what we are doing. thanks dsl 2014-02-02 23:17:54 +00:00
christos
cf1ad84b0d Fix threading bug again. 2014-02-02 22:00:38 +00:00
matt
6a41a228a5 Fix TARGET_LINKER_EABI_SUFFIX to actually use the right suffix. Since this
now depends on the default float-abi, pick from two strings to select the
right suffix.
2014-01-31 07:58:39 +00:00
matt
57eaac67d3 Regen for missing emulations. 2014-01-31 07:56:18 +00:00
matt
420036df2f Use separate emulations for EABI hardfloat / softfloat. 2014-01-31 07:32:53 +00:00
matt
42f0af0447 Add armelf{,b}_nbsd_eabihf emulations for MKCOMPAT to use. 2014-01-31 03:26:50 +00:00
matt
f5d761233f Make {,U}INTPTR_TYPE long 2014-01-30 01:06:11 +00:00
matt
ff329494be Fix typo bsd -> nbsd 2014-01-29 23:16:14 +00:00
matt
98a4b7b58e Add missing emulations for armelf{,b}_nbsd 2014-01-29 22:39:47 +00:00
matt
175c9fb16a Fix arm eabi typo 2014-01-29 05:27:35 +00:00
bouyer
bf5517d87e Fix http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57260 (patch from
gcc's repository). This bugs show up with Xorg, preventing  xf86-video-sis and
xf86-video-silicon modules from being loaded.
2014-01-26 21:26:02 +00:00
apb
6be92fc766 Don't embed ${DESTDIR} in the -DDEBUGDIR=... value.
DEBUGDIR should refer to a directory on the running system,
not the staging area used during a build.
2014-01-20 10:49:33 +00:00
mrg
666a6b2604 delete .svn subdirs as part of the pre-import. 2014-01-19 00:37:30 +00:00
matt
f536e5d427 Don't pass -Wl,-x to ${CC} since that strips symbols needed by ARM BE.
Let the OBJCOPY strip them.
2014-01-11 02:45:52 +00:00
matt
50d26cbd5b Don't use ${LD} -x because it screws up ARM BE.
Use ${OBJCOPY} ${OBJCOPYLIBFLAGS} instead so that $a/$d/$t are preserved.
2014-01-11 00:30:23 +00:00
christos
a15708a3bd gcc-4.8 has begun putting code in .text.unlikely etc. This breaks our
assumption that .text code comes first in kernels about bootblock so
that the first symbol defined becomes the start address. This change
puts .text before other .text like sections.
2014-01-04 20:17:42 +00:00
joerg
149b982b18 Fix string compare. 2014-01-04 03:19:00 +00:00
martin
8b9e38f519 Port from newer gcc:
Add a "mem_noofs_operand" predicate and corresponding "w" constraint.
Use those instead of "memory_reg_operand"/"m" for some atomic instrinsic
patterns: casx (and friends) do not accept an offset from the pointer
register (they are synthetic instructions mapping to e.g. casxa [..]
ASI_P, ... and the opcode space encoding offsets in other instructions
is needed to encode the ASI here).

This fixes the build of gtk+-3.10.6 from pkgsrc on sparc64.
2014-01-03 08:30:41 +00:00
jakllsch
1fa26414d5 regenerate for src/external/gpl3/binutils/dist/bfd/config.bfd r1.10:
Enable 32/64-bit PE-COFF targets for NetBSD/i386 in libbfd.
Needed to build UEFI things for IA32 using native toolchain.
2013-12-24 16:01:07 +00:00
jakllsch
0bfb2660a5 Enable 32/64-bit PE-COFF targets for NetBSD/i386 in libbfd.
Needed to build UEFI things for IA32 using native toolchain.
2013-12-24 15:06:39 +00:00
mrg
d5944a5b77 update to reality for gcc 4.8.2. 2013-12-13 10:01:49 +00:00
bouyer
0700bebfda Fix bad cut'n'paste in previous commit.
This should fix the remaining loogson build issues.
2013-12-10 18:15:43 +00:00
joerg
a7e7f7e044 One const ought to be enough for every variable. 2013-12-01 01:05:15 +00:00
joerg
e4c0f6ad28 Allow gnueabi to be matched for the relevant cases as well. 2013-11-29 23:01:54 +00:00
bouyer
95d1a8853c update for new binutils code our local patch to avoid warnings when macro are
used for loongson2f workarounds. Should fix mips64el kernel builds.
2013-11-28 22:28:30 +00:00
mrg
c25882ee01 handle with moved mpfr*.h files. 2013-11-28 13:04:35 +00:00
mrg
75219f3a01 update to MPC 1.0.1. 2013-11-28 12:08:56 +00:00
skrll
1cd7a8f9b7 Fix silly typo 2013-11-14 12:44:25 +00:00
martin
3d01f81a9c On sparc64 when compiling 64bit binaries:
- if proper "marker" objects exist, encode the code model in use in the
   binary
 - default to -mcmodel=medmid (instead of medlow)
2013-11-14 12:21:05 +00:00
christos
5435e94952 CID 1102803: Memory leak 2013-11-14 02:26:35 +00:00
christos
16129349e4 CID 1102810: Fix uninitialized 2013-11-14 01:18:02 +00:00
christos
95ea4fb705 CID 1102811: Unitialized variable. Don't pass random sun_len for the BSD's,
zero the whole structure as recommended for portability.
2013-11-14 01:14:39 +00:00
christos
cf3d00d2c6 CID 1102856: Fix memory leak 2013-11-14 01:12:14 +00:00
christos
87ddf4238e CID 1102812: Fix uninitialized 2013-11-14 01:00:22 +00:00
joerg
70f0cfa164 NetBSD 6.99.26: Switch i386 and amd64 to the x87 default control word
as initial value for new processes. This means that long double
computations get the expected 63bit mantissa. Binaries tagged as
compiled for 6.99.25 and older get the old value.

Add a simple test case to ensure that double and long double computation
are working correctly.
2013-11-11 11:10:45 +00:00
christos
f55ff5e8dd vax specific gcc 4.8.1 hacks 2013-11-09 21:39:27 +00:00
gdt
0b42bf56be Use -f with cp to cope with nonwritable files in . 2013-11-05 02:32:12 +00:00
christos
c9aa9a4e40 fix broken volatile assignment that gcc-4.8.1 does not like 2013-11-01 18:13:29 +00:00
christos
5612798f34 make the code compilable with gcc-4.8.1; this loop has an array overflow,
but it is only used for sparc register windows; ifdef it sparc for now,
it's the easiest fix.
2013-11-01 18:12:49 +00:00
christos
cb2bd1517d pick up omp.h from the libgomp directory not from /usr/include/gcc-4.5. Makes
the code compilable with gcc-4.8.1
2013-11-01 18:11:49 +00:00
christos
79581a2559 Handle more than gcc 4.5 2013-10-31 17:28:10 +00:00
joerg
a07180c32d Recursively add DT_NEEDED entries from shared libraries if symbols are
used indirectly. This is more in line with the old GNU ld behavior, but
not exactly the desired semantic.

Patch from Martin Husemann.
2013-10-25 14:28:28 +00:00
apb
50c2b69fc0 When building gcc using clang, avoid trying to use
__attribute__((__format__(__asm_fprintf__, ...)))
because clang doesn't support that.
2013-10-18 13:24:40 +00:00
apb
fb6cc47310 Run ../bfd/configure under ${CONFIG_SHELL}, not under
the /bin/sh that happens to be mentioned in its "#!" line.
2013-10-15 07:18:18 +00:00
apb
1b5c4ef5db If the shell does not support the $LINENO variable, then use
"bfd_configure.lineno" instead of "configure.lineno" as the name of the
a version of the script that has had all uses of $LINENO converted to
literal line numbers.

Now building tools via "MKCROSSGDB=yes build.sh tools" works again, even
if the shell does not support $LINENO.

The previous problem was caused by an interaction
between the way .../gdb/dist/opcodes/configure executes
"${srcdir}/../bfd/configure --version", and the way both configure
scripts tried to create and then execute configure.lineno scripts.
Both configure.lineno scripts were created in the same OBJDIR,
with the configure.lineno from .../bfd/configure overwriting the
configure.lineno from .../opcodes/configure, while the latter was
still running.
2013-10-15 07:14:59 +00:00
nisimura
bbf0c42bc0 remove garbage lines mistakenly included when def.mk generation. 2013-10-11 01:20:52 +00:00
christos
ebc3424719 dollarize NetBSD tag 2013-10-05 18:38:03 +00:00