Commit Graph

85385 Commits

Author SHA1 Message Date
Ben Elliston
9cb8756f70 * config.sub, config.guess: Update from upstream sources.
From-SVN: r131388
2008-01-08 10:24:49 +11:00
Jakub Jelinek
b69d564b66 re PR target/34622 (gcc.c-torture/execute/20000801-4.c fails at -O1 and above)
PR target/34622
	* config/darwin.c (darwin_mergeable_string_section): Don't use
	.cstring if int_size_in_bytes != TREE_STRING_LENGTH.

From-SVN: r131386
2008-01-07 22:49:27 +01:00
Janis Johnson
6dd116bef6 target-supports.exp (check_effective_target_powerpc_spu): New.
* lib/target-supports.exp (check_effective_target_powerpc_spu): New.
	* g++.dg/other/spu2vmx-1.C: Use it.

From-SVN: r131385
2008-01-07 21:05:03 +00:00
Jack Howarth
dcc0807467 out-of-bounds-1.c: Don't use -mstrict-align for Darwin.
2008-01-07  Jack Howarth  <howarth@bromo.med.uc.edu>

	* gcc.dg/out-of-bounds-1.c: Don't use -mstrict-align for Darwin.

From-SVN: r131384
2008-01-07 21:03:46 +00:00
Jack Howarth
5252f8477f re PR testsuite/34575 (gcc.target/powerpc/parity-1.c and popcount-1.c scan-assembler popcntb on darwin9)
2008-01-07  Jack Howarth  <howarth@bromo.med.uc.edu>

	PR testsuite/34575
	* gcc.target/powerpc/popcount-1.c: Skip on darwin.
	* gcc.target/powerpc/parity-1.c: Likewise.

From-SVN: r131383
2008-01-07 21:02:24 +00:00
Paolo Carlini
f1e37c7496 re PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti)
2008-01-06  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/34680
	* doc/cpp.texi ([Common Predefined Macros]): Document.

From-SVN: r131382
2008-01-07 20:54:49 +00:00
Uros Bizjak
6b76185174 re PR target/34682 (70% slowdown with SSE enabled)
PR target/34682
        * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
        negxf2.  Macroize expander using X87MODEF mode iterator.  Change
        predicates of op0 and op1 to register_operand.
        (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize expander
        using X87MODEF mode iterator.  Change predicates of op0 and op1 to
        register_operand.
        ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
        corresponding patterns and macroize using MODEF macro.  Change
        predicates of op0 and op1 to register_operand and remove
        "m" constraint. Disparage "r" alternative with "!".
        ("*absneg<mode>2_i387"): Rename from corresponding patterns and
        macroize using X87MODEF macro.  Change predicates of op0 and op1
        to register_operand and remove "m" constraint.  Disparage "r"
        alternative with "!".
        (absneg splitter with memory operands): Remove.
        ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
        patterns and macroize using X87MODEF mode iterator.
        * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
        Change predicate of op1 to register_operand.
        * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
        for memory operands.

From-SVN: r131381
2008-01-07 21:06:34 +01:00
Nathan Froyd
5ca0373f91 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
From-SVN: r131380
2008-01-07 19:35:04 +00:00
Fred Fish
681c6ab0da re PR preprocessor/30363 (Support for -traditional-cpp is incomplete in current gcc relative to gcc 2.95.3)
libcpp
2008-01-07  Fred Fish  <fnf@specifix.com>
	PR preprocessor/30363:
	* traditional.c (replace_args_and_push): Add local variable
	cxtquote, calculate the replacement text size assuming a 
	worst case of every input character quoted with backslash,
	and properly handle output quoting of quote characters in
	actual arguments used in function-like macros.
gcc/testsuite
2008-01-07  Fred Fish  <fnf@specifix.com>
	PR preprocessor/30363:
	* gcc.dg/cpp/trad/macroargs.c: Add code to test quoting in
	macro expansions.

From-SVN: r131379
2008-01-07 17:23:40 +00:00
Richard Guenther
2eac9a765c basic-block.h (struct edge_def): Pair dest_idx with goto_locus fields.
2008-01-07  Richard Guenther  <rguenther@suse.de>

        * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
        fields.

From-SVN: r131378
2008-01-07 16:49:37 +00:00
Paul Thomas
3a7b9fdaf6 re PR fortran/34672 (.mod file misses renamed, USEd symbol)
2008-01-07  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34672
	* module.c (write_generic): Rewrite completely.
	(write_module): Change call to write_generic.

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

	PR fortran/34672
	* gfortran.dg/use_only_2.f90: New test.

From-SVN: r131377
2008-01-07 16:44:43 +00:00
Richard Guenther
b61ea03d2d re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior)
2008-01-07  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/34683
	* tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
	VOPs of the needed size to save memory.  Use VEC_quick_push
	to save compile-time.
	(vdefs_to_vec): Likewise.

From-SVN: r131375
2008-01-07 14:49:36 +00:00
Sa Liu
c4bd75cd50 Genetate inline code for double division.
From-SVN: r131374
2008-01-07 13:53:07 +00:00
Sa Liu
51173714c9 Genetate inline code for double division.
From-SVN: r131373
2008-01-07 13:48:12 +00:00
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