Commit Graph

92042 Commits

Author SHA1 Message Date
Li Feng
9e517d61f7 re PR middle-end/39500 (autopar fails to parallel)
2009-03-19  Li Feng  <nemokingdom@gmail.com>

	PR middle-end/39500
	* tree-data-ref.c (analyze_subscript_affine_affine): There is no
	dependence if the first conflict is after niter iterations.

testsuite/
	* gcc.dg/autopar/pr39500-1.c: New.
	* gcc.dg/autopar/pr39500-2.c: New.

From-SVN: r144952
2009-03-19 06:49:14 +00:00
Hans-Peter Nilsson
8ef20026dc re PR middle-end/38609 (gcc.c-torture/execute/built-in-setjmp.c execute -O2 and above)
PR middle-end/38609
	* config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
	functions with dynamic stack-pointer adjustments.

From-SVN: r144951
2009-03-19 03:52:58 +00:00
GCC Administrator
f75d61d0f3 Daily bump.
From-SVN: r144950
2009-03-19 00:16:51 +00:00
Tom Tromey
cfb1f59f5d configure: Rebuild.
* configure: Rebuild.
        * configure.ac (host_libs): Add libiconv.
        * Makefile.in: Rebuild.
        * Makefile.def (host_modules): Add libiconv.
        (configure-gdb, all-gdb): Depend on libiconv.

From-SVN: r144947
2009-03-18 23:32:36 +00:00
Ben Elliston
64e4a1a6ce invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data option; change to -msdata=data.
* doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
	option; change to -msdata=data.

From-SVN: r144946
2009-03-19 08:59:56 +11:00
Jing Yu
80c6520868 Fix missing file and ChangeLog error in previous check-in
From-SVN: r144945
2009-03-18 21:58:15 +00:00
H.J. Lu
d680e79da8 dg.exp: Prune graphite.
2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>

	* g++.dg/dg.exp: Prune graphite.

From-SVN: r144944
2009-03-18 14:44:04 -07:00
Ralf Wildenhues
9a0f3e86af c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers, and -fopenmp.
gcc/
	* c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
	and -fopenmp.

gcc/java/
	* lang.opt: Unify help text for -Wdeprecated.

gcc/fortran/
	* lang.opt: Unify help texts for -I, -Wconversion, -d, -fopenmp,
	and -fpreprocessed.

From-SVN: r144943
2009-03-18 21:14:53 +00:00
Eric Botcazou
09bc5979b2 re PR target/35180 (built-in-setjmp.x2)
PR target/35180
	* config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.

From-SVN: r144942
2009-03-18 18:54:31 +00:00
Sandra Loosemore
332459cd59 invoke.texi (Code Gen Options): Expand discussion of -fno-common.
2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi (Code Gen Options): Expand discussion of
	-fno-common.

From-SVN: r144940
2009-03-18 13:48:07 -04:00
Jakub Jelinek
d130d647f6 re PR debug/39485 (-O0 -g still puts whole object to a register)
PR debug/39485
	* function.c (use_register_for_decl): When not optimizing, disregard
	register keyword for variables with types containing methods.

From-SVN: r144939
2009-03-18 18:06:15 +01:00
Jakub Jelinek
8f5929e11f dse.c (struct group_info): Reorder fields for 64-bit hosts.
* dse.c (struct group_info): Reorder fields for 64-bit hosts.
	* matrix-reorg.c (struct matrix_info): Likewise.
	* tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
	* rtl.h (struct mem_attrs): Likewise.
	* df.h (struct df): Likewise.
	* tree-data-ref.h (struct data_dependence_relation): Likewise.
	* ira-int.h (struct ira_allocno): Likewise.
	* df-scan.c (struct df_collection_rec): Likewise.
	* ira.c (struct equivalence): Likewise.
	* function.c (struct temp_slot): Likewise.
	* cfgloop.h (struct loop): Likewise.

	* parser.c (struct cp_token): Reorder fields for 64-bit hosts.
	(eof_token): Adjust.

	* include/cpplib.h (struct cpp_dir): Reorder fields for 64-bit hosts.

From-SVN: r144938
2009-03-18 18:04:26 +01:00
Sebastian Pop
9968d233b3 graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
	(is_simple_operand): Call contains_component_ref_p before calling data
	reference analysis that would fail on COMPONENT_REFs.

	* tree-vrp.c (search_for_addr_array): Fix formatting.

	* g++.dg/graphite: New.
	* g++.dg/graphite/graphite.exp: New.
	* g++.dg/graphite/pr39447.C: New.

From-SVN: r144937
2009-03-18 16:59:55 +00:00
Richard Guenther
69484bfd6c tree-vect-transform.c (vect_loop_versioning): Fold the generated comparisons.
2009-03-18  Richard Guenther  <rguenther@suse.de>

	* tree-vect-transform.c (vect_loop_versioning): Fold the
	generated comparisons.
	* tree-vectorizer.c (set_prologue_iterations): Likewise.
	(slpeel_tree_peel_loop_to_edge): Likewise.

From-SVN: r144934
2009-03-18 15:29:28 +00:00
H.J. Lu
367bdb8d6b re PR c++/39425 (gcc loops after reporting template instantiation errors)
gcc/cp/

2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/39425
	* parser.c (cp_parser_explicit_specialization): Don't skip the
	rest of the specialization when begin_specialization returns
	false.

gcc/testsuite/

2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/39425
	* g++.dg/template/pr39425.C: New.

	* g++.dg/template/spec33.C: Updated.

From-SVN: r144932
2009-03-18 07:56:45 -07:00
GCC Administrator
9515817232 Daily bump.
From-SVN: r144927
2009-03-18 00:16:40 +00:00
Jason Merrill
448545cb51 decl.c (grokfndecl): Set DECL_CONTEXT on parms.
cp/:
        * decl.c (grokfndecl): Set DECL_CONTEXT on parms.
        (duplicate_decls): Adjust DECL_CONTEXT of newdecl's parms.
        * pt.c (check_explicit_specialization): Likewise.
        (tsubst_copy) [PARM_DECL]: Return a dummy parm if we don't have a
        local specialization.
        * tree.c (cp_tree_equal) [PARM_DECL]: Check type and index, not name.
        * decl2.c (parm_index): New fn.
        * semantics.c (finish_decltype_type): Don't use describable_type.
        * mangle.c (write_expression): Likewise.  Mangle ALIGNOF_EXPR.
        Give a sorry for unsupported codes rather than crash.  Mangle
        conversions with other than 1 operand.  New mangling for PARM_DECL.
        * operators.def (ALIGNOF_EXPR): Mangle as az.
  
        * include/demangle.h (enum demangle_component_type): Add
        DEMANGLE_COMPONENT_FUNCTION_PARAM.
        * libiberty/cp-demangle.c (d_make_function_param): new fn.
        (cplus_demangle_mangled_name): Work around abi v2 bug.
        (d_expr_primary): Likewise.
        (cplus_demangle_operators): Add alignof ops.
        (d_expression): Handle function parameters and conversions
        with other than 1 operand.
        (d_print_comp): Handle function parameters.  Fix bug with
        function used in type of function.

From-SVN: r144924
2009-03-17 19:31:18 -04:00
Benjamin Kosnik
0075846f90 appendix_contributing.xml: Add docbook style sheet version information.
2009-03-17  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/xml/manual/appendix_contributing.xml: Add docbook style
	sheet version information. Table-ize docbook element examples.
	* doc/xml/manual/using.xml: Human-readable header
	markup. Alphabetized. Add new headers.
	* doc/html: Regenerate.

From-SVN: r144923
2009-03-17 22:09:26 +00:00
Doug Kwan
03f30216c1 Fix a documentation issue in a previous check in.
Fix a documentation issue in a previous check in.  Move C++ entry to
cp/ChangeLog

From-SVN: r144922
2009-03-17 21:33:00 +00:00
Ralf Wildenhues
0631b69f9a re PR middle-end/37805 (gcc --help=separate)
gcc/
	PR middle-end/37805
	* opts.c (print_specific_help): In addition to `undocumented',
	accept `separate' and `joined' flags if passed alone.  Describe
	output by the first matched one of those.
	(common_handle_option): Skip over empty strings.
	* gcc.c (display_help): Fix help string for `--help='.
	* doc/invoke.texi (Option Summary, Overall Options): With
	`--help=', classes and qualifiers can both be repeated, but
	only the latter can be negated.  One should not pass only
	negated qualifiers.  Fix markup and examples.

From-SVN: r144921
2009-03-17 21:25:59 +00:00
Ralf Wildenhues
668112286a revert: re PR middle-end/37805 (gcc --help=separate)
gcc/
	Revert
	2008-10-14  Jakub Jelinek  <jakub@redhat.com>
	PR middle-end/37805
	* opts.c (common_handle_option): Don't ICE on -fhelp=joined
	and -fhelp=separate.

From-SVN: r144920
2009-03-17 21:23:28 +00:00
Paolo Carlini
ff284b4bbe re PR c++/39475 (c++0x type-traits should error out in case of incompleteness)
/cp
2009-03-17  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/39475
	* semantics.c (check_trait_type): New.
	(finish_trait_expr): Use it.

/testsuite
2009-03-17  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/39475
	* g++.dg/ext/unary_trait_incomplete.C: New.

From-SVN: r144919
2009-03-17 20:49:23 +00:00
Jing Yu
3c072c6ba2 re PR middle-end/39378 (Multiple inheritence thunk not working with -mthumb)
2009-03-12  Jing Yu  <jingyu@google.com>

	PR middle-end/39378
	* function.h: Move is_thunk from rtl_data structure to function
	structure.
	* cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
	* varasm.c (assemble_start_function): Change is_thunk from crtl to
	cfun.
	* config/alpha/alpha.c: Change is_thunk from crtl to cfun.
	* config/rs6000/rs6000.c: Change is_thunk from crtl to cfun.
	* config/arm/arm.h: Change is_thunk from crtl to cfun.
	* testsuite/g++.dg/inherit/thunk10.C: New file.

	Patch submitted by Doug Kwan <dougkwan@google.com>

From-SVN: r144918
2009-03-17 20:18:21 +00:00
Uros Bizjak
9ade279bf6 re PR target/39482 (ICE in inline_secondary_memory_needed, at config/i386/i386.c:25478)
PR target/39482
	* config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
	from different units in a single alternative.
	(*truncdfsf_i387): Ditto.
	(*truncxfsf2_mixed): Ditto.
	(*truncxfdf2_mixed): Ditto.

testsuite/ChangeLog:

	PR target/39482
	* gcc.target/i386/pr39482.c: New test.

From-SVN: r144915
2009-03-17 19:55:40 +01:00
Jakub Jelinek
df5deb18f1 re PR debug/39474 (DW_AT_location missing for unused variables even at -O0)
PR debug/39474
	* tree-ssa-live.c (remove_unused_locals): Don't remove local
	unused non-artificial variables when not optimizing.

From-SVN: r144914
2009-03-17 18:53:01 +01:00
Jakub Jelinek
47512a6e9d re PR debug/37890 (Incorrect nesting for DW_TAG_imported_declaration)
PR debug/37890
	* name-lookup.c (do_namespace_alias): Don't call global_decl debug
	hook at function scope.

From-SVN: r144913
2009-03-17 18:52:08 +01:00
Jakub Jelinek
98381eb487 dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
* dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
	non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.

	* name-lookup.c (cp_emit_debug_info_for_using): Emit USING_STMTs
	instead of calling imported_module_or_decl debug hook if
	building_stmt_tree ().
	* cp-gimplify.c (cp_gimplify_expr): Don't assert the first operand
	is a NAMESPACE_DECL.

From-SVN: r144912
2009-03-17 18:51:10 +01:00
Jakub Jelinek
a3f596ba3d re PR debug/39471 (DW_TAG_imported_module should be used (not DW_TAG_imported_declaration))
PR debug/39471
	* dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
	DW_TAG_imported_module even if decl is IMPORTED_DECL with
	NAMESPACE_DECL in its DECL_INITIAL.

	* cp-gimplify.c (cp_gimplify_expr): Don't set DECL_NAME
	on IMPORTED_DECL.

	* g++.dg/debug/dwarf2/imported-module-2.C: Expect
	DW_TAG_imported_module, not just any DW_TAG_imported prefixed tag.
	* g++.dg/debug/dwarf2/imported-module-3.C: Likewise.
	* g++.dg/debug/dwarf2/imported-module-4.C: Likewise.

From-SVN: r144911
2009-03-17 18:49:28 +01:00
Jakub Jelinek
6b2b887127 re PR middle-end/39443 (Builtin redirection no longer working for memcmp)
PR middle-end/39443
	* optabs.c (set_user_assembler_libfunc): New function.
	* expr.h (set_user_assembler_libfunc): New prototype.
	* c-common.c: Include libfuncs.h.
	(set_builtin_user_assembler_name): Call set_user_assembler_libfunc
	for memcmp, memset, memcpy, memmove and abort.
	* Makefile.in (c-common.o): Depend on libfuncs.h.

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

From-SVN: r144910
2009-03-17 18:46:23 +01:00
Jakub Jelinek
16e60c1706 re PR debug/39412 (ICE in gen_tagged_type_instantiation_die)
PR debug/39412
	* dwarf2out.c (gen_inlined_enumeration_type_die,
	gen_inlined_structure_type_die, gen_inlined_union_type_die,
	gen_tagged_type_instantiation_die): Removed.
	(gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
	do nothing.

	* gcc.dg/debug/pr39412.c: New test.

From-SVN: r144909
2009-03-17 18:43:52 +01:00
Janis Johnson
4d936acaa4 re PR testsuite/38526 (WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator)
gcc/
	PR testsuite/38526
	* Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
	its use.
	(check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
	(check-parallel-%): Ditto.
	(check-consistency): Ditto.
testsuite/
	PR testsuite/38526
	* lib/target-libpath.exp (set_ld_library_path_env_vars): Save
	existing GCC_EXEC_PREFIX, set to TEST_GCC_EXEC_PREFIX if that
	is defined.
	(restore_ld_library_path_env_vars): Restore GCC_EXEC_PREFIX to
	its original value, or unset if it was not defined.
	* gcc.dg/compat/struct-layout-1.exp: Use set/restore library
	path procs around use of HOSTCC.
	* g++.dg/compat/struct-layout-1.exp: Ditto.
	* objc.dg/gnu-encoding/gnu-encoding.exp: Ditto.

From-SVN: r144908
2009-03-17 17:35:55 +00:00
Kai Tietz
4e9b2e504e ipa-struct-reorg.c (create_general_new_stmt): Initialize local variable rhs by NULL_TREE.
2009-03-17  Kai Tietz  <kai.tietz@onevision.com>

        * ipa-struct-reorg.c (create_general_new_stmt): Initialize
        local variable rhs by NULL_TREE.

From-SVN: r144907
2009-03-17 18:14:09 +01:00
H.J. Lu
21440b2da2 re PR target/39477 (Incorrect document for regparm attribute)
2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39477
	* doc/extend.texi: Correct register behavior for regparm on
	Intel 386.

From-SVN: r144903
2009-03-17 06:10:24 -07:00
H.J. Lu
d8905c6aa8 re PR target/39476 (Typo in ix86_function_regparm in i386.c)
2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39476
	* config/i386/i386.c (ix86_function_regparm): Rewrite for
	64bit.

From-SVN: r144902
2009-03-17 05:55:18 -07:00
H.J. Lu
435a61d30a re PR target/39473 (Typo in untyped_call in i386.md)
2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39473
	* config/i386/i386.c (ix86_expand_call): Check extra clobbers
	for ms->sysv ABI calls only in 64bit mode.

	* config/i386/i386.md (untyped_call): Support 32bit.

From-SVN: r144901
2009-03-17 05:50:52 -07:00
H.J. Lu
1cb3c37c53 func-indirect.c (main): Return 0.
2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.target/x86_64/abi/callabi/func-indirect.c (main): Return 0.

From-SVN: r144898
2009-03-16 18:12:28 -07:00
H.J. Lu
cdcabece30 extend.texi: Replace x86_65 with x86_64.
2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>

	* doc/extend.texi: Replace x86_65 with x86_64.

From-SVN: r144897
2009-03-16 17:27:35 -07:00
GCC Administrator
926023ad31 Daily bump.
From-SVN: r144896
2009-03-17 00:17:03 +00:00
Janis Johnson
c4d475ad06 Revert patch for PR testsuite/37630.
From-SVN: r144893
2009-03-16 21:11:57 +00:00
Janis Johnson
db20567194 re PR testsuite/37960 (FAIL: gcc.dg/pr11492.c (test for bogus messages, line 8))
PR testsuite/37960
	* gcc.dg/pr11492.c: Replace constant and remove xfail.

From-SVN: r144892
2009-03-16 20:01:15 +00:00
Janis Johnson
fabab0b641 re PR testsuite/37630 (gcc.dg/20001012-1.c depends on IEEE FP encoding)
PR testsuite/37630
	* lib/target-supports.exp (check_effective_target_ieee): New.
	* gcc.c-torture/execute/ieee/ieee.exp: Use it.
	* gcc.dg/20001012-1.c: Require ieee.

From-SVN: r144891
2009-03-16 19:59:37 +00:00
Janis Johnson
8ce1256960 re PR testsuite/37628 (gcc.c-torture/execute/pr35456.c is not generic)
PR testsuite/37628
	* gcc.c-torture/execute/pr35456.x: New, skip for vax.

From-SVN: r144890
2009-03-16 19:58:32 +00:00
H.J. Lu
853344ade1 Correct ChangeLog entries for revision 136311.
From-SVN: r144889
2009-03-16 12:29:17 -07:00
Tristan Gingold
75eeae1a13 configure.ac: Treat gdb as supported on x86_64-darwin.
* configure.ac: Treat gdb as supported on x86_64-darwin.
        * configure: Regenerate.

From-SVN: r144887
2009-03-16 17:02:02 +00:00
Jakub Jelinek
97b4ba9f89 re PR tree-optimization/39455 (ICE : in compare_values_warnv, at tree-vrp.c:1073)
PR tree-optimization/39455
	* tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
	mismatches for POINTER_TYPE_P (type).
	(number_of_iterations_le): Likewise.

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

From-SVN: r144885
2009-03-16 17:07:07 +01:00
Hariharan Sandanagobalane
83c191e155 picochip.c: Removed profiling support.
* config/picochip/picochip.c: Removed profiling support.
        * config/picochip/picochip.md: Removed profiling instruction.
        * config/picochip/picochip.h: Removed profiling builtin.

From-SVN: r144884
2009-03-16 14:59:45 +00:00
Joseph Myers
f38095f3ee configure.ac (--with-host-libstdcxx): New option.
* configure.ac (--with-host-libstdcxx): New option.
	* configure: Regenerate.

gcc/doc:
	* doc/install.texi (--with-host-libstdcxx): Document.

From-SVN: r144881
2009-03-16 13:23:13 +00:00
Matthias Klose
d495ef5a6c configure.ac: Detect xulrunner-1.9.
2009-03-16  Matthias Klose  <doko@ubuntu.com>

        * configure.ac: Detect xulrunner-1.9.
        * configure: Regenerate.

From-SVN: r144879
2009-03-16 12:08:23 +00:00
GCC Administrator
c1458a68f2 Daily bump.
From-SVN: r144878
2009-03-16 00:16:42 +00:00
Paolo Carlini
e0de3d9303 faq.xml: Fix link to setup documentation.
2009-03-15  Paolo Carlini  <paolo.carlini@oracle.com>

	* doc/xml/faq.xml: Fix link to setup documentation.

From-SVN: r144875
2009-03-16 00:09:04 +00:00