Commit Graph

372 Commits

Author SHA1 Message Date
cbiere 4b14bb6309 Changed error message of ENOPROTOOPT to "Protocol option not available". 2006-10-31 00:38:06 +00:00
apb da8e22116c Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Use ${CONFIG_SHELL:-/bin/sh} instead of just /bin/sh when creating
  temporary shell scripts.
2006-09-29 20:11:07 +00:00
apb cb575a16ce Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Add CONFIG_SHELL=$(SHELL) to the environment when invoking genmultilib.
  Due to substitutions made by associated configure scripts, the make
  variable $(SHELL) will actually refer to the environment variable
  ${CONFIG_SHELL}.
2006-09-29 20:10:01 +00:00
matt 101216a5b7 Back mips N64 changes made to wrong toolchain. 2006-08-26 14:49:56 +00:00
matt 9e051a8002 Add enough configury glue so that src/tools can build a N64 mips toolchain. 2006-08-25 23:35:04 +00:00
hubertf b6e86c6a66 bug_report_url: s/netbsd/NetBSD/
OK'd by mrg@
2006-07-12 13:30:17 +00:00
dogcow 444e690921 Remove various dotfiles that wandered their way in. 2006-06-18 08:59:39 +00:00
skrll dc4d6d7016 Backport the fix(es) for bootstrap/14992.
--as-needed can only be used with libgcc on Linux so update configure to
only test for --as-needed on Linux.

I've manually added the change to configure until I get the right set of
autofoo tools.
2006-06-05 12:40:07 +00:00
skrll f93fb46540 Merge gcc 3.3.6 2006-06-05 12:25:58 +00:00
skrll 549c70ea2b Import gcc 3.3.6.
144 gcc bugs were fixed between 3.3.3 and 3.3.6.
2006-06-05 10:59:57 +00:00
martin d0f2507f92 Sync with r1.5 of configure.in - somehow I seem to have managed to not
commit the equivalent change to this file last time:
"with_cpu" is a property of the target. - reset it for each config.gcc run.
2006-02-27 20:52:21 +00:00
martin eaaec6f3bf As Richard Earnshaw put it: "with_cpu is a property of the target."
Reset it to the default (command line dependend) before each turn
of "config.gcc", so each invocation gets a clean state and only the
changes from the last round persist.

This fixes the build of a sparc toolchain on a sparc64 host.
2005-11-18 08:57:04 +00:00
dsl b9a6294f9c When compiling with -Os put all strings into .rodata.str1.1 (ie byte aligned)
rather than putting those longer than 30 chars into .rodata.str1.32.
Apparantly gcc 3.4.4 has this change...
In spite of everything being compressed, this saves over 13k in the boot
floppies.
2005-11-05 18:29:53 +00:00
martin b09509e102 Switch gcc's default for sparc64 from cpu=v9 to cpu=ultrasparc. 2005-10-29 16:40:24 +00:00
skrll 784c9344e8 Initial pass at an in-tree ia64 toolchain. From PR 29141 with some fixes
from me.
2005-08-17 07:13:32 +00:00
skrll 313049f061 Allow AS and OBJDUMP to override the detected assembler and objdump. 2005-05-20 07:08:07 +00:00
christos 7174de81d3 PR/29832: J.T. Conklin: libstdc++ missing std::wstring support
This wonderful patch together with yesterdays wcsftime addition, makes
us able to use wide strings in c++
2005-03-30 19:17:45 +00:00
briggs 851c74e4ad Override SWITCH_TAKES_ARG() definition from sysv4.h to include
NetBSD options.  Allows powerpc-*-netbsd* to accept "-R <arg>"
when <arg> doesn't exist in the host environment (as all other
NetBSD/ELF platforms do).  As with MIPS and as before, accept
-G NUM, too.
The more portable way to pass arguments to the linker is, of course,
still -Wl,-R,/some/path (note that there are two commas).
2005-03-08 15:36:10 +00:00
matt 67a256629f Make trampolines work on PowerPC. 2004-12-09 23:23:23 +00:00
jwise 48f45412af As discussed on tech-toolchain@netbsd.org, make cpp refuse to attempt to
parse a #include'd file which does not pass S_ISREG() if the environment variable
CPP_RESTRICTED is set.

This is primarily intended for use by programs such as calendar(1) which
use cpp to parse untrusted user files -- without this change (and the corresponding
change to calendar(1)), any user can cause a denial-of-service for the daily
calendar -a run by #include'ing a named pipe.

Many thanks to christos@netbsd for his help in polishing this.
2004-11-30 01:51:13 +00:00
rearnsha d2d54a40b5 Backport changes from the FSF development tree that ensure that code
build for ARM architecture 5 or later is always interworking clean.
2004-08-21 10:48:54 +00:00
dbj 3a92b5a162 fix merge botch. cpp.1 now describes gcc-3.3.3 instead of gcc-3.3.2 2004-08-02 17:43:23 +00:00
dbj d8a2c2edb9 fix merge botch. gcov.1 now describes gcc-3.3.3 instead of gcc-3.3.2 2004-08-02 17:39:51 +00:00
dbj 690507819c fix merge conflict botch that left gcc man page out of date.
now gcc.1 describes gcc-3.3.3 instead of gcc-3.3.2
2004-08-02 17:32:55 +00:00
skrll bd13c00f05 Pull in libgcc_pic in the -shared-libgcc case as well for the millicode
platforms.
2004-07-14 07:18:35 +00:00
skrll b5d3cf6021 Complete the fix for PR 22452 by doing the same thing as stock gcc. That
is, use the symbol versioning script to remove certain symbols from the
dynamic symbol table.

Do the symbol versioning thing for all platforms.

Whilest our ld.elf_so(1) doesn't understand symbol versioning this
doesn't matter as all the exposed symbols appear unversioned until symbol
versioning support is added (if ever).
2004-07-05 12:27:41 +00:00
drochner 18bf932783 don't undefine some macros which are only redefined if _GLIBCPP_USE_C99
is defined - this causes that nothing usable is left unless we implement
enough of C99
(there is a change in gcc-3.4 which is similar in spirit)
should fix PR lib/25930 by Dan McMahill
(I've compiled the whole KDE with this modification successfully)
2004-07-01 21:25:23 +00:00
jmc af9bab3f46 Typo in return type. From PR#25933 2004-06-20 22:30:04 +00:00
mrg aa44da4009 fix a problem with mips alignment. from ian@wasabisystems.com.
Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque at act-europe dot fr>

	* emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
	use of default attributes to agree MEM_ALIGN macro.
2004-06-18 09:30:45 +00:00
uwe 1161112f12 Fix for gcc target/13250 to correctly compile rotations, e.g. in
sha256 code in pkgtools/digest.

Ok by Matthew Green <mrg>.

2004-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>

	PR target/13250
	* config/sh/sh.md (rotlsi3): Use emit_move_insn.
2004-05-29 00:49:15 +00:00
mrg 86a3ebdbd0 fix merge cornflakes with GCC 3.3.3 (final) 2004-05-27 14:48:52 +00:00
drochner 1e0409af82 generate .stabs per default, should fix PR toolchain/25094 2004-05-26 17:12:20 +00:00
abs 199212f421 Apply gcc PR target/14302 to fix ARM compiler issues triggered by at
least glib, glib2, and pkgconfig.

    2004-02-26  Richard Earnshaw  <rearnsha@arm.com>
	   Daniel Jacobowitz  <drow@mvista.com>

	   PR target/14302
	   * arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS): Don't check the mode
	   size for minipool references.

Many thanks to Richard Earnshaw for close to instant copy of the gcc patch.
Bump gcc version to "3.3.3 (NetBSD nb3 20040520)"
2004-05-19 23:44:18 +00:00
mrg ffae1c8494 bump version for SPARC fixes (from kjk via martin) 2004-05-03 00:32:02 +00:00
martin 37f4d4c4d6 Bring in a change from gcc-current to fix double -> unsigned long
conversions and generally avoid 128 bit (emulated) floats in between.
This fixes heaps of problems in perl >= 5.7.1, where integer values
and unsigned values are separated by the interpreter.

Thu Feb 26 18:40:40 2004 UTC by ebotcazou:
	* config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
	(sparc_emit_fixunsdi): New prototype.
	* config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
	(sparc_emit_fixunsdi): New function.
	* config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
	operand 1.  Pass SFmode to sparc_emit_floatunsdi.
	(floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
	to sparc_emit_floatunsdi.
	(fixuns_truncsfdi2): New expander.
	(fixuns_truncdfdi2): Likewise.
2004-05-02 11:00:06 +00:00
skrll 903a6d7af8 We're using the Linux ELF ABI on NetBSD. Make sure $$dyncall knows this. 2004-04-30 08:13:08 +00:00
mrg 12448037ad apply the changes in PR#22489.
2003-07-10  Kazu Hirata	 <kazu@cs.umass.edu>

	PR c/11449
	* fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
	of HOST_WIDE_INT.
	(fold_single_bit_test): If sign_bit_p() fails, assume that the
	bit being tested is not a sign bit.

2003-07-04  Jeff Law  <law@redhat.com>

	PR c/11428
	* expr.c (do_store_flag): Pass in the correct result type
	when calling fold_single_bit_test.
	* fold-const.c (fold_single_bit_test): Use result_type for the
	result when folding a sign bit test.

2003-07-02  Jeff Law  <law@redhat.com>

	* expr.c (do_store_flag): Remove special case folding for
	single bit tests.  Instead call back into the commonized folder
	routine.
	* fold-const.c (fold_single_bit_test): New function, mostly
	extracted from do_store_flag, with an additional case extracted
	from fold.
	(fold): Call fold_single_bit_test appropriately.
	* tree.h (fold_single_bit_test): Prototype.
2004-04-05 14:32:56 +00:00
martin 8998b47e17 Pull in sparc64 fix from gcc cvs:
Forbid mode changes from SImode for lower FP regs if ARCH64.
Fixes PR 23380 and PR 23124.
2004-03-22 22:56:09 +00:00
mrg f433e33bb4 also define __sparcv9. noted by heas@ 2004-03-21 01:22:12 +00:00
skrll 824aa68c5a Add __PIC__ and __pic__ to TARGET_OS_CPP_BUILTINS for all NetBSD platforms
and object formats.

This fixes a problem in libgcc_s.so on powerpc pointed out to me by
Aymeric Vincent in private email.

OK'd by Jason.
2004-03-03 20:09:51 +00:00
mrg eaa3c8ce1b backout part of rev1.6: don't set machine_suffix and just_machine_suffix
in NETBSD_NATIVE mode.  from enami.
2004-03-01 07:36:59 +00:00
mrg d9c305d49d merge gcc 3.3.3 cornflakes 2004-03-01 07:27:18 +00:00
mrg 18e7b0d6a5 initial import of GCC 3.3.3, which fixes a few more bugs from the prior
3.3.3-pre snapshot we were using.

visit http://gcc.gnu.org/gcc-3.3/changes.html#3.3.3 for more details.
2004-03-01 03:43:04 +00:00
mrg ec14d423fc initial import of GCC 3.3.3, which fixes a few more bugs from the prior
3.3.3-pre snapshot we were using.

visit http://gcc.gnu.org/gcc-3.3/changes.html#3.3.3 for more details.
2004-03-01 03:32:51 +00:00
skrll b263dbdd73 Be more gcc like in the way we deal with libgcc so that sh3/hppa millicode
and exception handling have a chance of working properly.

        - creates libgcc, libgcc_eh and libgcc_s

        - updates LIBGCC_SPEC to use them appropriately.

          There's a hack in here at the moment with respect to libgcc_so in that it
          is preferable to link against libgcc_so will only when -shared-libgcc is
          specified (the c++ frontend does this automatically.) Configurations where
          LINK_EH_SPEC is defined already do this. The gcc configuration for
          NetBSD/alpha and another NetBSD platform (I forget which) actually define
          LINK_EH_SPEC probably by accident rather than design.

        - updates share/mk to use the compiler's knowledge of what needs linking into
          libraries and executables. This removes an hppa hack.

        - updates the sets for the newly created libgcc* files.

	- support for linking against the _pg version of libgcc has been removed.
2004-02-15 19:52:27 +00:00
skrll f6f3dd9b5f Pass -Bsymbolic down to the linker when -symbolic is used.
OK'd by Jason a while ago.
2004-02-12 18:51:41 +00:00
mrg cf10ab1d3c minor NETBSD_NATIVE adjustments needed for GCC3.3.3. 2004-02-11 16:01:48 +00:00
mrg bce4dd7994 re-add generated files our builds need.
(not sure why these are not in the 20040209 tarball.)
2004-02-10 13:41:16 +00:00
mrg 5722a41a7b merge cornflakes for gcc 3.3.2-pre20040209. 2004-02-10 12:56:21 +00:00
mrg ca85c986ec import GCC 3.3.3-pre20040209. this fixes dozens of bugs from the
GCC database, several logged by netbsd users/developers.  total
count in various area:
	3 - Bootstrap failures and issues
	19 - Internal compiler errors (multi-platform)
	13 - C and optimization bugs
	42 - C++ compiler and library
	1 - Java compiler and library
	1 - Objective-C compiler and library
	3 - Fortran compiler and library
	5 - x86-specific (Intel/AMD)
	4 - PowerPC-specific
	3 - SPARC-specific
	1 - ARM-specific
	4 - ia64-specific
	3 - Alpha-specific
	2 - HPPA-specific
	1 - S390-specific
	6 - SH-specific
	5 - Other embedded target specific
	1 - GNU HURD-specific
	1 - Tru64 Unix specific
	2 - AIX-specific
	1 - IRIX-specific
	1 - Solaris-specific
	2 - Testsuite problems (compiler is not affected)
	1 - Miscellaneous

total:  125
2004-02-10 12:15:15 +00:00