Commit Graph

82089 Commits

Author SHA1 Message Date
Lee Millward
55637e51b5 re PR fortran/32222 (ICE in gfc_trans_assignment_1)
PR fortran/32222
	PR fortran/32238
	PR fortran/32242	
	* trans-intrinsic.c (gfc_conv_intrinsic_function_args): Adjust
	to operate on a stack allocated array for the intrinsic arguments
	instead of creating a TREE_LIST. Add two new parameters for the
	array and the number of elements. Update all callers to allocate
	an array of the correct length to pass in. Update comment.
	(gfc_intrinsic_argument_list_length): New function.
	(gfc_conv_intrinsic_conversion): Call it.
	(gfc_conv_intrinsic_mnimax): Likewise.
	(gfc_conv_intrinsic_merge): Likewise.
	(gfc_conv_intrinsic_lib_function): Call it. Use new CALL_EXPR
	constructors.
	(gfc_conv_intrinsic_cmplx): Likewise.
	(gfc_conv_intrinsic_ctime): Likewise.
	(gfc_covn_intrinsic_fdate): Likewise.
	(gfc_conv_intrinsic_ttynam): Likewise.
	(gfc_conv_intrinsic_ishftc): Likewise.
	(gfc_conv_intrinsic_index): Likewise.
	(gfc_conv_intrinsic_scan): Likewise.
	(gfc_conv_intrinsic_verify): Likewise.
	(gfc_conv_intrinsic_trim): Likewise.
	(gfc_conv_intrinsic_aint): Use new CALL_EXPR constructors.
	(gfc_conv_intrinsic_exponent): Likewise.
	(gfc_conv_intrinsic_bound): Likewise.
	(gfc_conv_intrinsic_abs): Likewise.
	(gfc_conv_intrinsic_mod): Likewise.
	(gfc_conv_intrinsic_sign): Likewise.
	(gfc_conv_intrinsic_len): Likewise.
	(gfc_conv_intrinsic_adjust): Likewise.
	(gfc_conv_intrinsic_si_kind): Likewise. 

	* gfortran.dg/cmplx_intrinsic_1.f90: New test.

	PR fortran/32238
	* gfortran.dg/pr32238.f90: New test.

	PR fortran/32222
	* gfortran.dg/pr32222.f90: New test.

	PR fortran/32242
	* gfortran.dg/pr32242.f90: New test.

From-SVN: r126689
2007-07-16 19:12:44 +00:00
Sandra Loosemore
d56b9f1222 mips.h (TUNE_24K): Define.
2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
	    David Ung  <davidu@mips.com>

        gcc/

        * config/mips/mips.h (TUNE_24K): Define.
	(TUNE_MACC_CHAINS): Add TUNE_24K.
        * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
        imadd.
        * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
        (r74k_int_madd): .. this new reservation.
        (define_bypass): Fixed bypasses for r74k_int_madd to use
	mips_linked_madd_p.
        * config/mips/24k.md (define_bypass): Define new
        r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.

	gcc/testsuite/

        * gcc.target/mips/mips-sched-madd.c: New test case.

Co-Authored-By: David Ung <davidu@mips.com>

From-SVN: r126688
2007-07-16 14:12:01 -04:00
Sandra Loosemore
0015c873f4 mips.md: Include 20kc.md.
2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
	    Nigel Stephens  <nigel@mips.com>

        gcc/

	* config/mips/mips.md:  Include 20kc.md.
	* config/mips/20kc.md: New file.
	* config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
	(mips_adjust_cost): Tweak for 20Kc.
	(mips_issue_rate): Likewise.
	* config/mips/mips.h (TUNE_20KC): Define.

Co-Authored-By: Nigel Stephens <nigel@mips.com>

From-SVN: r126687
2007-07-16 13:57:40 -04:00
David Edelsohn
0b11da6707 rs6000.c (struct processor cost): Add cache_line_size, l1_cache_lines, and simultaneous_prefetches fields.
* config/rs6000/rs6000.c (struct processor cost): Add
	cache_line_size, l1_cache_lines, and simultaneous_prefetches
	fields.
	(*_cost): Add cache information.
	(rs6000_override_options): Set cache parameters.

From-SVN: r126686
2007-07-16 13:31:51 -04:00
Rainer Orth
40f5cc95ab re PR bootstrap/3456 (bootstrapping gcc-3.0 with threadmodel=posix fails on IRIX64 6.5)
gcc:
	PR bootstrap/3456
	* config.gcc (mips-sgi-irix[56]*): Enable pthread support.
	* doc/install.texi (mips-sgi-irix6): pthread support works now.

	libstdc++-v3:
	PR bootstrap/3456
	* testsuite/22_locale/locale/cons/12658_thread-1.cc: Enable on
	mips-sgi-irix6*.
	* testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
	* testsuite/thread/18185.cc: Likewise.
	* testsuite/thread/pthread1.cc: Likewise.
	* testsuite/thread/pthread2.cc: Likewise.
	* testsuite/thread/pthread3.cc: Likewise.
	* testsuite/thread/pthread4.cc: Likewise.
	* testsuite/thread/pthread5.cc: Likewise.
	* testsuite/thread/pthread6.cc: Likewise.
	* testsuite/thread/pthread7-rope.cc: Likewise.
	* testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc: Likewise.
	* testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.

From-SVN: r126685
2007-07-16 17:21:10 +00:00
Rainer Orth
c1331fd4fb re PR target/32462 (Linking libgcj.so fails on Solaris 10/x86)
PR target/32462
	PR libgcj/32465
	* class.c (hide): Wrap in HAVE_GAS_HIDDEN.

From-SVN: r126684
2007-07-16 17:07:25 +00:00
Rainer Orth
04a4998306 configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
* configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
	* configure: Regenerate.

From-SVN: r126683
2007-07-16 17:05:41 +00:00
Ulrich Weigand
5273aaa905 Fix broken commit -- add files that were missed.
From-SVN: r126682
2007-07-16 13:30:46 +00:00
Paul Brook
fb02857163 re PR target/32753 (building a crosscompiler for arm-elf fails because of an error in cirrus.md)
2007-07-16  Paul Brook  <paul@codesourcery.com>

	PR target/32753
	gcc/
	* config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
	(cirrus_thumb2_movsi_insn): Ditto.

From-SVN: r126681
2007-07-16 13:18:45 +00:00
Paul Brook
dab0324ad7 re PR target/32753 (building a crosscompiler for arm-elf fails because of an error in cirrus.md)
2007-07-16  Paul Brook  <paul@codesourcery.com>

	PR target/32753
	gcc/
	* config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.

From-SVN: r126679
2007-07-16 13:01:18 +00:00
Rask Ingemann Lambertsen
3d08716e93 re PR target/32340 ([arm] libjava build failure due to missing thread synchronization primitives)
PR target/32340
	* configure.host (arm*-elf | strongarm*-elf | xscale*-elf): Use the
	new sysdeps/arm directory.

From-SVN: r126675
2007-07-16 10:32:05 +00:00
Danny Smith
54d82da191 ctype_base.h: Use the generic libstdc++ masks rather than MSVCRT defines.
* config/os/mingw32/ctype_base.h: Use the generic libstdc++ masks
	rather than MSVCRT defines.
	* config/os/mingw32/ctype_noninline.h (classic_table): Construct
	and return a static classic table based on generic libstdc++ masks.

From-SVN: r126674
2007-07-16 09:19:26 +00:00
Andreas Krebbel
19ddfd3a76 MAINTAINERS (S/390 port maintainer): Remove my co-maintainer tag.
2007-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>

	* MAINTAINERS (S/390 port maintainer): Remove my co-maintainer tag.

From-SVN: r126673
2007-07-16 08:11:23 +00:00
Andreas Krebbel
2a06454566 MAINTAINERS (S/390 co-maintainer): Add myself.
2007-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>

	* MAINTAINERS (S/390 co-maintainer): Add myself.
	(Write after approval): Remove myself.

From-SVN: r126672
2007-07-16 07:45:03 +00:00
Uros Bizjak
e3b715a06b target-supports.exp (check_effective_target_vect_aligned_arrays): Remove "naturally" from the function comment.
* target-supports.exp (check_effective_target_vect_aligned_arrays):
        Remove "naturally" from the function comment.

From-SVN: r126671
2007-07-16 08:10:25 +02:00
Tom Tromey
6e7b20ac6e File.java: Implement Comparable<File>.
* java/io/File.java: Implement Comparable<File>.
	(compareTo): Removed.
	* java/io/File.h: Rebuilt.
	* classpath/lib/java/io/File.class: Rebuilt.

From-SVN: r126670
2007-07-16 05:00:28 +00:00
GCC Administrator
6f04e85d9c Daily bump.
From-SVN: r126666
2007-07-16 00:17:13 +00:00
Tom Tromey
65d0c7885e * Rebuilt .class files.
From-SVN: r126663
2007-07-15 23:58:55 +00:00
Janne Blomqvist
75ef384e85 re PR target/32748 (gfortran.dg/array_constructor_6.f90)
2007-07-16  Janne Blomqvist  <jb@gcc.gnu.org>

	PR fortran/32748
	* trans-decl.c (gfc_build_builtin_function_decls): Remove
	DECL_IS_MALLOC attribute from internal_realloc, thus reverting
	part of my 2007-07-03 patch.

From-SVN: r126662
2007-07-16 00:33:32 +03:00
Geoffrey Keating
fb0671a8c2 darwin-fallback.c (interpret_libc): Change CR2_REGNO to R_CR2.
* config/rs6000/darwin-fallback.c (interpret_libc): Change
	CR2_REGNO to R_CR2.

From-SVN: r126661
2007-07-15 21:22:14 +00:00
Krister Walfridsson
91f6762edf natGCInfo.cc: Use HAVE_STRERROR_R.
2007-07-14  Krister Walfridsson  <cato@df.lth.se>

	* gnu/gcj/util/natGCInfo.cc: Use HAVE_STRERROR_R.
	* configure.ac: Remove check for strerror, add check for strerror_r.
	* configure: Regenerate.
	* include/config.h.in: Regenerate.

From-SVN: r126660
2007-07-15 21:13:05 +00:00
Andrew Haley
945e62ddd5 configure.host: arm*-linux-gnu -> arm*-linux*.
2007-07-15  Andrew Haley  <aph@redhat.com>

        * configure.host: 
        arm*-linux-gnu -> arm*-linux*.

From-SVN: r126659
2007-07-15 18:18:35 +00:00
Andrew Haley
759580edb7 unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL before looking in the context.
2007-07-15  Andrew Haley  <aph@redhat.com>

        * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc !=
	NULL before looking in the context.

From-SVN: r126658
2007-07-15 17:37:43 +00:00
John David Anglin
16c16a2476 re PR middle-end/32398 (checking for suffix of object files... configure: error: cannot compute suffix of f object files: cannot compile)
PR middle-end/32398
	PR middle-end/32769
	* pa-protos.h (pa_eh_return_handler_rtx): Declare.
	* pa.c (pa_extra_live_on_entry, rp_saved): Declare.
	(TARGET_EXTRA_LIVE_ON_ENTRY): Define.
	(pa_output_function_prologue): Use rp_saved and current_function_is_leaf
	to generate .CALLINFO statement.
	(hppa_expand_prologue): Set rp_saved.
	(hppa_expand_epilogue): Use rp_saved.
	(pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
	* pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.

From-SVN: r126657
2007-07-15 17:19:13 +00:00
Jerry DeLisle
b220e3f9c9 re PR libfortran/32611 (Print sign of negative zero)
2007-07-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/32611
	* gfortran.dg/large_real_kind_1.f90: Update test.
	* gfortran.dg/pr17706.f90: Update test.
	* gfortran.dg/fmt_zero_digits.f90: Update test.
	* gfortran.dg/fmt_zero_precision.f90: Update test.
	* gfortran.dg/real_const_3.f90: Update test.

From-SVN: r126656
2007-07-15 16:35:07 +00:00
Jerry DeLisle
68d2e027fa re PR libfortran/32611 (Print sign of negative zero)
2007-07-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
	    Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

	PR fortran/32611
	* gfortran.h (gfc_option_t): Add flag_sign_zero field.
	* lang.opt (-fsign-zero): New option.
	* trans.h: Rename gfor_fndecl_set_std into gfor_fndecl_set_options.
	* trans-decl.c (gfc_build_builtin_function_decls): Build the function
	declaration to pass an array containing the options to be used by the
	runtime library. (gfc_generate_function_code): Build an array that
	contains option values to be passed to the runtime library and the call
	to the function. 
	* options.c (gfc_init_options): Initialize the flag_sign_zero field.
	(gfc_handle_option): Handle the -fsign-zero option.

Co-Authored-By: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>

From-SVN: r126655
2007-07-15 16:29:19 +00:00
Jerry DeLisle
2bb6de3a7e re PR libfortran/32611 (Print sign of negative zero)
2007-07-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
	    Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

	PR fortran/32611
	* runtime/compile_options.c (set_std): Remove.
	(set_options): New function.
	(init_compile_options): Add initialization for -fsign-zero option.
	* gfortran.map (GFORTRAN_1.0): Rename _gfortran_set_std into
	_gfortran_set_options.
	* libgfortran.h (compile_options_t): Add sign_zero field.
	* io/write.c (output_float): Use the sign bit of the value to determine
	if a negative sign should be emitted for zero values.  Do not emit the
	negative sign for zero if -fno-sign-zero was set during compile.

Co-Authored-By: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>

From-SVN: r126654
2007-07-15 16:26:22 +00:00
Dirk Mueller
639d3040d4 omega.c (coalesce): Fix memory leak on early exit.
2007-07-15  Dirk Mueller  <dmueller@suse.de>

        * omega.c (coalesce): Fix memory leak on early exit.
        * matrix-reorg.c (check_allocation_function): Likewise.
        * tree-vect-transform.c (vect_get_new_vect_var): free result
        of concat().
        * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
        pass pointer to edge vector
        (partition_hot_cold_basic_blocks): Fix memory leak.
        * collect2.c (prefix_from_string): Free temporary storage.
        * reload1.c (fixup_abnormal_edges): Free sbitmap.

From-SVN: r126653
2007-07-15 11:45:30 +00:00
Jerry DeLisle
d40150cc3c re PR libfortran/32752 (Segfault on WRITE with modified unix_stream structure)
2007-07-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/32752
	* io/unix.c (unix_stream): Move buffer pointer adjacent to small_buffer.
	* io/transfer.c (formatted_transfer_scalar): If stream I/O, set
	bytes_used to zero. Fix off by one error in calculation of pos and
	skips. Eliminate duplicate pending_spaces check.

From-SVN: r126652
2007-07-15 05:29:29 +00:00
GCC Administrator
6816e2e17d Daily bump.
From-SVN: r126650
2007-07-15 00:17:11 +00:00
Francois-Xavier Coudert
a90552d564 re PR fortran/32036 (Multiple evaluation of array index with bounds checking)
PR fortran/32036

	* trans-array.c (gfc_conv_array_ref): Only evaluate index once.

	* gfortran.dg/bounds_check_8.f90: New test.
	* gfortran.dg/do_iterator_2.f90: Make code legal Fortran.

From-SVN: r126647
2007-07-14 23:59:00 +00:00
Francois-Xavier Coudert
3705841503 re PR fortran/32357 (MVBITS gives wrong-code on big-endian with -fdefault-integer-8)
PR fortran/32357

	* iresolve.c (gfc_resolve_mvbits): Convert FROMPOS, LEN and TOPOS
	to C int.

	* intrinsics/mvbits.c: Change prototype so that FROMPOS, LEN and
	TOPOS arguments are C int.

	* gfortran.dg/mvbits_2.f90: New test.

From-SVN: r126646
2007-07-14 23:11:04 +00:00
Kaz Kojima
00f46785eb sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
* config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
	(DO_GLOBAL_DTORS_BODY): Likewise.

From-SVN: r126645
2007-07-14 22:59:56 +00:00
Thomas Koenig
3b3620db92 re PR libfortran/32731 (pack/unpack with kind=1 or kind=2 mask)
2007-07-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/32731
	* iresolve.c(gfc_resolve_pack):  A scalar mask has
	to be kind=4, an array mask with kind<4 is converted
	to gfc_default_logical_kind automatically.
	(gfc_resolve_unpack):  Convert mask to gfc_default_lotical_kind
	if it has a kind<4.

2007-07-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/32731
	* gfortran.dg/pack_mask_1.f90:  New test.
	* gfortran.dg/unpack_mask_1.f90:  New test.

From-SVN: r126644
2007-07-14 20:39:10 +00:00
Sandra Loosemore
27e3a7bc8d mips.c (mips_classify_symbol): Don't return SYMBOL_SMALL_DATA for constant pool addresses if...
2007-07-14  Sandra Loosemore  <sandra@codesourcery.com>
	    Nigel Stephens  <nigel@mips.com>

        gcc/
	* config/mips/mips.c (mips_classify_symbol): Don't return
	SYMBOL_SMALL_DATA for constant pool addresses if
	TARGET_EMBEDDED_DATA is true.

Co-Authored-By: Nigel Stephens <nigel@mips.com>

From-SVN: r126643
2007-07-14 12:56:31 -04:00
Eric Botcazou
1dd3fc430e 20001013-1.c: Move to gcc.target/sparc.
* gcc.dg/20001013-1.c: Move to gcc.target/sparc.
	* gcc.dg/20001101-1.c: Likewise.
	* gcc.dg/20001102-1.c: Likewise.
	* gcc.dg/20020116-2.c: Likewise.
	* gcc.dg/20020416-1.c: Likewise.
	* gcc.dg/sparc-constant-1.c: Likewise.
	* gcc.dg/sparc-dwarf2.c: Likewise.
	* gcc.dg/sparc-frame-1.c: Likewise.
	* gcc.dg/sparc-getcontext-1.c: Likewise.
	* gcc.dg/sparc-loop-1.c: Likewise.
	* gcc.dg/sparc-reg-1.c: Likewise.
	* gcc.dg/sparc-ret.c: Likewise.
	* gcc.dg/sparc-trap-1.c: Likewise.
	* gcc.dg/ultrasp10.c: Likewise.
	* gcc.dg/ultrasp11.c: Likewise.
	* gcc.dg/ultrasp1.c: Likewise.
	* gcc.dg/ultrasp2.c: Likewise.
	* gcc.dg/ultrasp3.c: Likewise.
	* gcc.dg/ultrasp4.c: Likewise.
	* gcc.dg/ultrasp5.c: Likewise.
	* gcc.dg/ultrasp6.c: Likewise.
	* gcc.dg/ultrasp7.c: Likewise.
	* gcc.dg/ultrasp8.c: Likewise.
	* gcc.dg/ultrasp9.c: Likewise.
	* gcc.dg/splet-1.c: Delete.

From-SVN: r126641
2007-07-14 16:01:22 +00:00
Uros Bizjak
9c32f5071a * config/i386/i386.c: Fix fallout from my previous commit.
From-SVN: r126640
2007-07-14 17:05:39 +02:00
Uros Bizjak
e41ef48678 i386.c (init_mmx_sse_builtins): Define all builtins except __builtin_ia32_emms...
* config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
        except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
        __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
        __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
        __builtin_ia32_storehps, __builtin_ia32_storelps,
        __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
        __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
        __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
        __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
        __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
        __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
        __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
        __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
        using def_builtin_const.

From-SVN: r126639
2007-07-14 15:46:40 +02:00
Daniel Franke
dec9e22db1 re PR fortran/32724 (ICE on statement function in specification part of module)
gcc/fortran:
2007-07-14  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/32724
        * parse.c (parse_spec): Emit error on unexpected statement
        function.

gcc/testsuite:
2007-07-14  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/32724
        * gfortran.dg/stfunc_5.f90: New test.

From-SVN: r126638
2007-07-14 09:33:51 -04:00
Eric Botcazou
8d1341f797 re PR tree-optimization/32705 (ICE in set_ssa_val_to, at tree-ssa-sccvn.c:1022)
PR tree-optimization/32705
	* tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
	(simplify_binary_expression): Use SSA_VAL consistently.

From-SVN: r126637
2007-07-14 08:43:48 +00:00
Uros Bizjak
5de7f07cb4 target-supports.exp (check_effective_target_vect_aligned_arrays): New procedure to check if arrays are naturally aligned to the vector alignment...
* lib/target-supports.exp (check_effective_target_vect_aligned_arrays):
        New procedure to check if arrays are naturally aligned to the vector
        alignment boundary.
        * gcc.dg/vect/pr25413a.c: Do not include stdarg.h.  Use __SIZE_TYPE__
        in size_t typedef.  Adjust tree dump scan results according to
        vect_aligned_arrays target check.
        * gcc.dg/vect/pr25413.c: Adjust tree dump scan results according to
        vect_aligned_arrays target check.
        * gcc.dg/vect/pr31699.c: Ditto.

From-SVN: r126636
2007-07-14 07:50:06 +02:00
GCC Administrator
e6343c8d29 Daily bump.
From-SVN: r126634
2007-07-14 00:16:56 +00:00
David Edelsohn
1de43f850c spe.md (SPE_ACC_REGNO): Delete definition.
* config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
        (SPEFSCR_REGNO): Delete definition.
        * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
        COUNT_REGISTER_REGNUM -> CTR_REGNO.
        * config/rs6000/rs6000.h: Do not define *_REGNO.
        LINK_REGISTER_REGNUM -> LR_REGNO.
        COUNT_REGISTER_REGNUM -> CTR_REGNO.
        * config/rs6000/predicates.md: LINK_REGISTER_REGNUM -> LR_REGNO.
        COUNT_REGISTER_REGNUM -> CTR_REGNO.
        * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
        R_VRSAVE, R_VSCR. Use them.
        * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
        R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR.  Use them.
        * config/rs6000/rs6000.md: Define REGNO constants.  Use them.
        * config/rs6000/aix.h: Define R_LR.  Use it.

From-SVN: r126631
2007-07-13 20:12:45 -04:00
Caroline Tice
62760ffd15 Add ability to track uninitialized variables, and mark uninitialized variables in the Dwarf debug info.
Add ability to track uninitialized variables, and mark uninitialized
variables in the Dwarf debug info.  Controlled by compile option
-fvar-tracking-uninit

From-SVN: r126630
2007-07-13 16:11:15 -07:00
Dan Hipschman
f861f54dd7 Add myself to MAINTAINERS with write after approval.
From-SVN: r126629
2007-07-13 14:34:01 -07:00
Sa Liu
39aeae8573 config.gcc: Add options for arch and tune on SPU.
2007-07-13  Sa Liu  <saliu@de.ibm.com>

	* config.gcc: Add options for arch and tune on SPU.
	* config/spu/predicates.md: Add constant operands 0 and 1.
	* config/spu/spu-builtins.def: Add builtins for double precision 
	floating point comparison: si_dfceq, si_dfcmeq,	si_dfcgt, si_dfcmgt, 
	si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
	spu_testsv.
	* config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with 
	a CELLEDP target.
	* config/spu/spu-protos.h: Add new function prototypes. 
	* config/spu/spu.c (spu_override_options): Check options -march and
	-mtune.
	(spu_comp_icode): Add comparison code for DFmode and vector mode.
	(spu_emit_branch_or_set): Use the new code for DFmode and vector 
	mode comparison.
	(spu_const_from_int): New.  Create a vector constant from 4 ints.
	(get_vec_cmp_insn): New.  Get insn index of vector compare instruction.
	(spu_emit_vector_compare): New.  Emit vector compare.
	(spu_emit_vector_cond_expr): New.  Emit vector conditional expression.
	* config/spu/spu.h: Add options -march and -mtune.  Define processor
	types PROCESSOR_CELL and PROCESSOR_CELLEDP.  Define macro
	CANONICALIZE_COMPARISON.
	* config/spu/spu.md: Add new insns for double precision compare
	and double precision vector compare.  Add vcond and smax/smin patterns
	to enable DFmode vector conditional expression.
	* config/spu/spu.opt: Add options -march and -mtune.
	* config/spu/spu_internals.h: Add builtins for CELLEDP target:
	si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv.  Add builtin for
	both CELL and CELLEDP targets: spu_testsv.
	* config/spu/spu_intrinsics.h: Add flag mnemonics for test special 
	values.

testsuite/
	* gcc.dg/vect/fast-math-vect-reduc-7.c: Switch on test
	for V2DFmode vector conditional expression.
	* gcc.target/spu/dfcmeq.c: New.  Test combination of abs
	and dfceq patterns.
	* gcc.target/spu/dfcmgt.c: New.  Test combination of abs
	and dfcgt patterns.
	* gcc.target/spu/intrinsics-2.c: New.  Test intrinsics for
	V2DFmode comparison and test special values.
	* lib/target-supports.exp: Switch on test for V2DFmode 
	vector conditional expression.

From-SVN: r126626
2007-07-13 18:31:08 +00:00
Uros Bizjak
2826df069f * splay-tree.h: Fix whitespace.
From-SVN: r126625
2007-07-13 18:18:48 +02:00
Richard Guenther
cbf8d355b8 re PR tree-optimization/32721 (CCP removes volatile qualifiers.)
2007-07-13  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/32721
	* tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
	TREE_THIS_VOLATILE on the folded reference.
	* tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
	if the array reference has TREE_THIS_VOLATILE set.

	* gcc.dg/pr32721.c: New testcase.

From-SVN: r126624
2007-07-13 15:41:02 +00:00
Andrew Haley
05724daed2 libgcj.ver: Add __gcj_personality_sj0.
2007-07-13  Andrew Haley  <aph@redhat.com>

        * libgcj.ver: Add __gcj_personality_sj0.

        * testsuite/libjava.jvmti/jvmti-interp.exp: Likewise.
        * testsuite/libjava.jni/jni.exp: Use -fdollars-in-identifiers.
        * testsuite/libjava.jni/cni.exp: Use -fdollars-in-identifiers.
        * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_compile_cxx_to_o): Likewise.

        * gnu/classpath/natVMStackWalker.cc (getCallingClassLoader): Check
        klass is non-null.
        * java/lang/reflect/natField.cc (getAddr): Call
        _Jv_StackTrace::GetCallingClass only if CALLER is non-null.
        * java/lang/reflect/natVMProxy.cc (run_proxy): Use
        _Jv_getFieldInternal to get field proxyClass.m.
        (_Jv_getFieldInternal): New function.

From-SVN: r126623
2007-07-13 15:36:39 +00:00
Andrew Haley
976731ee6e [multiple changes]
2007-07-13  Andrew Haley  <aph@redhat.com>

	* libgcj.ver: Add __gcj_personality_sj0.

	* testsuite/libjava.jvmti/jvmti-interp.exp: Likewise.
	* testsuite/libjava.jni/jni.exp: Use -fdollars-in-identifiers.
	* testsuite/libjava.jni/cni.exp: Use -fdollars-in-identifiers.
	* testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_compile_cxx_to_o): Likewise.

	* gnu/classpath/natVMStackWalker.cc (getCallingClassLoader): Check
	klass is non-null.
	* java/lang/reflect/natField.cc (getAddr): Call
	_Jv_StackTrace::GetCallingClass only if CALLER is non-null.
	* java/lang/reflect/natVMProxy.cc (run_proxy): Use
	_Jv_getFieldInternal to get field proxyClass.m.
	(_Jv_getFieldInternal): New function.

2007-07-11  Andrew Haley  <aph@redhat.com>

	* configure.host (arm*-linux-gnu): New.
	* sysdep/arm/locks.h: New.

From-SVN: r126622
2007-07-13 14:07:16 +00:00