Commit Graph

600 Commits

Author SHA1 Message Date
mrg 87e3390b36 build with GCC3 - string literals can't use literal new lines. 2003-08-22 02:59:50 +00:00
itojun 379deb2b1a use %llu for unsigned long long printing; PR bin/22552 2003-08-20 13:58:08 +00:00
matt b7cc9ef509 Correctly decode the switchframe *and the two callframes above it* which
contain the real information.
2003-08-15 16:58:15 +00:00
hannken d64c1acb07 Register `fill' was renamed to `lr'.
See sys/arch/powerpc/include/frame, rev 1.16.
2003-08-15 10:36:49 +00:00
christos 14ba79e309 Make this compile with gcc-3 2003-08-01 21:28:14 +00:00
mrg 30e5f75620 rework an expression to avoid 32 bit overflow 2003-07-27 15:16:54 +00:00
mrg 6a0101cabe #if 0 an assert that is always false. XXX not really always... 2003-07-27 05:03:51 +00:00
lukem d028397570 Disable rules that attempt to update parse.c from parse.y.
Implemented using a method recommended by Chris Demetriou on source-changes.
2003-07-26 12:02:21 +00:00
simonb f8d975a54e Add rev 1.48 from binutils:
date: 2003/03/14 21:07:54;  author: drow;  state: Exp;  lines: +1 -0
	ppc-opc.c (powerpc_opcodes): Readd tlbre for PPC403.
2003-07-24 03:40:17 +00:00
drochner 994673f63c As already done in binutils-2.14:
Use the "LL" suffix for 64-bit constants.

Now gcc-3.3 doesn't warn about "constants too large
for "long"" or so anymore.
2003-07-09 14:43:24 +00:00
drochner 82df414328 Fix another case where the %{R*} in LINK_SPEC got lost.
Should resolve PR toolchain/22098 by Richard Earnshaw.
2003-07-09 14:34:47 +00:00
wiz 1a6d2307a3 These man pages are not from the Berkeley distribution -- remove ".UC". 2003-06-30 14:09:51 +00:00
drochner 12d153b126 fix LINK_SPEC to pass "-R" to the linker
(approved by tv)
2003-06-26 19:16:21 +00:00
drochner c712f01409 link shared objects against libgcc_pic also in the !native
(ie tools/cross) case, as already done in the native configuration
2003-06-26 17:50:32 +00:00
thorpej 1d99a54efe Bring in the following patch from FSF binutils mainline:
2003-06-13  Richard Earnshaw  <rearnsha@arm.com>

	* tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
	(FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
	FPU_ARCH_FPA for AOUT.
	(md_begin): Don't try to guess the floating point architecture from
	the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.

...per Richard's suggestion.
2003-06-14 16:02:57 +00:00
thorpej 21d9a5cb94 Change --redefine-syms-file to --redefine-syms for consistency with
e.g. --keep-symbols, and to match the patch which was submitted to FSF.
2003-06-01 02:01:09 +00:00
kristerw 66cf1d6099 Handle comments in macros when the -C flag is specified to the
pre-processor.

This makes code of the form

   #define FOO(X) (BAR(X))
   #define BAR(X) (X)
   #define BAZ    23 /* comment, comment. */
   int foo(void) { return FOO(BAZ); }

be output as expected. (The old behaviour got confused by the ','
within the comment.)
2003-05-26 00:03:50 +00:00
thorpej a4d47e67c8 Back-port a patch from GCC mainline:
2003-04-26  Ben Elliston  <bje@wasabisystems.com>

	* config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
	return values from recog_memoized().
2003-05-23 00:20:21 +00:00
petrov 55e9455400 elf_fake_sections: fix cast sh_name. 2003-05-09 22:15:17 +00:00
thorpej b24126f5e6 Include <string.h>. From Ian Lance Taylor. 2003-05-06 02:31:06 +00:00
matt 0aa3fc4996 Make sure to supply the PS_REGNUM (as a fixed value) so that
read_register_bytes doesn't complain.
2003-04-25 20:13:47 +00:00
skrll 707c1872d8 Add netbsdaout.c to BFD32_BACKENDS_CFILES and netbsdaout.lo to
BFD32_BACKENDS so that the correct dependencies are registered.

Parallel builds now work as a result. Fixes PR 20602 and PR 21081.

I'll leave the bigger question of if this stuff is still needed and why it
hasn't been fed back to the binutils people to someone more qualified than
myself.
2003-04-11 09:02:25 +00:00
wiz 07d13217f3 Some e.g. cleanup: replace "eg" with "e.g.,". From Igor Sobrado in PR 19692. 2003-04-07 06:56:38 +00:00
wiz b511884ea9 Correct some SPARC tradenames. From Igor Sobrado in PR 19820. 2003-04-06 20:48:24 +00:00
perry 946b7ec114 add a missing backslash.
patch supplied in PR toolchain/20062 from Jed Davis
2003-04-02 02:50:07 +00:00
wiz d124f274cf VAX, not Vax. 2003-03-30 20:56:46 +00:00
mycroft f63d692921 Build COFF targets. Some embedded tools really, really want this. 2003-03-17 15:53:50 +00:00
martin c43762a960 Don't access memory before the start of a file. 2003-03-16 17:44:15 +00:00
thorpej c165d23d2b Back out rev. 1.4. The problem only occurs when using pre-compiled
headers, which we turn off.  (Nevermind the mis-placed #endif which
would cause incorrect output from a non-Apple host, sigh.)
2003-03-15 17:40:33 +00:00
hannken 1ef5d39c1a Add -mstrict-align to the CC1 default options.
At least the 403 ports cannot handle unaligned access.

Discussed with Jason Thorpe and Matt Thomas.
2003-03-15 16:09:34 +00:00
christos 8b16d6d256 PR/20554: John Heasley: gcc should define __sparcv9 for 64 bit compilation 2003-03-15 04:51:13 +00:00
thorpej d9cf1a068e Second half of fix for PR toolchain/19265.
2003-03-14  Jason Thorpe  <thorpej@wasabisystems.com>

	* c-decl.c (flag_hosted): Move from here...
	* toplev.c: ...to here.
	* c-tree.h (flag_hosted): Move extern declaration from here...
	* flags.h: ...to here.
	* config/alpha/alpha.c (alpha_initialize_trampoline): Only
	emit a call to __enable_execute_stack if flag_hosted is true.
	* config/i386/i386.c (x86_initialize_trampoline): Likewise.
	* config/sparc/sparc.c (sparc_initialize_trampoline)
	(sparc64_initialize_trampoline): Likewise.

An updated version of this will be submitted to gcc.gnu.org.
2003-03-14 23:48:00 +00:00
thorpej feff2fbbe6 Add support for the %j format length modifier (intmax_t). We have to
add intmax_type_node and uintmax_type_node globals to support this.
2003-03-14 21:24:44 +00:00
hannken 4a0f3bd75c Pass -m403 to gas.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
2003-03-14 20:41:38 +00:00
thorpej 563e78c49c Support a Mac OS X host. 2003-03-14 19:34:26 +00:00
thorpej c24b9b414e Support Mac OS X host. 2003-03-13 02:17:58 +00:00
thorpej 104c77b807 The preprocessor in Apple's GCC 3.1 doesn't like being passed a macro
with empty arguments on each side of the comma; hack around this.
2003-03-12 23:00:40 +00:00
thorpej 834dd24299 Fix a couple of merge errors. 2003-03-12 03:46:11 +00:00
thorpej 9e72adcc79 Grok "z" (size_t) and "t" (ptrdiff_t) format length modifiers. 2003-03-11 21:39:34 +00:00
thorpej 53c077e6a5 Pull in a patch from GCC 3.3 that's been in my local tree for a long time:
(*mulsi3_compare0, *mulsi_compare0_scratch, *mulsi3addsi_compare0,
*mulsi3addsi_compare0_scratch): Predicate on !arm_is_xscale.

(mulhisi3, *mulhisi3addsi, *mulhidi3adddi): New patterns, predicated
on arm_is_xscale.
2003-03-06 20:58:20 +00:00
matt bd8300b07a Update ELF_MAXPAGESIZE to 64K to match elf32vax.sc. This to facilitate
page table page sharing.
2003-03-06 07:36:30 +00:00
thorpej d61bfb46b5 Make sure we output %progbits instead of @progbits. @ is a comment
character in ARM assembly.
2003-03-05 22:03:22 +00:00
thorpej 7c31b2a553 Fix a merge error which could result in the linker crashing
for static links.  Should fix toolchain/20589.
2003-03-05 21:34:27 +00:00
thorpej 925de95670 Remove the adjust-section-size-for-orphan code. That patch was rejected
by the FSF binutils maintainers, who instead suggested a different way
of addressing the problem.

(Besides, the size adjustment code was broken by the binutils update,
since about 1/2 of the changes got lost.)
2003-03-05 21:02:56 +00:00
thorpej 8844d7e3c0 In place_orphan, simplify the way we allow non-code read-only sections
to be merged with .text if no .rodata section is present.
2003-03-05 20:27:33 +00:00
thorpej a69c74895f Fix a merge error. 2003-03-05 16:55:48 +00:00
matt df4902d922 NetBSD doesn't support PS_REGNUM or anything >= MQ_REGNUM. 2003-03-04 21:12:32 +00:00
tsutsui f2ff066472 print_insn_shl() in gnu/dist/toolchain/opcodes/sh-dis.c has been merged
into print_insn_sh(), and print_insn_sh() now checks info->endian
so set it accordingly.

Based on diff from the Sourceware gdb cvsweb:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/sh-tdep.c.diff?r1=1.59&r2=1.60&cvsroot=src
2003-03-03 16:58:17 +00:00
tsutsui bc724094e3 Put back some lines removed on 2.13.2.1 merge.
(NetBSD/sh3 actually needs ENTRY=_start)
2003-03-03 16:46:16 +00:00
lukem c2d985356e Consistently comment out rules which attempt to rebuild .info from .texinfo,
(and associated targets for .dvi et al), as well as man pages from .pod,
using a prefix of `#  '.

This prevents a variety of build issues caused by situations such as
cvs checkouts which result in the .texinfo file being slightly newer
than the .info file, and the build process trying to unnecessarily
regenerate them, which will fail in a variety of circumstances
(build tools not available, read-only source, etc ...)

Once a better solution is found, we can switch to it.
For now, this improves things greatly and should reduce a lot of
support requests that would undoubtably appear otherwise...
2003-03-02 13:11:04 +00:00