gcc/cygwin-gcc.git
15 years agoThe following backport from mainline fixes PCH on i686-mingw32.csl/heads/gxxpro-3_4-branchcsl/tags/sourcerygxx/3.4.4-32
Carlos O'Donell [Thu, 14 Dec 2006 20:31:09 +0000 (14 20:31 +0000)]
The following backport from mainline fixes PCH on i686-mingw32.

The following backport from mainline fixes PCH on i686-mingw32. It
implements PCH on i686-mingw32 using CreateFileMapping and
MapViewOfFileEX.

There were 3 patches in this timeframe, one from Ian Taylor, one from
Richard Henderson, and one from Danny Smith. I am backporting the two
simpler changes. Richard's patch rewrites much of the PCH handling and
it is too risky. Instead I have cherry-picked the important pieces of
Richards patch which allow Danny's patch to work correctly.

The hook HOST_HOOKS_GT_PCH_USE_ADDRESS now returns 1, 0, or -1 on
successfully mapped file, did nothing, and failed.

On mailine a return of 0 means "I mapped memory but didn't load the
file". No target uses this return to mean that. So I used 0 to
mean "use the default behaviour." The documentation is changed to
indicate this.

The default host hook for gt_pch_get_address returns zero, and maintains
the same semantics as before e.g. it attempts an MMAP at a fixed address.

Relocation of a PCH is not permitted, so we use fatal_error if we detect
relocation is needed. We also remove all the old code which tries to
relocate and issues a sorry().

In review, the old behaviour is kept for all targets *except*
i686-mingw32 and darwin. These targets have been augmented based on the
new behaviour of HOST_HOOKS_GT_PCH_USE_ADDRESS.

2006-12-13  Carlos O'Donell  <carlos@codesourcery.com>

gcc/
* hooks.c (hook_int_voidp_size_t_voidp_size_t_int_0): New function.
(hook_voidp_size_t_int_null): Likewise.
* hooks.h: Add new declarations.
* ggc.h: Likewise.
* hosthooks-def.h (HOST_HOOKS_GT_PCH_USE_ADDRESS): Default to
hook_int_voidp_size_t_voidp_size_t_int_0.
(HOST_HOOKS_GT_PCH_GET_ADDRESS): Default to
hook_voidp_size_t_int_null.
* gcc/doc/hostconfig.texi (HOST_HOOKS_GT_PCH_USE_ADDRESS): Adjust
documentation with respect to returning zero.

Backport from mainline:
gcc/
2004-06-05  Danny Smith  <dannysmith@users.sourceforge.net>
* toplev.c (init_asm_output): Add explicit 'b' to mode when
opening asm_out_file.
* c-pch.c (c_common_write_pch): Remove unnecessary fflush before
reading asm_out_file. Replace fflush after reading asm_out_file
with fseek.
* hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define
default and add to HOST_HOOKS_INITIALIZER.
* hosthooks.h (gt_pch_alloc_granularity): Declare hook function.
* ggc-common.c (default_gt_pch_alloc_granularity): New function.
(gt_pch_save): Use host_hooks.gt_pch_alloc_granularity
to set mmi.offset padding.
 * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to
$(srcdir)/config/i386/winnt.c.
(i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise.
(i[34567]86-*-uwin*): Likewise.
*i[34567]86-*-interix3*): Likewise.
* config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj.
* config/i386/host-mingw32.c: New file.
* config/i386/x-mingw32: Add rule for host-mingw32.o.
* config/i386/winnt.c: (struct extern_list) Tag as GTY.
(extern_head): Likewise.
(struct export_list) Likewise.
(export_head): Likewise.
(i386_pe_record_external_function): Use ggc_alloc.
(i386_pe_record_exported_symbol): Likewise.
Include "gt-winnt.h" at end.
* doc/hostconfig.texi: Document
HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY.

2004-03-10  Richard Henderson  <rth@redhat.com>
* c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
extra arguments.
* hosthooks.h (struct host_hooks): Update gt_pch_get_address
and gt_pch_use_address.
* doc/hostconfig.texi: Update docs.
* config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
Update for changed definition.
(darwin_rs6000_gt_pch_use_address): Likewise.

2004-03-04  Ian Lance Taylor  <ian@wasabisystems.com>
* ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
going to call mmap again.  Read the file into the right place.
Give a fatal error if we have to relocate.

From-SVN: r119868

15 years agoelf.h (MAX_OFILE_ALIGNMENT): Set to (65536*8).csl/tags/sourcerygxx/3.4.4-25
Carlos O'Donell [Fri, 28 Jul 2006 16:34:09 +0000 (28 16:34 +0000)]
elf.h (MAX_OFILE_ALIGNMENT): Set to (65536*8).

2006-07-28  Carlos O'Donell  <carlos@codesourcery.com>

* gcc/config/mips/elf.h (MAX_OFILE_ALIGNMENT): Set to (65536*8).
* gcc/config/mips/elf64.h (MAX_OFILE_ALIGNMENT): Likewise.

From-SVN: r115796

16 years agot-linux64 (tp-bit.c): Append to tp-bit.c, not dp-bit.c.csl/tags/sourcerygxx/3.4.4-21
Joseph Myers [Tue, 6 Jun 2006 12:45:21 +0000 (6 13:45 +0100)]
t-linux64 (tp-bit.c): Append to tp-bit.c, not dp-bit.c.

* gcc/config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
dp-bit.c.

From-SVN: r114431

16 years ago[multiple changes]csl/tags/sourcerygxx/3.4.4-19
Joseph Myers [Sat, 6 May 2006 17:24:08 +0000 (6 18:24 +0100)]
[multiple changes]

2006-05-05  Daniel Jacobowitz  <dan@codesourcery.com>

* gcc/config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Support
N32 and N64.

2006-05-05  Joseph Myers  <joseph@codesourcery.com>

* gcc/testsuite/gcc.dg/20030121-1.c,
gcc/fixinc/tests/base/internal/math_core.h: Fix SVN conversion
errors.
* gcc/testsuite/gcc.c-torture/execute/loop-2f.x,
gcc/testsuite/gcc.c-torture/execute/loop-2g.x: New.  XFAIL on
mips*-*-linux*.
* gcc/testsuite/g++.old-deja/g++.abi/ptrflags.C: Expect excess
errors on mips*-*-linux*.
* gcc/testsuite/g++.old-deja/g++.eh/catchptr1.C: XFAIL execution
on mips*-*-linux*.
* gcc/testsuite/gcc.dg/builtins-18.c: Expect excess errors on
mips*-*-linux*.
* gcc/config/mips/mips.md (clzdi2): Restrict to TARGET_64BIT.

2006-05-05  Paul Brook  <paul@codesourcery.com>

* gcc/testsuite/gcc.dg/20050629-1.c: Add missing close comment.

2006-05-05  Richard Sandiford  <richard@codesourcery.com>

* gcc/reload1.c (inherit_piecemeal_p): New function.
(emit_reload_insns): When reloading a group of hard registers, use
inherit_piecemeal_p to decide whether the values of individual hard
registers can be inherited.
* gcc/testsuite/gcc.dg/torture/mips-hilo-2.c: New test.

From-SVN: r113578

16 years agobackport: w32-shared-ptr.c: New file.
Mark Mitchell [Sun, 30 Apr 2006 17:45:10 +0000 (30 17:45 +0000)]
backport: w32-shared-ptr.c: New file.

Backport:
2004-10-28  Pascal Obry  <obry@act-europe.fr>
* w32-shared-ptr.c: New file.
* w32-shared-ptr.h: Likewise.

From-SVN: r113393

16 years agore PR target/25871 (TRAMPOLINE_TEMPLATE uses 32bit moves on 64bit code)csl/tags/sourcerygxx/3.4.4-17
Joseph Myers [Wed, 26 Apr 2006 08:38:58 +0000 (26 09:38 +0100)]
re PR target/25871 (TRAMPOLINE_TEMPLATE uses 32bit moves on 64bit code)

From Bugzilla:
2006-04-26  Joshua Kinard  <kumba@gentoo.org>

PR target/25871
* gcc/config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
with 64-bit pointers.

From-SVN: r113272

16 years ago* gcc/config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
Joseph Myers [Mon, 24 Apr 2006 13:27:29 +0000 (24 14:27 +0100)]
* gcc/config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.

From-SVN: r113222

16 years agobackport: re PR target/23070 ([3.4 only] CALL_V4_CLEAR_FP_ARGS flag not properly...
Carlos O'Donell [Tue, 4 Apr 2006 01:11:42 +0000 (4 01:11 +0000)]
backport: re PR target/23070 ([3.4 only] CALL_V4_CLEAR_FP_ARGS flag not properly set)

2006-04-03  Carlos O'Donell  <carlos@codesourcery.com>

Backport:
2005-08-23  Alan Modra  <amodra@bigpond.net.au>

PR target/23070
* config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
stdarg functions, set/clear the fp marker even when no variable
args are passed.
* config/rs6000/sysv4.h (mprototype): Describe.

From-SVN: r112655

16 years agobackport: linux.h (LIB_SPEC): Remove -rpath-link.
Joseph Myers [Tue, 21 Mar 2006 00:29:04 +0000 (21 00:29 +0000)]
backport: linux.h (LIB_SPEC): Remove -rpath-link.

Backport:
2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
* config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
* config/mips/linux64.h (LIB_SPEC): Likewise.

Backport:
2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph S. Myers  <joseph@codesourcery.com>
* configure.ac: Check for MIPS TLS.
* configure: Regenerated.
* config/mips/mips-protos.h (enum mips_symbol_type): Add
SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
SYMBOL_GOTTPREL, and SYMBOL_TPREL.
* config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
(TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
(mips_classify_symbol, mips_symbolic_constant_p)
(mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
(mips_tls_operand_p, mips_call_tls_get_addr)
(mips_legitimize_tls_address, mips_cannot_force_const_mem)
(mips_tls_symbol_ref_1): New functions.
(mips_legitimize_address, mips_legitimize_const_move): Call
mips_legitimize_tls_address.
(override_options): Handle V1_REG and TLS symbols.  Disable TLS
for MIPS16.
* config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
(REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
(mips_char_to_class): Document V1_REG.
(HAVE_AS_TLS): Provide default.
* config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
constants.
(load_got<mode>): Renamed from *load_got<mode>.  Allow when
!TARGET_ABICALLS.
(tls_get_tp_<mode>): New instruction.

From-SVN: r112238

16 years agodwarf2.h (DW64_CIE_ID): Define.
Joseph Myers [Fri, 17 Mar 2006 20:10:47 +0000 (17 20:10 +0000)]
dwarf2.h (DW64_CIE_ID): Define.

* gcc/dwarf2.h (DW64_CIE_ID): Define.
* gcc/dwarf2out.c (DWARF_CIE_ID): Define.
(output_call_frame_info): Output 0xffffffff before standard 8-byte
length header.  Use DWARF_CIE_ID.

From-SVN: r112183

16 years agosearch.c (maybe_suppress_debug_info): Exit if flag_emit_class_debug_always is true.
Carlos O'Donell [Fri, 17 Mar 2006 20:05:37 +0000 (17 20:05 +0000)]
search.c (maybe_suppress_debug_info): Exit if flag_emit_class_debug_always is true.

2006-03-17  Carlos O'Donell  <carlos@codesourcery.com>

* gcc/cp/search.c (maybe_suppress_debug_info): Exit if
flag_emit_class_debug_always is true.
* gcc/common.opt: Add flag -femit-class-debug-always.
* gcc/toplev.c: Define flag_emit_class_debug_always.
(f_options): Add flag femit-class-debug-always.
* gcc/opts.c (common_handle_option): Handle
OPT_femit_class_debug_always.
* gcc/doc/invoke.texi: Document -femit-class-debug-always.

From-SVN: r112182

16 years agomissing changelog
Nathan Sidwell [Sun, 29 Jan 2006 19:35:18 +0000 (29 19:35 +0000)]
missing changelog

From-SVN: r110379

16 years agomissed from checkin
Nathan Sidwell [Sun, 29 Jan 2006 15:26:23 +0000 (29 15:26 +0000)]
missed from checkin

From-SVN: r110371

16 years agomklibdir.in: Use GCC_FOR_TARGET rather than xgcc.
Nathan Sidwell [Sun, 29 Jan 2006 15:22:48 +0000 (29 15:22 +0000)]
mklibdir.in: Use GCC_FOR_TARGET rather than xgcc.

        * gcc/mklibdir.in: Use GCC_FOR_TARGET rather than xgcc.
        * gcc/Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.

From-SVN: r110370

16 years agobackport: unwind-dw2-fde.c: Import from MingW build for ZCX support.
Mark Mitchell [Tue, 29 Nov 2005 04:07:14 +0000 (29 04:07 +0000)]
backport: unwind-dw2-fde.c: Import from MingW build for ZCX support.

Backport:
2004-10-28  Pascal Obry  <obry@act-europe.fr>
        * unwind-dw2-fde.c: Import from MingW build for ZCX support.
        * unwind-sjlj.c: Idem.
        * config/i386/cygming.h: Idem.
        * config/i386/mingw32.h: Idem.
        * config/i386/t-cygming: Idem.
        * config/i386/t-mingw32: Idem.
        * config/i386/win32-ehfb.c: New file to support unwinding through
        signals on Windows.
        Provides support for ZCX on Windows platforms. This set of patch
        comes from the MingW compiler (Danny Smith) adapted and enhanced to
        support unwinding through signals for example.
2005-07-29  Pascal Obry  <obry@act-europe.fr>
Support for crtbegin/crtend.o on MingW.
* config.gcc: Add crtbegin.o and crtend.o as extra_parts
on Minw.
* crtstuff.c: Add support for MingW.
Provides support for ZCX on Windows platforms. This set of patch
comes from the MingW compiler (Danny Smith) adapted to GCC 3.4.

From-SVN: r107649

16 years agopex-win32.c (argv_to_cmdline): Fix escaping of backslash characters.
Paul Brook [Mon, 26 Sep 2005 22:31:40 +0000 (26 22:31 +0000)]
pex-win32.c (argv_to_cmdline): Fix escaping of backslash characters.

* pex-win32.c (argv_to_cmdline): Fix escaping of backslash
characters.

From-SVN: r104668

16 years agoAs posted at http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01945.html 2005-07-28 Mark...
Mark Mitchell [Thu, 15 Sep 2005 21:02:27 +0000 (15 21:02 +0000)]
As posted at gcc.gnu.org/ml/gcc-patches/2005-07/msg01945.html 2005-07-28 Mark Mitchell <mark@codesourcery.com>

As posted at http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01945.html
2005-07-28  Mark Mitchell  <mark@codesourcery.com>
* libtool-ldflags: New script.
2005-07-27  Mark Mitchell  <mark@codesourcery.com>
* src/Makefile.am (LTLDFLAGS): New variable.
(CXXLINK): Use it.
* libsupc++/Makefile.am (LLDFLAGS): New variable.
(CXXLINK): Use it.
* src/Makefile.in: Regenerated.
* libsupc++/Makefile.in: Likewise.

From-SVN: r104322

16 years ago* gcc/config/vx-common.h (DBX_DEBUGGING_INFO): Define to 1.
Mark Mitchell [Thu, 15 Sep 2005 01:21:16 +0000 (15 01:21 +0000)]
* gcc/config/vx-common.h (DBX_DEBUGGING_INFO): Define to 1.

From-SVN: r104295

16 years agolibiberty.h (expandargv): New function.
Mark Mitchell [Thu, 25 Aug 2005 04:53:22 +0000 (25 04:53 +0000)]
libiberty.h (expandargv): New function.

* include/libiberty.h (expandargv): New function.
* libiberty/argv.c (safe-ctype.h): Include it.
(ISBLANK): Remove.
(stdio.h): Include.
(expandargv): New function.
* libiberty/Makefile.in: Regenerated.
* gcc/gcc.c (main): Use expandargv.
* gcc/doc/invoke.texi: Describe "@file" option.

From-SVN: r103467

16 years agoconfigure.in (*-*-vxworks*): Add target-libstdc++-v3 to noconfigdirs.
Mark Mitchell [Tue, 23 Aug 2005 14:44:04 +0000 (23 14:44 +0000)]
configure.in (*-*-vxworks*): Add target-libstdc++-v3 to noconfigdirs.

* configure.in (*-*-vxworks*): Add target-libstdc++-v3 to
noconfigdirs.
* configure: Regenerated.
* config/vxworks.opt: Remove.

Backport from:

  http://gcc.gnu.org/ml/gcc-patches/2005-08/msg01314.html

2005-08-22  Phil Edwards  <phil@codesourcery.com>
* config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
remove use_collect2.
(powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
* target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
configuration files to override the default value.
* config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define
STMP_FIXPROTO,
EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
* config/vx-common.h:  New file, split out from...
* config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
* config/vxworksae.h:  New file, for VxWorks AE.
* config/vxworks.opt:  New file.
* config/vxlib.c:  Update for VxWorks 6.
* config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
other MULTILIB_* variables appropriately.
(LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
* config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
* config/rs6000/vxworks.h:  Update for VxWorks 6.
* config/rs6000/vxworksae.h:  New file, mostly placeholder for
now.

From-SVN: r103401

16 years agohwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
Mark Mitchell [Tue, 23 Aug 2005 14:37:52 +0000 (23 14:37 +0000)]
hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.

* hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.

Backport:
2004-11-23  Mark Mitchell  <mark@codesourcery.com>
* hwint.h (HOST_LONG_LONG_FORMAT): New macro.  Use it throughout.
* config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
* doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.

From-SVN: r103400

16 years agoconfigure.in (*-*-vxworks*): Add target-libstdc++-v3 to noconfigdirs.
Mark Mitchell [Tue, 23 Aug 2005 03:37:30 +0000 (23 03:37 +0000)]
configure.in (*-*-vxworks*): Add target-libstdc++-v3 to noconfigdirs.

* configure.in (*-*-vxworks*): Add target-libstdc++-v3 to
noconfigdirs.
* configure: Regenerated.
* config/vxworks.opt: Remove.

Backport from:

  http://gcc.gnu.org/ml/gcc-patches/2005-08/msg01314.html

2005-08-22  Phil Edwards  <phil@codesourcery.com>
* config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
remove use_collect2.
(powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
* target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
configuration files to override the default value.
* config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define
STMP_FIXPROTO,
EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
* config/vx-common.h:  New file, split out from...
* config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
* config/vxworksae.h:  New file, for VxWorks AE.
* config/vxworks.opt:  New file.
* config/vxlib.c:  Update for VxWorks 6.
* config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
other MULTILIB_* variables appropriately.
(LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
* config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
* config/rs6000/vxworks.h:  Update for VxWorks 6.
* config/rs6000/vxworksae.h:  New file, mostly placeholder for
now.

From-SVN: r103385

16 years agosparc.c (sparc_elf_asm_named_section): Use the default_elf_asm_named_section routine...
Mark Mitchell [Wed, 3 Aug 2005 22:02:10 +0000 (3 22:02 +0000)]
sparc.c (sparc_elf_asm_named_section): Use the default_elf_asm_named_section routine if HAVE_GAS_COMDAT_GROUP.

* gcc/config/sparc/sparc.c (sparc_elf_asm_named_section): Use the
default_elf_asm_named_section routine if HAVE_GAS_COMDAT_GROUP.

From-SVN: r102716

16 years agobackport: Makefile.in (install-common): Remove special-case code for when SPECS is...
Mark Mitchell [Wed, 3 Aug 2005 22:00:13 +0000 (3 22:00 +0000)]
backport: Makefile.in (install-common): Remove special-case code for when SPECS is defined.

Backport:
2004-12-22  Mark Mitchell  <mark@codesourcery.com>
* Makefile.in (install-common): Remove special-case code for when
SPECS is defined.
2004-12-20  Mark Mitchell  <mark@codesourcery.com>
* Makefile.in (install-common): Do not install the specs file
unless SPECS is defined.

From-SVN: r102715

16 years agobackport: t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
Mark Mitchell [Tue, 2 Aug 2005 23:29:36 +0000 (2 23:29 +0000)]
backport: t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.

Backport:
2005-08-02  Mark Mitchell  <mark@codesourcery.com>
* config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.

From-SVN: r102671

16 years agore PR bootstrap/23131 (Fixincludes on cross-build is scanning /usr/include)
Mark Mitchell [Sat, 30 Jul 2005 08:06:50 +0000 (30 08:06 +0000)]
re PR bootstrap/23131 (Fixincludes on cross-build is scanning /usr/include)

PR bootstrap/23131
* configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
string.
* configure: Regenerated.

From-SVN: r102586

16 years agoversion.c (version_string): Use "Sourcery G++" as the release name.
Mark Mitchell [Thu, 28 Jul 2005 22:32:11 +0000 (28 22:32 +0000)]
version.c (version_string): Use "Sourcery G++" as the release name.

* gcc/version.c (version_string): Use "Sourcery G++" as the
release name.
(bug_report_url): Use our support tracker.

From-SVN: r102523

16 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Wed, 27 Jul 2005 20:27:17 +0000 (27 20:27 +0000)]
This commit was manufactured by cvs2svn to create branch
'csl-gxxpro-3_4-branch'.

From-SVN: r102442

16 years agobackport: Makefile.tpl (SYSROOT_CFLAGS_FOR_TARGET): New variable.
Mark Mitchell [Wed, 27 Jul 2005 20:27:17 +0000 (27 20:27 +0000)]
backport: Makefile.tpl (SYSROOT_CFLAGS_FOR_TARGET): New variable.

Backport:
2005-07-26  Mark Mitchell  <mark@codesourcery.com>
* Makefile.tpl (SYSROOT_CFLAGS_FOR_TARGET): New variable.
(CFLAGS_FOR_TARGET): Use it.
(CXXFLAGS_FOR_TARGET): Likewise.
* Makefile.in: Regenerated.
* configure.in (--with-build-sysroot): New option.
* configure: Regenerated.
2005-07-25  Mark Mitchell  <mark@codesourcery.com>
* gcc.c (option_map): Add --sysroot.
(process_command): Handle --sysroot.
(display_help): Document it.
* doc/cppopts.tex (-isysroot): Document.
* doc/invoke.texi (--sysroot): Document.
* doc/install.texi (--with-build-sysroot): Document.

* Makefile.in (inhibit_libc): New variable.
(INHIBIT_LIBC_CFLAGS): Likewise.
(LIBGCC2_CFLAGS): Include
$(INHIBIT_LIBC_CFLAGS).
(CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
($(T)crtbegin.o): Do not use @inhibit_libc@.
($(T)crtend.o): Likewise.
($(T)crtbeginS.o): Do not use @inhibit_libc@.
($(T)crtendS.o): Likewise.
($(T)crtbeginT.o): Do not use @inhibit_libc@.
($(T)crtendT.o): Likewise.
(stmp-fixinc): Do not complain about missing headers if
inhibit_libc.
* configure.ac (inhibit_libc): Set it to true/false.
(--with-build-sysroot): New option.  Use it to set
SYSTEM_HEADER_DIR.
* configure: Regenerated.
2005-07-26  Mark Mitchell  <mark@codesourcery.com>
* doc/install.texi (--with-build-sysroot): Fix grammatical error.
Clarify use of "build" in name.
2005-07-27  Mark Mitchell  <mark@codesourcery.com>
* config/mt-linux (CXXFLAGS): Include SYSROOT_CFLAGS_FOR_TARGET.
2005-07-27  Mark Mitchell  <mark@codesourcery.com>
* Makefile.tpl (EXTRA_TARGET_FLAGS): Set LDFLAGS=LDFLAGS_FOR_TARGET.
* Makefile.def (flags_to_pass): Add LDFLAGS_FOR_TARGET.
* Makefile.in: Regenerated.

From-SVN: r102441

17 years agoarm.c (thumb_output_function_prologue): Calculate offset in bytes, not words.
Khem Raj [Thu, 7 Jul 2005 22:21:09 +0000 (7 22:21 +0000)]
arm.c (thumb_output_function_prologue): Calculate offset in bytes, not words.

2005-07-07  Khem Raj  <kraj@mvista.com>

* config/arm/arm.c (thumb_output_function_prologue): Calculate offset
in bytes, not words.

From-SVN: r101741

17 years agoarm.c (arm_pad_arg_upward): Compare return value of DEFAULT_FUNCTION_ARG_PADDING...
Paul Brook [Thu, 7 Jul 2005 21:43:11 +0000 (7 21:43 +0000)]
arm.c (arm_pad_arg_upward): Compare return value of DEFAULT_FUNCTION_ARG_PADDING to upward.

2005-07-07  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.c (arm_pad_arg_upward): Compare return value of
DEFAULT_FUNCTION_ARG_PADDING to upward.

From-SVN: r101737

17 years agoarm.c (arm_pad_arg_upward): Compare return value of DEFAULT_FUNCTION_ARG_PADDING...
Paul Brook [Thu, 7 Jul 2005 21:43:10 +0000 (7 21:43 +0000)]
arm.c (arm_pad_arg_upward): Compare return value of DEFAULT_FUNCTION_ARG_PADDING to upward.

2005-07-07  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.c (arm_pad_arg_upward): Compare return value of
DEFAULT_FUNCTION_ARG_PADDING to upward.

[[Split portion of a mixed commit.]]

From-SVN: r101736.1

17 years agodecl2.c (import_export_vtable): Also mark decl as used with mark_referenced.
Joseph Myers [Wed, 6 Jul 2005 16:52:06 +0000 (6 17:52 +0100)]
decl2.c (import_export_vtable): Also mark decl as used with mark_referenced.

* cp/decl2.c (import_export_vtable): Also mark decl as used with
mark_referenced.

From-SVN: r101659

17 years agoadd missing dg-options, move file
Nathan Sidwell [Wed, 29 Jun 2005 15:19:01 +0000 (29 15:19 +0000)]
add missing dg-options, move file

From-SVN: r101421

17 years agoloop-unswitch.c (unswitch_single_loop): Disable if condition is in a different bb...
Nathan Sidwell [Wed, 29 Jun 2005 15:07:39 +0000 (29 15:07 +0000)]
loop-unswitch.c (unswitch_single_loop): Disable if condition is in a different bb to jump.

.: * loop-unswitch.c (unswitch_single_loop): Disable if condition is
in a different bb to jump.
testsuite:
* gcc.c-torture/compile/20050629-1.c: New.

From-SVN: r101420

17 years ago* Merge from 3.4.4 release.
Julian Brown [Fri, 20 May 2005 15:07:48 +0000 (20 15:07 +0000)]
* Merge from 3.4.4 release.

From-SVN: r100017

17 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Fri, 20 May 2005 15:07:48 +0000 (20 15:07 +0000)]
This commit was manufactured by cvs2svn to create branch
'csl-arm-branch'.

From-SVN: r100016

17 years agopex-win32.c (maybe_duplicate_handle): New function.
Julian Brown [Mon, 16 May 2005 11:14:06 +0000 (16 11:14 +0000)]
pex-win32.c (maybe_duplicate_handle): New function.

* libiberty/pex-win32.c (maybe_duplicate_handle): New function.
(pexec): Don't call DuplicateHandle if GetStdHandle returns NULL.

From-SVN: r99771

17 years agobackport: gcc_update (silent): Unset instead of initializing to null.
Zack Weinberg [Sun, 15 May 2005 17:24:25 +0000 (15 17:24 +0000)]
backport: gcc_update (silent): Unset instead of initializing to null.

Merge from mainline:
2005-03-18  Alexandre Oliva  <aoliva@redhat.com>
* gcc_update (silent): Unset instead of initializing to null.

2005-03-18  Andreas Schwab  <schwab@suse.de>
* gcc_update (apply_patch): Properly quote $1.

2005-03-18  Zack Weinberg  <zack@codesourcery.com>
* gcc_update: Add --silent option.

From-SVN: r99734

17 years agoarm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
Julian Brown [Fri, 13 May 2005 11:25:14 +0000 (13 11:25 +0000)]
arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.

* config/arm/arm.md (negsf2, negdf2): Permit these expands when
compiling for VFP.

From-SVN: r99653

17 years agounwind-arm.c (get_eit_entry): Adjust address to throwing call, not following instruction.
Paul Brook [Sat, 7 May 2005 00:01:46 +0000 (7 00:01 +0000)]
unwind-arm.c (get_eit_entry): Adjust address to throwing call, not following instruction.

2005-05-06  Paul Brook  <paul@codesourcery.com>

* config/arm/unwind-arm.c (get_eit_entry): Adjust address to throwing
call, not following instruction.

From-SVN: r99338

17 years agoarm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
Paul Brook [Sun, 1 May 2005 15:29:01 +0000 (1 15:29 +0000)]
arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.

2005-01-05  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
(INITIALIZE_TRAMPOLINE): Use it.
* config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
* config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
* config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.

From-SVN: r99069

17 years agobpabi.h (TARGET_DEFAULT): Define.
Paul Brook [Sat, 30 Apr 2005 19:34:26 +0000 (30 19:34 +0000)]
bpabi.h (TARGET_DEFAULT): Define.

2005-04-30  Paul Brook  <paul@codesourcery.com>

* config/arm/bpabi.h (TARGET_DEFAULT): Define.
* config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.

From-SVN: r99042

17 years agobpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in thumb mode.
Paul Brook [Sat, 30 Apr 2005 16:57:04 +0000 (30 16:57 +0000)]
bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in thumb mode.

2005-04-30  Paul Brook  <paul@codesourcery.com>

* config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
thumb mode.
* config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
* config/arm/ieee754-sf.S: Ditto.
* config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
(FUNC_ALIAS): New macro.

From-SVN: r99039

17 years agocombine.c (distribute_notes): Don't put REG_EQUAL notes on deleted insns.
Paul Brook [Sat, 30 Apr 2005 14:19:47 +0000 (30 14:19 +0000)]
combine.c (distribute_notes): Don't put REG_EQUAL notes on deleted insns.

2005-04-30  Paul Brook  <paul@codesourcery.com>

* combine.c (distribute_notes): Don't put REG_EQUAL notes on deleted
insns.

From-SVN: r99034

17 years agocombine.c (distribute_notes): Don't put notes on temporary insns.
Paul Brook [Sat, 30 Apr 2005 02:40:06 +0000 (30 02:40 +0000)]
combine.c (distribute_notes): Don't put notes on temporary insns.

2005-04-07  Paul Brook  <paul@codesourcery.com>

* combine.c (distribute_notes): Don't put notes on temporary insns.

From-SVN: r99031

17 years agoarm.c (target_thread_pointer): Default to TP_SOFT.
Daniel Jacobowitz [Wed, 27 Apr 2005 21:47:49 +0000 (27 21:47 +0000)]
arm.c (target_thread_pointer): Default to TP_SOFT.

* config/arm/arm.c (target_thread_pointer): Default to TP_SOFT.
(arm_override_options, arm_load_tp): Remove -mtp=linux support.
* config/arm/arm.h (TARGET_LINUX_TP): Delete.
(enum arm_tp_type): Remove TP_LINUX.

From-SVN: r98889

17 years agoarm.md (thumb_mulsi3): Use two-operand assembly form.
Paul Brook [Tue, 26 Apr 2005 18:21:28 +0000 (26 18:21 +0000)]
arm.md (thumb_mulsi3): Use two-operand assembly form.

2005-04-26  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.

From-SVN: r98784

17 years agoarm.md (thumb_mulsi3): Use two-operand assembly form.
Paul Brook [Tue, 26 Apr 2005 18:21:27 +0000 (26 18:21 +0000)]
arm.md (thumb_mulsi3): Use two-operand assembly form.

2005-04-26  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.

[[Split portion of a mixed commit.]]

From-SVN: r98783.1

17 years agobackport: arm-vfp1.c: Remove -ffast-math.
Mark Mitchell [Fri, 22 Apr 2005 20:53:43 +0000 (22 20:53 +0000)]
backport: arm-vfp1.c: Remove -ffast-math.

Backport from mainline:
* gcc.dg/arm-vfp1.c: Remove -ffast-math.

From-SVN: r98588

17 years agobackport: arm-vfp1.c: New test.
Mark Mitchell [Fri, 22 Apr 2005 18:01:34 +0000 (22 18:01 +0000)]
backport: arm-vfp1.c: New test.

Backport from mainline:
* gcc.dg/arm-vfp1.c: New test.

From-SVN: r98576

17 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Fri, 22 Apr 2005 18:01:34 +0000 (22 18:01 +0000)]
This commit was manufactured by cvs2svn to create branch
'csl-arm-branch'.

From-SVN: r98575

17 years agotarget-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
Mark Mitchell [Tue, 12 Apr 2005 06:17:22 +0000 (12 06:17 +0000)]
target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.

* target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
(TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
(TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
(TARGET_CXX): Adjust accordingly.
* target.h (struct gcc_target): Remove epxort_class_data.  Add
determine_class_data_visibility and class_data_always_comdat.
* cp/decl2.c (determine_class_data_visibility): New function
(import_export_vtable): Honor
TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT.  Use
determine_class_data_visibility.
(maybe_emit_vtables): Play fewer odd games with cgraph.
(determine_visibility): Remove use of export_class_data.
(import_export_tinfo): Honor TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT.  Use
determine_class_data_visibility.
* cp/rtti.c (get_tinfo_decl): Do not set DECL_COMDAT.
* config/arm/arm.c (arm_cxx_export_class_data): Remove.
(arm_cxx_determine_class_data_visibility): New.
(arm_cxx_class_data_always_comdat): Likewise.
(TARGET_CXX_EXPORT_CLASS_DATA): Remove.
(TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
(TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
* config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
* config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
Define.
* doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
(TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
(TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
* testsuite/g++.dg/ext/visibility/arm2.C: New test.
* testsuite/g++.dg/ext/visibility/arm3.C: Likewise.
* testsuite/g++.dg/ext/visibility/symbian2.C: Likewise.

From-SVN: r98008

17 years agopex-win32.c: Include stdio.h.
Paul Brook [Fri, 8 Apr 2005 16:49:02 +0000 (8 16:49 +0000)]
pex-win32.c: Include stdio.h.

2005-04-08  Paul Brook  <paul@codesourcery.com>

* libiberty/pex-win32.c: Include stdio.h.

From-SVN: r97831

17 years agoarm.c (thumb_call_via_label): Include space for SP.
Paul Brook [Fri, 1 Apr 2005 15:58:41 +0000 (1 15:58 +0000)]
arm.c (thumb_call_via_label): Include space for SP.

2005-04-01  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.c (thumb_call_via_label): Include space for SP.
(arm_output_function_epilogue): Allow call_via_SP.
(thumb_call_via_reg, arm_file_end): Ditto.
* config/arm/arm.h (struct machine_function): Include space for SP.
(thumb_call_via_label): Update declaration.

[[Split portion of a mixed commit.]]

From-SVN: r97400.1

17 years agodwarf2out.c (multiple_reg_loc_descriptor): Handle single REG.
Paul Brook [Wed, 30 Mar 2005 17:09:01 +0000 (30 17:09 +0000)]
dwarf2out.c (multiple_reg_loc_descriptor): Handle single REG.

2005-03-30  Paul Brook  <pau@codesourcery.com>

* dwarf2out.c (multiple_reg_loc_descriptor): Handle single REG.
* config/arm/arm.c (arm_dwarf_register_span): New function.
(TARGET_DWARF_REGISTER_SPAN): Define.
* doc/tm.dexi: Update documentation for TARGET_DWARF_REGISTER_SPAN.

From-SVN: r97261

17 years agoBackport trivial testcase fix (set return value).
Paul Brook [Wed, 30 Mar 2005 15:57:27 +0000 (30 15:57 +0000)]
Backport trivial testcase fix (set return value).

From-SVN: r97260

17 years agoTypo.
Paul Brook [Wed, 30 Mar 2005 15:37:12 +0000 (30 15:37 +0000)]
Typo.

From-SVN: r97259

17 years agooptabs.c (expand_twoval_binop_libfunc): Call protect_from_queue.
Paul Brook [Wed, 30 Mar 2005 03:16:37 +0000 (30 03:16 +0000)]
optabs.c (expand_twoval_binop_libfunc): Call protect_from_queue.

2005-03-30  Paul Brook  <paul@codesourcery.com>

* optabs.c (expand_twoval_binop_libfunc): Call protect_from_queue.
* testsuite/gcc.dg/divmod-1.c: New test.

From-SVN: r97232

17 years agoarm-protos.h (arm_dbx_register_number): Add prototype.
Paul Brook [Tue, 29 Mar 2005 15:18:00 +0000 (29 15:18 +0000)]
arm-protos.h (arm_dbx_register_number): Add prototype.

2005-03-29  Paul Brook  <paul@codesourcery.com>

* config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
* config/arm/arm.c (arm_dbx_register_number): New function.
* config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.

[[Split portion of a mixed commit.]]

From-SVN: r97160.1

17 years agoarm-protos.h (arm_dbx_register_number): Add prototype.
Paul Brook [Tue, 29 Mar 2005 03:00:11 +0000 (29 03:00 +0000)]
arm-protos.h (arm_dbx_register_number): Add prototype.

2005-03-29  Paul Brook  <paul@codesourcery.com>

* config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
* config/arm/arm.c (arm_dbx_register_number): New function.
* config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.

From-SVN: r97149

17 years agoarm.c (arm_handle_notshared_attribute): Protect prototype and implementation with...
Julian Brown [Mon, 28 Mar 2005 21:07:08 +0000 (28 21:07 +0000)]
arm.c (arm_handle_notshared_attribute): Protect prototype and implementation with preprocessor conditional.

* config/arm/arm.c (arm_handle_notshared_attribute): Protect prototype
and implementation with preprocessor conditional.
(arm_pad_reg_upwards): Add ATTRIBUTE_UNUSED.

From-SVN: r97140

17 years agoconfigure.ac: Add test for ARM TLS support.
Daniel Jacobowitz [Mon, 28 Mar 2005 19:04:37 +0000 (28 19:04 +0000)]
configure.ac: Add test for ARM TLS support.

* configure.ac: Add test for ARM TLS support.
* configure: Regenerated.
* haifa-sched.c (schedule_block): Only count INSNs.
* jump.c (duplicate_loop_exit_test): Check targetm.cannot_copy_insn_p.
* postreload.c (reload_cse_simplify_operands): Handle deleted labels.
* config/arm/arm-protos.h (legitimize_tls_address)
(thumb_legitimize_address, tls_symbolic_operand, arm_tls_operand_p)
(tls_mentioned_p, arm_output_addr_const_extra): New prototypes.
(thumb_legitimize_pic_address): Delete.
* config/arm/arm.c: Include "gt-arm.h".
(arm_cannot_copy_insn_p, load_tls_operand)
(pcrel_constant_p, get_tls_get_addr, arm_load_tp)
(legitimize_tls_address, thumb_legitimize_address)
(arm_tls_operand_p, tls_symbolic_operand, move_input_operand)
(tls_mentioned_p, arm_init_tls_builtins)
(arm_emit_tls_decoration, arm_output_addr_const_extra): New functions.
(TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM): Define.
(target_thread_switch, target_thread_pointer): New.
(arm_pic_register): Change to unsigned.
(arm_override_options): Handle -mtp=.
(legitimize_pic_address): Ignore UNSPECs.
(arm_legitimate_address_p): Handle TLS and pcrel symbols.
(thumb_legitimate_address_p): Handle TLS and pcrel symbols.
(arm_legitimize_address): Handle TLS.
(arm_regno_class): Handle RETURN_REG.
(arm_init_builtins): Call arm_init_tls_builtins.
(arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
(arm_encode_section_info): Call default_encode_section_info.
* config/arm/arm.h (target_thread_switch): Add declaration.
(TARGET_HARD_TP, TARGET_SOFT_TP, TARGET_LINUX_TP): Define.
(TARGET_OPTIONS): Add -mtp=.
(enum arm_tp_type): New.
(target_thread_pointer): Add declaration.
(enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS)
(REG_CLASS_FROM_LETTER): Add RETURN_REG.
(LEGITIMATE_CONSTANT_P): Handle TLS.
(THUMB_LEGITIMIZE_ADDRESS): Call thumb_legitimize_address.
(arm_pic_register): Change type to unsigned.
(LEGITIMATE_PIC_OPERAND_P): Handle TLS.
(OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
(PREDICATE_CODES): Add move_input_operand.
(enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
* config/arm/arm.md: Add UNSPEC_TLS.
(movsi): Handle TLS.
(arm_movsi_insn, thumb_movsi_insn): Use move_input_operand.
(pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
non-PIC.
(tls_load_dot_plus_four, tls_load_dot_plus_eight): New insns
and new peepholes to create them.
(load_tp_hard, load_tp_soft): New insns.

Co-Authored-By: Phil Blundell <philb@gnu.org>
From-SVN: r97138

17 years agobackport: libstdc++.exp (libstdc++_init): Improve handling of compilers not in the...
Mark Mitchell [Wed, 23 Mar 2005 19:31:31 +0000 (23 19:31 +0000)]
backport: libstdc++.exp (libstdc++_init): Improve handling of compilers not in the build directory.

Backport from mainline:
2005-03-23  Mark Mitchell  <mark@codesourcery.com>
* testsuite/lib/libstdc++.exp (libstdc++_init): Improve handling
of compilers not in the build directory.
(libstdc++_wchar_t): New variable.
(libstdc++_threads): Likewise.
(libstdc++_test_objs): Likewise.
(v3_target_compile): Use libstdc++_test_objs.
(v3-list-tests): Remove.
(listdc++_build_support): New function.
* testsuite/libstdc++-dg/normal.exp: Rework to dynamically
generate list of tests.

From-SVN: r96945

17 years agobackport: re PR target/7525 ([ARM/Thumb] long calls stubs only in one code section...
Mark Mitchell [Tue, 22 Mar 2005 20:19:19 +0000 (22 20:19 +0000)]
backport: re PR target/7525 ([ARM/Thumb] long calls stubs only in one code section, cannot branch to them from other section)

Merge from mainline.
2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
PR target/7525
* arm.h (struct machine_function): Add call_via field.
(thumb_call_via_label): Declare.
* arm.c (thumb_call_via_label): New variable.
(thumb_call_reg_needed): New variable.
(arm_output_function_epilogue): For Thumb code, output any per-function
call-indirect trampolines.
(thumb_call_via_reg): New function.
(arm_file_end): New function.
(TARGET_ASM_FILE_END): Call arm_file_end.
(aof_file_end): Likewise.
* arm-protos.h (thumb_call_via_reg): Declare.
* arm.md (call_reg_thumb, call_value_reg_thumb): Call
thumb_call_via_reg in normal case.

From-SVN: r96890

17 years agobackport: gcc.c (main): Use set_spec.
Mark Mitchell [Tue, 22 Mar 2005 19:55:25 +0000 (22 19:55 +0000)]
backport: gcc.c (main): Use set_spec.

Merge from csl-3_4_3-linux-branch.
2005-01-31  Mark Mitchell <mark@codesourcery.com>
* gcc.c (main): Use set_spec.
2005-01-25  Mark Mitchell  <mark@codesourcery.com>
* gcc.c (SYSROOT_SPEC): New macro.
(sysroot_spec): New variable.
(static_specs): Add sysroot_spec.
(main): Pass --sysroot to the linker.

From-SVN: r96888

17 years agoarm.h (CONDITIONAL_REGISTER_USAGE): Don't clear call_used_regs for wCG registers.
Daniel Jacobowitz [Tue, 15 Mar 2005 17:21:13 +0000 (15 17:21 +0000)]
arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear call_used_regs for wCG registers.

* config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
call_used_regs for wCG registers.

From-SVN: r96520

17 years agolib1funcs.asm (ashldi3): Don't define on SymbianOS.
Julian Brown [Mon, 14 Mar 2005 13:38:52 +0000 (14 13:38 +0000)]
lib1funcs.asm (ashldi3): Don't define on SymbianOS.

* gcc/config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
(aeabi_llsl): Likewise.
(ashrdi3): Likewise.
(aeabi_lasr): Likewise.
(lshrdi3): Likewise.
(aeabi_llsr): Likewise.

From-SVN: r96429

17 years agoconfig.gcc: Disable shared libgcc for SymbianOS.
Julian Brown [Thu, 10 Mar 2005 17:29:15 +0000 (10 17:29 +0000)]
config.gcc: Disable shared libgcc for SymbianOS.

* gcc/config.gcc: Disable shared libgcc for SymbianOS.
* gcc/config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.
* libstdc++/configure.ac (LIBSUPCXX_PRONLY): New AM_CONDITIONAL: yes if
we are compiling for SymbianOS on ARM.
* libstdc++-v3/include/Makefile.am: Don't install C++ headers if
LIBSUPCXX_PRONLY is true.
* libstdc++-v3/libsupc++/Makefile.am: Include only eh_personality.cc in
libsupc++ if LIBSUPCXX_PRONLY is true.
* libstdc++-v3/Makefile.in: Regenerate.
* libstdc++-v3/configure: Regenerate.
* libstdc++-v3/include/Makefile.in: Regenerate.
* libstdc++-v3/libmath/Makefile.in: Regenerate.
* libstdc++-v3/libsupc++/Makefile.in: Regenerate.
* libstdc++-v3/po/Makefile.in: Regenerate.
* libstdc++-v3/src/Makefile.in: Regenerate.
* libstdc++-v3/testsuite/Makefile.in: Regenerate.

From-SVN: r96246

17 years agoarm.c (arm_all_abis): Add aapcs-linux.
Daniel Jacobowitz [Mon, 7 Mar 2005 14:20:34 +0000 (7 14:20 +0000)]
arm.c (arm_all_abis): Add aapcs-linux.

* config/arm/arm.c (arm_all_abis): Add aapcs-linux.
(arm_override_options): Use TARGET_AAPCS_BASED.
* config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
(PTRDIFF_TYPE): Use int for AAPCS.
(DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
* config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
(DEFAULT_SHORT_ENUMS): Delete.
* doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.

From-SVN: r96021

17 years agolinux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT) for Thumb.
Daniel Jacobowitz [Wed, 2 Mar 2005 16:10:04 +0000 (2 16:10 +0000)]
linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT) for Thumb.

* config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
for Thumb.
* config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.

From-SVN: r95784

17 years agoelfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from being used for symbols...
Julian Brown [Fri, 25 Feb 2005 22:09:15 +0000 (25 22:09 +0000)]
elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from being used for symbols with vague linkage when...

* gcc/config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
from being used for symbols with vague linkage when
HAVE_GAS_COMDAT_GROUP is true.

From-SVN: r95550

17 years agoconfigure.ac: Never set STMP_FIXINC or STMP_FIXPROTO when building a Canadian cross.
Mark Mitchell [Wed, 16 Feb 2005 06:35:26 +0000 (16 06:35 +0000)]
configure.ac: Never set STMP_FIXINC or STMP_FIXPROTO when building a Canadian cross.

* configure.ac: Never set STMP_FIXINC or STMP_FIXPROTO when
building a Canadian cross.
* configure: Regenerated.

From-SVN: r95100

17 years agoconfigure.ac: Never set STMP_FIXINC or STMP_FIXPROTO when building a Canadian cross.
Mark Mitchell [Wed, 16 Feb 2005 06:34:42 +0000 (16 06:34 +0000)]
configure.ac: Never set STMP_FIXINC or STMP_FIXPROTO when building a Canadian cross.

* configure.ac: Never set STMP_FIXINC or STMP_FIXPROTO when
building a Canadian cross.
* configure: Regenerated.

* unwind-arm.h (abort): Use a prototype, not a K&R declaration.
(__gnu_unwind_execute): Declare.
* config/arm/lib1funcs.asm: Do not include libunwind.S.
* config/arm/libunwind.S: Include lib1funcs.asm.
* config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
(LIB2ADDEH): Add $(srcdir)/config/arm/libunwind.S.

From-SVN: r95099

17 years agounwind-arm.c (__gnu_Unwind_Find_exidx): Add prototype.
Paul Brook [Wed, 16 Feb 2005 01:46:04 +0000 (16 01:46 +0000)]
unwind-arm.c (__gnu_Unwind_Find_exidx): Add prototype.

2005-02-16  Paul Brook  <paul@codesourcery.com>

* config/arm/unwind-arm.c (__gnu_Unwind_Find_exidx): Add prototype.
(search_EIT_table): New function.
(get_eit_entry): Use them.
(EIT_comparator): Remove.

From-SVN: r95089

17 years agot-bpabi (LIB2ADDEH): Add pr-support.c
Julian Brown [Mon, 14 Feb 2005 15:43:23 +0000 (14 15:43 +0000)]
t-bpabi (LIB2ADDEH): Add pr-support.c

* config/arm/t-bpabi (LIB2ADDEH): Add pr-support.c
* unwind-arm.c (next_unwind_byte): Moved to file pr-support.c.
(__gnu_unwind_execute): Likewise.
(__gnu_unwind_frame): Likewise.
(_Unwind_GetLanguageSpecificData): Likewise.
(_Unwind_GetRegionStart): Likewise.
* pr-support.c: New file.
(selfrel_offset31, EHT16, EHT32): Duplicated from unwind-arm.c.

From-SVN: r95022

17 years agopex-unix.c (pexecute): Set last_pipe_input to -1 at the end of the pipeline.
Mark Mitchell [Tue, 1 Feb 2005 06:41:33 +0000 (1 06:41 +0000)]
pex-unix.c (pexecute): Set last_pipe_input to -1 at the end of the pipeline.

* libiberty/pex-unix.c (pexecute): Set last_pipe_input to -1 at
the end of the pipeline.

From-SVN: r94525

17 years agoMakefile.in (opts.o): Depend on $(TARGET_H).
Paul Brook [Fri, 28 Jan 2005 14:06:01 +0000 (28 14:06 +0000)]
Makefile.in (opts.o): Depend on $(TARGET_H).

2005-01-28  Paul Brook  <paul@codesourcery.com>

* Makefile.in (opts.o): Depend on $(TARGET_H).
* opts.c: Include target.h.
(decode_options): Use targetm.unwind_tables_default.
* target-def.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
(TARGET_INITIALIZER): Use it
* target.h (struct gcc_target): Add unwind_tables_default.
* config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.

From-SVN: r94373

17 years agoarm.c (arm_init_libfuncs): Clear mod optabs.
Paul Brook [Thu, 27 Jan 2005 22:00:29 +0000 (27 22:00 +0000)]
arm.c (arm_init_libfuncs): Clear mod optabs.

2005-01-27  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.c (arm_init_libfuncs): Clear mod optabs.

From-SVN: r94341

17 years agoarm.h (ARM_EABI_UNWIND_TABLES): Fix logic.
Paul Brook [Thu, 27 Jan 2005 21:35:33 +0000 (27 21:35 +0000)]
arm.h (ARM_EABI_UNWIND_TABLES): Fix logic.

2005-01-27  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.h (ARM_EABI_UNWIND_TABLES): Fix logic.

From-SVN: r94339

17 years agoarm.c (arm_compute_func_type): Fix noreturn logic.
Paul Brook [Thu, 27 Jan 2005 17:17:02 +0000 (27 17:17 +0000)]
arm.c (arm_compute_func_type): Fix noreturn logic.

2005-01-27  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.c (arm_compute_func_type): Fix noreturn logic.

From-SVN: r94327

17 years agoarm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a definition has already been...
Mark Mitchell [Thu, 27 Jan 2005 05:09:09 +0000 (27 05:09 +0000)]
arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a definition has already been provided.

* config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define
if a definition has already been provided.
(ARM_EABI_DTORS_SECTION_OP): Likewise.
* config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
(ARM_EABI_DTORS_SECTION_OP): Likewise.

From-SVN: r94312

17 years agocalls.c (shift_returned_value): Delete in favour of...
Julian Brown [Wed, 26 Jan 2005 20:14:19 +0000 (26 20:14 +0000)]
calls.c (shift_returned_value): Delete in favour of...

* calls.c (shift_returned_value): Delete in favour of...
(shift_return_value): ...this function. Leave the caller to check
for non-BLKmode values passed in the msb of a register.  Take said mode
and a shift direction as argument.  Operate on the hard function value,
not a pseudo.
* (expand_call): Adjust accordingly
* expr.h (shift_return_value): Declare
* function.c (expand_function_start): If a non-BLKmode return value
is padded at the last significant end of the return register, use the
return value's natural mode for the DECL_RESULT, not the mode of the
padded register.
(expand_function_end): Shift the same sort of return values left by
the appropriate amount.
* optabs.c (simplify_expand_binop): New function, backported from
mainline.
(force_expand_binop): New function, backported from mainline and
exported.
* optabs.h (force_expand_binop): Declare.
* stmt.c (shift_return_value): Delete.
(expand_return): Don't call shift_return_value
* config/arm/arm-protos.h (arm_must_pass_in_stack): Declare.
(arm_pad_arg_upward): Declare:
(arm_pad_reg_upward): Declare.
* config/arm/arm.c (TARGET_RETURN_IN_MSB): Define target hook as...
(arm_return_in_msb): New function, specifying when values returned in
registers should be aligned to the most-significant end.
(arm_function_value): If necessary (aggregates and complex values of
word size or less), promote the return type of a function to SImode to
enable padding to word size.
(arm_must_pass_in_stack): New function, returns false for small
aggregates so they can be passed in registers (the default
implementation passes them in the stack).
(arm_pad_arg_upward): New function, fixes argument padding on the stack
in big-endian AAPCS mode.
(arm_pad_reg_upward): New function, fixes argument padding in registers
in big-endian AAPCS mode.
* config/arm/arm.h (PROMOTE_FUNCTION_MODE): modes of mode class
MODE_COMPLEX_INT are also promoted to SImode.
(MUST_PASS_IN_STACK): Define.
(FUNCTION_ARG_PADDING): Define.
(BLOCK_REG_PADDING): Define.
(PAD_VARARGS_DOWN): For AAPCS, varargs are always padded upwards
regardless of endianness.

From-SVN: r94281

17 years agoarm.c (arm_compute_func_type): Don't use current_function_nothrow.
Paul Brook [Tue, 25 Jan 2005 01:18:36 +0000 (25 01:18 +0000)]
arm.c (arm_compute_func_type): Don't use current_function_nothrow.

2005-01-25  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.c (arm_compute_func_type): Don't use
current_function_nothrow.

From-SVN: r94197

17 years agoarm.md: Use "Uy" constraint for wcgr load/stores.
Paul Brook [Sat, 22 Jan 2005 22:23:40 +0000 (22 22:23 +0000)]
arm.md: Use "Uy" constraint for wcgr load/stores.

2005-01-22  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.

From-SVN: r94081

17 years agoarm.md: Use "Uy" constraint for wcgr load/stores.
Paul Brook [Sat, 22 Jan 2005 22:23:39 +0000 (22 22:23 +0000)]
arm.md: Use "Uy" constraint for wcgr load/stores.

2005-01-22  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.

[[Split portion of a mixed commit.]]

From-SVN: r94080.1

17 years agoFix typo
Mark Mitchell [Fri, 21 Jan 2005 22:14:09 +0000 (21 22:14 +0000)]
Fix typo

From-SVN: r94043

17 years agoarm.h (ARM_DTORS_SECTION_ASM_OP): Define.
Paul Brook [Fri, 21 Jan 2005 22:13:40 +0000 (21 22:13 +0000)]
arm.h (ARM_DTORS_SECTION_ASM_OP): Define.

* config/arm/arm.h (ARM_DTORS_SECTION_ASM_OP): Define.
(DTORS_SECION_ASM_OP): Conditionalize on TARGET_AAPCS_BASED.

From-SVN: r94042

17 years agoFix changelog date.
Paul Brook [Thu, 20 Jan 2005 21:46:15 +0000 (20 21:46 +0000)]
Fix changelog date.

[[Split portion of a mixed commit.]]

From-SVN: r93987.1

17 years ago* config/arm/arm.md (insv): Use gen_int_mode.
Paul Brook [Thu, 20 Jan 2005 20:30:54 +0000 (20 20:30 +0000)]
* config/arm/arm.md (insv): Use gen_int_mode.

From-SVN: r93981

17 years agoarm.c (arm_return_in_memory): Treat complex types as aggregates for AAPCS ABIs.
Julian Brown [Wed, 5 Jan 2005 18:33:22 +0000 (5 18:33 +0000)]
arm.c (arm_return_in_memory): Treat complex types as aggregates for AAPCS ABIs.

2004-01-05  Julian Brown  <julian@codesourcery.com>

* config/arm/arm.c (arm_return_in_memory): Treat complex types
as aggregates for AAPCS ABIs.

From-SVN: r92959

17 years agobackport: arm.h (TARGET_OPTIONS): Correctly record -mhard-float and -msoft-float...
Richard Earnshaw [Wed, 5 Jan 2005 16:56:28 +0000 (5 16:56 +0000)]
backport: arm.h (TARGET_OPTIONS): Correctly record -mhard-float and -msoft-float in target_float_switch.

2004-01-05  Richard Earnshaw  <rearnsha@arm.com>

Backport form mainline.
* arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
-msoft-float in target_float_switch.
* arm.c (arm_override_options): Fix processing of target_float_switch.

From-SVN: r92954

17 years ago* version.c (bug_report_url): Correct email address,
Paul Brook [Mon, 3 Jan 2005 15:48:06 +0000 (3 15:48 +0000)]
* version.c (bug_report_url): Correct email address,

From-SVN: r92854

17 years ago2004-12-30 Paul Brook <paul@codesourcery.com>
Paul Brook [Thu, 30 Dec 2004 22:38:11 +0000 (30 22:38 +0000)]
2004-12-30  Paul Brook  <paul@codesourcery.com>

Merge from GCC 3.4.3 release.

From-SVN: r92743

17 years agoThis commit was manufactured by cvs2svn to create branch
No Author [Thu, 30 Dec 2004 22:38:11 +0000 (30 22:38 +0000)]
This commit was manufactured by cvs2svn to create branch
'csl-arm-branch'.

From-SVN: r92742

17 years agounwind-arm.c (_Unwind_VRS_Pop): Correct spelling of discriminator.
Paul Brook [Wed, 29 Dec 2004 21:58:59 +0000 (29 21:58 +0000)]
unwind-arm.c (_Unwind_VRS_Pop): Correct spelling of discriminator.

* config/arm/unwind-arm.c (_Unwind_VRS_Pop): Correct spelling of
discriminator.
(__gnu_unwind_execute): Correct masks for VFP and FPA unwinding.

Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com>
From-SVN: r92714

17 years agoeh_arm.cc (__cxa_begin_cleanup): Add exception to list.
Paul Brook [Fri, 17 Dec 2004 17:56:51 +0000 (17 17:56 +0000)]
eh_arm.cc (__cxa_begin_cleanup): Add exception to list.

2004-12-17  Paul Brook  <paul@codesourcery.com>

* libsupc++/eh_arm.cc (__cxa_begin_cleanup): Add exception to list.
(cxa_end_cleanup): Call __gnu_end_cleanup.
(__gnu_end_cleanup): New function.
* libsupc++/unwind-cxx.h (struct __cxa_exception): Add field for
propagating exception stack.
(struct __cxa_exception): Add propagatingExceptions.

From-SVN: r92326

17 years agoarm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
Daniel Jacobowitz [Wed, 15 Dec 2004 19:26:51 +0000 (15 19:26 +0000)]
arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.

gcc/
* config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
* config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
* config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
libstdc++-v3/
* config/linker-map.gnu: Add ARM EABI symbols.

From-SVN: r92214

17 years agounwind-arm.c (selfrel_offset): remove.
Paul Brook [Wed, 8 Dec 2004 18:31:02 +0000 (8 18:31 +0000)]
unwind-arm.c (selfrel_offset): remove.

* config/arm/unwind-arm.c (selfrel_offset): remove.
(EIT_comparator): Use selfrel_offset31.
(get_eit_entry): Ditto.
(__gnu_unwind_pr_common): Ditto.

From-SVN: r91912

17 years agoImport missing files from gcc 3.4.2.
Daniel Jacobowitz [Tue, 7 Dec 2004 17:46:01 +0000 (7 17:46 +0000)]
Import missing files from gcc 3.4.2.

From-SVN: r91811