Commit Graph

5503 Commits

Author SHA1 Message Date
scw 5764a76889 Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:35:21 +00:00
matt 768e321a24 Switch back to mnegl hi, mnegl lo, sbwc and prevent split_quadword_operands
from using POST_INC in the case of negation.  Fix reversal of operands in
-Os use of ashq.
2007-04-08 03:07:23 +00:00
matt 2c37c6c8f1 Fix a problem with -Os. 2007-04-07 22:50:27 +00:00
matt 43a709f886 2006-08-24 Richard Guenther <rguenther@suse.de>
* builtins.c (fold_builtin_classify): Fix typo.
2007-04-07 06:13:15 +00:00
matt 4fab8ae973 Fix addition of negative 64bit constants. Don't optimize the instructions
too much otherwise we might use some that don't affect the carry bit.  Make
sure we are using paired instructions (add/adwc, sub/sbwc).
2007-04-06 22:46:36 +00:00
matt 5db28f425f When mova[lq] to a push operand, do a pusha[lq] instead. 2007-04-06 20:50:33 +00:00
matt 4af7958221 Fix 64-bit negation. 2007-04-06 20:49:02 +00:00
wiz 166737735f Describe Lk and Mt. From Brad Harder in PR 36126. 2007-04-06 17:05:18 +00:00
matt 086f0329dc Fix constraints on ffs. 2007-04-02 16:45:39 +00:00
matt 20feb5b064 Fix cut-and-pasto. 2007-04-02 16:44:31 +00:00
matt 831f4686c1 Get rid of old unused constraints. 2007-04-02 16:44:17 +00:00
matt abe5cdbc17 Add __builtin_ffs support. 2007-03-31 23:12:37 +00:00
matt deb622ec5b Final step. Turn on generation of PIC code. Full release build builds and
works.
2007-03-31 05:55:11 +00:00
matt dec8719ee4 For nonimmediate operands of SImode, don't use "g" anymore, use "nrmT" instead.
"g" matches just about anything including SYMBOL_REF, CONST, LABEL_REF which
should not be operands for most instructions in PIC mode.  (movsi can handle
then and addsi3 can handle them in a few limited cases).
2007-03-31 01:23:26 +00:00
matt aa3062f197 Step 2. Produces PIC code but doesn't satisfies the constraints needed
by userland.  (external symbols can still be indirected and relocs for
symbol + offset are emitted).
2007-03-31 00:59:47 +00:00
matt 57ad7b9e42 Use HOST_WIDE_INT where appropriate. Cleanup split_quadword_operands 2007-03-30 22:03:28 +00:00
matt f775e4410d Enable new quadmove code. Only use mova[lq] instead of ashl when
!optimize_size.  When optimize_size is on, try to use ashl if possible
if setting a 6bit unsigned quantity in the word.
2007-03-30 22:02:26 +00:00
matt 120d27ab08 Add symbolic_operand (matches const, symbol_ref, label_ref). 2007-03-30 21:25:01 +00:00
matt 1336eda547 Remove split_quadword_operands 2007-03-30 21:24:03 +00:00
matt 9e311d116b Simplify the address_operand patterns. Use gcc's macros and split between
push and mov addr patterns.
2007-03-30 21:23:42 +00:00
matt d18d7c0fc4 Fix a few missing REG_P, use symbolic_operand instead of testint CONST/SYMBOL_REF/LABEL_REF, make split_quadword_operands static, don't pass the insn just the rtx code for the insn 2007-03-30 21:15:24 +00:00
matt 58ad121651 Step 1 of getting gcc to generate VAX PIC code again. These steps are being
committed in "smallish" steps.  This step incorporates the switch to MEM_P,
REG_P, and CONST_INT_P.  Use bool/true/false where appropriate.  PRINT_OPERAND
moves from being a large macro in vax.h print_operand in vax.c.  Fix rtx cost
for a constant of 0.  This eliminates unneeded moves when setting to 0 would
be fine.

Lastly, include completely new (on by default) code for DImode move, addition,
and subtract.  This code is significantly faster and smaller that what existed
before.
2007-03-30 20:25:46 +00:00
matt 7457e904c0 Add CONST_INT_P 2007-03-30 19:47:19 +00:00
matt e43d142e40 Steal code from tc-sparc.[ch] to implement a vax specific "cons" routine.
Add a %pcrel{32,16,8}(exp) special which emit a PC32 relocation to exp.
This will be used by the gcc dwarf code to generic .eh_frame sections which
are read-only and can be put in the text PT_LOAD.
2007-03-16 22:16:12 +00:00
matt 02f41de9c1 Don't emit PLT entries for PC32 entries not in a code section.
Don't emit PC32 relocations in shared libraries if the relocation is not in
a section with the CODE attribute.  (This is for DWARF2).
2007-03-16 22:12:11 +00:00
matt c50630ea67 Fix LP64 bug. 2007-03-10 23:23:07 +00:00
matt 2018fad37d Honour ${CPUFLAGS} 2007-03-09 04:40:38 +00:00
mrg e274239983 regenerate everything with fixed c++ math bits. 2007-03-01 01:57:15 +00:00
skrll 3d26910b10 sun2 mknative output for gdb6. 2007-02-28 08:12:13 +00:00
skrll 15e7f1810b Pass the LWP of the ptid in PT_{GET,SET}REGS calls.
Pulled across from the changes to gdb5.3.
2007-02-26 23:11:01 +00:00
drochner ce75a0ec7e regen after math.h change - now we've got _GLIBCXX_USE_C99_MATH 2007-02-26 11:57:52 +00:00
skrll c0f2a403cd Pass the LWP of the ptid in PT_{GET,SET}REGS calls.
Pulled across from the changes to gdb5.3.
2007-02-24 13:05:18 +00:00
skrll d6172f381e Whitespace 2007-02-24 13:01:34 +00:00
skrll dcad5cdb82 Applies the changes made in gdb 5.3 to support pthread debugging.
Fixes part of PR/35540.
2007-02-24 12:36:27 +00:00
christos 493edcfdc7 improve on TARGET_LIBC_PROVIDES_SSP test suggested from phone. 2007-02-23 21:31:13 +00:00
chs fd090e47e8 rerun mknative (disabling sim). 2007-02-19 18:30:58 +00:00
chs 13bb388148 disable sim for mips until someone adds the rest of the build framework for it. 2007-02-19 18:26:22 +00:00
chs ae4967aaae bring over local mods from gdb5:
- use the right LWP ID with ptrace.
 - implement single stepping.
2007-02-19 18:22:04 +00:00
rmind 07f5c15ae5 Enable sdiff(1) in usr.bin, disable GNU sdiff(1).
lists seems to be compatible.
2007-02-18 22:44:44 +00:00
freza 592d6d615c Fix MKDEBUGLIB build. 2007-02-16 16:34:17 +00:00
drochner 10527a675c regen after math.h change - now we've got _GLIBCXX_USE_C99_MATH 2007-02-07 16:52:31 +00:00
drochner 310805bbe6 regen after math.h change - now we've got _GLIBCXX_USE_C99_MATH 2007-02-06 17:32:29 +00:00
rpaulo 9cecbd0179 Merge postfix-2.3.7 2007-02-05 17:56:11 +00:00
rpaulo 231b0ce3a6 postfix 2.3.7 2007-02-05 17:36:15 +00:00
rpaulo 87cc82cf9b postfix 2.3.7 2007-02-05 17:35:53 +00:00
christos bb1029ffc1 Don't mark 0 length arrays as being too small for stack protection. 2007-01-27 01:27:29 +00:00
wiz b5d2193e6a Add NetBSD-1.3.3 and FreeBSD-6.1 for hashinit(9). 2007-01-23 22:26:06 +00:00
skrll fb3b023826 Correct a comment. 2007-01-20 10:54:44 +00:00
pooka 533e5fb937 I don't spell "puffs" with allcaps (except in macro names, har har),
so uncapsize it from here also
2007-01-19 20:04:39 +00:00
skrll ba85386518 Apply an iffy heuristic to detect a valid switchframe on the stack and
extract the register state from this for the live kernel case. If there
is no switchframe then use the frame pointer to get enough state for crash
dump case.

More information needs to be saved by savectx to avoid this mess.

Should fix PR/35118
2007-01-18 18:15:02 +00:00
mrg b2d62876b4 regenerate these files via mknative.
XXX: gcc auto-host.h generation is still broken and turns off
XXX: gas "comdat" support.  i have not commited these files..
2007-01-13 09:26:59 +00:00
mrg 80ab5c909f fix the list of headers to check for on netbsd 2007-01-13 08:30:13 +00:00
skrll 3677759599 Deal with lex and yacc generated files for gdb in the same way as gcc.
That is, use the files supplied with the distribution and never attempt
to rebuild them.

Should fix PR/35271
2007-01-12 13:24:30 +00:00
mrg fb1bedf6c8 bump NetBSD version 2007-01-11 07:19:06 +00:00
mrg d84579c1c7 merge GCC 4.1.2-20070110. 2007-01-11 06:59:53 +00:00
mrg d4afbdede5 import GCC-4.1 branch from 20070110 (revision 120647). this fixes the
44 GCC PR's listed below (some have already been applied to NetBSD GCC)
and at least one NetBSD PR:

	PR bootstrap/28400
	PR c++/27369
	PR c/25795
	PR c/25993
	PR c/29092
	PR c/29736
	PR c/30360
	PR debug/26964
	PR libstdc++/11953
	PR middle-end/21032
	PR middle-end/26306
	PR middle-end/27826
	PR middle-end/28116
	PR middle-end/29241
	PR middle-end/29250
	PR middle-end/29584
	PR middle-end/29695
	PR middle-end/29753
	PR middle-end/30286
	PR rtl-optimization/25514
	PR rtl-optimization/27736
	PR rtl-optimization/27761
	PR rtl-optimization/28970
	PR rtl-optimization/29631
	PR rtl-optimization/29797
	PR target/18553
	PR target/24036
	PR target/29114
	PR target/29319
	PR target/29377
	PR target/29449
	PR target/30039
	PR target/30173
	PR target/30185
	PR target/30230
	PR tree-opt/28545
	PR tree-opt/29788
	PR tree-opt/29964
	PR tree-optimization/27891
	PR tree-optimization/28888
	PR tree-optimization/29581
	PR tree-optimization/29610
	PR tree-optimization/29637
	PR tree-optimization/30212
2007-01-11 02:52:39 +00:00
mrg 79780a5fbb import GCC-4.1 branch from 20070110 (revision 120647). this fixes the
44 GCC PR's listed below (some have already been applied to NetBSD GCC)
and at least one NetBSD PR:

	PR bootstrap/28400
	PR c++/27369
	PR c/25795
	PR c/25993
	PR c/29092
	PR c/29736
	PR c/30360
	PR debug/26964
	PR libstdc++/11953
	PR middle-end/21032
	PR middle-end/26306
	PR middle-end/27826
	PR middle-end/28116
	PR middle-end/29241
	PR middle-end/29250
	PR middle-end/29584
	PR middle-end/29695
	PR middle-end/29753
	PR middle-end/30286
	PR rtl-optimization/25514
	PR rtl-optimization/27736
	PR rtl-optimization/27761
	PR rtl-optimization/28970
	PR rtl-optimization/29631
	PR rtl-optimization/29797
	PR target/18553
	PR target/24036
	PR target/29114
	PR target/29319
	PR target/29377
	PR target/29449
	PR target/30039
	PR target/30173
	PR target/30185
	PR target/30230
	PR tree-opt/28545
	PR tree-opt/29788
	PR tree-opt/29964
	PR tree-optimization/27891
	PR tree-optimization/28888
	PR tree-optimization/29581
	PR tree-optimization/29610
	PR tree-optimization/29637
	PR tree-optimization/30212
2007-01-11 02:42:35 +00:00
mrg b0b8ac17fb import GCC-4.1 branch from 20070110 (revision 120647). this fixes the
44 GCC PR's listed below (some have already been applied to NetBSD GCC)
and at least one NetBSD PR:

	PR bootstrap/28400
	PR c++/27369
	PR c/25795
	PR c/25993
	PR c/29092
	PR c/29736
	PR c/30360
	PR debug/26964
	PR libstdc++/11953
	PR middle-end/21032
	PR middle-end/26306
	PR middle-end/27826
	PR middle-end/28116
	PR middle-end/29241
	PR middle-end/29250
	PR middle-end/29584
	PR middle-end/29695
	PR middle-end/29753
	PR middle-end/30286
	PR rtl-optimization/25514
	PR rtl-optimization/27736
	PR rtl-optimization/27761
	PR rtl-optimization/28970
	PR rtl-optimization/29631
	PR rtl-optimization/29797
	PR target/18553
	PR target/24036
	PR target/29114
	PR target/29319
	PR target/29377
	PR target/29449
	PR target/30039
	PR target/30173
	PR target/30185
	PR target/30230
	PR tree-opt/28545
	PR tree-opt/29788
	PR tree-opt/29964
	PR tree-optimization/27891
	PR tree-optimization/28888
	PR tree-optimization/29581
	PR tree-optimization/29610
	PR tree-optimization/29637
	PR tree-optimization/30212
2007-01-11 02:31:47 +00:00
ober f5f2c9b363 Updating for the new Zaurus port as per the new-port checklist. 2007-01-05 01:26:30 +00:00
veego 7da8f89559 Add ada-exp.c and c-exp.c to CLEANFILES.
This was forgotten in rev. 1.5.
2007-01-01 13:09:54 +00:00
rpaulo 9db5d6d8b8 Resolve conflicts. 2006-12-21 02:56:37 +00:00
rpaulo 0225a7dd90 postfix-2.3.5 2006-12-21 02:27:16 +00:00
matt 9b573944b4 2006-12-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/30039
	* pa.md (high:DI and lo_sum:DI): Handle 64-bit CONST_INTs in 32-bit
	patterns.  Correct length of high:DI instruction sequence.
2006-12-10 00:19:32 +00:00
chs a3f1a799dd apply part of gcc SVN rev 112421 (for building on solaris):
* config.gcc (sh*-*-*): Don't use c-c ranges for tr.
2006-12-09 21:59:50 +00:00
drochner 46a07fd83d Update code for recognition of signal trampolines to the new "setcontext"
type, and update register offsets for ucontext/mcontext.
Now a backtrace crossing a signal handler invocation works.
Approved by christos.
2006-12-07 13:38:19 +00:00
skrll a85304c52e Add a pid to filename conversion routine for all non-i386 platforms and
create the mknative output in some instances.  arm, ppc, and sparc64 are
the only other ones using GDB 6 at this point.

Compile tested only.
2006-12-06 18:25:29 +00:00
christos fd2ea8ece6 kill statck protector warning completely because more files use alloca than
then ones that don't.
2006-12-03 18:17:36 +00:00
christos 1ef246e307 Fix SSP build for the poor archs that have not converted yet. 2006-12-03 18:13:23 +00:00
uwe d14ca40433 arch/sh3e{b,l} files for gdb6 2006-12-02 01:20:40 +00:00
uwe 7ec58a9280 Do not include sh64 support into sh*-netbsdelf* targets unless
specifically requested with sh5* or sh64*.
2006-12-02 01:16:34 +00:00
uwe 0c5111b125 Hide sh5 stuff under #ifdef BFD64, so that we can build with 32-bit
support only.
2006-12-02 01:13:53 +00:00
christos 3254d721de - add kernel frame unwinding support (copied from i386obsd-tdep.c)
- add a nasty hack to recognize elf kernels which do not have a PT_NOTE
  as NetBSD binaries.
2006-12-02 00:46:06 +00:00
drochner d6defbabbf pull in more from upstream CVS: nuke on-disk sorting completely
(It didn't work correctly, thanks to Joerg Sonnenberger for the hint.)
2006-12-01 18:21:04 +00:00
drochner afe5425679 pull patches from upstream CVS:
-unsafe tempfile creation (CVE-2005-3011)
-buffer overflow (CVE-2006-4810)
2006-12-01 16:54:22 +00:00
he d588ed2b2f Move the .WAIT to after sim, patterned after gdb53 and to try to fix
the various powerpc parallel build problems exposed by our autobuilds.
2006-11-29 15:18:10 +00:00
jdc 80c18fce28 Allow ada-exp.c and c-exp.c to be built when using a read-only source tree. 2006-11-28 13:44:52 +00:00
christos f54257e103 fetch kcore registers correctly. 2006-11-26 05:40:07 +00:00
christos 7a47f15696 gcc 4 outputs AT_location attributes which are not blocks. Prevent core-dumping
by not trying to dereference non block attributes as block.
2006-11-26 04:45:39 +00:00
freza e5bde12f63 s/lsect->name/lsect->section->name/g in DEBUG code, fixes MKDEBUGLIB builds. 2006-11-25 17:53:27 +00:00
skrll f509028063 Provide a nbsd_pid_to_exec_file to assist with attach in a similar way
to the change I made to gdb 5.3.

Use on i386. Others to follow.
2006-11-25 16:38:51 +00:00
skrll dc5413fadf More fixes from mknative re-run. 2006-11-25 16:24:42 +00:00
skrll 4e99498a2e Various fixes from mknative re-run. 2006-11-25 16:22:59 +00:00
skrll d6e38a90f8 Pull across the gcc fixes for the ICEs seen when cross-compiling hp700 on
64bit hosts.

	- gimpy's fix has been done differently when fixing gcc
	  target/29114
	- the second is one I debugged with Dave Anglin's help. The fix
	  is from Dave.

There still seem to be codegen bugs, however.

Bump version to NetBSD nb3 20061125

OK'd by mrg.
2006-11-25 10:05:43 +00:00
jnemeth 0b9c3e7f59 PR/30618 -- info dumps core
fix from Efstathios Kamperis
2006-11-25 10:02:53 +00:00
uwe 6718552664 "Regenerate" by propagating configure.ac chanages:
Recognize sh64*- and sh*- targets instead of just sh64- and sh- to
accomodate little-endian (e.g. "shle").  While here, recognize sh5*- too.

Makes cross-gdb compile for hpcsh (shle target) withought forcing
--disable-sim.
2006-11-25 04:59:01 +00:00
uwe 0b48c1fd38 Recognize sh64*- and sh*- targets instead of just sh64- and sh- to
accomodate little-endian (e.g. "shle").  While here, recognize sh5*- too.

Makes cross-gdb compile for hpcsh (shle target) withought forcing
--disable-sim.
2006-11-25 04:57:51 +00:00
mrg d010dedb55 bump version to NetBSD nb2 20061121 2006-11-23 05:43:40 +00:00
rpaulo 7420eb145a Change pickup to fifo. Spotted by Havard Eidnes. 2006-11-22 17:46:46 +00:00
mrg 5c4d804998 fix a compile problem with the mjpegtools package. PR#35082. this reverts
a recent GCC change that fixed their bug 28506.  from Richard Guenther (suse).
2006-11-22 05:18:57 +00:00
skrll 768e889c8b Delete more gcc3 stuff. 2006-11-20 17:08:35 +00:00
skrll c68684eefc Use GNUHOSTDIST to reference config.guess instead of an incorrect relative
path.

Fixes PR 35078 from Henning Petersen
2006-11-20 07:13:36 +00:00
skrll 84e06a9d31 Act as mrg's keyboard and delete gcc 3. 2006-11-19 08:36:54 +00:00
he f60bf42ff6 Insert a .WAIT between ppc (which makes -lpsim) and psim itself, in an
attempt to fix the build failures exposed by autobuild doing -j 8.
2006-11-18 20:19:24 +00:00
christos 64f067eaa0 sprinke -Wno-stack-protector 2006-11-12 01:24:44 +00:00
christos 3353f7d077 goodbye uucp 2006-11-12 01:20:00 +00:00
christos 98e199228a Sprinkle -Wno-stack-protector. Gnu programs use too much alloca :-) 2006-11-10 17:36:08 +00:00
christos f6e9654266 add -Wno-stack-protector because of the CMSG macro lossage. 2006-11-09 21:40:20 +00:00
christos 2d8fd6a6dd Sprinkle -Wno-stack-protector 2006-11-09 21:27:58 +00:00
christos f1951fb14a compile some files with -Wno-stack-protector since they are heavy alloca
users.
2006-11-09 20:07:14 +00:00
christos 6367f77577 -Wno-stack-protector 2006-11-09 04:07:11 +00:00