Commit Graph

85221 Commits

Author SHA1 Message Date
Paolo Carlini
32f1271c4f re PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti)
2008-01-07  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/34680
	* include/bits/locale_classes.h (has_facet<>, use_facet<>): Do not
	use dynamic_cast when run-time type identification is disabled; do
	not mark inline; only declare, define...
	* include/bits/locale_classes.tcc: ... here.

From-SVN: r131372
2008-01-07 11:11:02 +00:00
Jerry DeLisle
bd5db9de0d re PR fortran/34659 (corner case continuation line)
2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/34659
	* scanner.c (load_line): Do not count ' ' as printable when checking for
	continuations.

From-SVN: r131371
2008-01-07 02:53:04 +00:00
GCC Administrator
d6b66affc4 Daily bump.
From-SVN: r131369
2008-01-07 00:17:12 +00:00
Paolo Carlini
ba551ec277 re PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti)
gcc/
2008-01-06  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/34680
	* c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
	* doc/cpp.texi ([Common Predefined Macros]): Document.

gcc/testsuite/
2008-01-06  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/34680
	* g++.dg/rtti/predefined-rtti-macro-1.C: New.
	* g++.dg/rtti/predefined-rtti-macro-2.C: Likewise.

From-SVN: r131366
2008-01-06 22:30:32 +00:00
Paul Thomas
5989df83be re PR fortran/34545 (ICE when compiling Fortran 95 code)
2008-01-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34545
	* module.c (load_needed): If the namespace has no proc_name
	give it the module symbol.

2008-01-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34545
	* gfortran.dg/use_12.f90: New test.

From-SVN: r131364
2008-01-06 22:00:00 +00:00
Hans-Peter Nilsson
b8c9ec3da0 Revert last change.
From-SVN: r131363
2008-01-06 20:54:14 +00:00
Tobias Burnus
d614540645 re PR fortran/34690 (gfortran.dg/elemental_args_check_2.f90 doesn't work)
2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34690
       * gfortran.dg/elemental_args_check_2.f90: Fix test case.

From-SVN: r131362
2008-01-06 21:30:10 +01:00
Ted Phelps
dfd503426c re PR c++/34152 (Erratic behaviour: Exception translation (throw from signal handlers))
PR c++/34152
	* libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Check
	_GLIBCXX_HAVE_GETIPINFO instead of HAVE_GETIPINFO.

From-SVN: r131361
2008-01-06 21:25:57 +01:00
Tobias Burnus
bffcdc8720 re PR fortran/34689 (libgomp.fortran/appendix-a/a.33.3.f90 -O (test for excess errors))
2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * gfortran.dg/intent_out_4.f90: Fix test case.

From-SVN: r131360
2008-01-06 21:18:01 +01:00
Tobias Burnus
ac61ba6af2 re PR fortran/34689 (libgomp.fortran/appendix-a/a.33.3.f90 -O (test for excess errors))
2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * interface.c (compare_actual_formal): Fix intent(out) check for
       function result variables.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * gfortran.dg/intent_out_4.f90: New.

From-SVN: r131359
2008-01-06 20:36:44 +01:00
Uros Bizjak
43db797998 i386.c (ix86_emit_swsqrtsf): Use negative constants in order to use commutative addition instead of subtraction.
* config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
        order to use commutative addition instead of subtraction.

From-SVN: r131358
2008-01-06 19:59:38 +01:00
Jerry DeLisle
e39bd31393 re PR libfortran/34540 (cshift, eoshift, kind=1 and kind=2 arguments...)
2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/34540
	* gfortran.dg/optional_dim_3.f90: New test.

From-SVN: r131357
2008-01-06 18:34:14 +00:00
Jerry DeLisle
9b09c4dec4 re PR fortran/34387 (FAIL: gfortran.dg/optional_dim_2.f90: FE vs library argument missmatch)
2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/34387
	* trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
	the dummy variable expression, test for NULL, and pass the variable
	address to the called function.

From-SVN: r131356
2008-01-06 18:19:06 +00:00
Tobias Burnus
346ecba81d re PR fortran/34658 (save / common)
2007-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34658
        * match.c (gfc_match_common): Remove blank common in
        DATA BLOCK warning.
        * resolve.c (resolve_common_vars): New function.
        (resolve_common_blocks): Move checks to resolve_common_vars
        and invoke that function.
        (resolve_types): Call resolve_common_vars for blank commons.

2007-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34658
        * gfortran.dg/common_11.f90: New.
        * gfortran.dg/blockdata_1.f90: Update test case.
        * gfortran.dg/blockdata_2.f90: Update test case.

From-SVN: r131355
2008-01-06 19:17:14 +01:00
Tobias Burnus
caa42d865f equiv_constraint_9.f90: Fix typo.
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/equiv_constraint_9.f90: Fix typo.

From-SVN: r131354
2008-01-06 19:11:42 +01:00
Tobias Burnus
cddcf0d4ae re PR fortran/34655 (5.5.2.5)
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34655
        * resolve.c (resolve_equivalence_derived): Reject derived types
        * with
        default initialization if equivalenced with COMMON variable.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34655
        * gfortran.dg/equiv_constraint_9.f90: New.

From-SVN: r131353
2008-01-06 19:07:52 +01:00
Revital Eres
2c460d1291 Fix PR34263: Cleaning up latch blocks
From-SVN: r131352
2008-01-06 15:24:10 +00:00
Andreas Tobler
79ca8fc00b ffi.c (ffi_prep_cif_machdep): Fix thinko.
2008-01-06  Andreas Tobler  <a.tobler@schweiz.org>

	* src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.

From-SVN: r131351
2008-01-06 13:17:03 +01:00
Tobias Burnus
89c32b0f91 re PR fortran/34654 (no unformatted on internal file)
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34654
        * io.c (check_io_constraints): Disallow unformatted I/O for
        internal units.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34654
        * gfortran.dg/internal_io_unf.f90: New.

From-SVN: r131350
2008-01-06 10:21:27 +01:00
Tobias Burnus
242633d6ea re PR fortran/34660 (elemental and dummy procedure)
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34660
        * resolve.c (resolve_formal_arglist): Reject dummy procedure in
        ELEMENTAL functions.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34660
        * gfortran.dg/elemental_args_check_2.f90: New.

From-SVN: r131349
2008-01-06 10:18:43 +01:00
Tobias Burnus
a5c655e832 re PR fortran/34662 (inout argument with parameter)
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34662
        * interface.c (compare_actual_formal): Reject parameter
        actual to intent(out) dummy.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34662
        * gfortran.dg/intent_out_3.f90: New.

From-SVN: r131348
2008-01-06 10:07:47 +01:00
GCC Administrator
5c09795d82 Daily bump.
From-SVN: r131346
2008-01-06 00:17:27 +00:00
Andreas Tobler
d7b07cc730 re PR testsuite/32843 (libffi.call/return_sc.c)
2008-01-05  Andreas Tobler  <a.tobler@schweiz.org>

	PR testsuite/32843
	* src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
	signed/unsigned int8/16 for X86_DARWIN.
	Updated copyright info.
	Handle one and two byte structs with special cif->flags.
	* src/x86/ffitarget.h: Add special types for one and two byte structs.
	Updated copyright info.
	* src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
	sysv.S
	Remove code to pop args from the stack after call.
	Special-case signed/unsigned for int8/16, one and two byte structs.
	(ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
	FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
	FFI_TYPE_SINT32.
	Updated copyright info.

From-SVN: r131343
2008-01-05 21:49:41 +01:00
Uros Bizjak
5a37a60ccb i386.c (ix86_builtin_reciprocal): Remove check for TARGET_RECIP.
* config/i386/i386.c (ix86_builtin_reciprocal): Remove check
        for TARGET_RECIP.
        (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.

From-SVN: r131342
2008-01-05 21:33:33 +01:00
Richard Sandiford
a6514ef2c0 stabs-1.m: Allow labels to be begin with $L as well as .L.
gcc/testsuite/
	* objc.dg/stabs-1.m: Allow labels to be begin with $L as well as .L.

From-SVN: r131341
2008-01-05 16:58:00 +00:00
Richard Sandiford
1a8a3a5ef4 c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
gcc/
	* c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.

From-SVN: r131340
2008-01-05 16:57:00 +00:00
Richard Sandiford
2a4430a6f9 mips.c (mips_in_small_data_p): Reinstate size > 0 check.
gcc/
	* config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.

From-SVN: r131339
2008-01-05 16:47:50 +00:00
Jerry DeLisle
2fd7985e1b re PR fortran/34676 (IO error delayed)
2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/34676
	* gfortran.dg/list_read_8.f90: New test.

From-SVN: r131338
2008-01-05 16:12:00 +00:00
Jerry DeLisle
fa347f2232 re PR fortran/34676 (IO error delayed)
2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/34676
	* io/list_read.c (next_char): Only save the EOF condition for later if
	advance="no".

From-SVN: r131337
2008-01-05 16:00:40 +00:00
Jakub Jelinek
58fcda212f re PR tree-optimization/34618 (ICE with -fmudflap and vectorization)
PR tree-optimization/34618
	* tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
	flag from T.

	* testsuite/libmudflap.c/pass62-frag.c: New test.

From-SVN: r131336
2008-01-05 13:06:54 +01:00
Uros Bizjak
f1bf33ce52 re PR target/34673 (ICE in extract_insn, at recog.c:1990)
PR target/34673
        * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
        in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
        Update copyright year.

        * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
        Update copyright year.
        * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
        using NR fixup.

From-SVN: r131335
2008-01-05 12:52:39 +01:00
Zhouyi Zhou
12a6309e7e tree-vrp.c (find_conditional_asserts): Remove redundant check that edge does not point to current bb before changing...
* tree-vrp.c (find_conditional_asserts): Remove redundant check that
        edge does not point to current bb before changing need_assert.

From-SVN: r131333
2008-01-05 10:31:24 +01:00
GCC Administrator
9ed6c6fa7f Daily bump.
From-SVN: r131331
2008-01-05 00:17:34 +00:00
Andrew Haley
d5b7beb930 re PR libgcj/34444 (Class.getEnclosingClass() returns null on enclosed class)
2008-01-04  Andrew Haley  <aph@redhat.com>

	PR libgcj/34444
	* java/lang/natClass.cc (Class::getEnclosingClass): Call
	getDeclaringClass().

From-SVN: r131326
2008-01-04 17:18:56 +00:00
Richard Guenther
bdb69beee9 re PR tree-optimization/34029 (internal compiler error: verify_stmts failed)
2008-01-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/34029
	* tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
	for verifying purposes if they are is_gimple_min_invariant.

	* gcc.c-torture/compile/pr34029-1.c: New testcase.
	* gcc.c-torture/compile/pr34029-2.c: Likewise.

From-SVN: r131325
2008-01-04 15:56:41 +00:00
Andrew Haley
578c21cb86 re PR java/17779 (ICE: Seg fault)
2008-01-04  Andrew Haley  <aph@redhat.com>

        PR java/17779
        * jcf-parse.c (parse_zip_file_entries): Move decl to compile on
        C90.

From-SVN: r131324
2008-01-04 15:13:53 +00:00
Aldy Hernandez
ffed8a0113 re PR tree-optimization/34448 (ICE in declare_inline_vars, at tree-inline.c:3243)
PR tree-optimization/34448
        PR tree-optimization/34465
        * gimplify.c (gimplify_init_constructor): Add new parameter
        notify_temp_creation.  Use it.
        (gimplify_modify_expr_rhs): Take volatiles into account when
        optimizing constructors.
        Do not optimize constructors if gimplify_init_constructor will dump to
        memory.
        * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
        * gcc.c-torture/compile/pr34448.c: New.

From-SVN: r131323
2008-01-04 14:49:28 +00:00
Jakub Jelinek
b5ca517cae re PR gcov-profile/34609 (ICE with "-ftest-coverage" and references)
PR gcov-profile/34609
	* tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
	return_slot if result is TREE_ADDRESSABLE.

	* g++.dg/gcov/gcov-6.C: New test.

From-SVN: r131322
2008-01-04 14:58:30 +01:00
Paolo Carlini
a9fe2f76d7 re PR c++/34611 (Broken diagnostic: 'tree_list' not supported by dump_expr)
2008-01-04  Paolo Carlini  <pcarlini@suse.de>
	    Jakub Jelinek  <jakub@redhat.com>

	PR c++/34611
	* error.c (dump_template_argument): Deal with TREE_LIST.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r131321
2008-01-04 13:57:34 +00:00
Richard Guenther
9e9f7b9c19 re PR tree-optimization/31081 (Inliner messes up SSA for abnormals)
2008-01-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/31081
	* g++.dg/torture/pr31081-1.C: New testcase.
	* g++.dg/torture/pr31081-2.C: Likewise.

From-SVN: r131320
2008-01-04 11:16:17 +00:00
Andrew Haley
5e96e6c04b re PR java/17779 (ICE: Seg fault)
2008-01-03  Andrew Haley  <aph@redhat.com>

        PR java/17779
        * jcf-parse.c (parse_zip_file_entries): Unset TYPE_ALIAS_SET if
        we're about to re-layout the type.

From-SVN: r131319
2008-01-04 11:06:34 +00:00
Richard Sandiford
6a3d1d4957 mips.md (sqrt_condition): Tweak comment.
gcc/
	* config/mips/mips.md (sqrt_condition): Tweak comment.
	(recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.

gcc/testsuite/
	* gcc.target/mips/rsqrt-1.c: Require -mgp64.
	* gcc.target/mips/rsqrt-2.c: Likewise.
	* gcc.target/mips/rsqrt-4.c: New test.

From-SVN: r131318
2008-01-04 10:26:41 +00:00
Tobias Burnus
3c7215130f re PR fortran/34557 (Rejects valid: EQUIVALENCE of character substrings)
2008-01-04  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34557
       * primary.c (match_varspec): Gobble whitespace before
       checking for '('.

2008-01-04  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34557
       * gfortran.dg/equiv_substr.f90: New.

From-SVN: r131317
2008-01-04 10:11:26 +01:00
GCC Administrator
33af36f7fe Daily bump.
From-SVN: r131314
2008-01-04 00:18:33 +00:00
Tom Tromey
6fc3c3c033 re PR c/34457 (ICE with VLA and -combine)
gcc/
	PR c/34457:
	* c-common.c (c_type_hash): Handle VLAs.
gcc/testsuite
	PR c/34457:
	* gcc.dg/pr34457-2.c: New file.
	* gcc.dg/pr34457-1.c: New file.

From-SVN: r131311
2008-01-04 00:14:31 +00:00
Eric Botcazou
1af0d73792 Tidy.
From-SVN: r131310
2008-01-03 23:26:18 +00:00
Jan Hubicka
0723b99a2e Fix incorrectly applied patch in last commit.
From-SVN: r131309
2008-01-03 23:03:26 +00:00
Sebastian Pop
6b6fa4e9e3 re PR tree-optimization/34458 (ICE in int_cst_value, at tree.c:8047 at -O3)
2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>

	Revert fix for PR tree-optimization/34458.

From-SVN: r131308
2008-01-03 22:59:48 +00:00
Sebastian Pop
2726bafeee re PR tree-optimization/34458 (ICE in int_cst_value, at tree.c:8047 at -O3)
2008-01-02  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/34458
	* tree-data-ref.c (dd_int_cst_value): New.
	(initialize_matrix_A, compute_overlap_steps_for_affine_1_2,
	analyze_subscript_affine_affine, build_classic_dist_vector_1,
	add_multivariate_self_dist, init_omega_eq_with_af): Use 
	dd_int_cst_value instead of int_cst_value.

	* testsuite/gcc.dg/tree-ssa/pr34458.c: New.

From-SVN: r131307
2008-01-03 21:59:38 +00:00
Jan Hubicka
045685a9b5 re PR tree-optimization/31081 (Inliner messes up SSA for abnormals)
PR tree-optimization/31081
	* tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
	0 when inlining and not inlining to first basic block.
	(remap_decl): When var is initialized to 0, don't set default_def.
	(expand_call_inline): Set entry_bb.
	* tree-inline.h (copy_body_data): Add entry_bb.

From-SVN: r131306
2008-01-03 21:23:26 +00:00