Commit Graph

86087 Commits

Author SHA1 Message Date
Manuel López-Ibáñez
86b7b98bed typeck.c (check_for_casting_away_constness): Use 1 single argument, the type of cast, to decide what diagnostics generate.
2008-02-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	* typeck.c (check_for_casting_away_constness): Use 1 single
	argument, the type of cast, to decide what diagnostics generate.
	(build_static_cast_1): Remove unused code. Update call to
	check_for_casting_away_constness.
	(build_reinterpret_cast_1): Update call to
	check_for_casting_away_constness.
	(build_const_cast_1): Likewise.

From-SVN: r132609
2008-02-25 01:39:14 +00:00
GCC Administrator
55092ebf6e Daily bump.
From-SVN: r132607
2008-02-25 00:17:43 +00:00
Ralf Wildenhues
d488f6ea0c re PR ada/15479 (Ada manual problems)
PR documentation/15479
* gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
and `...' with `@dots{}' or `@enddots{}'.

From-SVN: r132603
2008-02-24 22:44:01 +00:00
Ralf Wildenhues
1992bbd9b9 re PR ada/15479 (Ada manual problems)
PR documentation/15479
* gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
use @command instead of @code, @option instead of @samp or @code,
@code instead of @var, @samp instead of @file.

From-SVN: r132602
2008-02-24 22:40:31 +00:00
Ralf Wildenhues
9538dfb92f re PR ada/15479 (Ada manual problems)
PR documentation/15479
* gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
in Makefile rules, by using `&&' rather than `;'.

From-SVN: r132601
2008-02-24 22:37:52 +00:00
Tobias Schlüter
835aac9231 arith.c: Update copyright years.
* arith.c: Update copyright years.
* arith.h: Likewise.
* array.c: Likewise.
* bbt.c: Likewise.
* check.c: Likewise.
* data.c: Likewise.
* data.h: Likewise.
* decl.c: Likewise.
* dependency.c: Likewise.
* dependency.h: Likewise.
* dump-parse-tree.c: Likewise.
* error.c: Likewise.
* expr.c: Likewise.
* gfc-internals.texi: Likewise.
* gfortran.h: Likewise.
* gfortran.texi: Likewise.
* gfortranspec.c: Likewise.
* interface.c: Likewise.
* intrinsic.c: Likewise.
* intrinsic.h: Likewise.
* intrinsic.texi: Likewise.
* invoke.texi: Likewise.
* io.c: Likewise.
* iresolve.c: Likewise.
* iso-c-binding.def: Likewise.
* iso-fortran-env.def: Likewise.
* lang-specs.h: Likewise.
* lang.opt: Likewise.
* libgfortran.h: Likewise.
* match.c: Likewise.
* match.h: Likewise.
* matchexp.c: Likewise.
* misc.c: Likewise.
* module.c: Likewise.
* openmp.c: Likewise.
* options.c: Likewise.
* parse.c: Likewise.
* parse.h: Likewise.
* primary.c: Likewise.
* resolve.c: Likewise.
* scanner.c: Likewise.
* simplify.c: Likewise.
* st.c: Likewise.
* symbol.c: Likewise.
* target-memory.c: Likewise.
* target-memory.h: Likewise.
* trans-array.h: Likewise.
* trans-const.h: Likewise.
* trans-stmt.h: Likewise.
* trans-types.c: Likewise.
* trans-types.h: Likewise.
* types.def: Likewise.

From-SVN: r132600
2008-02-24 22:43:48 +01:00
Tobias Schlüter
0418b81171 Update ChangeLog with entries for r132592.
From-SVN: r132599
2008-02-24 22:38:53 +01:00
David Edelsohn
642639ce43 rs6000.c (processor_costs): Add cache costs for e300c2 and e300c3.
* config/rs6000/rs6000.c (processor_costs): Add cache costs for
        e300c2 and e300c3.

From-SVN: r132598
2008-02-24 16:16:22 -05:00
Jerry DeLisle
c05800b6ef re PR fortran/35223 (IBITS gives compiler error)
2008-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/35223
	* simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
	(gfc_simplify_ibset): Remove call to range_check.
	(simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
	(gfc_simplify_real): Add call gfc_clear_ts to initialize the
	temporary gfc_typspec variable.

From-SVN: r132597
2008-02-24 19:18:27 +00:00
Uros Bizjak
849998c28c re PR target/35349 (gcc.c-torture/execute/20050604-1.c fails)
PR target/35349
        * gcc.c-torture/execute/20050604-1.x: New file.

From-SVN: r132596
2008-02-24 20:17:15 +01:00
Paolo Carlini
a84a98ca46 error.c (dump_expr): Don't deal directly with NEW_EXPR (and VEC_NEW_EXPR), forward to pp_expression.
2008-02-24  Paolo Carlini  <pcarlini@suse.de>

	* error.c (dump_expr): Don't deal directly with NEW_EXPR (and
	VEC_NEW_EXPR), forward to pp_expression.
	* cxx-pretty-print.c (pp_cxx_new_expression): Fix FIXME.

From-SVN: r132595
2008-02-24 18:23:19 +00:00
Uros Bizjak
98d778a663 pr22076.c: Update number of mov insns for PIC targets.
* gcc.target/i386/pr22076.c: Update number of mov insns
        for PIC targets.

From-SVN: r132594
2008-02-24 19:03:33 +01:00
Uros Bizjak
a6e6c53374 pr34256.c: Update number of mov insns for PIC targets.
* gcc.target/i386/pr34256.c: Update number of mov insns
        for PIC targets.

From-SVN: r132593
2008-02-24 18:29:10 +01:00
Tobias Schlüter
44855d8c09 trans-array.c (gfc_conv_descriptor_data_get, [...]): Use fold_buildN instead of buildN.
* trans-array.c (gfc_conv_descriptor_data_get,
gfc_conv_descriptor_data_set_internal,
gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
gfc_conv_array_transpose, gfc_grow_array,
gfc_trans_array_constructor_subarray,
gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
gfc_conv_array_initializer, gfc_trans_array_bounds,
gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
gfc_get_dataptr_offset, gfc_conv_array_parameter,
gfc_trans_dealloc_allocated, get_full_array_size,
gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
instead of buildN.
* trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
gfc_conv_component_ref, gfc_conv_cst_int_power,
gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
* trans-common.c (create_common): Likewise.
* trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
Likewise.
* trans-const.c (gfc_conv_constant_to_tree): Likewise.
* trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
gfc_trans_integer_select, gfc_trans_character_select,
gfc_trans_forall_loop, compute_overall_iter_number,
gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
gfc_trans_deallocate): Likewise.
* trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
gfc_allocate_with_status, gfc_allocate_array_with_status,
gfc_deallocate_with_status): Likewise.
* f95-lang.c (gfc_truthvalue_conversion): Likewise.
* trans-io.c (set_parameter_const, set_parameter_value,
set_parameter_ref, set_string, set_internal_unit, io_result,
set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
* trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
gfc_generate_function_code): Likewise.
* convert.c (convert): Likewise.
* trans-intrinsic.c (gfc_conv_intrinsic_conversion,
build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
gfc_conv_intrinsic_repeat): Likewise.

From-SVN: r132592
2008-02-24 17:43:23 +01:00
Diego Novillo
faebccf9b6 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
PR 33738
	* tree-vrp.c (vrp_evaluate_conditional): With
	-Wtype-limits, emit a warning when comparing against a
	constant outside the natural range of OP0's type.
	* c.opt (Wtype-limits): Move ...
	* common.opt (Wtype-limits): ... here.

testsuite/ChangeLog

	PR 33738
	* g++.dg/warn/pr33738.C: New.

From-SVN: r132591
2008-02-24 11:40:32 -05:00
David Edelsohn
88c7f01b6c Fix ChangeLog entry date.
From-SVN: r132590
2008-02-24 09:38:46 -05:00
Edmar Wienskoski
fa41c30597 config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
2008-02-21  Edmar Wienskoski  <edmar@freescale.com>

        * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
        * config/rs6000/e300c2c3.md: New file.
        * config/rs6000/rs6000.c (processor_costs): Add new costs for
        e300c2 and e300c3.
        (rs6000_override_options): Add e300c2 and e300c3 cases to
        processor_target_table. Do not allow usage of Altivec or Spe
        with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
        (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
        * config/rs6000/rs6000.h (processor_type): Add
        PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
        (ASM_CPU_SPEC): Add e300c2 and e300c3.
        * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
        and ppce300c3. Include e300c2c3.md.

From-SVN: r132589
2008-02-24 09:38:03 -05:00
Francois-Xavier Coudert
a94caabf5a re PR libfortran/32841 (HUGE(1.0_16) output as +Infinity on ppc-darwin8 (gfortran.dg/large_real_kind_2.F90))
PR libfortran/32841
	* acinclude.m4: Don't use HAVE_MATH_H.
	* configure: Regenerate.

From-SVN: r132587
2008-02-24 11:59:09 +00:00
Richard Sandiford
4eab0296b2 nest-align-1.x: New file.
gcc/testsuite/
	* gcc.c-torture/execute/nest-align-1.x: New file.

From-SVN: r132586
2008-02-24 11:22:19 +00:00
Danny Smith
bdd6df52bd re PR c++/34749 (Incorrect warning when applying dllimport to friend function)
cp
	PR c++/34749
	* friend.c (do_friend): Call cplus_decl_attributes earlier.

testsuite
	PR c++/34749
	* g++.dg.ext/dllimport13.C: New test.

From-SVN: r132585
2008-02-24 09:19:39 +00:00
David Edelsohn
153fbec8c7 rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT instead of TARGET_STRICT_ALIGN.
* config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
        instead of TARGET_STRICT_ALIGN.

From-SVN: r132584
2008-02-23 21:43:13 -05:00
GCC Administrator
84999533ea Daily bump.
From-SVN: r132582
2008-02-24 00:17:49 +00:00
Joseph Myers
03d4f10689 explow.c (memory_address): Assert that the generated address is valid.
* explow.c (memory_address): Assert that the generated address is
	valid.

From-SVN: r132578
2008-02-23 21:11:25 +00:00
Francois-Xavier Coudert
1d2001995b re PR libfortran/24685 (real(16) formatted input is broken for huge values (gfortran.dg/default_format_2.f90))
PR libfortran/24685
	* gfortran.dg/large_real_kind_form_io_2.f90: XFAIL on
	powerpc*-apple-darwin*.

From-SVN: r132577
2008-02-23 20:10:29 +00:00
Francois-Xavier Coudert
fb2202350d re PR target/25477 (builtin functions should use $LDBL128 suffix on darwin when appropriate)
PR target/25477

	* config/darwin-protos.h: Add darwin_patch_builtins prototype.
	* config/darwin-ppc-ldouble-patch.def: New file.
	* config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
	* config/rs6000/rs6000.c (rs6000_init_builtins): Call
	SUBTARGET_INIT_BUILTINS if defined.
	* config/darwin.c (darwin_patch_builtin,
	darwin_patch_builtins): New functions.

	* trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
	* f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
	* trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
	gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
	* trans-decl.c: Likewise.

	* gfortran.dg/large_real_kind_2.F90: Split testing of ERF and
	ERFC into gfortran.dg/large_real_kind_3.F90.
	* gfortran.dg/large_real_kind_3.F90: New test.

From-SVN: r132576
2008-02-23 18:42:04 +00:00
Andrew Pinski
f79db4f66e re PR tree-optimization/33512 (Simple bitwise simplification missed)
2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR rtl-opt/33512
        * simplify-rtx.c (simplify_binary_operation_1): Add simplification
        of (and X (ior (not X) Y) and (and (ior (not X) Y) X).

2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR rtl-opt/33512
        * gcc.dg/and-1.c: New test.

From-SVN: r132575
2008-02-23 09:58:48 -08:00
Andrew Pinski
bb1f73c2d5 re PR pch/35027 ("too short to be a PCH file" warning should be conditional on -Winvalid-PCH)
2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR pch/35027
        * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
        file" warning condtional on -Winvalid-PCH.

From-SVN: r132574
2008-02-23 09:08:12 -08:00
Daniel Jacobowitz
8ddcfde143 expmed.c (extract_bit_field): Always use adjust_address for MEM.
* expmed.c (extract_bit_field): Always use adjust_address for MEM.

	* gcc.c-torture/execute/20080222-1.c: New test.

From-SVN: r132573
2008-02-23 15:45:03 +00:00
Uros Bizjak
84495fd9b7 re PR target/22076 (Strange code for MMX register moves)
PR target/22076
        PR target/34256

        * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
        prevent reload from using MMX registers.
        (*mov<mode>_internal): Ditto.
        (*movv2sf_internal_rex64): Ditto.
        (*movv2sf_internal): Ditto.

testsuite/ChangeLog:

        PR target/22076
        PR target/34256
        * gcc.target/i386/pr22076.c: New test.
        * gcc.target/i386/pr34256.c: New test.
        * gcc.target/i386/vecinit-5.c: New test.
        * gcc.target/i386/vecinit-6.c: New test.
        * gcc.target/i386/vecinit-[1-4].c: Check that no MMX register is used.

        * g++.dg/compat/struct-layout-1.h: Do not include <mmintrin.h> and
        <xmmintrin.h>, define __m64 and __m128 directly.
        * g++.dg/compat/struct-layout-1_generate.c: Add -mno-mmx for x86.

From-SVN: r132572
2008-02-23 16:24:02 +01:00
Ralf Wildenhues
73c17ad2c8 re PR other/31569 (Install's web page has 0.n when it should be either 4.n or 5.n)
gcc/:
PR documentation/31569
* doc/install.texi2html: Use makeinfo --no-number-sections.

From-SVN: r132570
2008-02-23 14:04:12 +00:00
Jakub Jelinek
02d3074007 * MAINTAINERS (OpenMP): Add myself.
From-SVN: r132569
2008-02-23 10:25:19 +01:00
Nathan Froyd
61dd226f1c rs6000.c (rs6000_legitimize_address): Check to ensure that we can address an entire entity > 8 bytes.
* config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
	ensure that we can address an entire entity > 8 bytes.  Don't
	generate reg+reg addressing for such data.

From-SVN: r132567
2008-02-23 01:00:42 +00:00
Nathan Froyd
2165fd3855 rs6000.h (CONSTANT_ALIGNMENT): Don't overalign strings when optimizing for size...
* config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
	strings when optimizing for size, unless the target cares about
	alignment.

From-SVN: r132566
2008-02-23 00:35:20 +00:00
GCC Administrator
e5572ab073 Daily bump.
From-SVN: r132564
2008-02-23 00:17:06 +00:00
Tom Tromey
ad5ebb34e9 * regclass.c (current_pass): Remove declaration.
From-SVN: r132559
2008-02-22 21:39:12 +00:00
Andrew Pinski
1eea53dfef re PR c++/34715 (always_inline with templates and not declared as always_inline but definition has it)
2008-02-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/34715
        * decl.c (duplicate_decls): Merge DECL_DISREGARD_INLINE_LIMITS for
        template decls' function decl.

2008-02-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/34715
        * g++.dg/ext/always_inline-1.C: New test.
        * g++.dg/ext/always_inline-2.C: New test.
        * g++.dg/ext/always_inline-3.C: New test.
        * g++.dg/ext/always_inline-4.C: New test.

From-SVN: r132558
2008-02-22 13:21:11 -08:00
Uros Bizjak
5114c2a320 fail8-frag.c: Adjust scan pattern for mudflap dead object.
* testsuite/libmudflap.c/fail8-frag.c: Adjust scan pattern for
        mudflap dead object.
        * testsuite/libmudflap.c/fail9-frag.c: Ditto.

From-SVN: r132557
2008-02-22 22:18:36 +01:00
Anatoly Sokolov
34d02d17ac libgcc.S (__RAMPZ__): Define.
* config/avr/libgcc.S (__RAMPZ__): Define.
	(__do_copy_data): Add for devices with 128KB code memory.

From-SVN: r132555
2008-02-22 23:16:50 +03:00
Nathan Froyd
a4899c0123 linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use spe_abi.
* config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
	Use spe_abi.
	* config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.

From-SVN: r132551
2008-02-22 12:59:05 +00:00
Hans-Peter Nilsson
fe82487e2d cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for GENNONACR_REGS.
* config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
	GENNONACR_REGS.

From-SVN: r132549
2008-02-22 11:17:14 +00:00
Hans-Peter Nilsson
37809d7db9 * gcc.target/cris/asm-b-1.c: New test.
From-SVN: r132548
2008-02-22 11:16:18 +00:00
Paolo Carlini
54062fc0da re PR c++/35282 (Template specialization rejected)
/testsuite
2008-02-22  Paolo Carlini  <pcarlini@suse.de>

	PR c++/35282
	* g++.dg/template/nontype17.C: Add.

/cp
2008-02-22  Paolo Carlini  <pcarlini@suse.de>

	PR c++/35282
	Revert:
	2008-02-14  Paolo Carlini  <pcarlini@suse.de>

        PR c++/28743
        * pt.c (determine_specialization): In case of function templates,
	when the type of DECL does not match FN there is no match.

/testsuite
2008-02-22  Paolo Carlini  <pcarlini@suse.de>

	PR c++/35282
	Revert:
	2008-02-14  Paolo Carlini  <pcarlini@suse.de>

        PR c++/28743
	* g++.dg/template/nontype17.C: New.
        * g++.dg/template/nontype16.C: Add error.

From-SVN: r132543
2008-02-22 11:02:00 +00:00
Jerry DeLisle
4af63337be re PR fortran/34907 (valgrind error indication from testsuite trans-types.c: gfc_typenode_for_spec)
2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/34907
	* iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
	structure.
	(gfc_resolve_aint): Likewise.
	(gfc_resolve_anint): Likewise.
	(gfc_resolve_besn): Likewise.
	(gfc_resolve_cshift): Likewise.
	(gfc_resolve_ctime): Likewise.
	(gfc_resolve_eoshift): Likewise.
	(gfc_resolve_index_func): Likewise.
	(gfc_resolve_isatty): Likewise.
	(gfc_resolve_malloc): Likewise.
	(gfc_resolve_rrspacing): Likewise.
	(gfc_resolve_scale): Likewise.
	(gfc_resolve_set_exponent): Likewise.
	(gfc_resolve_spacing): Likewise.
	(gfc_resolve_spacing): Likewise.
	(gfc_resolve_fgetc): Likewise.
	(gfc_resolve_fputc): Likewise.
	(gfc_resolve_ftell): Likewise.
	(gfc_resolve_ttynam): Likewise.
	(gfc_resolve_alarm_sub): Likewise.
	(gfc_resolve_mvbits): Likewise.
	(gfc_resolve_getarg): Likewise.
	(gfc_resolve_signal_sub): Likewise.
	(gfc_resolve_exit): Likewise.
	(gfc_resolve_flush): Likewise.
	(gfc_resolve_free): Likewise.
	(gfc_resolve_ctime_sub): Likewise.
	(gfc_resolve_fgetc_sub): Likewise.
	(gfc_resolve_fputc_sub): Likewise.
	(gfc_resolve_fseek_sub): Likewise.
	(gfc_resolve_ftell_sub): Likewise.
	(gfc_resolve_ttynam_sub): Likewise.

From-SVN: r132541
2008-02-22 06:21:47 +00:00
Ralf Wildenhues
ae3115664a re PR c/19999 (-Wfloat-equal does not warn for complex numbers)
gcc/:
PR c/19999
* c-typeck.c (build_binary_op): Warn about floating point
comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.

gcc/cp/:
* typeck.c (build_binary_op): Warn about floating point
comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.

gcc/testsuite/:
* gcc.dg/Wfloat-equal-1.c: New.
* g++.dg/warn/Wfloat-equal-1.C: New.

From-SVN: r132540
2008-02-22 06:17:46 +00:00
Ralf Wildenhues
24219f1206 gfc-internals.texi: Fix typos and markup nits.
gcc-fortran/:
* gfc-internals.texi: Fix typos and markup nits.
* gfortran.texi: Likewise.
* intrinsic.texi: Likewise.

From-SVN: r132539
2008-02-22 06:01:51 +00:00
Janis Johnson
a2db2771a0 re PR target/34526 (no-altivec ABI should be fixed or no longer be the default)
PR target/34526
	* config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
	(rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
	add vrsave.
	(rs6000_override_options): Set altivec_abi as default, not override,
	for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
	TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
	is used; use new member spe_abi.
	(rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
	spe_abi and altivec_abi.

From-SVN: r132537
2008-02-22 01:55:40 +00:00
GCC Administrator
b3184fd133 Daily bump.
From-SVN: r132535
2008-02-22 00:18:10 +00:00
Tomas Bily
89fd06fb91 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
From-SVN: r132531
2008-02-22 08:48:08 +11:00
Ralf Wildenhues
703fdf5a60 re PR bootstrap/35273 (Bootstrap of mingw32 using non-MSYS shell broken)
PR bootstrap/35273
* config.build (build_file_translate): Set to `CMD //c' only if
it works.
* Makefile.in (build_file_translate): Improve comment.

From-SVN: r132528
2008-02-21 19:55:39 +00:00
Jan Hubicka
0ca1683279 predict.def (PRED_TREE_OPCODE_POSITIVE, [...]): Update.
* predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
	PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
	PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.

From-SVN: r132523
2008-02-21 16:52:54 +00:00