Commit Graph

85804 Commits

Author SHA1 Message Date
Ralf Wildenhues 0ee2ea095c c-tree.texi: Use `@.' where appropriate.
* doc/c-tree.texi: Use `@.' where appropriate.
* doc/extend.texi: Likewise.
* doc/install.texi: Likewise.
* doc/invoke.texi: Likewise.
* doc/loop.texi: Likewise.
* doc/makefile.texi: Likewise.
* doc/md.texi: Likewise.
* doc/passes.texi: Likewise.
* doc/standards.texi: Likewise.
* doc/tm.texi: Likewise.

From-SVN: r132361
2008-02-16 03:54:54 +00:00
GCC Administrator dcec11cec7 Daily bump.
From-SVN: r132358
2008-02-16 00:17:24 +00:00
Francois-Xavier Coudert 6b45fd61f2 intrinsic.texi: Rename INDEX node to avoid clashing with index.html on case-insensitive systems.
* intrinsic.texi: Rename INDEX node to avoid clashing with
	index.html on case-insensitive systems.

From-SVN: r132355
2008-02-15 22:56:37 +00:00
Benjamin Kosnik 847eb5516f types.h: Move enum parallelism here.
2008-02-15  Benjamin Kosnik  <bkoz@redhat.com>

	* include/parallel/types.h: Move enum parallelism here.  Use
	tr1/cstdint's int16_t, uint16_t, int32_t, uint32_t, int64_t,
	uint64_t. 
	* include/parallel/multiseq_selection.h: Adjust for cstdint.
	* include/parallel/compatibility.h: Same.
	* include/parallel/tags.h: Just compile-time tags.
	* include/parallel/base.h: Put namespace bits here.

	* src/Makefile.am (PARALLEL_FLAGS): Use it.
	* src/Makefile.in: Regenerate.

	* testsuite/25_algorithms/nth_element/1.cc: Add test variable.

From-SVN: r132354
2008-02-15 22:55:14 +00:00
Francois-Xavier Coudert 750606c6b2 trans-expr.c (gfc_conv_function_call): Force evaluation of se->expr.
* trans-expr.c (gfc_conv_function_call): Force evaluation of
	se->expr.

	* gfortran.dg/c_loc_tests_12.f03: New test.

From-SVN: r132353
2008-02-15 21:12:24 +00:00
Jakub Jelinek ac84c0623d re PR middle-end/35196 (lastprivate broken for static non-ordered loops)
PR middle-end/35196
	* omp-low.c (expand_omp_for_generic): Don't initialize fd->v
	in entry_bb.
	(expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
	rather than in entry_bb.

	* testsuite/libgomp.c/pr35196.c: New test.

From-SVN: r132351
2008-02-15 18:42:25 +01:00
Uros Bizjak 6a9e85714c sfp-machine.h (CMPtype): Define as typedef using libgcc_cmp_return mode.
* config/i386/sfp-machine.h (CMPtype): Define as typedef using
        libgcc_cmp_return mode.

From-SVN: r132350
2008-02-15 18:40:55 +01:00
Jakub Jelinek 6837b3b895 re PR middle-end/35130 (OpenMP: Private variable passed to subroutine)
PR middle-end/35130
	* tree-nested.c (convert_call_expr): Put FRAME.* vars into
	OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.

	* testsuite/libgomp.fortran/pr35130.f90: New test.
	* testsuite/libgomp.c/pr35130.c: New test.

From-SVN: r132349
2008-02-15 18:36:43 +01:00
Douglas Gregor 92fab505d2 re PR c++/35023 (ICE with parameter pack in variable declaration)
2008-02-15  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/35023
	PR c++/35024
	PR c++/35026
	* pt.c (finish_member_template_decl): If the type in a TYPE_DECL
	is error_mark_node, return an error early.
	(find_parameter_packs_r): Pass the pointer set along to recursive
	calls of cp_walk_subtrees; don't try to manage the pointer set
	ourselves.
	(uses_parameter_packs): Pass the pointer set to cp_walk_tree.
	(make_pack_expansion): Ditto.
	(check_for_bare_parameter_packs): Ditto. Also, don't bother taking
	a second pass through the tree with find_parameter_packs_r; that
	second pass no longer does anything.
	(push_template_decl_real): If we have an erroneous declaration,
	set its type to error_mark_node before returning an error.

2008-02-15  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/35023
	PR c++/35024
	PR c++/35026
	* g++.dg/cpp0x/vt-35026.C: New.
	* g++.dg/cpp0x/vt-35023.C: New.
	* g++.dg/cpp0x/vt-34055.C: Tweak expected error messages.
	* g++.dg/cpp0x/vt-35024.C: New.

From-SVN: r132348
2008-02-15 17:33:02 +00:00
Uros Bizjak e8900287b2 va-arg-25.x: Remove.
* gcc.c-torture/execute/va-arg-25.x: Remove.

From-SVN: r132347
2008-02-15 17:46:45 +01:00
Richard Guenther 2e58df6ecf re PR tree-optimization/35164 (Unable to coalesce ab SSA_NAMEs)
2008-02-15  Richard Guenther  <rguenther@suse.de>
	Zdenek Dvorak  <ook@ucw.cz>

	PR tree-optimization/35164
	* tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
	* tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
	* tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
	Only propagate addresses which do not have abnormal SSA_NAMEs
	in their operands.

	* g++.dg/torture/pr35164-1.C: New testcase.
	* g++.dg/torture/pr35164-2.C: Likewise.

Co-Authored-By: Zdenek Dvorak <ook@ucw.cz>

From-SVN: r132345
2008-02-15 15:24:19 +00:00
Dominique d'Humieres 508515b027 re PR target/35119 (FAIL: g++.dg/template/spec35.C scan-assembler)
PR testsuite/35119
	* testsuite/g++.dg/template/spec35.C
	Change the regular expressions in dg-final to match the assembly
	code generated by Darwin 9.

From-SVN: r132344
2008-02-15 15:33:57 +01:00
Uros Bizjak 67baf3ca72 pragma-pop_macro-1.c: Fix dg-do directive.
* gcc.dg/cpp/pragma-pop_macro-1.c: Fix dg-do directive.

From-SVN: r132343
2008-02-15 15:17:41 +01:00
Andreas Tobler 460110e015 re PR testsuite/35208 (Please apply the patch in comment #19 of PR35035)
2008-02-15  Andreas Tobler  <a.tobler@schweiz.org>

	PR testsuite/35208
	* testsuite/libjava.jvmti/interp/natgetstacktrace.cc
	(Java_getstacktrace_natRunner): Increase the usleep time to a value
	which prevents OS-X to get into a deadlock.

From-SVN: r132342
2008-02-15 15:08:59 +01:00
Joseph Myers 206598fbfc re PR target/35088 (ICE: in def_cfa_1, at dwarf2out.c:804)
PR target/35088
	* config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.

From-SVN: r132341
2008-02-15 13:41:44 +00:00
Uros Bizjak cdab403335 pr35160.c: Skip if !nonpic for 32bit x86 targets.
* gcc.target/i386/pr35160.c: Skip if !nonpic for 32bit x86 targets.

From-SVN: r132339
2008-02-15 13:19:00 +01:00
Jan Hubicka 18168b3f63 re PR middle-end/35149 (ICE: in expand_call_inline, at tree-inline.c:2653)
PR middle-end/35149
	* ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.

From-SVN: r132337
2008-02-15 11:15:48 +00:00
Uros Bizjak 6f6b8f8142 re PR middle-end/34621 (gcc.c-torture/execute/va-arg-25.c:32: internal compiler error: in expand_call, at calls.c:2785)
PR middle-end/34621
	* function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
	when calculating alignment_pad.

From-SVN: r132336
2008-02-15 10:55:36 +01:00
Hans-Peter Nilsson 74cb1d8bfd * testsuite/config/default.exp: Load gcc dejapatches.exp.
From-SVN: r132335
2008-02-15 09:09:47 +00:00
Hans-Peter Nilsson 2c953d5aa4 * lib/dejapatches.exp: New file.
From-SVN: r132334
2008-02-15 09:08:32 +00:00
Uros Bizjak 979c67a510 i386.h (CLEAR_RATIO): Use MIN macro.
* config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
	(WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
	* config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
	and STACK_BOUNDARY define.

From-SVN: r132333
2008-02-15 09:12:02 +01:00
Ralf Wildenhues 1a1f75881b * check_warning_flags.sh: New file.
From-SVN: r132332
2008-02-15 05:50:37 +00:00
Douglas Gregor 625b6d91e7 re PR c++/34050 (ICE derived classes and variadic templates)
2008-02-14  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/34050
	* pt.c (tsubst_initializer_list): Deal with the use of
	VOID_TYPE_NODE to indicate value-initialization of the bases.


2008-02-14  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/34050
	* g++.dg/cpp0x/vt-34050.C: New.

From-SVN: r132331
2008-02-15 03:09:18 +00:00
GCC Administrator 512d1f4b7d Daily bump.
From-SVN: r132328
2008-02-15 00:17:23 +00:00
Manuel López-Ibáñez 8c95264b5c re PR c++/5645 (gcc warns that pure virtual class not explicitly initialized)
PR c++/5645
        PR c++/11159
        * class.c (type_has_user_nondefault_constructor): New fn.
        * cp-tree.h: Declare it.
        * init.c (emit_mem_initializers): Use it for -W warning about
        missing base initializer.

Co-Authored-By: Jason Merrill <jason@redhat.com>

From-SVN: r132324
2008-02-14 18:11:04 -05:00
Danny Smith 101e174d2c re PR preprocessor/35061 (#pragma pop_macro causes ICE if no macro value on stack)
PR preprocessor/35061
gcc
	* c-pragma.c (handle_pragma_pop_macro): Check that
	pushed_macro_table has been allocated.
testsuite
	* gcc.dg/cpp/pragma_pop_macro-1.c:  New file

From-SVN: r132322
2008-02-14 21:41:40 +00:00
Kaveh R. Ghazi 0cc24ff082 14320-1.cc: Check for "long long" and remove XFAIL.
* testsuite/27_io/fpos/14320-1.cc: Check for "long long" and
	remove XFAIL.

From-SVN: r132321
2008-02-14 21:41:20 +00:00
Eric Botcazou 928bc34f5f re PR middle-end/35136 (ICE caused by address calculation with loop variable when optimization is on)
PR middle-end/35136
	* gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
	(force_gimple_operand): Likewise.
	* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
	for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
	Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
	(find_interesting_uses_address): Check addressability and alignment
	of the base expression only after substituting bases of IVs into it.

From-SVN: r132320
2008-02-14 19:07:38 +00:00
Benjamin Kosnik 4bcf935d11 error_constants.h (posix_errno): Guard not_supported use of ENOTSUP.
2008-02-14  Benjamin Kosnik  <bkoz@redhat.com>

	* config/os/generic/error_constants.h (posix_errno): Guard
	not_supported use of ENOTSUP.
	* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): Add check for ENOTSUP
	for OpenBSD.
	* aclocal.m4: Regenerate.
	* configure: Rengerate.
	* config.h.in: Same.

From-SVN: r132319
2008-02-14 17:03:02 +00:00
Michael Matz a5bfb13a75 re PR target/34930 (ICE in instantiate_virtual_regs_in_insn with vector splat load)
PR target/34930
        * function.c (instantiate_virtual_regs_in_insn): Reload address
        before falling back to reloading the whole operand.

From-SVN: r132317
2008-02-14 12:54:30 +00:00
Paolo Carlini 4571259b7a re PR c++/28743 (ICE with invalid specialization)
/cp
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-14  Paolo Carlini  <pcarlini@suse.de>

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

From-SVN: r132316
2008-02-14 12:34:42 +00:00
Andreas Krebbel b49326f1ca s390.c (s390_mainpool_start): Emit the pool before the first section switch note.
2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.c (s390_mainpool_start): Emit the pool
	before the first section switch note.

From-SVN: r132315
2008-02-14 08:40:40 +00:00
Ralf Wildenhues 346341a4e2 bugreport.texi: Update copyright years.
* doc/bugreport.texi: Update copyright years.
* doc/c-tree.texi: Likewise.
* doc/cfg.texi: Likewise.
* doc/cpp.texi: Likewise.
* doc/cppinternals.texi: Likewise.
* doc/fragments.texi: Likewise.
* doc/frontends.texi: Likewise.
* doc/gcc.texi: Likewise.
* doc/gty.texi: Likewise.
* doc/hostconfig.texi: Likewise.
* doc/implement-c.texi: Likewise.
* doc/libgcc.texi: Likewise.
* doc/loop.texi: Likewise.
* doc/makefile.texi: Likewise.
* doc/options.texi: Likewise.
* doc/passes.texi: Likewise.
* doc/rtl.texi: Likewise.
* doc/sourcebuild.texi: Likewise.
* doc/standards.texi: Likewise.
* doc/tree-ssa.texi: Likewise.
* doc/trouble.texi: Likewise.

From-SVN: r132313
2008-02-14 04:56:34 +00:00
Ralf Wildenhues 021efafc30 extend.texi: Use @: or add comma where appropriate.
* doc/extend.texi: Use @: or add comma where appropriate.
* doc/invoke.texi: Likewise.
* doc/tm.texi: Likewise.

From-SVN: r132312
2008-02-14 04:54:32 +00:00
GCC Administrator dc369f9dd3 Daily bump.
From-SVN: r132308
2008-02-14 00:17:10 +00:00
Alan Modra 583da60ab1 re PR target/34393 (ICE: in extract_insn, at recog.c:1990)
PR target/34393
	* config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
	to a reg.

From-SVN: r132304
2008-02-14 10:44:45 +10:30
Benjamin Kosnik 43572281ec mainpage.html: Correct links.
2008-02-13  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/doxygen/mainpage.html: Correct links.

From-SVN: r132302
2008-02-13 23:34:10 +00:00
Jesper Nilsson 2a6627c21d md.texi (clz, ctz): Add reference.
2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>

	* doc/md.texi (clz, ctz): Add reference.
	* doc/rtl.texi (clz, ctz): Likewise.

From-SVN: r132301
2008-02-13 23:32:57 +00:00
Michael Matz 4d85ec3472 Fix compile on 64bit platforms.
From-SVN: r132300
2008-02-13 23:02:08 +00:00
Jakub Jelinek 5586014a39 re PR c++/35138 (g++ rejects valid code)
PR c++/35138
	* parser.c (cp_parser_pseudo_destructor_name): If next tokens
	are not identifier :: ~, return before calling cp_parser_type_name.

	* g++.dg/template/member8.C: New test.

Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>

From-SVN: r132298
2008-02-13 23:30:43 +01:00
Jason Merrill 8d2eb30433 PR c++/34962, c++/34937, c++/34939
PR c++/34962, c++/34937, c++/34939
        * decl2.c (is_late_template_attribute): Always defer attributes
        vector_size and weak.

From-SVN: r132297
2008-02-13 16:27:16 -05:00
Ralf Wildenhues 1b0c753a86 re PR other/35148 (make pdf has missing file in 4.3-20080208)
PR other/35148
* Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
srcdir.

From-SVN: r132295
2008-02-13 19:27:34 +00:00
Joel Sherrill 6a333ca04f re PR ada/35143 (Serious regression on ACATS results since 4.2.3)
2008-02-11  Joel Sherrill <joel.sherrill@oarcorp.com>

	PR ada/35143
	* env.c: Add __rtems__ to if defined.
	* s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
	* s-osinte-rtems.ads: Add To_Target_Priority prototype and
	PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
	pragma Convention as required.
	* gsocket.h: Make compile in and out of RTS.
	* Makefile.in: Add system-rtems.ads.  Build DEC extensions.
	Use g-soccon-rtems.ads.
	* g-soccon-rtems.ads, system-rtems.ads: New files.

From-SVN: r132294
2008-02-13 19:04:53 +00:00
Ralf Wildenhues 29a7754d16 * MAINTAINERS (Write After Approval): Add myself.
From-SVN: r132293
2008-02-13 18:50:56 +00:00
Michael Matz 08235f819a * gcc.dg/pr35065.c: Fix testcase warnings.
From-SVN: r132288
2008-02-13 16:16:17 +00:00
Andreas Krebbel 03870a0482 s390.c (struct constant_pool): New field emit_pool_after added.
2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.c (struct constant_pool): New field
	emit_pool_after added.
	(s390_mainpool_start): Set the emit_pool_after flag according
	to the section switch notes.
	(s390_mainpool_finish): Consider emit_pool_after when emitting
	the literal pool at the end of the function.
	(s390_chunkify_start): Force literal pool splits at section
	switch notes.

From-SVN: r132287
2008-02-13 16:00:21 +00:00
Michael Matz be71b67351 re PR debug/35065 (infinite loop while compiling VLC media player in vt_find_locations)
PR debug/35065
        * var-tracking.c (clobber_variable_part): Correctly traverse the
        list.

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

From-SVN: r132286
2008-02-13 14:53:59 +00:00
Manuel López-Ibáñez fed39e2211 re PR middle-end/29673 (no -fdump-tree-inlined output)
2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR 29673
	* doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
	Add -fdump-ipa-inline.
	* tree-dump.c (dump_files): Remove tree-inlined dump.
	* tree-pass.h (tree_dump_index): Remove TDI_inlined.

From-SVN: r132284
2008-02-13 11:15:51 +00:00
Jason Merrill 3387721b8f re PR c++/34774 (templates, enumerations, overflow, ice)
PR c++/34774
        * pt.c (value_dependent_expression_p): Look into DECL_INITIAL
        of enumerators, too.

From-SVN: r132283
2008-02-13 02:08:11 -05:00
Jason Merrill 156d614f90 re PR c++/34824 (ICE with explicit copy constructor)
PR c++/34824
        * call.c (convert_like_real): Pass LOOKUP_ONLYCONVERTING to build_temp
        if we're doing conversions to call a user-defined conversion function.

From-SVN: r132282
2008-02-12 23:06:03 -05:00