91905 Commits

Author SHA1 Message Date
Jason Merrill
1cb801bc76 re PR c++/9634 ([DR224] Injected class name as qualifier should not make the name dependent)
PR c++/9634
        PR c++/29469
        PR c++/29607
        * decl.c (make_typename_type): Do look inside currently open classes.
        * parser.c (cp_parser_lookup_name): Likewise.
        (cp_parser_template_name): Likewise.
        * pt.c (dependent_scope_p): New function.
        * cp-tree.h: Declare it.
        * class.c (currently_open_class): Return fast if T isn't a class.

Co-Authored-By: Giovanni Bajo <giovannibajo@gcc.gnu.org>

From-SVN: r144618
2009-03-04 13:42:17 -05:00
Zdenek Dvorak
f017bf5e2d tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Extend comments.
* tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
	Extend comments.
	(simple_iv):  Take loop as an argument instead of statement.
	* tree-scalar-evolution.h (simple_iv): Declaration changed.
	* tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
	to simple_iv.
	* tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
	Ditto.
	* tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
	* matrix-reorg.c (analyze_transpose): Ditto.
	* tree-data-ref.c (dr_analyze_innermost): Ditto.
	* tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
	* tree-predcom.c (ref_at_iteration): Ditto.
	* tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.

From-SVN: r144615
2009-03-04 17:50:20 +00:00
Steve Ellcey
79c09787dc re PR testsuite/39357 (gcc.dg/vect/vect-iv-6.c)
PR testsuite/39357
	* gcc.dg/vect-iv-6.c (dg-require-effective-target): Change from
	vect_int to vect_int_mult.

From-SVN: r144614
2009-03-04 17:25:16 +00:00
Richard Guenther
6a66f28ed5 re PR tree-optimization/39358 (Wrong aliasing warning with lists)
2009-03-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/39358
	* tree-ssa-structalias.c (do_sd_constraint): Fix check for
	escaped_id and callused_id.
	(solve_graph): Likewise.

	* g++.dg/warn/Wstrict-aliasing-bogus-escape-2.C: New testcase.
	* g++.dg/warn/Wstrict-aliasing-bogus-escape-3.C: Likewise.

From-SVN: r144602
2009-03-04 12:36:56 +00:00
Joseph Myers
c0de290730 * es.po: Update.
From-SVN: r144600
2009-03-04 10:48:40 +00:00
Richard Guenther
57e454eeb2 re PR tree-optimization/39339 (SRA miscompilation of vte)
2009-03-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/39339
	* tree-sra.c (try_instantiate_multiple_fields): Make it
	no longer ICE on the above.

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

From-SVN: r144598
2009-03-04 09:02:59 +00:00
Joseph Myers
a6fe9ed43e emit-rtl.c (adjust_address_1): Reduce offset to a signed value that fits within Pmode.
* emit-rtl.c (adjust_address_1): Reduce offset to a signed value
	that fits within Pmode.

testsuite:
	* gcc.c-torture/compile/20090303-1.c,
	gcc.c-torture/compile/20090303-2.c: New tests.

From-SVN: r144595
2009-03-04 01:57:29 +00:00
GCC Administrator
dd7d0a4f8f Daily bump.
From-SVN: r144594
2009-03-04 00:16:45 +00:00
Joseph Myers
a6776c9060 * es.po: Update.
From-SVN: r144591
2009-03-03 22:48:24 +00:00
Steve Ellcey
dc6729518a re PR middle-end/10109 (documentation of target macro LIBCALL_VALUE)
PR middle-end/10109
	* tm.texi (LIBCALL_VALUE): Update description.

From-SVN: r144586
2009-03-03 18:33:40 +00:00
Steve Ellcey
8b9d598f03 re PR middle-end/34443 (The GCC manual about section variable attribute is incorrect)
PR middle-end/34443
	* doc/extend.texi (section): Update description.

From-SVN: r144582
2009-03-03 18:27:42 +00:00
H.J. Lu
13e4e36e17 re PR tree-optimization/39345 (ICE in copy_tree_body_r, at tree-inline.c:1020)
2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/39345
	* tree-inline.c (remapped_type): New.
	(can_be_nonlocal): Call remapped_type instead of remap_type.

From-SVN: r144581
2009-03-03 10:08:01 -08:00
Andrew John Hughes
6eaf85d001 Cleanup new JDK directory support in GCJ.
2009-03-03  Andrew John Hughes  <ahughes@redhat.com>

	* Makefile.am:
	Remove dangling src.zip and javac symlinks.
	Fix java.security symlink to use toolexeclibdir
	as classpath/resource/Makefile.am does.
	* Makefile.in,
	* configure: Regenerated.
	* configure.ac: Drop hard-coded prefix,
	thus removing sdk_dir and making jre_dir="jre".
	Map x86_64 to amd64 as used by OpenJDK.
	* gcj/Makefile.in,
	* include/Makefile.in,
	* testsuite/Makefile.in: Regenerated.

From-SVN: r144576
2009-03-03 17:03:51 +00:00
Jakub Jelinek
067dd3c96d re PR fortran/39354 (bad codegen for openmp atomics (Intel64 Fortran logical ops))
PR fortran/39354
	* gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
	TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.

	* gfortran.dg/gomp/pr39354.f90: New test.

From-SVN: r144575
2009-03-03 17:43:42 +01:00
Richard Guenther
9bd9f73827 re PR tree-optimization/39272 (-D_FORTIFY_SOURCE=2 no longer warns with new glibc headers)
2009-03-03  Richard Guenther  <rguenther@suse.de>

	PR middle-end/39272
	* tree.c (tree_nonartificial_location): New function.
	* tree.h (tree_nonartificial_location): Declare.
	* builtins.c (expand_builtin_memory_chk): Provide location
	of the call location for artificial function pieces.
	(maybe_emit_chk_warning): Likewise.
	(maybe_emit_sprintf_chk_warning): Likewise.
	(maybe_emit_free_warning): Likewise.
	* expr.c (expand_expr_real_1): Likewise.

From-SVN: r144573
2009-03-03 13:05:53 +00:00
Jakub Jelinek
f07049c8f1 re PR tree-optimization/39343 (Wrong result for __builtin_object_size (x, 1))
PR tree-optimization/39343
	* tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
	COMPONENT_REF t has ARRAY_TYPE.

	* gcc.dg/pr39343.c: New test.

From-SVN: r144571
2009-03-03 12:29:51 +01:00
Ira Rosen
fc0ffad7cb re PR tree-optimization/39248 (FAIL: gcc.dg/vect/vect-complex-1.c)
PR tree-optimization/39248
	* gcc.dg/vect/vect-complex-1.c: Add attribute aligned
	to the arrays.
	* gcc.dg/vect/vect-iv-6.c: Don't expect to fail to vectorize
	on targets without vector misalignment support.
	* lib/target-supports.exp 
	(check_effective_target_vect_short_mult): Add 
	check_effective_target_arm32.

From-SVN: r144569
2009-03-03 07:42:26 +00:00
Sebastian Pop
7d4fba4aac re PR middle-end/39335 (ICE in GCC 4.4 with -O[123] -floop-interchange)
2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/39335
	* tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
	when the type precision of the induction variable should be
	larger than the type precision of nit.
	(gen_parallel_loop): Update use of canonicalize_loop_ivs.
	* graphite.c (graphite_loop_normal_form): Same.
	* tree-flow.h (canonicalize_loop_ivs): Update declaration.

	* testsuite/gcc.dg/graphite/pr39335_1.c: New.
	* testsuite/gcc.dg/graphite/pr39335.c: New.

From-SVN: r144564
2009-03-03 03:47:22 +00:00
Bruce Korb
10fc64a7a6 fix ChangeLog date
From-SVN: r144561
2009-03-03 00:35:19 +00:00
GCC Administrator
39512b9efd Daily bump.
From-SVN: r144560
2009-03-03 00:16:44 +00:00
Uros Bizjak
781686320a i386.md (ST?_REG, MM?_REG): New constants.
* config/i386/i386.md (ST?_REG, MM?_REG): New constants.
	(*call_1_rex64_ms_sysv): Use named constants instead of magic
	numbers to describe clobbbered registers.
	(*call_value_0_rex64_ms_sysv): Ditto.
	* config/i386/mmx.md (emms): Ditto.
	(femms): Ditto.

From-SVN: r144554
2009-03-02 21:58:39 +01:00
Richard Sandiford
6355305908 mips.c (mips_mdebug_abi_name): Fix the handling of ABI_64.
gcc/
	* config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
	of ABI_64.

From-SVN: r144552
2009-03-02 20:26:22 +00:00
Ulrich Weigand
500a1f8513 spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
* config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
	(spu_section_type_flags): New function.

From-SVN: r144550
2009-03-02 19:32:05 +00:00
Benjamin Kosnik
33b4155d1b pthread4.cc: Move...
2009-03-02  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/thread/pthread4.cc: Move...
	* testsuite/21_strings/basic_string/pthread4.cc: ...here.
	* testsuite/thread/pthread5.cc: Move...
	* testsuite/23_containers/list/pthread5.cc: ...here.
	* testsuite/thread/pthread6.cc: Move...
	* testsuite/23_containers/map/pthread6.cc: ...here.
	* testsuite/thread/pthread7-rope.cc: Move...
	* testsuite/ext/rope/pthread7-rope.cc: ...here.
	* testsuite/thread/guard.cc: Move...
	* testsuite/18_support/pthread_guard.cc: ...here.
	* testsuite/thread/18185.cc: Move...
	* testsuite/21_strings/basic_string/pthread18185.cc: ...here.
	* testsuite/thread/pthread1.cc: Move...
	* testsuite/23_containers/list/pthread1.cc: ...here.
	* testsuite/thread/pthread2.cc: Move...
	* testsuite/27_io/basic_ofstream/pthread2.cc: ...here.
	* testsuite/thread/pthread3.cc: Move...
	* testsuite/27_io/basic_ostringstream/pthread3.cc: ...here.

	* testsuite/libstdc++-dg/conformance.exp: Remove thread directory.
	* testsuite/thread: Remove.

From-SVN: r144547
2009-03-02 18:55:54 +00:00
Benjamin Kosnik
48a3a45a6c pthread4.cc: Move...
2009-03-02  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/thread/pthread4.cc: Move...
	* testsuite/21_strings/basic_string/pthread4.cc: ...here.
	* testsuite/thread/pthread5.cc: Move...
	* testsuite/23_containers/list/pthread5.cc: ...here.
	* testsuite/thread/pthread6.cc: Move...
	* testsuite/23_containers/map/pthread6.cc: ...here.
	* testsuite/thread/pthread7-rope.cc: Move...
	* testsuite/ext/rope/pthread7-rope.cc: ...here.
	* testsuite/thread/guard.cc: Move...
	* testsuite/18_support/pthread_guard.cc: ...here.
	* testsuite/thread/18185.cc: Move...
	* testsuite/21_strings/basic_string/pthread18185.cc: ...here.
	* testsuite/thread/pthread1.cc: Move...
	* testsuite/23_containers/list/pthread1.cc: ...here.
	* testsuite/thread/pthread2.cc: Move...
	* testsuite/27_io/basic_ofstream/pthread2.cc: ...here.
	* testsuite/thread/pthread3.cc: Move...
	* testsuite/27_io/basic_ostringstream/pthread3.cc: ...here.

From-SVN: r144546
2009-03-02 18:49:03 +00:00
H.J. Lu
0f07d5761a return-4.c: Scan andl/andq instead of andl.
2009-03-02  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.target/i386/stackalign/return-4.c: Scan andl/andq instead
	of andl.
	* gcc.target/i386/stackalign/return-5.c: Likewise.
	* gcc.target/i386/stackalign/return-6.c: Likewise.

From-SVN: r144544
2009-03-02 09:58:10 -08:00
Uros Bizjak
962aae340f i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy reg_class_contents of FLOAT_REGS into a temporary.
* config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
	reg_class_contents of FLOAT_REGS into a temporary.

From-SVN: r144542
2009-03-02 14:46:05 +01:00
Richard Guenther
6dfb529ce2 re PR middle-end/39318 (internal compiler error: verify_stmts failed)
2009-03-02  Richard Guenther  <rguenther@suse.de>
            Ira Rosen  <irar@il.ibm.com>

	PR tree-optimization/39318
	* tree-vect-transform.c (vectorizable_call): Transfer the EH region
	information to the vectorized statement.


Co-Authored-By: Ira Rosen <irar@il.ibm.com>

From-SVN: r144541
2009-03-02 11:52:15 +00:00
GCC Administrator
cbf92fc258 Daily bump.
From-SVN: r144538
2009-03-02 00:16:44 +00:00
Eric Botcazou
67901d32d6 Fix latest entry.
From-SVN: r144534
2009-03-01 23:04:50 +00:00
Uros Bizjak
434426d2dd i386.h (CONDITIONAL_REGISTER_USAGE): Use defined names instead of magic constants for REX SSE registers.
* config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use defined
        names instead of magic constants for REX SSE registers.

From-SVN: r144533
2009-03-01 22:58:31 +01:00
Uros Bizjak
6b5629db5a i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i" variable.
* config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not
	shadow "i" variable.

From-SVN: r144532
2009-03-01 22:30:24 +01:00
Richard Guenther
14e5b28507 re PR tree-optimization/39331 (OpenMP and return-slot-optimization generate invalid gimple)
2009-03-01  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/39331
	* omp-low.c (lower_send_shared_vars): Do not receive new
	values for the reference of DECL_BY_REFERENCE parms or results.

From-SVN: r144531
2009-03-01 20:49:14 +00:00
Eric Botcazou
f4ea99bd34 Fix long lines.
From-SVN: r144530
2009-03-01 19:01:14 +00:00
Jan Hubicka
526d73abff re PR debug/39267 (gdb testsuite regressions)
PR debug/39267
	* tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
	BLOCK_NONLOCALIZED_VAR): New macros.
	(tree_block): Add nonlocalized_vars.
	* dwarf2out.c (gen_formal_parameter_die, gen_variable_die, gen_decl_die): Add
	origin argument; allow generation of die with origin at hand only.
	(gen_member_die, gen_type_die_with_usage, force_decl_die,
	declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use of gen_*.
	(gen_block_die): Fix checking for unused blocks.
	(process_scope_var): Break out from .... ; work with origins only.
	(decls_for_scope) ... here; process nonlocalized list.
	(dwarf2out_ignore_block): Look for nonlocalized vars.
	* tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized vars.
	(dump_scope_block): Dump them.
	* tree-inline.c (remap_decls): Handle nonlocalized vars.
	(remap_block): Likewise.
	(can_be_nonlocal): New predicate.
	(copy_bind_expr, copy_gimple_bind): Update use of remap_block.

From-SVN: r144529
2009-03-01 18:47:08 +00:00
Ralf Wildenhues
7a9d3fe886 backport: Support GNU/kOpenSolaris.
Backport from git Libtool:

	2009-01-19  Robert Millan  <rmh@aybabtu.com>
	Support GNU/kOpenSolaris.
	* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
	(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
	(_LT_LANG_CXX_CONFIG) [kopensolaris*-gnu]: Recognize
	GNU/kOpenSolaris.

libjava/classpath/
	* configure: Regenerate.

libjava/
	* configure: Regenerate.

libssp/
	* configure: Regenerate.

libobjc/
	* configure: Regenerate.

libstdc++-v3/
	* configure: Regenerate.

libgfortran/
	* configure: Regenerate.

boehm-gc/
	* configure: Regenerate.

gcc/
	* configure: Regenerate.

libmudflap/
	* configure: Regenerate.

zlib/
	* configure: Regenerate.

libffi/
	* configure: Regenerate.

libgomp/
	* configure: Regenerate.

From-SVN: r144527
2009-03-01 17:49:31 +00:00
Ralf Wildenhues
a16d1645a3 optc-gen.awk: No need to duplicate option flags twice.
gcc/
	* optc-gen.awk: No need to duplicate option flags twice.
	Reuse help texts for duplicate options which do not have
	any.

From-SVN: r144526
2009-03-01 12:20:33 +00:00
Ralf Wildenhues
1156c176fb gcc.c (display_help): Document --version.
gcc/
	* gcc.c (display_help): Document --version.

From-SVN: r144525
2009-03-01 11:29:32 +00:00
Ralf Wildenhues
033505fc8c gcc.c (main): If print_help_list and verbose_flag...
gcc/
	* gcc.c (main): If print_help_list and verbose_flag, ensure
	driver output comes before subprocess output.

From-SVN: r144524
2009-03-01 11:27:41 +00:00
Ralf Wildenhues
4d07705422 optc-gen.awk: Assign all remaining fields to help string...
gcc/
	* optc-gen.awk: Assign all remaining fields to help string,
	space-separated, for multi-line help in *.opt.

From-SVN: r144523
2009-03-01 11:26:06 +00:00
Ralf Wildenhues
a072f1cf7c check_warning_flags.sh: Update flag exceptions.
contrib/
        * check_warning_flags.sh: Update flag exceptions.

gcc/
        * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
        -Wno-pedantic-ms-format is for MinGW targets only.

From-SVN: r144522
2009-03-01 11:24:03 +00:00
Ralf Wildenhues
b3cdf3cbb6 options.texi (Option file format): Fix bad indentation, restoring dropped sentence.
gcc/
	* doc/options.texi (Option file format): Fix bad indentation,
	restoring dropped sentence.

From-SVN: r144518
2009-03-01 11:21:16 +00:00
Jan Hubicka
a3aadcc56b * tree-inline.c (tree_function_versioning): Output debug info.
From-SVN: r144516
2009-03-01 11:05:00 +00:00
Jan Hubicka
1cf5abb382 re PR debug/39267 (gdb testsuite regressions)
PR debug/39267
	* tree-inline.c (setup_one_parameter): Do not copy propagate
	arguments when not optimizing.
	PR debug/39267
	* gcc.dg/debug/dwarf2/inline1.c: New testcase.

From-SVN: r144515
2009-03-01 11:02:30 +00:00
Eric Botcazou
39ae51e069 re PR ada/39264 (gnat.dg/pack3.adb fails on powerpc64/s390x)
PR ada/39264
	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
	call make_packable_type on fat pointer types.
	<E_Array_Subtype>: Likewise.
	<E_Record_Subtype>: Call make_packable_type on all record types
	except for fat pointer types.
	(make_packable_type): Likewise.
	(gnat_to_gnu_field): Likewise.

From-SVN: r144514
2009-03-01 10:53:17 +00:00
Eric Botcazou
625d325157 Move entry
From-SVN: r144513
2009-03-01 10:51:28 +00:00
GCC Administrator
a0daa400e4 Daily bump.
From-SVN: r144501
2009-03-01 00:16:55 +00:00
H.J. Lu
c4d3f42f27 re PR target/39327 (Incorrect addsub/unpck patterns in sse.md)
2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39327
	* config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
	(avx_addsubv4df3): Likewise.
	(*avx_addsubv4sf3): Likewise.
	(sse3_addsubv4sf3): Likewise.
	(*avx_addsubv2df3): Likewise.
	(sse3_addsubv2df3): Likewise.
	(avx_unpckhps256): Correct item selectors.
	(avx_unpcklps256): Likewise.
	(avx_unpckhpd256): Likewise.
	(avx_unpcklpd256): Likewise.

From-SVN: r144498
2009-02-28 14:29:25 -08:00
Jan Hubicka
eb50f5f41a tree-inline.c (expand_call_inline): Avoid duplicate declarations of static vars.
* tree-inline.c (expand_call_inline): Avoid duplicate declarations of
	static vars.
	(copy_arguments_for_versioning): If var is declared don't declare it.
	(tree_function_versioning): First setup substitutions and then copy
	args.

From-SVN: r144497
2009-02-28 22:14:43 +00:00
Jan Hubicka
261401301f re PR debug/39267 (gdb testsuite regressions)
PR debug/39267
	* cgraph.h (varpool_output_debug_info): Remove.
	* cgraphunit.c (varpool_output_debug_info): Remove.
	* dwarf2out.c (deferred_locations_struct): New struct
	(deferred_locations): New type.
	(deferred_locations_list): New static var.
	(deffer_location): New function.
	(gen_variable_die): Use it.
	(decls_for_scope): Output info on local static vars.
	(dwarf2out_finish): Process deferred locations.
	* varpool.c (varpool_output_debug_info): Remove.

From-SVN: r144496
2009-02-28 21:34:23 +00:00