* unify INCLUDE_DEFAULTS for native and cross compiler, as we now
configure a sysroot and gcc will prepend the sysroot folder when
needed
* update flags in INCLUDE_DEFAULTS according to "documentation" in
cppdefaults.h
* configure.ac (mpfr-dir): When using in-tree MPFR sources
allow for the fact that from release v3.1.0 of MPFR the source
files were moved into a src sub-directory.
* configure: Regenerate.
* cloog now uses CLOOG_LANGUAGE_C instead of LANGUAGE_C.
* graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
(set_cloog_options): Use it.
Turned out that our ARM gcc4 build used short-enum's, which made
our build fail (specifically, src/kits/tracker/ViewState.cpp:122).
Thanks to Landon Fuller and Oliver Tappe for helping me figure
the fix out!
* O_BINARY and O_TEXT were removed from Haiku way back in hrev38962
* This patch removes the fix that used to unset those flags
* Now gcc/intl/loadmsgcat.c is back to the GCC 4.6.3 stock file
Thanks diger for noticing the previously needed fix was still in place unintentionally
* -lssp_nonshared being passed at link time was resulting in multiple definition errors
* Apps such as Perl and CUPS would fail to build due to this
* This should alleviate the problem when -fstack-protector or -fstack-protector-all are used
Thanks to diger for letting me know of this issue and making me aware of a fix
* This update resolves the segfault/ICE in gcc/c-parser.c while building natively
* gcc/gengtype.c was already updated to GCC 4.6.3 version previously in btrev43031, so no change there
* gcc/libiberty/make-relative-prefix is the stock 4.6.3 version now, as the workaround for Haiku is no longer needed
* This update is otherwise the GCC patches for upgrading 4.6.2 to 4.6.3 core/g++ applied to our sources
* A build failure occurs as TARGET_64BIT is no longer a compile-time
constant in GCC.
* Made some changes so that generated code matches the i386 Haiku target when
generating 32-bit code, and follows the x86_64 ABI for 64-bit code.
* Added a comment stating that DEFAULT_PCC_STRUCT_RETURN needs to be defined
to follow the ABI for 32-bit code, it is ignored for 64-bit.
* Remove definition of __x86_64__, already defined by GCC's i386-c.c.
* Remove -z max-page-size from LINK_SPEC as it shouldn't be necessary: the
default page size is 2MB but this won't result in large binaries, it just
changes the alignment of the sections and would make it easier to map
binaries using large pages in the future.
Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
* arm: ASM_COMMENT_START is defined in arm/aout.h.
* i386 and x86_64: define ASM_COMMENT_START.
* others: ASM_COMMENT_START is defined in ${arch}/${arch}.h.
* define __STDC_ISO_10646__ to '201103' in order to indicate that
Haiku's wchar_t supports the Universal Character Set (UCS) defined
by the ISO 10646 standard published in March 2011.
* replace gmp.info-? in gcc/gmp/doc by gmp.info, since the latter
is the makeinfo target that will otherwise have to be generated
each time gcc4 is built
* add autom4te.cache to svn:ignore
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@43010 a95241bf-73f2-0310-859d-f6bbb57e9c96
indicating that haiku uses ISO_10646 in wchar_t (in our case: UTF-32)
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37775 a95241bf-73f2-0310-859d-f6bbb57e9c96
#5630 once the gcc optional packages have been rebuilt.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@36354 a95241bf-73f2-0310-859d-f6bbb57e9c96
of stage2 and stage3 compilers work on haiku (using objdump instead
of cmp, as suggested by Michael)
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@32475 a95241bf-73f2-0310-859d-f6bbb57e9c96
- add missing bits needed to use EABI by default (which should be == AAPCS == BPABI if I understood it right),
- include t-bpabi and bpabi.h,
- added an arm/t-haiku and arm/haiku.h to correct back some stuff after them as is done for linux,
- add multilib variants for softfloat (for xscale) and softfp (AAPCS),
- undo the LIBGCC_SPEC override for arm, it might have been the cause of multilib not working, not sure,
- make armv6 default target.
This allows building for both overo and verdex boards with some mods, though it emits calls to exception unwinding stuff that requires some more symbols (like abort), and should probably be fixed some other way.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@32237 a95241bf-73f2-0310-859d-f6bbb57e9c96
The cross tools build still needs the arm specific headers in Haiku to complete (bug #3763)
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@30652 a95241bf-73f2-0310-859d-f6bbb57e9c96
include list as in r28324. I really thought I updated this based on this patch.
* Added /boot/home/config/include to the include list as well, not sure why this
wasn't present before. If there's a specific reason against it please tell.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29489 a95241bf-73f2-0310-859d-f6bbb57e9c96
* Remove the part of the link specs that automatically names the output after
the last source file. Therefore we'll produce a.out for now. Sadly the %b
variable does also evaluate to libraries in GCC4 which makes it unusable for
this case. A "gcc file.cpp -lstdc++" would for example produce an output
named libstdc++...
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29297 a95241bf-73f2-0310-859d-f6bbb57e9c96
compile it's enough the set the NATIVE_SYSTEM_HEADER_DIR, but for cross
compiling this is needed. Sorry for that, should've be more cautious when
updating.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29078 a95241bf-73f2-0310-859d-f6bbb57e9c96
* Solved conflicts with the libtool related files by simply using the
vendor versions. IIRC the haiku related changes to libtool and
autoconf were relevant only for the binutils.
* Solved {libstdc++-v3,libmudflap}/configure conflicts by re-running
autoconf for these directories.
I'm already working on fixing the Haiku build, so please don't do the
same.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@20318 a95241bf-73f2-0310-859d-f6bbb57e9c96
This fixes one fo the problems of building gcc4 under Zeta.
See http://gcc.gnu.org/ml/gcc/2003-10/msg01501.html
If you want to try you'll have to also remove the -lm in gcc/gcc/Makefile.in or symlink it to libroot.so.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@20115 a95241bf-73f2-0310-859d-f6bbb57e9c96
The i386-pc-haiku no longer uses the BeOS BFD target emulation, but
its own. A few things are shared for both *-*-haiku machines now.
The PowerPC Haiku binutils and gcc build, but I wouldn't expect them
to really produce usable output yet. We'll see...
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15381 a95241bf-73f2-0310-859d-f6bbb57e9c96
structs and unions in C as well as in C++ (application of this patch has
been sugggested by execom through BeBits-talkback).
This mail-thread explains the problem & solution:
http://gcc.gnu.org/ml/gcc-bugs/1999-08n/msg00914.html
These are the patches that have been applied:
gcc-2.95-anon-struct-union.diff
gcc-2.95-c++-tidy.diff
gcc-2.95-c++-anon-struct.diff
gcc-2.95-c++-anon-struct2.diff
which can all be found here:
ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/gcc-2.95/patches/
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@11421 a95241bf-73f2-0310-859d-f6bbb57e9c96
cross-compiling with BeOS target works.
- tweaked build-procedure to allow for proper generation of a i586-pc-beos
cross-compiler on LINUX.
- added documentation for creation of cross-compiler.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@11255 a95241bf-73f2-0310-859d-f6bbb57e9c96
we now link it always (against shared libraries, too). This fixes a
problem when building libSDL.so (and probably other libs that contain
code to start/stop BApplications).
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10350 a95241bf-73f2-0310-859d-f6bbb57e9c96
for inline assembly that requires a lot of register operands. Now these
registers are only spilled if it is safe to do so (if -fno-pic or
-fomit-frame-pointer has been given).
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10349 a95241bf-73f2-0310-859d-f6bbb57e9c96
inlining (compatibility functions were missing from libstdc++.r4.so in that
case).
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9835 a95241bf-73f2-0310-859d-f6bbb57e9c96
generation of debug-info.
This is highly experimental and has a good chance of being removed
at a later stage.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9621 a95241bf-73f2-0310-859d-f6bbb57e9c96
that is contained inside the BE-libs.
We generate a new one and use this instead
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9618 a95241bf-73f2-0310-859d-f6bbb57e9c96
give proper error messages for invalid asm instead of ICEing (at least in
non-optimizing mode).
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9611 a95241bf-73f2-0310-859d-f6bbb57e9c96
Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
* loop.c (check_dbra_loop): Make change from July 17, 2000 work
on targets which need more than one insn for a compare/cbranch
operation.
* gcc-c-torture/execute/20000731-2.c: New test.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2001-03-29 Jakub Jelinek <jakub@redhat.com>
* fold-const.c (fold): Before optimizing unsigned comparison with
0x7fffffffU, make sure arg0 is integral type.
* gcc.c-torture/execute/20010329-1.c: New test.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9608 a95241bf-73f2-0310-859d-f6bbb57e9c96
Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* expr.c (expand_expr): Don't blow up if type is ERROR_MARK.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2000-06-12 Jakub Jelinek <jakub@redhat.com>
* decl.c (pushdecl): Set DECL_ORIGINAL_TYPE of a duplicate TYPE_DECL
again after calling duplicate_decls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2000-11-23 Nathan Sidwell <nathan@codesourcery.com>
* pt.c (lookup_template_class): Simplify loop exit constructs.
Cope when there is no partial instantiation of a template
template member.
* g++.old-deja/g++.pt/instantiate9.C: New test.
2001-06-06 Jakub Jelinek <jakub@redhat.com>
* g++.old-deja/g++.pt/instantiate9a.C: New test.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2001-05-07 Jakub Jelinek <jakub@redhat.com>
* decl2.c (import_export_decl): Emit referenced inline methods even
in the unit which just imports the class.
* g++.old-deja/g++.other/inline21.C: New test.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2001-03-16 Jakub Jelinek <jakub@redhat.com>
* loop.c (combine_movables): Restrict combinations of constants with
different modes so that we don't introduce SUBREGs into memory
addresses.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2001-03-28 Bernd Schmidt <bernds@redhat.com>
* jump.c (jump_optimize_1): Move call to delete_barrier_successors to
a point where JUMP_LABELS and LABEL_NUSES are set up properly.
(delete_barrier_successors): If deleting a table jump, delete the case
vector as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9594 a95241bf-73f2-0310-859d-f6bbb57e9c96
fix bug with error-file not being noted in one case.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2001-03-28 Bernd Schmidt <bernds@redhat.com>
* flow.c (propagate_block): When trying to delete a case vector, cope
if its label has LABEL_PRESERVE_P set.
* varasm.c (force_const_mem): If we have a label, set LABEL_PRESERVE_P
so it won't get deleted.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9591 a95241bf-73f2-0310-859d-f6bbb57e9c96
from 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
* final.c (profile_function): Do not emit profile counters in
the data section, if NO_PROFILE_COUNTERS is defined.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9590 a95241bf-73f2-0310-859d-f6bbb57e9c96
Wed Aug 25 15:27:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
* combine.c (nonzero_bits) : Allow single-ly set registers to be
anywere in the function only if they are pseudos and set before
being used (not live at the start of the function).
(num_sign_bit_copies) : Same.
(get_last_value_validate) : Same.
(get_last_value) : Same.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9588 a95241bf-73f2-0310-859d-f6bbb57e9c96
1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* c-lex.c (yylex): With -Wtraditional, when the ANSI type of an
integer constant does not match the traditional type, limit the
warnings to cases where the base of the type is ten.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9587 a95241bf-73f2-0310-859d-f6bbb57e9c96
This patch fixes handling of weak symbols (see
http://gcc.gnu.org/ml/gcc-bugs/2001-03/msg00406.html).
2001-03-13 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* rtl.h (SYMBOL_REF_WEAK): New macro.
* varasm.c (make_decl_rtl): Set SYMBOL_REF_WEAK for weak symbols.
* rtlanal.c (rtx_addr_can_trap_p): A weak SYMBOL_REF can trap.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2001-06-19 Bernd Schmidt <bernds@redhat.com>
* regmove.c (optimize_reg_copy_3): Do nothing if previous insn
carries a REG_EQUIV note. If it carries REG_EQUAL, delete the
note.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9584 a95241bf-73f2-0310-859d-f6bbb57e9c96
save/restore warnings during the use of __extension__
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9583 a95241bf-73f2-0310-859d-f6bbb57e9c96
fix a bug with double-colon not being accepted when it should be
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2001-08-23 Kurt Garloff <kurt@garloff.de>
* integrate.c (function_cannot_inline_p): Reduce max size for
inlining from 10000 to 2000, double this value (i.e. 4000) for
leaf functions. Fine tune INTEGRATE_THRESHOLD for -Os.
* toplev.c (rest_of_compilation): Set current_function_is_leaf
for function_cannot_inline_p
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9581 a95241bf-73f2-0310-859d-f6bbb57e9c96