Commit Graph

853 Commits

Author SHA1 Message Date
gdt
539b747f08 Use -f with cp, for 444 sources. 2014-03-13 16:19:24 +00:00
gdt
4ebed9fad8 Use cp -pf rather than cp -p.
Otherwise, those with sources that are 444 encounter failures.
2014-03-13 16:14:27 +00:00
mrg
8075f4b1c8 updaet a little more:
- coldfire release works, but there are no kernels yet
- ia64 port gets much further now
- i386 port runs
2014-03-10 19:55:51 +00:00
mrg
08ea4544e2 update a bit. delete ports that have switched to GCC 4.8. with this
we still need significant work on these ports:

	- mips*
	- powerpc
	- sh*
	- vax
	- m68k*

the x86 platforms are probably ready to switch, but i'm not in a good
position to test them.  these platforms are probably ready to switch,
as they're still mostly in bringup mode anyway:

	- powerpc64
	- coldfire
	- ia64
2014-03-10 19:06:35 +00:00
mrg
80350e8785 pass $LD and $AS to the auto-build.h generation, so its configure
gets the right answers for many things.  in particular, it enables
HAVE_AS_TLS which the sparc port needs for TARGET_TLS to work.
2014-03-10 18:57:35 +00:00
nakayama
b9eda690b9 Regenerate for sparc's want64=true change.
Native toolchain fix for PR toolchain/48630.
2014-03-10 12:02:36 +00:00
nakayama
8813083ebc Enable 64-bit integer handling for gas even on 32-bit host since
sparc64 kernel now uses 64-bit constant with %hh operator.

Fix for PR toolchain/48630.
2014-03-10 12:01:19 +00:00
mrg
3172b861f6 also look at netbsd.opt and netbsd-elf.opt. 2014-03-10 07:32:18 +00:00
mrg
cee6092acd make elf{32,64}-ia64.c depend upon the right parent. 2014-03-10 07:28:33 +00:00
mrg
5de22a2bb3 mknative-binutils for ia64. 2014-03-10 05:20:48 +00:00
mrg
855874a0df more ia64 support:
# We have to weed out any existing func.S file that may exist
# from the list of files we create.
2014-03-09 23:23:09 +00:00
mrg
d06f941d3e mknative-gcc for GCC 4.8 and ia64. 2014-03-09 21:02:44 +00:00
mrg
eeffa0cfc9 update some status:
- ppc port exec stack is fixed
- coldfire, earmv4, ppc64, sparc* updates
2014-03-09 21:01:14 +00:00
mrg
2c740b20c0 find libgcc sources for GCC 4.8. 2014-03-09 20:59:14 +00:00
martin
09a506f4af Fix variable name, so BUGURL gets properly defined 2014-03-09 17:06:30 +00:00
mrg
f1823084d1 disable TRANSFER_FROM_TRAMPOLINE for now. 2014-03-09 10:18:30 +00:00
mrg
297c460378 add ia64-netbsd support. 2014-03-09 05:51:26 +00:00
martin
7077fb4b4a Kill the "throw()" on a forward declaration for posix_memalign (it does
not match our base declaration and may cause warnings).
Ok: joerg
2014-03-08 19:15:32 +00:00
mrg
aca3e771de create a fake libgcc_tm.h. 2014-03-08 02:02:22 +00:00
mrg
07c916cf9f crtstuff.c moved into libgcc. 2014-03-08 01:58:11 +00:00
skrll
62a29c0742 No need to provide a Scrt0.o for PIE as crt0.o is PIC 2014-03-07 21:15:49 +00:00
matt
04aa645771 Use new elf32ppc_nbsd emulation. 2014-03-07 05:49:53 +00:00
matt
7412f6d60a Fix MULTILIB variables to match reality. 2014-03-07 04:15:34 +00:00
matt
7e9f53e082 WCHAR_SIZE is always int on NetBSD 2014-03-07 04:14:30 +00:00
matt
b24a2a16b7 Add support for setting LIB_PATH for powerpc*-netbsd* on powerpc64*-netbsd* 2014-03-07 04:13:46 +00:00
skrll
851c716c49 Re-run mknative for hppa space register convention change. twice! 2014-03-06 19:07:13 +00:00
skrll
1b5cff8f1d Move to a flat space register convention. %sr[4-7] are all now the space
number allocated to the process.  gcc produces (slightly) better code
with this convention.

Retain backwards compatiblity.

Welcome to 6.99.36
2014-03-06 19:02:58 +00:00
matt
b2757928d7 If marking a shared image TEXTREL, print out a warning about the section
that caused it.
2014-03-06 09:33:14 +00:00
matt
d14b4899e6 Don't include corelow.o and solib.o the {powerpc,sh3}*-netbsd cases since
those are provided by Makefile.in.  This allows MKCROSSGDB to build again
for powerpc.
2014-03-05 23:08:58 +00:00
tron
0e150de4df Remove automatically generated file "libgcc-std.ver" while cleaning. 2014-03-05 21:38:59 +00:00
tron
64f116ed07 Get GCC 4.8 closer to build with "USE_SSP" set to "yes". 2014-03-05 21:37:02 +00:00
tron
3c4e02c654 Fix build with "USE_SSP" set to "yes".
Problem reported by B Harder on "current-users" mailing list.
2014-03-05 16:18:41 +00:00
mrg
cbd3ef8c8a mknative-gcc for GCC 4.8 and coldfire. 2014-03-05 00:14:50 +00:00
mrg
79269683ba coldfire does not want m68k/t-floatlib.
enable powerpc*-netbsd* -- ie, match ppc64.
2014-03-05 00:13:41 +00:00
mrg
bc1bc906ca partial mknative-gcc for gcc 4.8 and ppc64. 2014-03-04 21:07:38 +00:00
mrg
bf58d1e73a forgotten mknative-gcc 4.8 for mips64el. 2014-03-04 13:47:32 +00:00
mrg
354055da20 bump local pkg version. 2014-03-04 09:16:04 +00:00
mrg
fe6ccc8ae5 don't look for po/Makefile. 2014-03-04 09:12:09 +00:00
mrg
b5a718ea7b mknative-gcc 4.8 for most platforms. missing: ppc64, m68010, ia64, coldfire. 2014-03-04 08:56:52 +00:00
mrg
c9d652c862 include dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h netbsd.h
and netbsd-elf.h on powerpc64-netbsd.

port netbsd64.h forward from GCC changes.  (it's a pity that
a vast portion of linux64.h isn't in some common header that
netbsd64.h and freebsd64.h could also used.  there's 100s of
lines of copypasta here, oh well.)
2014-03-04 08:43:12 +00:00
mrg
5047c1c416 apply netbsd not rebuilding to mips-tables.opt; fixes r/o src builds. 2014-03-03 21:01:40 +00:00
mrg
e76a6f196c merge GCC r208254. 2014-03-03 03:28:55 +00:00
mrg
3002e98e60 import GCC 4.8.3 at r208254. these GCC PRs are fixed since r206687:
c++/37140 c++/41174 c++/54652 c++/55800 c++/57043 c++/57524 c++/57899
c++/58466 c++/58504 c++/58606 c++/58632 c++/58639 c++/58672 c++/58812
c++/58814 c++/58835 c++/58837 c++/58845 c++/58873 c++/58965 c++/59097
c++/59224 c++/59646 c++/59838 c++/59989 c++/60046 c++/60108 c++/60146
c++/60182 c++/60187 c++/60216 c++/60219 c++/60248 c++/60272 c++/60274
c/59891 driver/60233 ipa/55260 libgcc/60166 middle-end/58809 middle-end/59860
middle-end/60004 middle-end/60221 middle-end/60291 objc/56870 other/56653
rtl-optimization/57422 rtl-optimization/60116 target/55426 target/57896
target/58710 target/59142 target/59379 target/59462 target/59695 target/59718
target/59777 target/59794 target/59826 target/59880 target/60017 target/60193
target/60207 tree-optimization/59903 tree-optimization/60115
tree-optimization/60183 tree-optimization/60276
2014-03-03 02:42:38 +00:00
mrg
0788cf0c43 - set DIST based upon EXTERNAL_GCC_SUBDIR
- set GNUHOSTDIST
- move gthr-default.h to BUILDINCS, and add glue to add it to COPYHEADERS
- adjust COPYHEADERS to cope with files outside of dist/libstdc++-v3/.
2014-03-02 04:31:53 +00:00
mrg
aebfe59c86 rearrange the code to copy renamed files to have more explicit paths. 2014-03-02 03:47:57 +00:00
mrg
6fed287581 delete files we know the source of and don't need to collect with
mknative anymore.
2014-03-02 03:16:20 +00:00
mrg
edba7f6736 add a caveat about a construct in this makefile:
# XXX these rules don't always work if the ${.TARGET} ends up being the
#     copy in ../../arch/$arch/ and that version is older.  (but will
#     only break read-only source builds.)
2014-03-01 22:49:43 +00:00
mrg
f2a2d440c1 revert the previous; it doesn't work. 2014-03-01 21:03:01 +00:00
mrg
63a98c9a0a convert BUILDSYMLINKS to INCSNAME_*. one less step to take. 2014-03-01 10:28:02 +00:00
mrg
49d8c9ecf4 merge GCC 4.8 build. 2014-03-01 10:00:31 +00:00
mrg
6ae4e21064 merge gcc 4.8.2 r206687 (part 3). 2014-03-01 09:44:50 +00:00
mrg
19d950f76d merge gcc 4.8.2 r206687 (part 3). 2014-03-01 09:26:00 +00:00
mrg
d77920ccb7 merge gcc 4.8.2 r206687 (part 2). 2014-03-01 09:04:12 +00:00
mrg
23da6d05af merge gcc 4.8.2 r206687 (part 1). 2014-03-01 08:58:28 +00:00
mrg
48fb7bfab7 import GCC 4.8 branch at r206687.
highlights from: http://gcc.gnu.org/gcc-4.6/changes.html

   GCC now has stricter checks for invalid command-line options
   New -Wunused-but-set-variable and -Wunused-but-set-parameter
      warnings
   Many platforms have been obsoleted
   Link-time optimization improvements
   A new switch -fstack-usage has been added
   A new function attribute leaf was introduced
   A new warning, enabled by -Wdouble-promotion
   Support for selectively enabling and disabling warnings via
      #pragma GCC diagnostic has been added
   There is now experimental support for some features from the
      upcoming C1X revision of the ISO C standard
   Improved experimental support for the upcoming C++0x ISO C++
      standard
   G++ now issues clearer diagnostics in several cases
   Updates for ARM, x86, MIPS, PPC/PPC64, SPARC
   Darwin, FreeBSD, Solaris 2, MinGW and Cygwin now all support
      __float128 on 32-bit and 64-bit x86 targets. [*1]

highlights from: http://gcc.gnu.org/gcc-4.7/changes.html

   The -fconserve-space flag has been deprecated
   Support for a new parameter --param case-values-threshold=n
      was added
   Interprocedural and Link-time optimization improvements
   A new built-in, __builtin_assume_aligned, has been added
   A new warning option -Wunused-local-typedefs was added
   A new experimental command-line option -ftrack-macro-expansion
      was added
   Support for atomic operations specifying the C++11/C11 memory
      model has been added
   There is support for some more features from the C11 revision
      of the ISO C standard
   Improved experimental support for the new ISO C++ standard,
      C++11
   Updates for ARM, x86, MIPS, PPC/PPC64, SH, SPARC, TILE*
   A new option (-grecord-gcc-switches) was added

highlights from: http://gcc.gnu.org/gcc-4.8/changes.html

   GCC now uses C++ as its implementation language.  This means
      that to build GCC from sources, you will need a C++
      compiler that understands C++ 2003
   DWARF4 is now the default when generating DWARF debug
      information
   A new general optimization level, -Og, has been introduced
   A new option -ftree-partial-pre was added
   The option -fconserve-space has been removed
   The command-line options -fipa-struct-reorg and
      -fipa-matrix-reorg have been removed
   Interprocedural and Link-time optimization improvements
   AddressSanitizer, a fast memory error detector, has been
      added  [*2]
   A new -Wsizeof-pointer-memaccess warning has been added
   G++ now supports a -std=c++1y option for experimentation
      with features proposed for the next revision of the
      standard, expected around 2014
   Improved experimental support for the new ISO C++ standard,
      C++11
   A new port has been added to support AArch64
   Updates for ARM, x86, MIPS, PPC/PPC64, SH, SPARC, TILE*


[*1] we should support this too!
[*2] we should look into this.
     https://code.google.com/p/address-sanitizer/
2014-03-01 08:41:18 +00:00
mrg
6095fc3e45 re-import GCC 4.5* with latest fixes to build as gcc.old.
should be the last time we need to do this.
2014-02-27 09:11:34 +00:00
mrg
da20665cd1 fix some paths. 2014-02-27 09:08:49 +00:00
martin
2475eadfda Explicitly remove .note.netbsd.mcmodel sections (eroneously generated
on sparc64 during intermediate linking)
2014-02-27 09:05:08 +00:00
mrg
1d17fc7d57 fix another dated DIST. 2014-02-27 07:35:04 +00:00
mrg
ab9e33f305 delete 'difz' as well, in case i've left it.
XXX: consider running 'cvs up -dPA -I\! -I.CVS -ICVS' first?
2014-02-26 22:29:40 +00:00
mrg
076dfc8240 oops, avoid re-setting DIST to something that might be wrong now. 2014-02-26 22:27:10 +00:00
mrg
9fa1c2f8d5 oops, did not mean to commit this. 2014-02-26 22:04:17 +00:00
mrg
8c809a251b fix a typo (from cegger)
fix the date call (from tn)
2014-02-26 21:18:14 +00:00
christos
8bd2f7ae4f powerpc64 support 2014-02-26 15:34:23 +00:00
mrg
6acb51a6d4 update gcc.old from GCC 4.5 versions that build with EXTERNAL_GCC_SUBDIR,
should be identicaly for the 'dist' subdir.
2014-02-26 10:56:10 +00:00
mrg
7c65b26638 script to copy gcc to gcc.old, ready for importing. 2014-02-26 10:50:23 +00:00
mrg
afa90f2bf5 prepare for moving GCC 4.5 into gcc.old:
- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
  because it arranges for ../Makefile.inc to be included earlier, and
  don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
  valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
    is kind of sketchy, it would be great if this was fixed.
2014-02-26 09:54:32 +00:00
christos
08ee8ae311 regen powerpc64 2014-02-26 03:11:37 +00:00
mrg
07ece4eabb import the -current GCC 4.5 sources as gcc.old in preparation for
upgrading the normal GCC to 4.8.

this tree has had ChangeLog entries removed, as well as all the
other components we delete, and "only" weighs in around 140MB now.
2014-02-25 18:38:34 +00:00
mrg
b46213d689 add */po and itm/testsuite. 2014-02-23 05:46:28 +00:00
mrg
4a051ef7c3 remove the testsuite and po subdirectories.
27292 files are removed in this series of commits.
2014-02-23 02:05:49 +00:00
mrg
bc30b52fcc don't look in libiberty/testsuite for anything, it's going away. 2014-02-23 01:59:40 +00:00
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