Commit Graph

85858 Commits

Author SHA1 Message Date
Jason Merrill
cc85b4c564 re PR c++/34950 (ICE in svn boost math toolkit)
PR c++/34950
        * pt.c (resolve_overloaded_unification): Set processing_template_decl
        while we look for possible bindings.

From-SVN: r132455
2008-02-19 17:53:07 -05:00
Jan Hubicka
daac03177c (tree_bb_level_predictions): Remove variable next mistakely introduced
by previous commit.

From-SVN: r132454
2008-02-19 22:27:01 +00:00
Andreas Tobler
6656fda37b dyn_load.c (GC_dyld_image_add): Remove ifdef clause and use the macro GC_GETSECTBYNAME instead.
2007-02-19  Andreas Tobler  <a.tobler@schweiz.org>

	* dyn_load.c (GC_dyld_image_add): Remove ifdef clause and use the macro
	GC_GETSECTBYNAME instead.
	* include/private/gc_priv.h: Define GC_GETSECTBYNAME according to the
	architecture (Darwin).

From-SVN: r132452
2008-02-19 22:29:26 +01:00
Jan Hubicka
3e4b9ad009 predict.c (predict_paths_leading_to): Rewrite.
* predict.c (predict_paths_leading_to): Rewrite.
	(predict_paths_for_bb): New.
	(tree_bb_level_predictions): Update call of predict_paths_leading_to.

From-SVN: r132450
2008-02-19 21:15:28 +00:00
Ralf Wildenhues
a0e527e319 re PR bootstrap/35218 (build fails on mingw host)
PR bootstrap/35218
* Makefile.in (build_file_translate): New.
(gcc-vers.texi): Use it for translating $(abs_srcdir).
* config.build (build_file_translate): Set to `CMD //c' on MinGW.
* configure.ac (build_file_translate): Substitute it.
* configure: Regenerate.

From-SVN: r132444
2008-02-19 19:38:52 +00:00
Daniel Franke
606c2c03b0 re PR fortran/35030 (add type/kind information to pointer assignments)
2008-02-19  Daniel Franke  <franke.daniel@gmail.com>

	PR fortran/35030
	* expr.c (gfc_check_pointer_assign): Add type and kind information
	to type-mismatch message.
	(gfc_check_assign): Unify error messages.

From-SVN: r132442
2008-02-19 13:26:12 -05:00
Jan Hubicka
9d5cee3d87 re PR rtl-optimization/34408 (Invalid RTL sharing with -fsee and inline functions)
PR rtl-optimization/34408
	* see.c (see_def_extension_not_merged): Copy subreg so we don't have invalid sharing.

From-SVN: r132440
2008-02-19 17:11:12 +00:00
Jan Hubicka
8723e2fedf re PR middle-end/28779 (internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106)
PR middle-end/28779
	* tree-inline.c (estimate_num_insns_1): Fix counting of cost of call_expr.

From-SVN: r132439
2008-02-19 17:09:42 +00:00
H.J. Lu
5ba5440f24 re PR ada/35186 (implicit assumption about alignment of DImode)
2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>

	PR Ada/35186
	* config/i386/i386-modes.def: Revert the last DI alignment
	change until Ada people can look into it.

From-SVN: r132433
2008-02-19 06:35:48 -08:00
Nick Clifton
c01c261df2 * opts.c (print_specific_help): Fix typo in --help text.
From-SVN: r132432
2008-02-19 14:15:36 +00:00
Jakub Jelinek
2e834acbc1 re PR target/35239 (Build failure when host cc is GCC-2.95.3 or earlier)
PR target/35239
	* config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
	32-bit inline asm without asm alternatives for host GCC < 3.0.

From-SVN: r132430
2008-02-19 14:34:29 +01:00
Richard Guenther
9cadd7f795 re PR tree-optimization/34989 (ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1698 with IMA)
2008-02-19  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/34989
	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
	Allow propagation to INDIRECT_REF if we can simplify only.

	* gcc.dg/pr34989-1.c: New testcase.
	* gcc.dg/pr34989-2.c: Likewise.

From-SVN: r132429
2008-02-19 11:55:29 +00:00
Manuel López-Ibáñez
ffc3017372 c-common.c (warn_for_collisions_1): Use appropriate option when warning.
2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	* c-common.c (warn_for_collisions_1): Use appropriate option when
	warning.

From-SVN: r132428
2008-02-19 10:51:52 +00:00
Nick Clifton
b3eaaf1a50 re PR other/31349 (gcc -v --help returns no options for C, C++)
PR other/31349
        * opts.c (undocumented_msg): Leave blank unless checking is
        enabled.
        (handle_options): Fix indentation.
        (print_filtered_help): If no language-specific options were
        displayed tell the user how to list all the options supported by
        the language's front-end.
        (print_specific_help): Fix indentation and remove duplicate line.
        (common_handle_option): Handle the -v option.
        For --help enable the display of undocumented options if the -v
        switch has been included on the command line.
        For --help= check for overlaps in the arguments between the option
        classes and the language names and issue a warning when they
        cannot be disambiguated.
        * c.opt (v): Pass on to the common option handler.

From-SVN: r132427
2008-02-19 10:33:41 +00:00
Jakub Jelinek
d2ee546fd6 re PR c++/35028 (ICE with strange ctor and firstprivate)
PR c++/35028
	* cp-gimplify.c (cxx_omp_clause_apply_fn): Handle vararg copy ctors.

	* g++.dg/gomp/pr35028.C: New test.

From-SVN: r132426
2008-02-19 11:18:29 +01:00
Jakub Jelinek
edb6000e37 re PR c++/34964 (ICE with broken variable in #pragma omp threadprivate)
PR c++/34964
	PR c++/35244
	* semantics.c (finish_omp_threadprivate): Do nothing for error_operand_p
	vars.  Afterwards ensure v is VAR_DECL.

	* gcc.dg/gomp/pr34964.c: New test.
	* g++.dg/gomp/pr34964.C: New test.
	* gcc.dg/gomp/pr35244.c: New test.
	* g++.dg/gomp/pr35244.C: New test.

From-SVN: r132425
2008-02-19 11:16:29 +01:00
Jakub Jelinek
dadb19e068 re PR c++/35078 (ICE with reference in parallel for loop)
PR c++/35078
	* parser.c (cp_parser_omp_for_loop): If DECL has REFERENCE_TYPE, don't
	call cp_finish_decl.
	* semantics.c (finish_omp_for): Fail if DECL doesn't have integral type
	early.

	* g++.dg/gomp/pr35078.C: New test.

From-SVN: r132424
2008-02-19 11:14:57 +01:00
Revital Eres
de82c45332 SMS: Minor misc fixes
From-SVN: r132423
2008-02-19 09:19:36 +00:00
Christian Bruel
80fa012e02 coding convention
From-SVN: r132418
2008-02-19 09:34:16 +01:00
Christian Bruel
32159434b6 fix alignment bug in packed structs for STRICT_ALIGNMENT targets
Co-Authored-By: Zdenek Dvorak <ook@ucw.cz>

From-SVN: r132416
2008-02-19 08:48:12 +01:00
Christian Bruel
d9484c5ba9 test case for alignment bug in packed structs for STRICT_ALIGNMENT targets
From-SVN: r132415
2008-02-19 08:42:25 +01:00
Uros Bizjak
0e93e1b4ee re PR target/33555 (x86 missed opportunity for sbb)
PR target/33555
        * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
        (*x86_movdicc_0_m1_se): Ditto.

testsuite/ChangeLog:

        PR target/33555
        * gcc.target/i386/pr33555.c: New test.

From-SVN: r132414
2008-02-19 08:23:30 +01:00
Uros Bizjak
02d353cfc9 sfp-machine.h (__gcc_CMPtype): New typedef.
* config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
        (CMPtype): Define as __gcc_CMPtype.
        * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
        (CMPtype): Define as __gcc_CMPtype.

From-SVN: r132413
2008-02-19 08:14:10 +01:00
Hans-Peter Nilsson
35dee9803d Support valgrind 3.3 for --enable-checking=valgrind.
* system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
	here.
	[!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
	[!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
	[!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
	* ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
	Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
	VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
	VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
	respectively.
	* ggc-zone.c: Similar.
	* ggc-page.c: Similar.

From-SVN: r132407
2008-02-19 04:13:05 +00:00
Ben Elliston
5ff3a20880 re PR other/12618 (core not cleaned up by 'make distclean')
PR other/12618
	* testsuite/Makefile.in (mostlyclean): Remove any core file.

From-SVN: r132405
2008-02-19 14:23:15 +11:00
Paul Brook
27e03cf15b re PR target/35071 (bad instruction `do_itt eq')
2008-02-19  Paul Brook  <paul@codesourcery.com>

	PR target/35071
	* config/arm/ieee754-df.S: Fix do_it typo.
	* config/arm/ieee754-sf.S: Fix do_it typo.

From-SVN: r132404
2008-02-19 01:29:09 +00:00
H.J. Lu
287a7d41f5 re PR target/35189 (-mno-sse4.2 turns off SSE4a)
gcc/

2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/35189
	* config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
	(OPTION_MASK_ISA_3DNOW_SET): Likewise.
	(OPTION_MASK_ISA_SSE_SET): Likewise.
	(OPTION_MASK_ISA_SSE2_SET): Likewise.
	(OPTION_MASK_ISA_SSE3_SET): Likewise.
	(OPTION_MASK_ISA_SSSE3_SET): Likewise.
	(OPTION_MASK_ISA_SSE4_1_SET): Likewise.
	(OPTION_MASK_ISA_SSE4_2_SET): Likewise.
	(OPTION_MASK_ISA_SSE4_SET): Likewise.
	(OPTION_MASK_ISA_SSE4A_SET): Likewise.
	(OPTION_MASK_ISA_SSE5_SET): Likewise.
	(OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
	(OPTION_MASK_ISA_MMX_UNSET): Updated.
	(OPTION_MASK_ISA_3DNOW_UNSET): Updated.
	(OPTION_MASK_ISA_SSE_UNSET): Likewise.
	(OPTION_MASK_ISA_SSE3_UNSET): Likewise.
	(OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
	(OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
	(OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
	(OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
	(OPTION_MASK_ISA_SSE5_UNSET): Likewise.
	(OPTION_MASK_ISA_SSE4): Removed.
	(ix86_handle_option): Turn on bits in ix86_isa_flags and
	ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for
	-mXXX.
	(override_options): Don't turn on implied SSE/MMX bits in
	ix86_isa_flags.

gcc/testsuite/

2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/35189
	* gcc.target/i386/isa-1.c: New.
	* gcc.target/i386/isa-2.c: Likewise.
	* gcc.target/i386/isa-3.c: Likewise.
	* gcc.target/i386/isa-4.c: Likewise.
	* gcc.target/i386/isa-5.c: Likewise.
	* gcc.target/i386/isa-6.c: Likewise.
	* gcc.target/i386/isa-7.c: Likewise.
	* gcc.target/i386/isa-8.c: Likewise.
	* gcc.target/i386/isa-9.c: Likewise.
	* gcc.target/i386/isa-10.c: Likewise.
	* gcc.target/i386/isa-11.c: Likewise.
	* gcc.target/i386/isa-12.c: Likewise.
	* gcc.target/i386/isa-13.c: Likewise.
	* gcc.target/i386/isa-14.c: Likewise.

From-SVN: r132403
2008-02-18 17:21:03 -08:00
GCC Administrator
2c9e3ddaf9 Daily bump.
From-SVN: r132401
2008-02-19 00:17:38 +00:00
H.J. Lu
feaffcaaa9 i386-modes.def: Use 4 byte alignment on DI for 32bit host.
2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386-modes.def: Use 4 byte alignment on DI for
	32bit host.

From-SVN: r132397
2008-02-18 15:44:32 -08:00
Joey Ye
b2ae828d7a re PR middle-end/34921 (Misalign stack variable referenced by nested function)
gcc/

2008-02-18  Joey Ye  <joey.ye@intel.com>

	PR middle-end/34921
	* tree-nested.c (insert_field_into_struct): Set type alignment
	to field alignment if the former is less than the latter.

gcc/testsuite/

2008-02-18  Joey Ye  <joey.ye@intel.com>
	    H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/34921
	* gcc.c-torture/execute/nest-align-1.c: New test case.

Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>

From-SVN: r132396
2008-02-18 15:43:23 -08:00
Jakub Jelinek
bd67275ca9 * crontab: Add 4.3 branch. Set trunk to 4.4.
From-SVN: r132394
2008-02-18 23:49:19 +01:00
Jakub Jelinek
8d855c3de1 * BASE-VER: Set to 4.4.0.
From-SVN: r132393
2008-02-18 23:41:06 +01:00
Jakub Jelinek
0802ae58ae cp-tools.texinfo (@direntry): Prefix info name with cp-.
* doc/cp-tools.texinfo (@direntry): Prefix info name with cp-.
	* doc/cp-hacking.texinfo (@direntry): Likewise.
	* doc/cp-vmintegration.texinfo (@direntry): Likewise.

From-SVN: r132391
2008-02-18 20:54:01 +01:00
Paolo Carlini
b5b5e640fc [multiple changes]
2008-02-18  Pedro Lamarao <pedro.lamarao@mndfck.org>

	* include/std/tuple: Fixes for moveable, non-copyable types.
	* testsuite/20_util/tuple/moveable2.cc: New.

2008-02-18  Paolo Carlini  <pcarlini@suse.de>

	* include/std/tuple (operator+(tuple<>&&, tuple<>&&): Remove.

From-SVN: r132389
2008-02-18 13:32:01 +00:00
GCC Administrator
fce9c862a6 Daily bump.
From-SVN: r132387
2008-02-18 00:17:29 +00:00
Ed Smith-Rowland
6165bbddcd poly_laguerre.tcc: Doxygen fixes.
2008-02-17  Ed Smith-Rowland  <3dw4rd@verizon.net>

	* include/tr1/poly_laguerre.tcc: Doxygen fixes.
	* include/tr1/exp_integral.tcc: Same.
	* include/tr1/gamma.tcc: Same.
	* include/tr1/hypergeometric.tcc: Same.

From-SVN: r132384
2008-02-18 00:05:26 +00:00
Benjamin Kosnik
ee1b5fc5e0 re PR libstdc++/34797 ([parallel mode] Settings are separated for each compilation unit)
2008-02-17  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/34797
	* include/parallel/settings.h (_Settings): Reconstruct Settings class
	here, uglify, remove anonymous namespace and static
	members. Convert to datum.	
	* include/parallel/types.h: Move Settings:: enumerations here, uglify.
	* src/parallel_settings.cc: New, definition for _Settings member
	functions.	
	* include/parallel/multiway_merge.h: Same.
	* include/parallel/for_each.h: Same.
	* include/parallel/workstealing.h: Same.
	* include/parallel/base.h: Same.
	* include/parallel/numeric
	* include/parallel/features.h: Same.
	* include/parallel/quicksort.h: Same.
	* include/parallel/equally_split.h: Same.
	* include/parallel/algorithmfwd.h: Same.
	* include/parallel/omp_loop_static.h: Same.
	* include/parallel/random_shuffle.h: Same.
	* include/parallel/balanced_quicksort.h: Same.
	* include/parallel/tags.h: Same.
	* include/parallel/multiway_mergesort.h: Same.
	* include/parallel/numericfwd.h: Same.
	* include/parallel/partition.h: Same.
	* include/parallel/partial_sum.h: Same.
	* include/parallel/find.h: Same.
	* include/parallel/algo.h: Same.
	* include/parallel/omp_loop.h: Same.
	* include/parallel/sort.h: Same.

	* src/Makefile.am (parallel_sources): Add parallel_settings.cc.
	* src/Makefile.in: Regenerate.
	
	* config/abi/pre/gnu.ver: Export _Settings::get and _Settings::set.

From-SVN: r132383
2008-02-18 00:00:00 +00:00
Ralf Wildenhues
e69044cb35 re PR ada/15479 (Ada manual problems)
gcc/ada/:
PR documentation/15479
* gnat_ugn.texi: In non-code, avoid space before colon.
(Regular Expressions in gnatfind and gnatxref): Fix indentation.
(Examples of gnatxref Usage): Use @command{vi} instead of
@file{vi}.
(Character Set Control): Do not use @code for UTF-8.
(Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
use @code for IEEE.
* gnat_rm.texi (Aggregates with static bounds): Fix typo in code
sample.
* gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.

From-SVN: r132382
2008-02-17 21:20:01 +00:00
Ralf Wildenhues
923158bee1 c-tree.texi: Use @dots{} and @enddots{} where appropriate.
* doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
* doc/cfg.texi: Likewise.
* doc/extend.texi: Likewise.
* doc/gty.texi: Likewise.
* doc/invoke.texi: Likewise.
* doc/loop.texi: Likewise.
* doc/md.texi: Likewise.
* doc/passes.texi: Likewise.
* doc/rtl.texi: Likewise.
* doc/sourcebuild.texi: Likewise.
* doc/tm.texi: Likewise.
* doc/tree-ssa.texi: Likewise.

From-SVN: r132381
2008-02-17 18:52:04 +00:00
Paolo Carlini
6df548d2d3 re PR libstdc++/35221 (libstdc++ broken)
2008-02-17  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/35221
	* include/parallel/types.h: Reinstate integer types typedefs.
	* include/parallel/multiseq_selection.h: Adjust.
	* include/parallel/compatibility.h: Likewise.
	* include/parallel/random_shuffle.h: Likewise.
	* include/parallel/random_number.h: Likewise.
	* include/parallel/base.h: Likewise.

From-SVN: r132380
2008-02-17 15:46:30 +00:00
Richard Guenther
f0a77246d3 re PR middle-end/35227 (gcc ICEs for functions with unused complex argument)
2008-02-17  Richard Guenther  <rguenther@suse.de>

	PR middle-end/35227
	* tree-complex.c (init_parameter_lattice_values): Handle parameters
	without default definition.

	* gcc.dg/torture/pr35227.c: New testcase.

From-SVN: r132379
2008-02-17 15:06:53 +00:00
Richard Guenther
e09deb1401 re PR tree-optimization/35231 (VRP miscompiles libX11)
2008-02-17  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/35231
	* tree-vrp.c (register_edge_assert_for): Do not assume A == 0
	if A | B != 1.

	* gcc.c-torture/execute/pr35231.c: New testcase.

From-SVN: r132378
2008-02-17 14:00:48 +00:00
Uros Bizjak
e6528d32a4 Revert:
2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
        * config/i386/sfp-machine.h (CMPtype): Define as typedef using
        libgcc_cmp_return mode.

testsuite/ChangeLog:

        * gcc.target/i386/pr32268.c (test_lt): Add noinline attribute.
        (test_gt): Ditto.

From-SVN: r132377
2008-02-17 12:54:45 +01:00
GCC Administrator
9e53e39214 Daily bump.
From-SVN: r132375
2008-02-17 00:17:33 +00:00
Paolo Carlini
83c69a08b4 re PR libstdc++/35209 (__gnu_cxx::stdio_sync_filebuf<char> constructor isn't exported by the DSO)
2008-02-17  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/35209
	* config/abi/pre/gnu.ver: Export stdio_sync_filebuf symbols.
	* testsuite/ext/stdio_sync_filebuf/char/35209.cc: New.
	* testsuite/ext/stdio_sync_filebuf/wchar_t/35209.cc: Likewise.

From-SVN: r132372
2008-02-16 23:39:56 +00:00
Benjamin Kosnik
459af5a02d random_number.h: Use TR1's mersenne_twister.
2008-02-16  Benjamin Kosnik  <bkoz@redhat.com>

	* include/parallel/random_number.h: Use TR1's mersenne_twister.
	(random_number::genrand_bits()): Remove.
	(random_number::set_seed): Remove.

From-SVN: r132371
2008-02-16 23:21:20 +00:00
Kaveh R. Ghazi
9e2d69391e encode-2.mm: XFAIL.
* obj-c++.dg/encode-2.mm: XFAIL.
	* obj-c++.dg/encode-3.mm: Likewise.

From-SVN: r132370
2008-02-16 22:39:49 +00:00
Kaveh R. Ghazi
4a610263c8 has_nothrow_assign.C: Skip some tests when __PIC__.
2008-02-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
	    Paolo Carlini  <pcarlini@suse.de>

        * g++.dg/ext/has_nothrow_assign.C: Skip some tests when __PIC__.
        * g++.dg/ext/has_nothrow_constructor.C: Likewise.
        * g++.dg/ext/has_nothrow_copy.C: Likewise.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>

From-SVN: r132369
2008-02-16 19:32:24 +00:00
Manuel López-Ibáñez
93e052a895 re PR c/28368 (-std=c89 doesn't warn about gcc's "?:" extension)
2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR c/28368
	* doc/invoke.texi (-std): Clarify description of -std= and -ansi.

From-SVN: r132367
2008-02-16 16:29:12 +00:00
Francois-Xavier Coudert
49309826a0 re PR fortran/34952 (Document lack of support for ENCODE/DECODE)
PR fortran/34952
	* gfortran.texi: Create new section for unimplemented extensions.
	Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
	Remove "smaller projects" list. Fix a few typos.

From-SVN: r132366
2008-02-16 14:10:12 +00:00