Commit Graph

459 Commits

Author SHA1 Message Date
joerg
e7a9d9d117 Remove a bunch of broken inline qualifiers that break the -O0 build. 2012-07-20 21:18:00 +00:00
christos
edd104c76c PR/46704: Antti Kantee: Recognize tilera in config.guess 2012-07-19 19:34:26 +00:00
matt
b7c801cac8 Two fixes. Better PLT pruning (don't emit PLTs for local functions).
If emitting a reloc against a readonly section in a shared image,
cause TEXTREL to be set.
2012-07-17 21:37:21 +00:00
matt
ec769e4972 Warn about using a symbol as a displacement in PIC mode. 2012-07-17 20:29:44 +00:00
abs
86aebb49c7 Switch -current vax back to gcc 4.1 to match netbsd-6 - until someone has
time to look at the gcc 4.5 codegen issues we should at least have a usable
-current for vax.
2012-06-22 20:32:34 +00:00
martin
4d5a9c43e0 Apply upstream revision 175141: setjmp vs. unchanged register values;
should fix PR toolchain/45837.
2012-06-17 13:43:30 +00:00
christos
15053c8b40 add specs to automagically add the mudflap libraries when -fmudflap{,th} 2012-04-27 00:57:44 +00:00
christos
cbd0c35a2d remove code that assumed that lwpid shares pid space and can be used interchangeably. 2012-04-24 19:14:06 +00:00
christos
7006e67fd8 Bring in fix from:
http://gcc.gnu.org/bugzilla/show_bug.cgi?format=multiple&id=43804
Allows libmudflap to compile on m68k:

/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c: In function
'__mf_wrap_alloca_indirect':
/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c:492:1: error:
insn does not satisfy its constraints:
(insn 360 142 68 13
/usr/src/external/gpl3/gcc/dist/libmudflap/mf-impl.h:257 (set (reg/f:SI
6 %d6 [159])
        (const:SI (unspec:SI [
                    (symbol_ref:SI ("__mf_state_1") [flags 0x50]
<var_decl 0x7f7ff7304d20 __mf_state_1>)
                     (const_int 1 [0x1])
                 ] 6))) 36 {*movsi_m68k}
(nil))/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c:492:1:
internal compiler error: in reload_cse_simplify_operands, at postreload.c:396
2012-04-22 15:15:46 +00:00
christos
3fd38f84eb If we are asked to step on ptid(-1,0,0), then step on our inferior_thread
instead, which is the main thread instead of the currently executing thread
which is not what we want, since we've been running and nother thread might
have just started.
2012-04-21 00:16:35 +00:00
christos
49a655adee Make declarations consistent, and change unsigned int to unsigned long so
that this works on LP64 machines. Why is the __mf_uintptr_t needed anyway?
2012-04-19 15:52:39 +00:00
christos
9175dee1fe bad name 2012-04-18 22:42:21 +00:00
christos
6e275ac292 add the mudflap include and libraries 2012-04-18 19:22:03 +00:00
christos
6b798f149f move include to the gcc-4.5 subdir. 2012-04-18 19:21:25 +00:00
christos
f89a1d6f2b NetBSD fixes:
1. thread_self() returns a pointer, not an unsigned integer
2. Add NetBSD to Apple and FreeBSD defines
3. Add _NETBSD_SOURCE where needed
4. Add an extra define BEGIN_PROTECTV for void functions to avoid return
   free(); where free is void.
5. Avoid weak symbol hacks to determine if we are threaded or not. We
   have a threaded copy of the library, why bother?
6. change __attribute -> __attribute__ since the former is not covered by
   our cdefs.h
2012-04-18 02:55:05 +00:00
christos
d0800ba09f add preliminary build glue for mudflap; only the shared libraries work,
the static ones will need us to add __real_foo aliases for a bunch of
functions in libc.
2012-04-18 02:52:07 +00:00
christos
16918ffb5d - In the thread activation code, mutate the main thread (lid=0) to lid=1 like
the kernel does.
- Remove - 1 hack
- Remove more ifdef notdef code
2012-04-11 21:41:59 +00:00
christos
4ae881aba3 On NetBSD the data part of the PT_STEP request is the lid to send the signal,
not the signal to send! Make it so.
2012-04-11 21:39:01 +00:00
christos
defdde4f72 remove more unused SA userland thread stuff. 2012-04-11 20:21:35 +00:00
wiz
be5cf4dc86 clang complains:
C++ default arguments are illegal in the function defininion.
christos@ ok
2012-04-09 00:24:57 +00:00
he
692082ea92 Disable HAVE_TLS for now for gcc's libgomp, since it otherwise
causes gcc indigestion (internal compiler error) for all m68k ports.
mrg@ says this will do for now, and committing to this generated-
by-mknative file is ok.
2012-04-06 20:10:28 +00:00
mrg
829e755fe2 rerun mknative-gcc:
- turn off <fenv.h> on platforms that don't have it
2012-04-05 21:09:20 +00:00
christos
49758559c7 - remove unused thread (non-lwp) code.
- make the get method return the value, and only add 1 in the put method.
2012-04-04 13:33:19 +00:00
joerg
b757af438b Disable new -Wstring-plus-int warning where needed for now.
Adjust various places that add GCC-only options to check for the active
compiler first.
2012-04-04 10:59:44 +00:00
christos
92a9368199 only +1 for the 0'th thread (if we did not find any other) 2012-03-22 16:06:01 +00:00
christos
2f9576aacc complete the mapping of the lwp -> (lwp - 1), by adding 1 where appropriate. 2012-03-22 15:26:32 +00:00
christos
24da109f75 Use tid - 1 for the thread id, so that thread 1 matches the main thread
before the threaded code gets loaded. fixes spurious breakpoints. Is
there a better way?
2012-03-21 23:20:58 +00:00
christos
9b33eb8aa1 Undo previous, it was wrong:
The problem has to do with the threaded initialization.
After we take the first breakpoint and we enter single step mode,
we set trap_expected = 1 in the thread_info structure for main <pid,0,0>.
After the threads initialize, the main thread becomes <pid,1,0>, and so
we get a new thread_info struct with trap_expected = 0, and so we break.
2012-03-21 21:25:38 +00:00
christos
436a58b1ab Disable OS supplied single step functionality, because the code here is
wrong.
2012-03-21 18:01:34 +00:00
wiz
e93c7961c5 Sync usage with man page. 2012-03-19 09:14:15 +00:00
wiz
34e2e47694 New sentence, new line.
Sort descriptions.
Use simpler markup.
Bump date for previous.
2012-03-19 09:13:33 +00:00
bsh
f4eb9f64cb adjust the size of db_symtab space automatically.
proposed on tech-toolchain@, and got no objections.
2012-03-19 05:38:26 +00:00
joerg
4acff4c01b Implement sem_timedwait. 2012-03-08 21:59:24 +00:00
matt
6be8dcf23e Fix merge botch dealing with linker assignments. 2012-03-04 17:09:32 +00:00
matt
82cfc8036f Fix support for .protected symbols. 2012-03-02 16:37:16 +00:00
joerg
de785a6e75 gdb likes to mix different enum types in switches, so disable the check
for clang.
2012-02-28 22:07:54 +00:00
joerg
14ac342e56 Don't use clang here. 2012-02-28 20:26:07 +00:00
christos
268a453af7 PR/46068: Fix symbol loading on i386 kernels. On i386 lma != vma and gdb7
depends on them being != to detect overlays and avoid loading them. I've
disabled the test for now.
2012-02-24 22:41:12 +00:00
nonaka
6e76caabe4 fix build failure on mips64. 2012-02-23 11:05:02 +00:00
mrg
97a48de011 avoid bfd.info rebuilds and r/o source lossage. 2012-02-18 06:17:39 +00:00
nakayama
b3ed3f9f74 The default configuration for TLS support is supposed to use Sun
as, but we use GNU as.  So in this case it generates wrong
relocations in non-PIC mode.

This change fixes lib/libc/tls/t_tls_dynamic test failure on 32-bit
sparc as described in PR toolchain/45985.

Approved by releng.
2012-02-14 11:25:05 +00:00
matt
3ffd030673 Fix problem leading to triggering a BFD assert: when allocating space in the
got, do not allocate slots for symbols without default visibility.
2012-02-10 01:47:37 +00:00
skrll
03fa5d214f Make mips gdb7 compile.
XXX not sure I got this right.
2012-02-09 15:14:19 +00:00
skrll
c49a22327e Re-re-run gdb7 mknative for mips. mips not using gdb7 yet.
OK martin@
2012-02-09 15:13:30 +00:00
skrll
6b25048fe3 Re-re-run mknative for vax on gdb7.
vax isn't currently using gdb7 so this doesn't hurt anyone and I'm going
to ride my previous OK from releng :)
2012-02-09 15:05:00 +00:00
skrll
0cb5c6eccd Re-run mknative.
OK releng@ ack 3 nak 0
2012-02-06 10:55:32 +00:00
skrll
69352bd310 Add nbsd-pthread.o.
OK releng@ 3 ack 0 nak.
2012-02-06 10:46:34 +00:00
matt
5a1411907d For VAX & GCC, turn on -Wno-overflow to supress a GCC error. 2012-02-05 17:47:30 +00:00
matt
2c2478331f Gcc emit overflows warnings on VAX when you try to use HUGE_VAL. Make these
warning supressable if -Wno-overflow is given.
2012-02-05 17:43:47 +00:00
matt
c1538b0e12 Deal with vax defining [an empty] struct fpreg;
Add supply_gregset and fill_gregset for nbsd-thread.c to vaxbsd-nat.c
2012-02-05 17:40:48 +00:00