gcc/cygwin-gcc.git
15 years agofinal.c (final_scan_insn): Clear current_insn_predicate before outputting inline... csl/tags/renesas/4.1-7
Paul Brook [Wed, 9 Aug 2006 18:24:45 +0000 (9 18:24 +0000)]
final.c (final_scan_insn): Clear current_insn_predicate before outputting inline asm.

2006-08-09  Paul Brook  <paul@codesourcery.com>

gcc/
* final.c (final_scan_insn): Clear current_insn_predicate before
outputting inline asm.

gcc/testsuite/
* gcc.target/arm/cond-asm.c: New test.

From-SVN: r116042

15 years agofinal.c (final_scan_insn): Clear current_insn_predicate before outputting inline...
Paul Brook [Wed, 9 Aug 2006 16:29:41 +0000 (9 16:29 +0000)]
final.c (final_scan_insn): Clear current_insn_predicate before outputting inline asm.

2006-08-09  Paul Brook  <paul@codesourcery.com>

gcc/
* final.c (final_scan_insn): Clear current_insn_predicate before
outputting inline asm.

gcc/testsuite/
* gcc.target/arm/cond-asm.c: New test.

From-SVN: r116040

15 years agoarm.c (use_return_insn): Return 0 for Thumb interrupt functions.
Paul Brook [Tue, 8 Aug 2006 23:46:28 +0000 (8 23:46 +0000)]
arm.c (use_return_insn): Return 0 for Thumb interrupt functions.

2006-08-09  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.c (use_return_insn): Return 0 for Thumb interrupt
functions.
(print_multi_reg): Add rfe argument for IRQ returns.
(arm_output_epilogue): Pop interrupt return address directly into PC.
(arm_expand_prologue): Only adjust IRQ return address in Arm mode.

From-SVN: r116023

15 years agom68k.h (TARGET_CPU_CPP_BUILTINS): Reorder to simplify.
Nathan Sidwell [Fri, 4 Aug 2006 15:56:49 +0000 (4 15:56 +0000)]
m68k.h (TARGET_CPU_CPP_BUILTINS): Reorder to simplify.

gcc/
* config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Reorder to simplify.

From-SVN: r115925

15 years agogcc.c: Organize search path variables into $prefix relative, and well-known native.csl/tags/renesas/4.1-6csl/tags/sourcerygxx/4.1-17
Carlos O'Donell [Fri, 28 Jul 2006 01:23:30 +0000 (28 01:23 +0000)]
gcc.c: Organize search path variables into $prefix relative, and well-known native.

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

gcc/
* gcc.c: Organize search path variables into $prefix relative,
and well-known native. Add comments.
(add_sysrooted_prefix): Add comment.
(process_command): If !gcc_exec_prefix add $prefix based paths.
If *cross_compile == '0', add native well-known paths.
Assert tooldir_base_prefix is always relative.
(main): If print_search_dirs, and if gcc_exec_prefix is set,
use this value for 'install:' path.

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

gcc/
* config/arm/linux-elf.h (NEED_INDICATE_EXEC_STACK): Define as 1.
* arm.c (arm_file_end): If NEED_INDICATE_EXEC_STACK call
file_end_indicate_exec_stack.
* arm.h [!NEED_INDICATE_EXEC_STACK] (NEED_INIDCATE_EXEC_STACK):
Define as 0.
* lib1funcs.asm [__ELF__ && __linux__]: Emit .note.GNU-stack section
for a non-executable stack.
* crti.asm: Likewise.
* crtn.asm: Likewise.
* libunwind.S: Likewise.

From-SVN: r115788

15 years agom68k.md (movsf_cf_hard): Use fsmove instead of f%$smove and f%$move.
Richard Sandiford [Wed, 26 Jul 2006 11:57:49 +0000 (26 11:57 +0000)]
m68k.md (movsf_cf_hard): Use fsmove instead of f%$smove and f%$move.

gcc/
* config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
f%$smove and f%$move.
(movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
(extendsfdf2_cf): Use fdmove instead of f%&move.
(truncdfsf2_cf): Use fsmove instead of f%$smove.
(add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.

From-SVN: r115753

16 years agoMerge from csl/coldfire-4_1 branch, revision 115672
Richard Sandiford [Sat, 22 Jul 2006 14:31:45 +0000 (22 14:31 +0000)]
Merge from csl/coldfire-4_1 branch, revision 115672

From-SVN: r115676

16 years agoarm.c (arm_gen_constant): Check for sets that can use movw.
Paul Brook [Thu, 20 Jul 2006 16:45:59 +0000 (20 16:45 +0000)]
arm.c (arm_gen_constant): Check for sets that can use movw.

2006-07-20  Paul Brook  <paul@codesourcery.com>

gcc/
* config/arm/arm.c (arm_gen_constant): Check for sets that can use
movw.
* config/arm/thumb2.md (thumb2_movsi_insn): Add movw alternative.
* config/arm/arm.md (arm_movsi_insn): Ditto.
* config/arm/vfp.md (arm_movsi_vfp): Ditto.
(thumb2_movsi_vfp): Ditto.

From-SVN: r115623

16 years agobackport: re PR target/27363 (ARM gcc 4.1 optimization bug)
Paul Brook [Thu, 20 Jul 2006 13:59:22 +0000 (20 13:59 +0000)]
backport: re PR target/27363 (ARM gcc 4.1 optimization bug)

Backport from mainline.
PR 27363
gcc/
* cse.c (cse_insn): Add destination addresses to hash table. Check if
they are invalidated by this instruction.

gcc/testsuite/
* gcc.dg/pr27363.c: New test.

From-SVN: r115616

16 years agobackport: re PR middle-end/28402 (Doubleword shifts implemented using word_mode libcalls)
Richard Sandiford [Thu, 20 Jul 2006 08:34:53 +0000 (20 08:34 +0000)]
backport: re PR middle-end/28402 (Doubleword shifts implemented using word_mode libcalls)

Backport from mainline:

2006-07-17  Richard Sandiford  <richard@codesourcery.com>

gcc/
PR middle-end/28402
* optabs.c (expand_binop): Pass next_methods rather than methods
to expand_doubleword_shift.

gcc/testsuite/
PR middle-end/28402
* gcc.dg/pr28402.c: New test.

From-SVN: r115613

16 years agoMention testsuite change in ChangeLog.
Richard Sandiford [Thu, 20 Jul 2006 08:33:54 +0000 (20 08:33 +0000)]
Mention testsuite change in ChangeLog.

From-SVN: r115612

16 years agobackport: re PR middle-end/28403 (Missed argument pop after doubleword shift)
Richard Sandiford [Thu, 20 Jul 2006 08:31:59 +0000 (20 08:31 +0000)]
backport: re PR middle-end/28403 (Missed argument pop after doubleword shift)

Backport from mainline:

2006-07-17  Richard Sandiford  <richard@codesourcery.com>

PR middle-end/28403
* optabs.c (expand_doubleword_shift): Wrap the call to
do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.

From-SVN: r115611

16 years agobackport: pr15551.C: Include cstdio.
Nathan Sidwell [Wed, 19 Jul 2006 09:02:07 +0000 (19 09:02 +0000)]
backport: pr15551.C: Include cstdio.

backport 2006-04-23  David Edelsohn  <edelsohn@gnu.org>
* g++.dg/opt/pr15551.C: Include cstdio.
(main): Use remove instead of unlink.

From-SVN: r115583

16 years agothumb2.mb (thumb2_cbz, [...]): New insns.
Paul Brook [Fri, 14 Jul 2006 22:16:51 +0000 (14 22:16 +0000)]
thumb2.mb (thumb2_cbz, [...]): New insns.

2006-07-14  Paul Brook  <paul@codesourcery.com>

gcc/
* config/arm/thumb2.mb (thumb2_cbz, thumb2_cbnz): New insns.

From-SVN: r115455

16 years agoRemove trailing whitespace.
Paul Brook [Fri, 14 Jul 2006 15:46:09 +0000 (14 15:46 +0000)]
Remove trailing whitespace.

From-SVN: r115443

16 years agosh-relax.c: XFAIL for sh*-*-uclinux.
Mark Shinwell [Fri, 14 Jul 2006 14:05:20 +0000 (14 14:05 +0000)]
sh-relax.c: XFAIL for sh*-*-uclinux.

2006-07-14  Mark Shinwell  <shinwell@codesourcery.com>

        gcc/
        * testsuite/gcc.dg/sh-relax.c: XFAIL for sh*-*-uclinux.
        * config.gcc: Add support for sh on uclinux.
        * config/sh/sh.c: Define TARGET_CANNOT_FORCE_CONST_MEM.
        (prepare_move_operands): Handle moves where the second operand
        may lie outside the current section.
        (sh_cannot_force_const_mem): New.
        * config/sh/sh.h: Define SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
        (LEGITIMATE_CONSTANT_P): Check for moves that may use an
        out-of-section address.
        * config/sh/t-uclinux: New.
        * config/sh/uclinux.h: New.

From-SVN: r115440

16 years agoelf.h (JUMP_TABLES_IN_TEXT_SECTION): Set to TARGET_32BIT.
Paul Brook [Thu, 13 Jul 2006 21:33:38 +0000 (13 21:33 +0000)]
elf.h (JUMP_TABLES_IN_TEXT_SECTION): Set to TARGET_32BIT.

2006-07-13  Paul Brook  <paul@codesourcery.com>

gcc/
* config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Set to TARGET_32BIT.
* config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
* config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Remove Thumb-2 code.
(ASM_OUTPUT_ADDR_DIFF_ELT): Output QImode and HImode tables.
* config/arm/aof.h (ASM_OUTPUT_ADDR_VEC_ELT): Remove Thumb-2 code.
(ASM_OUTPUT_ADDR_DIFF_ELT): Output QImode and HImode tables.
* config/arm/thumb2.md (thumb2_tablejump): Remove.
(thumb2_casesi_internal, thumb2_casesi_internal_pic): New patterns.
* config/arm/arm.c (get_jump_table_size): Add padding for QImode
and HImode tables.
(thumb2_output_casesi): New function.
* config/arm/arm-protos.h (thumb2_output_casesi): Add prototype.
* config/arm/arm.h (CASE_VECTOR_PC_RELATIVE): Define.
(CASE_VECTOR_SHORTEN_MODE): Define.
(ADDR_VEC_ALIGN): Define.
(ASM_OUTPUT_CASE_LABEL): Only align SImode tables.
(ASM_OUTPUT_CASE_END): Define.
* config/arm/arm.md (casesi): Enable for Thumb-2.
(casesi_internal): Rename ...
(arm_casesi_internal): ... to this.
(tablejump): Only enable for Thumb-1.

From-SVN: r115423

16 years agoMerge from gcc-4_1-branch revision 114100 (gcc-4_1_1-release)
Paul Brook [Thu, 13 Jul 2006 18:07:40 +0000 (13 18:07 +0000)]
Merge from gcc-4_1-branch revision 114100 (gcc-4_1_1-release)

From-SVN: r115418

16 years agothumb2.md (pic_load_dot_plus_four): Use adr instead of addw.
Paul Brook [Thu, 13 Jul 2006 15:41:01 +0000 (13 15:41 +0000)]
thumb2.md (pic_load_dot_plus_four): Use adr instead of addw.

2006-07-13  Paul Brook  <paul@codesourcery.com>

gcc/
* config/arm/thumb2.md (pic_load_dot_plus_four): Use adr instead of
addw.

From-SVN: r115416

16 years agodbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
Carlos O'Donell [Fri, 7 Jul 2006 15:56:39 +0000 (7 15:56 +0000)]
dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.

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

* dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
(dbxout_function_end): Use local label LFBB.
(dbxout_source_line): Likewise.
(dbxout_block): Likewise.

From-SVN: r115262

16 years agomips.c (function_arg): Where one part of a complex argument is in registers and the...
Joseph Myers [Wed, 21 Jun 2006 20:04:55 +0000 (21 21:04 +0100)]
mips.c (function_arg): Where one part of a complex argument is in registers and the other part in the...

* gcc/config/mips/mips.c (function_arg): Where one part of a
complex argument is in registers and the other part in the stack,
return a REG not a PARALLEL.
* gcc/testsuite/gcc.c-torture/execute/complex-7.c: New.

From-SVN: r114866

16 years agoMerge from csl/coldfire-4_1 branch, revision 114848
Richard Sandiford [Wed, 21 Jun 2006 12:59:34 +0000 (21 12:59 +0000)]
Merge from csl/coldfire-4_1 branch, revision 114848

From-SVN: r114850

16 years agoacinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): When cross-compiling, put headers in...
Mark Mitchell [Wed, 21 Jun 2006 09:28:06 +0000 (21 09:28 +0000)]
acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): When cross-compiling, put headers in $prefix/$target/include/c++.

libstdc++/
* acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): When
cross-compiling, put headers in $prefix/$target/include/c++.
* configure: Regenerated.

gcc/
* configure.ac: Set gcc_gxx_include_dir to $target/include/c++
when cross-compiling.  Do not substitute libstdcxx_incdir.
* configure: Regenerated.

From-SVN: r114846

16 years agoeh_arm.cc (__cxa_begin_cleanup): Always return 'true'.
Vladimir Prus [Tue, 20 Jun 2006 14:08:52 +0000 (20 14:08 +0000)]
eh_arm.cc (__cxa_begin_cleanup): Always return 'true'.

2006-06-20  Vladimir Prus  <vladimir@codesourcery.com>

libstdc++/
* libsupc++/eh_arm.cc (__cxa_begin_cleanup): Always return 'true'.

From-SVN: r114813

16 years agot-linux64 (tp-bit.c): Append to tp-bit.c, not dp-bit.c.csl/tags/sourcerygxx/4.1-6
Joseph Myers [Tue, 6 Jun 2006 12:47:08 +0000 (6 13:47 +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: r114432

16 years agoPatch for issue #693.
Mark Shinwell [Thu, 1 Jun 2006 17:10:17 +0000 (1 17:10 +0000)]
Patch for issue #693.

* gcc/builtins.c (expand_builtin_return_addr): Always use
hard_frame_pointer_rtx and prevent frame pointer elimination
if INITIAL_FRAME_ADDRESS_RTX isn't set.

From-SVN: r114314

16 years agoPatch for issue #721.
Mark Shinwell [Thu, 1 Jun 2006 17:07:12 +0000 (1 17:07 +0000)]
Patch for issue #721.

        * gcc/tree.h: Declare folding_initializer.
        * gcc/builtins.c (fold_builtin_constant_p): Give definite answer
        if folding inside an initializer.
        * gcc/fold-const.c: Define folding_initializer.
        (START_FOLD_INIT): Save and then set folding_initializer.
        (END_FOLD_INIT): Restore folding_initializer.
        * gcc/testsuite/gcc.c-torture/compile/builtin_constant_p.c:
        New test.

From-SVN: r114313

16 years agobackport: re PR target/27829 (ICE/abort in shift_op, at config/arm/arm.c:7917 with...
Carlos O'Donell [Thu, 1 Jun 2006 03:43:00 +0000 (1 03:43 +0000)]
backport: re PR target/27829 (ICE/abort in shift_op, at config/arm/arm.c:7917 with asm from testsuite/gcc.dg/pr21255-2-mb.c)

2006-05-31  Carlos O'Donell  <carlos@codesourcery.com>

Backport from mainline:
2006-05-31  Richard Earnshaw  <richard.earnshaw@arm.com>
PR target/27829
* gcc/config/arm/arm.c (arm_print_operand case 'S'): Validate
that the operand is a shift operand before calling shift_op.
Avoid redundant call of shift_op.

From-SVN: r114294

16 years agobackport: re PR middle-end/26622 (ICE in extract_insn, at recog.c:2084)
Kazu Hirata [Mon, 29 May 2006 14:09:37 +0000 (29 14:09 +0000)]
backport: re PR middle-end/26622 (ICE in extract_insn, at recog.c:2084)

Backport from mainline:
2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
PR tree-optimization/26622.
* gcc/fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
on arg1.

PR tree-optimization/26622.
* gcc/testsuite/gcc.c-torture/compile/pr26622.c: New.

From-SVN: r114198

16 years agomake-relative-prefix.c (split_directories): Add ignore_final arg.
Nathan Sidwell [Sat, 20 May 2006 15:19:06 +0000 (20 15:19 +0000)]
make-relative-prefix.c (split_directories): Add ignore_final arg.

* libiberty/make-relative-prefix.c (split_directories): Add
ignore_final arg.
(make_relative_prefix): Keep the final path component if it was a
directory.  Adjust calls to split_directories.

From-SVN: r113934

16 years agolinux-unwind.h: Include <asm/unistd.h>
Richard Sandiford [Sat, 20 May 2006 12:36:56 +0000 (20 12:36 +0000)]
linux-unwind.h: Include <asm/unistd.h>

* config/mips/linux-unwind.h: Include <asm/unistd.h>
(mips_fallback_frame_state): Use syscall numbers to determine
the appropriate li instruction for the current ABI.  Only use
__NR_sigreturn for o32.

From-SVN: r113927

16 years agotarget-supports.exp (check_effective_target_powerpc_fprs, [...]): New.csl/tags/sourcerygxx/4.1-5
Joseph Myers [Thu, 11 May 2006 20:11:40 +0000 (11 21:11 +0100)]
target-supports.exp (check_effective_target_powerpc_fprs, [...]): New.

* gcc/testsuite/lib/target-supports.exp
(check_effective_target_powerpc_fprs,
check_effective_target_powerpc_altivec_ok): New.
* gcc/testsuite/g++.dg/eh/simd-2.C,
gcc/testsuite/g++.dg/ext/altivec-1.C,
gcc/testsuite/g++.dg/ext/altivec-10.C,
gcc/testsuite/g++.dg/ext/altivec-11.C,
gcc/testsuite/g++.dg/ext/altivec-12.C,
gcc/testsuite/g++.dg/ext/altivec-13.C,
gcc/testsuite/g++.dg/ext/altivec-2.C,
gcc/testsuite/g++.dg/ext/altivec-3.C,
gcc/testsuite/g++.dg/ext/altivec-4.C,
gcc/testsuite/g++.dg/ext/altivec-5.C,
gcc/testsuite/g++.dg/ext/altivec-6.C,
gcc/testsuite/g++.dg/ext/altivec-7.C,
gcc/testsuite/g++.dg/ext/altivec-8.C,
gcc/testsuite/g++.dg/ext/altivec-9.C,
gcc/testsuite/g++.dg/ext/altivec-types-1.C,
gcc/testsuite/g++.dg/ext/altivec-types-2.C,
gcc/testsuite/g++.dg/ext/altivec-types-3.C,
gcc/testsuite/g++.dg/ext/altivec-types-4.C,
gcc/testsuite/gcc.dg/simd-3.c,
gcc/testsuite/gcc.dg/vect/vect-82_64.c,
gcc/testsuite/gcc.dg/vect/vect-83_64.c,
gcc/testsuite/gcc.dg/vmx/vmx.exp,
gcc/testsuite/gcc.target/powerpc/980827-1.c,
gcc/testsuite/gcc.target/powerpc/altivec-1.c,
gcc/testsuite/gcc.target/powerpc/altivec-10.c,
gcc/testsuite/gcc.target/powerpc/altivec-11.c,
gcc/testsuite/gcc.target/powerpc/altivec-12.c,
gcc/testsuite/gcc.target/powerpc/altivec-13.c,
gcc/testsuite/gcc.target/powerpc/altivec-14.c,
gcc/testsuite/gcc.target/powerpc/altivec-15.c,
gcc/testsuite/gcc.target/powerpc/altivec-16.c,
gcc/testsuite/gcc.target/powerpc/altivec-17.c,
gcc/testsuite/gcc.target/powerpc/altivec-18.c,
gcc/testsuite/gcc.target/powerpc/altivec-19.c,
gcc/testsuite/gcc.target/powerpc/altivec-2.c,
gcc/testsuite/gcc.target/powerpc/altivec-21.c,
gcc/testsuite/gcc.target/powerpc/altivec-22.c,
gcc/testsuite/gcc.target/powerpc/altivec-3.c,
gcc/testsuite/gcc.target/powerpc/altivec-4.c,
gcc/testsuite/gcc.target/powerpc/altivec-5.c,
gcc/testsuite/gcc.target/powerpc/altivec-6.c,
gcc/testsuite/gcc.target/powerpc/altivec-7.c,
gcc/testsuite/gcc.target/powerpc/altivec-8.c,
gcc/testsuite/gcc.target/powerpc/altivec-9.c,
gcc/testsuite/gcc.target/powerpc/altivec-consts.c,
gcc/testsuite/gcc.target/powerpc/altivec-pr22085.c,
gcc/testsuite/gcc.target/powerpc/altivec-splat.c,
gcc/testsuite/gcc.target/powerpc/altivec-types-1.c,
gcc/testsuite/gcc.target/powerpc/altivec-types-2.c,
gcc/testsuite/gcc.target/powerpc/altivec-types-3.c,
gcc/testsuite/gcc.target/powerpc/altivec-types-4.c,
gcc/testsuite/gcc.target/powerpc/altivec-varargs-1.c,
gcc/testsuite/gcc.target/powerpc/altivec-vec-merge.c,
gcc/testsuite/gcc.target/powerpc/ppc-vector-memcpy.c,
gcc/testsuite/gcc.target/powerpc/ppc-vector-memset.c,
gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c,
gcc/testsuite/gcc.target/powerpc/pr16155.c,
gcc/testsuite/gcc.target/powerpc/pr16286.c: Use these effective
targets.
* gcc/testsuite/gcc.dg/20020103-1.c: XFAIL on powerpc*-*-*.

From-SVN: r113710

16 years agoarm.c (output_move_vfp): Fix typo.
Paul Brook [Mon, 8 May 2006 17:13:41 +0000 (8 17:13 +0000)]
arm.c (output_move_vfp): Fix typo.

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

* gcc/cofnig/arm/arm.c (output_move_vfp): Fix typo.

From-SVN: r113631

16 years agoconfigure.in (TOPLEVEL_CONFIGURE_ARGS): Protect args with active characters.
Nathan Sidwell [Mon, 8 May 2006 06:28:36 +0000 (8 06:28 +0000)]
configure.in (TOPLEVEL_CONFIGURE_ARGS): Protect args with active characters.

* configure.in (TOPLEVEL_CONFIGURE_ARGS): Protect args with active
characters.
(baseargs): Simplify protection, use ac_arg temp name, correct $
to $$ conversion.
* configure: Rebuilt.

From-SVN: r113624

16 years agoloop-2f.x, loop-2g.x: New.
Joseph Myers [Sat, 6 May 2006 17:29:21 +0000 (6 18:29 +0100)]
loop-2f.x, loop-2g.x: New.

* gcc/testsuite/gcc.c-torture/execute/loop-2f.x,
gcc/testsuite/gcc.c-torture/execute/loop-2g.x: New.  XFAIL on
mips*-*-linux*.

From-SVN: r113579

16 years agoconfigure.in: Do not mangle arguments like "--with-foo=A B C" when storing in baseargs.
Mark Mitchell [Sat, 6 May 2006 03:21:40 +0000 (6 03:21 +0000)]
configure.in: Do not mangle arguments like "--with-foo=A B C" when storing in baseargs.

* configure.in: Do not mangle arguments like "--with-foo=A B C" when
storing in baseargs.
* configure: Regenerated.
* gcc/configure.ac: Add --with-versuffix and --with-bugurl.
* gcc/version.c (VERSUFFIX): Remove.
(bug_report_url): Do not hard-code initializer.
* gcc/Makefile.in (VERSUFFIX_s): Define.
(BUGURL_s): Likewise.
(version.o): Define VERSUFFIX and BUGURL.
* gcc/doc/install.texi: Document them.
* gcc/configure: Regenerated.

From-SVN: r113574

16 years agore PR target/26765 (ICE in in extract_insn with __thread and optimization)
Kazu Hirata [Thu, 4 May 2006 20:18:24 +0000 (4 20:18 +0000)]
re PR target/26765 (ICE in in extract_insn with __thread and optimization)

gcc/
PR target/26765
* config/mips/mips.c (mips_symbolic_address_p): Return true
for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
SYMBOL_GOTTPREL, and SYMBOL_TLS.

gcc/testsuite/
PR target/26765
* gcc.target/mips/pr26765.c: New.

From-SVN: r113538

16 years agoversion.c: Revert back to Sourcery G++.csl/tags/sourcerygxx/4.1-4
Paul Brook [Wed, 3 May 2006 23:13:47 +0000 (3 23:13 +0000)]
version.c: Revert back to Sourcery G++.

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

* gcc/version.c: Revert back to Sourcery G++.

From-SVN: r113504

16 years agoMerge from branches/csl/arm-4_1 r113476.
Paul Brook [Wed, 3 May 2006 20:54:39 +0000 (3 20:54 +0000)]
Merge from branches/csl/arm-4_1 r113476.

From-SVN: r113501

16 years agobackport: re PR target/27387 (Thumb thunk is not PIC)
Kazu Hirata [Tue, 2 May 2006 15:17:25 +0000 (2 15:17 +0000)]
backport: re PR target/27387 (Thumb thunk is not PIC)

Backport:
2006-05-02  Kazu Hirata  <kazu@codesourcery.com>
PR target/27387
* arm.c (arm_output_mi_thunk): Use pc-relative addressing when
-mthumb -fPIC are used.

2006-05-02  Kazu Hirata  <kazu@codesourcery.com>
PR target/27387
* gcc.target/arm/arm.exp: New.
* gcc.target/arm/pr27387.C: Likewise.

From-SVN: r113471

16 years agobackport: re PR target/27374 (*arm_movdi_vfp in config/arm/vfp.md has wrong output...
Kazu Hirata [Tue, 2 May 2006 14:05:14 +0000 (2 14:05 +0000)]
backport: re PR target/27374 (*arm_movdi_vfp in config/arm/vfp.md has wrong output templates)

Backport:
2006-05-01  Kazu Hirata  <kazu@codesourcery.com>
PR target/27374
* gcc/config/arm/vfp.md (*arm_movdi_vfp): Correct the output
templates for case 3 and 4.

From-SVN: r113464

16 years agobackport: w32-shared-ptr.c: New file.
Mark Mitchell [Sun, 30 Apr 2006 17:48:04 +0000 (30 17:48 +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: r113394

16 years agogcc.c (process_command): Add program name to GCC_EXEC_PREFIX value before passing... csl/tags/morpho/4.1-4
Joseph Myers [Fri, 28 Apr 2006 12:17:00 +0000 (28 13:17 +0100)]
gcc.c (process_command): Add program name to GCC_EXEC_PREFIX value before passing to make_relative_prefix.

* gcc/gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
value before passing to make_relative_prefix.

From-SVN: r113346

16 years agore PR target/25871 (TRAMPOLINE_TEMPLATE uses 32bit moves on 64bit code)
Joseph Myers [Wed, 26 Apr 2006 08:40:26 +0000 (26 09:40 +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: r113273

16 years ago* gcc/config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
Joseph Myers [Tue, 25 Apr 2006 19:43:17 +0000 (25 20:43 +0100)]
* gcc/config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.

From-SVN: r113255

16 years agoMakefile.in: Correct dependencies for gcc, cpp, gccint, and cppinternals html manuals.
Carlos O'Donell [Sat, 22 Apr 2006 22:35:24 +0000 (22 22:35 +0000)]
Makefile.in: Correct dependencies for gcc, cpp, gccint, and cppinternals html manuals.

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

* gcc/Makefile.in: Correct dependencies for gcc, cpp,
gccint, and cppinternals html manuals.

From-SVN: r113183

16 years ago* gcc/testsuite/gcc.c-torture/compile/20060421-1.c: New testcase.
Joseph Myers [Sat, 22 Apr 2006 15:38:47 +0000 (22 16:38 +0100)]
* gcc/testsuite/gcc.c-torture/compile/20060421-1.c: New testcase.

From-SVN: r113174

16 years agoMakefile.tpl: Add install-html to install target.
Carlos O'Donell [Sat, 22 Apr 2006 00:15:16 +0000 (22 00:15 +0000)]
Makefile.tpl: Add install-html to install target.

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

* Makefile.tpl: Add install-html to install target.
* Makefile.in: Regenerate.

From-SVN: r113158

16 years agoCorrect date typo.
Carlos O'Donell [Sat, 22 Apr 2006 00:13:40 +0000 (22 00:13 +0000)]
Correct date typo.

From-SVN: r113157

16 years agoMakefile.tpl: Add install-html target.
Carlos O'Donell [Sat, 22 Apr 2006 00:05:02 +0000 (22 00:05 +0000)]
Makefile.tpl: Add install-html target.

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

* Makefile.tpl: Add install-html target.
* Makefile.def: Add install-html target.
* Makefile.in: Regenerate.
* configure.in: Add --with-datarootdir, --with-docdir,
and --with-htmldir options. AC_SUBST datarootdir, docdir and htmldir.
* configure: Regenerate.
* gcc/Makefile.in: Rename htmldir to gcc_htmldir. Add install-html
target. Define HTMLS for all manuals. Simplify html target.
* gcc/configure.ac: AC_SUBST datarootdir, docdir, and htmldir.
* gcc/configure: Regenerate.
* gcc/fortran/Make-lang.in: Rename htmldir to gcc_htmldir.
* gcc/java/Make-lang.in: Likewise.
* gcc/treelang/Make-lang.in: Likewise.
* fixincludes/Makefile.in: Add install-html target.
Fixup .PHONY listing.
* intl/Makefile.in: Add html info ps pdf and dvi and install-html
to .PHONY. Add install-html target.
* libcpp/Makefile.in: Add install-html target. Add install-html to
.PHONY list.
* libstdc++-v3/Makefile.am: Add install-html target.
* libstdc++-v3/aclocal.m4: Regenerate.
* libstdc++-v3/Makefile.in: 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.
* libmudflap/Makefile.am: Add install-html target.
* libmudflap/Makefile.in: Regenerate.
* libssp/Makefile.am: Add install-html target.
* libssp/Makefile.in: Regenerate.
* fastjar/Makefile.am: Add install-html target.
* fastjar/Makefile.in: Regenerate.
* fastjar/aclocal.m4: Regenerate.
* zlib/Makefile.am: Add install-html target.
* zlib/Makefile.in: Regenerate.
* zlib/aclocal.m4: Regenerate.
* libobjc/Makefile.in: Add install-html target.
* libffi/Makefile.am: Add install-html target.
* libffi/Makefile.in: Regenerate.
* libffi/aclocal.m4: Regenerate.
* libffi/include/Makefile.in: Regenerate.
* libffi/testsuite/Makefile.in: Regenerate.
* libjava/Makefile.am: Add install-html target.
* libjava/Makefile.in: Regenerate.
* libjava/aclocal.m4: Regenerate.
* libjava/classpath/Makefile.in: Regenerate.
* libjava/classpath/aclocal.m4: Regenerate.
* libjava/classpath/doc/Makefile.in: Regenerate.
* libjava/classpath/doc/api/Makefile.am: Conditionalize html target.
* libjava/classpath/doc/api/Makefile.in: Regenerate.
* libjava/classpath/examples/Makefile.in: Regenerate.
* libjava/classpath/external/Makefile.in: Regenerate.
* libjava/classpath/external/sax/Makefile.in: Regenerate.
* libjava/classpath/external/w3c_dom/Makefile.in: Regenerate.
* libjava/classpath/include/Makefile.in: Regenerate.
* libjava/classpath/lib/Makefile.in: Regenerate.
* libjava/classpath/native/Makefile.in: Regenerate.
* libjava/classpath/native/fdlibm/Makefile.in: Regenerate.
* libjava/classpath/native/jawt/Makefile.in: Regenerate.
* libjava/classpath/native/jni/Makefile.in: Regenerate.
* libjava/classpath/native/jni/classpath/Makefile.in: Regenerate.
* libjava/classpath/native/jni/gtk-peer/Makefile.in : Regenerate.
* libjava/classpath/native/jni/java-io/Makefile.in: Regenerate.
* libjava/classpath/native/jni/java-lang/Makefile.in: Regenerate.
* libjava/classpath/native/jni/java-net/Makefile.in : Regenerate.
* libjava/classpath/native/jni/java-nio/Makefile.in : Regenerate.
* libjava/classpath/native/jni/java-util/Makefile.in: Regenerate.
* libjava/classpath/native/jni/midi-alsa/Makefile.in: Regenerate.
* libjava/classpath/native/jni/midi-dssi/Makefile.in: Regenerate.
* libjava/classpath/native/jni/qt-peer/Makefile.in: Regenerate.
* libjava/classpath/native/jni/xmlj/Makefile.in: Regenerate.
* libjava/classpath/native/target/Linux/Makefile.in: Regenerate.
* libjava/classpath/native/target/Makefile.in: Regenerate.
* libjava/classpath/native/target/generic/Makefile.in: Regenerate.
* libjava/classpath/resource/Makefile.in: Regenerate.
* libjava/classpath/scripts/Makefile.in: Regenerate.
* libjava/gcj/Makefile.in: Regenerate.
* libjava/include/Makefile.in : Regenerate.
* libjava/testsuite/Makefile.in: Regenerate.
* boehm-gc/Makefile.am: Add install-html target.
* boehm-gc/Makefile.in: Regenerate.
* boehm-gc/aclocal.m4: Regenerate.
* boehm-gc/include/Makefile.in: Regenerate.
* gnattools/Makefile.in: Add html and install-html targets.
* libgfortran/Makefile.am: Add install-html target.
* libgfortran/Makefile.in: Regenerate.
* libada/Makefile.in: Add install-html target.

From-SVN: r113156

16 years agobackport: re PR middle-end/26557 (ICE in simplify_subreg)
Kazu Hirata [Tue, 11 Apr 2006 23:47:35 +0000 (11 23:47 +0000)]
backport: re PR middle-end/26557 (ICE in simplify_subreg)

Backport from mainline.
2006-03-13  Roger Sayle  <roger@eyesopen.com>
PR middle-end/26557
* gcc/stmt.c (emit_case_nodes): Handle the case where the
index is a CONST_INT, where the comparison mode is specified
by the index type.

2006-03-13  Roger Sayle  <roger@eyesopen.com>
PR middle-end/26557
* gcc/gcc.c-torture/compile/switch-1.c: New test case.

From-SVN: r112870

16 years agoAdd "gcc/" to changelog entry.
Carlos O'Donell [Tue, 4 Apr 2006 15:14:20 +0000 (4 15:14 +0000)]
Add "gcc/" to changelog entry.

From-SVN: r112669

16 years ago[multiple changes]
Carlos O'Donell [Tue, 4 Apr 2006 15:13:50 +0000 (4 15:13 +0000)]
[multiple changes]

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

* gcc/testsuite/gcc.dg/struct-parse-1.c: New test case.

2006-03-31  Nathan Sidwell  <nathan@codesourcery.com>
* gcc/stor-layout.c: Place invalid field at the current end of
the structure or start of union, to maintain placement
invariants.

From-SVN: r112668

16 years agobackport: [multiple changes]
Paul Brook [Sun, 2 Apr 2006 13:19:15 +0000 (2 13:19 +0000)]
backport: [multiple changes]

2006-04-02  Paul Brook  <paul@codesourcery.com>

Backport form mainline.
* gcc/testsuite/gcc.c-torture/execute/loop-ivopts-3.c: New test.

2006-01-14  Zdenek Dvorak <dvorakz@suse.cz>
* gcc/tree-ssa-loop-niter.c (number_of_iterations_cond): Split into
several functions.
(number_of_iterations_ne, number_of_iterations_lt_to_ne,
assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
number_of_iterations_le): New functions.
(number_of_iterations_special): Removed.
(number_of_iterations_exit): Do not use number_of_iterations_special.
* gcc/tree.c (unsigned_type_for): Always return integer type.
* gcc/testsuite/gcc.dg/tree-ssa/pr19210-1.c: Update outcome.
Add new test loop.
* gcc/testsuite/gcc.dg/tree-ssa/pr19210-2.c: Ditto.

2005-01-06  Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/18527
* gcc/tree-ssa-loop-niter.c (number_of_iterations_cond,
number_of_iterations_special, number_of_iterations_exit):
Move base and step of an iv to a single structure.  Add
no_overflow flag, and use it in # of iterations analysis.
* gcc/tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
folded_casts argument.
(simple_iv): Pass base and step in a structure.  Set no_overflow
flag.
(scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
Evaluate expensiveness of computing # of iterations instead of
the final expression.
* gcc/tree-scalar-evolution.h (affine_iv): New structure.
(simple_iv): Declaration changed.
* gcc/tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
* gcc/tree-ssa-loop-ivopts.c (determine_biv_step,
find_givs_in_stmt_scev, find_givs_in_stmt): Changed due to simple_iv
change.

From-SVN: r112622

16 years agocygpath.c (fopen): Allocate MAX_PATH + 1 bytes for the filename.
Mark Mitchell [Fri, 31 Mar 2006 03:57:07 +0000 (31 03:57 +0000)]
cygpath.c (fopen): Allocate MAX_PATH + 1 bytes for the filename.

* libiberty/cygpath.c (fopen): Allocate MAX_PATH + 1 bytes for the
filename.
(open): Likewise.
(stat): Likewise.
(access): Likewise.

From-SVN: r112568

16 years agoconfigure.ac: Add cygpath for mingw hosts.
Mark Mitchell [Thu, 30 Mar 2006 14:26:59 +0000 (30 14:26 +0000)]
configure.ac: Add cygpath for mingw hosts.

* libiberty/configure.ac: Add cygpath for mingw hosts.
* libiberty.configure: Rebuilt.
* libiberty/Makefile.in: Add cygpath.
* libiberty/cygpath.c: New.

From-SVN: r112533

16 years agore PR middle-end/23623 (volatile keyword changes bitfield access size from 32bit...
Paul Brook [Tue, 28 Mar 2006 18:03:06 +0000 (28 18:03 +0000)]
re PR middle-end/23623 (volatile keyword changes bitfield access size from 32bit to 8bit)

2006-03-28  Paul Brook  <paul@codesourcery.com>

PR middle-end/23623
* gcc/targhooks.c (default_narrow_bitfield): New fuction.
* gcc/targhooks.h (default_narrow_bitfield): add prototype.
* gcc/target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
* gcc/doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
* gcc/config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.

From-SVN: r112460

16 years agoreload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
Paul Brook [Tue, 28 Mar 2006 17:40:13 +0000 (28 17:40 +0000)]
reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.

2006-03-28  Paul Brook  <paul@codesourcery.com>

* gcc/reload1.c (choose_reload_regs): Check for all RTX_AUTOINC
operators.
(inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.

From-SVN: r112457

16 years agolibiberty.h (pex_write_input): New declaration.
Jim Blandy [Tue, 28 Mar 2006 02:12:15 +0000 (28 02:12 +0000)]
libiberty.h (pex_write_input): New declaration.

2006-03-27  Jim Blandy <jimb@codesourcery.com>

* include/libiberty.h (pex_write_input): New declaration.

* libiberty/pex-common.c (pex_write_input): New function.
* libiberty/pexecute.txh (pex_write_input): Document it.
* libiberty/pex-common.h (struct pex_funcs): New function ptr fdopenw.
* libiberty/pex-unix.c (pex_unix_fdopenw): New function.
(funcs): List it as our fdopenw function.
* libiberty/pex-win32.c (pex_win32_fdopenw): New function.
(funcs): List it as our fdopenw function.
* libiberty/pex-djgpp.c (funcs): Leave fdopenw null.
* libiberty/pex-msdos (funcs): Same.
* libiberty/functions.texi: Regenerated.

* libiberty/pex-common.h (struct pex_obj): Doc fixes.

* libiberty/functions.texi: Regenerate.

From-SVN: r112435

16 years agopex-win32.c (pex_win32_exec_child): Close stdout/stderr in parent.
Mark Mitchell [Mon, 27 Mar 2006 09:52:09 +0000 (27 09:52 +0000)]
pex-win32.c (pex_win32_exec_child): Close stdout/stderr in parent.

* libiberty/pex-win32.c (pex_win32_exec_child): Close stdout/stderr
in parent.

From-SVN: r112415

16 years agopex-win32.c (pex_win32_exec_child): Close stdout/stderr in parent.
Mark Mitchell [Mon, 27 Mar 2006 09:50:00 +0000 (27 09:50 +0000)]
pex-win32.c (pex_win32_exec_child): Close stdout/stderr in parent.

* libiberty/pex-win32.c (pex_win32_exec_child): Close stdout/stderr
in parent.

From-SVN: r112414

16 years agore PR libstdc++/20448 (locale testsuite fails when GCC is configured with --disable...
Mark Mitchell [Fri, 24 Mar 2006 02:05:46 +0000 (24 02:05 +0000)]
re PR libstdc++/20448 (locale testsuite fails when GCC is configured with --disable-nls)

PR libstdc++/20448
PR libstdc++/20451
* libstdc++-v3/scripts/testsuite_flags.in (--cxxflags): Don't
define LOCALEDIR.
* libstdc++-v3/testsuite/lib/libstdc++.exp (libstdc++_init):
Always define LOCALEDIR to ".".
(v3-build_support): Build MO files.

Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
From-SVN: r112347

16 years agopex-win32.c (<errno.h>): Include.
Mark Mitchell [Mon, 20 Mar 2006 19:41:52 +0000 (20 19:41 +0000)]
pex-win32.c (<errno.h>): Include.

* libiberty/pex-win32.c (<errno.h>): Include.
(fix_argv): Remove.
(argv_to_cmdline): New function.
(std_suffixes): New variable.
(no_suffixes): Likewise.
(find_executable): New function.
(win32_spawn): Likewise.
(spawn_script): Use win32_spawn instead of _spawnv[p].
(pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
(pex_win32_wait): Likewise.

From-SVN: r112226

16 years agoClarify last log entry.
Joseph Myers [Sat, 18 Mar 2006 01:02:57 +0000 (18 01:02 +0000)]
Clarify last log entry.

From-SVN: r112197

16 years agodwarf2.h (DW64_CIE_ID): Define.
Joseph Myers [Sat, 18 Mar 2006 00:07:45 +0000 (18 00:07 +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.
(value_format): Use DW_FORM_data4 or DW_FORM_data8 depending on
DWARF_OFFSET_SIZE.

From-SVN: r112191

16 years agoinvoke.texi: Define -femit-class-debug-always.
Carlos O'Donell [Fri, 17 Mar 2006 20:02:59 +0000 (17 20:02 +0000)]
invoke.texi: Define -femit-class-debug-always.

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

* gcc/doc/invoke.texi: Define -femit-class-debug-always.
* gcc/common.opts: Likewise.
* gcc/cp/search.c (maybe_suppress_debug_info): Suppress
debug info if flag_emit_class_debug_always is zero.

From-SVN: r112181

16 years agoconfig.gcc (mips64*-*-linux*): Keep existing tm_defines.
Richard Sandiford [Fri, 17 Mar 2006 11:26:51 +0000 (17 11:26 +0000)]
config.gcc (mips64*-*-linux*): Keep existing tm_defines.

* config.gcc (mips64*-*-linux*): Keep existing tm_defines.
(mips*-*-linux*): Likewise.

From-SVN: r112172

16 years agoconfig.gcc (tm_defines): Always add to previous value rather than replacing it.
Joseph Myers [Fri, 17 Mar 2006 00:00:32 +0000 (17 00:00 +0000)]
config.gcc (tm_defines): Always add to previous value rather than replacing it.

* gcc/config.gcc (tm_defines): Always add to previous value rather
than replacing it.

From-SVN: r112161

16 years agoarm.c (minipool_pad): New.
Paul Brook [Wed, 15 Mar 2006 20:25:34 +0000 (15 20:25 +0000)]
arm.c (minipool_pad): New.

2006-03-15  Paul Brook  <paul@codesourcery.com>

* gcc/config/arm/arm.c (minipool_pad): New.
(add_minipool_forward_ref): Unclude pool alignment padding in address
calculation.
(push_minipool_fix): Set minipool_pad.
(minipool_pad): Ditto.

From-SVN: r112100

16 years agoMerge from gcc-4_1-branch revision 111560 (gcc-4_1_0-release)
Paul Brook [Thu, 2 Mar 2006 19:38:43 +0000 (2 19:38 +0000)]
Merge from gcc-4_1-branch revision 111560 (gcc-4_1_0-release)

From-SVN: r111645

16 years agobackport: config.gcc (mt-*-*): Add --with-arch support.
Nathan Sidwell [Mon, 27 Feb 2006 10:50:53 +0000 (27 10:50 +0000)]
backport: config.gcc (mt-*-*): Add --with-arch support.

        Backport the following
        * gcc/config.gcc (mt-*-*): Add --with-arch support.
        (--with): Print accepted options on error.
        * gcc/config/mt/mt.h (OPTION_DEFAULT_SPECS): Define.

        * gcc/config/mt/mt.c (DEF_VEC_P(basic_block),
        DEF_VEC_ALLOC_P(basic_bloc,heap)): Remove from here.

        * gcc/config/mt/mt.md (UNSPEC_LOOP): New constant.
        (loop_end, loop_init, doloop_end): New insns.
        * gcc/config/mt/mt.h (LOOP_FIRST, LOOP_LAST): New.
        (SPECIAL_REG_FIRST, FIRST_PSEUDO_REGISTER): Adjust.
        (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
        (REG_CLASS_CONTENTS, REGISTER_NAMES): Adjust.
        * gcc/config/mt/mt.c: #include basic-block.h
        (struct machine_function): Add has_loops field.
        (mt_add_loop): New.
        (MAX_LOOP_DEPTH, MAX_LOO_LENGTH): New.
        (struct loop_info, struct loop_work): New.
        (mt_loop_nesting, ms1_block_length, ms1_scan_loop): New workers.
        (mt_reorg_loops): New loop optimization.
        (mt_machine_reorg): Call it.
        * gcc/config/mt/mt-protos.h (mt_add_loop): Declare.

        * gcc/vec.h (VEC_block_remove): New.

        * gcc/loop-doloop.c (add_test): Only add jump notes if we did emit a
        jump.

From-SVN: r111473

16 years agore PR target/24837 (move dynamic linker names out of LINK_SPEC and into new DYNAMIC_L...
Joseph Myers [Sat, 18 Feb 2006 11:17:08 +0000 (18 11:17 +0000)]
re PR target/24837 (move dynamic linker names out of LINK_SPEC and into new DYNAMIC_LINKER)

PR target/24837
* gcc/config.gcc: Define UCLIBC_DEFAULT to 0 or 1.
* gcc/opth-gen.awk: Handle Var and InverseMask together.
* gcc/config/linux.opt (muclibc, mglibc): Use Var(linux_uclibc).
* gcc/config/linux.h: Use #if not #ifdef for testing
UCLIBC_DEFAULT.
(TARGET_C99_FUNCTIONS): Test OPTION_GLIBC not TARGET_GLIBC.
(CHOOSE_DYNAMIC_LINKER): Give an error for -mglibc and -muclibc
used together.
(UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
* gcc/config/alpha/linux-elf.h (GLIBC_DYNAMIC_LINKER,
UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
LINUX_DYNAMIC_LINKER): Define.
(ELF_DYNAMIC_LINKER): Define to LINUX_DYNAMIC_LINKER.
* gcc/config/alpha/linux.h (TARGET_C99_FUNCTIONS): Define to
TARGET_GLIBC.
* gcc/config/cris/linux.h (GLIBC_DYNAMIC_LINKER): Define.
(CRIS_LINK_SUBTARGET_SPEC): Pass a -dynamic-linker option.
* gcc/config/frv/linux.h (GLIBC_DYNAMIC_LINKER): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
(TARGET_C99_FUNCTIONS): Don't define.
* gcc/config/i386/linux.h (DYNAMIC_LINKER): Rename to
GLIBC_DYNAMIC_LINKER.
(SUBTARGET_EXTRA_SPECS): Use LINUX_DYNAMIC_LINKER.
* gcc/config/i386/linux64.h (GLIBC_DYNAMIC_LINKER32,
GLIBC_DYNAMIC_LINKER64): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
LINUX_DYNAMIC_LINKER64.
* gcc/config/ia64/linux.h (GLIBC_DYNAMIC_LINKER): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
* gcc/config/m32r/linux.h (GLIBC_DYNAMIC_LINKE): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
* gcc/config/m68k/linux.h (GLIBC_DYNAMIC_LINKER): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
* gcc/config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32,
GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32,
UCLIBC_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKERN32): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKER64
and LINUX_DYNAMIC_LINKER32.
* gcc/config/mn10300/linux.h (GLIBC_DYNAMIC_LINKER): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
* gcc/config/pa/pa-linux.h (GLIBC_DYNAMIC_LINKER): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
* gcc/config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define to
TARGET_GLIBC.
* gcc/config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
(GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64,
UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
CHOOSE_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
(LINK_OS_LINUX_SPEC32): Use LINUX_DYNAMIC_LINKER32.
(LINK_OS_LINUX_SPEC64): Use LINUX_DYNAMIC_LINKER64.
* gcc/config/rs6000/sysv4.h (GLIBC_DYNAMIC_LINKER,
UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
LINUX_DYNAMIC_LINKER): Define.
(LINK_OS_LINUX_SPEC): Use LINUX_DYNAMIC_LINKE.
* gcc/config/s390/linux.h (GLIBC_DYNAMIC_LINKER32,
GLIBC_DYNAMIC_LINKER64): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
LINUX_DYNAMIC_LINKER64.
* gcc/config/sh/linux.h (GLIBC_DYNAMIC_LINKER): Define.
(SUBTARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
* gcc/config/sparc/linux.h (GLIBC_DYNAMIC_LINKER,
UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
LINUX_DYNAMIC_LINKER): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
(TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
* gcc/config/sparc/linux64.h (GLIBC_DYNAMIC_LINKER32,
GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER32,
UCLIBC_DYNAMIC_LINKER64, CHOOSE_DYNAMIC_LINKER,
LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
(LINK_ARCH32_SPEC): Use LINUX_DYNAMIC_LINKER32.
(LINK_ARCH64_SPEC, LINK_SPEC): Use LINUX_DYNAMIC_LINKER64.
(TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
* gcc/config/xtensa/linux.h (GLIBC_DYNAMIC_LINKER): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
* gcc/doc/invoke.texi (-muclibc): Remove caveat about supported
targets.
* gcc/testsuite/gcc.dg/glibc-uclibc-1.c,
gcc/testsuite/gcc.dg/glibc-uclibc-2.c: New tests.

From-SVN: r111236

16 years agore PR libstdc++/14939 (libstdc++ doesn't compile with uclibc headers)
Joseph Myers [Thu, 16 Feb 2006 23:38:44 +0000 (16 23:38 +0000)]
re PR libstdc++/14939 (libstdc++ doesn't compile with uclibc headers)

PR libstdc++/14939
PR target/20353
PR target/24578
PR target/24837
* gcc/config/linux.opt: New file.
* gcc/config/linux.h (CHOOSE_DYNAMIC_LINKER,
UCLIBC_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER): Define.
(TARGET_C99_FUNCTIONS): Define depending on TARGET_GLIBC.
* gcc/config.gcc (*-*-linux*): Define extra_options.
(*-*-*uclibc*): Define UCLIBC_DEFAULT.
(arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
* gcc/config/arm/linux-eabi.h (LINUX_TARGET_INTERPRETER): Change
to GLIBC_DYNAMIC_LINKER.
* gcc/config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): Likewise.
(LINUX_TARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
* gcc/config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
* gcc/doc/invoke.texi (GNU/Linux Options): New section.
* gcc/testsuite/gcc.dg/builtins-config.h (HAVE_C99_RUNTIME): Don't
define if __UCLIBC__ is defined.
* libstdc++-v3/config/os/uclibc/ctype_base.h,
libstdc++-v3/config/os/uclibc/ctype_inline.h,
libstdc++-v3/config/os/uclibc/ctype_noninline.h,
libstdc++-v3/config/os/uclibc/os_defines.h: New.
* libstdc++-v3/acinclude.m4 (GLIBCXX_CONFIGURE): Test whether
using uClibc.
* libstdc++-v3/configure.host: Use os/uclibc for uClibc.
* libstdc++-v3/crossconfig.m4 (*-linux*): Use link tests.  Don't
hardcode presence of math functions.
* libstdc++-v3/configure: Regenerate.

From-SVN: r111161

16 years agoreload1.c (emit_reload_insns): Invalidate dead input registers used for reloads.
Paul Brook [Thu, 16 Feb 2006 16:01:41 +0000 (16 16:01 +0000)]
reload1.c (emit_reload_insns): Invalidate dead input registers used for reloads.

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

* reload1.c (emit_reload_insns): Invalidate dead input registers used
for reloads.

From-SVN: r111142

16 years agoMerge from gcc-4_1-branch revision 110478.
Paul Brook [Wed, 8 Feb 2006 20:26:58 +0000 (8 20:26 +0000)]
Merge from gcc-4_1-branch revision 110478.

From-SVN: r110766

16 years agobackport: function.c (assign_parm_setup_reg): Use function argument promotion rules.
Paul Brook [Wed, 1 Feb 2006 19:46:37 +0000 (1 19:46 +0000)]
backport: function.c (assign_parm_setup_reg): Use function argument promotion rules.

2006-02-01  Paul Brook  <paul@codesourcery.com>

Backport form mainline.
* gcc/function.c (assign_parm_setup_reg): Use function argument
promotion rules.
* gcc/expr.c (expand_expr_real_1): Use function argument promotion
rules for PARM_DECLs.

From-SVN: r110478

16 years agoversion.c: Mark as CodeSourcery build.
Paul Brook [Fri, 27 Jan 2006 01:44:44 +0000 (27 01:44 +0000)]
version.c: Mark as CodeSourcery build.

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

* version.c: Mark as CodeSourcery build.

From-SVN: r110295

16 years agobackport: fix-header.c (read_scan_file): Add new parameter imultilib when calling...
Joseph Myers [Tue, 24 Jan 2006 11:00:09 +0000 (24 11:00 +0000)]
backport: fix-header.c (read_scan_file): Add new parameter imultilib when calling register_include_chains.

Backport from mainline.
2006-01-23  Adam Nemet  <anemet@caviumnetworks.com>

* fix-header.c (read_scan_file): Add new parameter imultilib when
calling register_include_chains.

From-SVN: r110166

16 years agobackport: re PR testsuite/25590 (FAIL: gcc.dg/tree-ssa/gen-vect-11.c scan-tree-dump...
Julian Brown [Mon, 23 Jan 2006 17:42:38 +0000 (23 17:42 +0000)]
backport: re PR testsuite/25590 (FAIL: gcc.dg/tree-ssa/gen-vect-11.c scan-tree-dump-times vectorized 1 loops 1)

Backport from mainline.
2006-01-23  Kazu Hirata  <kazu@codesourcery.com>
PR testsuite/25590
* gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11.c: Add -fwrapv.

From-SVN: r110133

16 years ago[multiple changes]
Paul Brook [Fri, 20 Jan 2006 23:27:05 +0000 (20 23:27 +0000)]
[multiple changes]

2006-01-20  Paul Brook  <paul@codesourcery.com>

Merge from csl-arm-branch.
2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
* config/arm/arm.md (movdi): Force operands[1] to a register
if we have a non-register source.
(*arm_movdi, *movdf_soft_insn): Require that one of the
operands be a register.
* config/arm/iwmmxt.md (*iwmmxt_arm_movdi): Likewise.
* config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.

From-SVN: r110050

16 years agore PR libstdc++/25524 (libstdc++ headers should go in multilib directories)
Joseph Myers [Fri, 20 Jan 2006 21:00:52 +0000 (20 21:00 +0000)]
re PR libstdc++/25524 (libstdc++ headers should go in multilib directories)

PR libstdc++/25524
* gcc/cppdefault.h (struct default_include): Add multilib flag.
* gcc/cppdefault.c (cpp_include_defaults): Set it.
* gcc/c.opt (-imultilib): New option.
* gcc/c-opts.c (imultilib): New.
(c_common_handle_option): Handle -imultilib.
(c_common_post_options): Likewise.
* gcc/c-incpath.c (add_standard_paths, register_include_chains):
Likewise.
* gcc/c-incpath.h (register_include_chains): Add extra parameter.
* gcc/gcc.c (do_spec_1): Generate -imultilib option.
(The Specs Language): Update %I description.
(process_command): Update copyright notice.
* gcc/doc/cppopts.texi (-imultilib): Document.
* gcc/doc/invoke.texi (-imultilib): Include in option summary.
(%I): Update specs documentation.
* libstdc++-v3/include/Makefile.am: Install host-specific headers
in multilib subdirectory.
* libstdc++-v3/include/Makefile.in: Regenerate.

From-SVN: r110038

16 years agobackport: unwind-dw2-fde.c: Import from MingW build for ZCX support.
Julian Brown [Fri, 20 Jan 2006 18:53:25 +0000 (20 18:53 +0000)]
backport: unwind-dw2-fde.c: Import from MingW build for ZCX support.

Merge from csl-gxxpro-3_4-branch.
2005-11-28  Mark Mitchell  <mark@codesourcery.com>
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 MingW.
* 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: r110036

16 years agobackport: Makefile.am (LTLDFLAGS): New variable.
Julian Brown [Fri, 20 Jan 2006 18:34:19 +0000 (20 18:34 +0000)]
backport: Makefile.am (LTLDFLAGS): New variable.

Backport from mainline.
2006-01-02  Mark Mitchell  <mark@codesourcery.com>
* libstdc++-v3/src/Makefile.am (LTLDFLAGS): New variable.
(CXXLINK): Use LTLDFLAGS.
* libstdc++-v3/src/Makefile.in: Regenerated.
* libstdc++-v3/libsupc++/Makefile.am (LTLDFLAGS): New variable.
(CXXLINK): Use LTLDFLAGS.
* libstdc++-v3/libsupc++/Makefile.in: Regenerated.

2006-01-02  Mark Mitchell  <mark@codesourcery.com>
* libtool-ldflags: New script.

From-SVN: r110035

16 years agobackport: vx-common.h (DBX_DEBUGGING_INFO): Define to 1.
Julian Brown [Fri, 20 Jan 2006 18:22:45 +0000 (20 18:22 +0000)]
backport: vx-common.h (DBX_DEBUGGING_INFO): Define to 1.

Merge from csl-gxxpro-3_4-branch:
2005-09-14  Mark Mitchell  <mark@codesourcery.com>
* gcc/config/vx-common.h (DBX_DEBUGGING_INFO): Define to 1.

From-SVN: r110033

16 years agobackport: invoke.texi: For man pages, include gcc-vers.texi.
Julian Brown [Fri, 20 Jan 2006 18:20:17 +0000 (20 18:20 +0000)]
backport: invoke.texi: For man pages, include gcc-vers.texi.

Backport from mainline.
2005-11-23  Mark Mitchell  <mark@codesourcery.com>
* gcc/doc/invoke.texi: For man pages, include gcc-vers.texi.
List @file in the option summary.  Include the libiberty documentation
for @file.
* gcc/gcc.c (main): Call expandargv.
* gcc/Makefile.in (gcc-vers.texi): Define srcdir.

2005-11-23  Mark Mitchell  <mark@codesourcery.com>
* maintainer-scripts/update_web_docs_svn: Set @srcdir in gcc-vers.texi.

From-SVN: r110032

16 years agoMissing bits from previous patch.
Paul Brook [Fri, 20 Jan 2006 16:30:17 +0000 (20 16:30 +0000)]
Missing bits from previous patch.

2006-01-20  Paul Brook  <paul@codesourcery.com>

Merge from csl-arm-branch.
2005-10-20  Paul Brook  <paul@codesourcery.com>
* config/arm/arm.c (arm_default_cpu): New.
(arm_override_options): Set arm_default_cpu.
(arm_file_start): Output EABI attribute directives.

From-SVN: r110029

16 years ago[multiple changes]
Paul Brook [Fri, 20 Jan 2006 14:54:41 +0000 (20 14:54 +0000)]
[multiple changes]

2006-01-20  Paul Brook  <paul@codesourcery.com>

Merge from csl-arm-branch.
2005-10-20  Paul Brook  <paul@codesourcery.com>
* config/arm/arm.c (arm_default_cpu): New.
(arm_override_options): Set arm_default_cpu.
(arm_file_start): Output EABI attribute directives.

From-SVN: r110028

16 years ago[multiple changes]
Paul Brook [Fri, 20 Jan 2006 14:27:32 +0000 (20 14:27 +0000)]
[multiple changes]

2006-01-20  Paul Brook  <paul@codesourcery.com>

Merge from csl-arm-branch.
2005-10-20  Paul Brook  <paul@codesourcery.com>
* config/arm/arm.c (arm_elf_asm_constructor): Remove ATTRIBUTE_UNUSED
from priority argument.  Use different section names for non-default
priority.
* config/arm/elf.h: Remove definition of SUPPORTS_INIT_PRIORITY.

From-SVN: r110024

16 years ago[multiple changes]
Paul Brook [Wed, 18 Jan 2006 20:44:36 +0000 (18 20:44 +0000)]
[multiple changes]

2006-01-18  Paul Brook  <paul@codesourcery.com>

Merge from csl-arm-branch.
2005-03-14  Julian Brown  <julian@codesourcery.com>
* config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
(aeabi_llsl): Likewise.
(ashrdi3): Likewise.
(aeabi_lasr): Likewise.
(lshrdi3): Likewise.
(aeabi_llsr): Likewise.
2005-03-10  Julian Brown  <julian@codesourcery.com>
* config.gcc: Disable shared libgcc for SymbianOS.
* config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.

From-SVN: r109913

16 years ago[multiple changes]
Paul Brook [Wed, 18 Jan 2006 19:54:09 +0000 (18 19:54 +0000)]
[multiple changes]

2006-01-18  Paul Brook  <paul@codesourcery.com>

Merge from csl-arm-branch
2005-03-10  Julian Brown  <julian@codesourcery.com>
* libstdc++configure.ac (LIBSUPCXX_PRONLY): New AM_CONDITIONAL: yes
if we are compiling for SymbianOS on ARM.
* libstdc++include/Makefile.am: Don't install C++ headers if
LIBSUPCXX_PRONLY is true.
* libstdc++libsupc++/Makefile.am: Include only eh_personality.cc
in libsupc++ if LIBSUPCXX_PRONLY is true.
* libstdc++Makefile.in: Regenerate.
* libstdc++configure: Regenerate.
* libstdc++include/Makefile.in: Regenerate.
* libstdc++libmath/Makefile.in: Regenerate.
* libstdc++libsupc++/Makefile.in: Regenerate.
* libstdc++po/Makefile.in: Regenerate.
* libstdc++src/Makefile.in: Regenerate.
* libstdc++testsuite/Makefile.in: Regenerate.

From-SVN: r109905

16 years agobackport: c-cppbuiltin.c (builtin_define_float_constants): Add fp_cast parameter...
Paul Brook [Wed, 18 Jan 2006 18:58:17 +0000 (18 18:58 +0000)]
backport: c-cppbuiltin.c (builtin_define_float_constants): Add fp_cast parameter, pass to builtin_define_with_hex_fp_value.

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

Backport from mainline.
2005-12-13  Carlos O'Donell <carlos@codesourcery.com>
* gcc/c-cppbuiltin.c (builtin_define_float_constants): Add
fp_cast parameter, pass to builtin_define_with_hex_fp_value.
Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
(builtin_define_with_hex_fp_value): Use fp_cast when building macro.
(c_cpp_builtins): If flag_single_precision_constant then set fp_cast
to "((double)%sL)" otherwise "%s".
* gcc/testsuite/gcc.dg/single-precision-constant.c: New test.
* libstdc++-v3/include/std/std_limits.h (struct numeric_limits):
Use __DBL_HAS_DENORM__, __FLT_HAS_DENORM__, __LDBL_HAS_DENORM__.

From-SVN: r109901

16 years agobackport: predicates.md (call_memory_operand): New.
Paul Brook [Tue, 17 Jan 2006 21:18:02 +0000 (17 21:18 +0000)]
backport: predicates.md (call_memory_operand): New.

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

Backport from mainline.
2005-12-15  Richard Sandiford  <richard@codesourcery.com>
* gcc/config/arm/predicates.md (call_memory_operand): New.
* gcc/config/arm/arm.md (*call_mem, *call_value_mem): Use it.
* gcc/testsuite/gcc.dg/20051215-1.c: New file.

* gcc/config/arm/arm.md: Provide a big-endian version of the
(zero_extend:SI (subreg:QI ...)) splitter.

From-SVN: r109841

16 years agoMerge from gcc-4_1-branch revision 109820.
Paul Brook [Tue, 17 Jan 2006 16:51:05 +0000 (17 16:51 +0000)]
Merge from gcc-4_1-branch revision 109820.

From-SVN: r109825

16 years agom68k.c (output_move_const_into_data_reg): Output correct mnemonic for mvz and mvs.r109819.2/heads/csl/coldfire-4_1
Paul Brook [Mon, 16 Jan 2006 16:03:34 +0000 (16 16:03 +0000)]
m68k.c (output_move_const_into_data_reg): Output correct mnemonic for mvz and mvs.

2006-01-16  Paul Brook  <paul@codesourcery.com>

* config/m68k/m68k.c (output_move_const_into_data_reg):
Output correct mnemonic for mvz and mvs.

From-SVN: r109752

16 years agom68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
Paul Brook [Tue, 3 Jan 2006 19:10:18 +0000 (3 19:10 +0000)]
m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.

2006-01-03  Paul Brook  <paul@codesourcery.com>

* config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.

From-SVN: r109285

16 years agom68k.md: Convert define_peephole to define_peephole2.
Paul Brook [Fri, 30 Dec 2005 01:14:37 +0000 (30 01:14 +0000)]
m68k.md: Convert define_peephole to define_peephole2.

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

* config/m68k/m68k.md: Convert define_peephole to define_peephole2.
(UNSPEC_MOVEQ_MEM): New constant.
(movsi_smallconst): New pattern.
* config/m68k/m68k.h (HARD_FP_REG_P): Define.

From-SVN: r109165

16 years agore PR target/23482 ([ColdFire] ICE in in final_scan_insn)
Paul Brook [Fri, 30 Dec 2005 01:09:11 +0000 (30 01:09 +0000)]
re PR target/23482 ([ColdFire] ICE in in final_scan_insn)

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

PR target/23482
* doc/md.texi: Document m68k Q, S, T and U constraints.
* config/m68k/m68k.h (EXTRA_CONSTRAINTS): Restrict U to 16-bit
offsets.

From-SVN: r109164

16 years agoMove Changelog entry to correct place.
Paul Brook [Fri, 30 Dec 2005 01:08:16 +0000 (30 01:08 +0000)]
Move Changelog entry to correct place.

2005-12-21  Paul Brook  <paul@codesourcery.com>

* gcc/testsuite/gcc.dg/pr19340.c: Skip on m68k targets.

From-SVN: r109163

16 years agom68k.h (RETURN_ADDR_RTX): Define.
Paul Brook [Thu, 29 Dec 2005 15:23:34 +0000 (29 15:23 +0000)]
m68k.h (RETURN_ADDR_RTX): Define.

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

* config/m68k/m68k.h (RETURN_ADDR_RTX): Define.
* config/m68k/m68k.c (m68k_initial_elimination_offset): Remove FIXME.
Include offset due to FIRST_PARM_OFFSET.

From-SVN: r109148

16 years agolb1sf68.asm (__cmpdf2): Fix typo in immediate mask.
Paul Brook [Thu, 29 Dec 2005 15:16:54 +0000 (29 15:16 +0000)]
lb1sf68.asm (__cmpdf2): Fix typo in immediate mask.

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

* config/m68k/lb1sf68.asm (__cmpdf2): Fix typo in immediate mask.
Create wrapper and rename body...
(__cmpdf2_internal): ... to this.  Return correct value for unordered
result.
(__cmpsf2): Create wrapper and rename body...
(__cmpsf2_internal): ... to this.  Return corerct value for unordered
result.
(__eqdf2, __nedf2, __gtdf2, __gedf2, __ltdf2, __ledf2): Use
__cmpdf2_internal.
(__eqsf2, __nesf2, __gtsf2, __gesf2, __ltsf2, __lesf2): Use
__cmpsf2_internal.

From-SVN: r109146