Commit Graph

121058 Commits

Author SHA1 Message Date
Benjamin Kosnik
74080cba9b Makefile.am (xml_sources_manual): Add policy_data_structures_biblio.xml.
2012-12-10  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/Makefile.am (xml_sources_manual): Add
	policy_data_structures_biblio.xml.
	(${docbook_outdir}/latex): Add.
	(doc-xml-validate-docbook): Split into..
	(doc-xml-validate-dtd-db):... this for DTD.
	(doc-xml-validate-rng-db):... this for Relax NG.
	(doc-pdf-docbook-dirs): Add.
	(doc-pdf-docbook-pre): Add.
	* doc/xml/manual/build_hacking.xml: Add literal markup.
	* doc/xml/manual/documentation_hacking.xml: Clean whitespace in
	<filename> markup. Add notes about debugging the generation process.
	* doc/xml/manual/policy_data_structures.xml: Split biblio into...
	* doc/xml/manual/policy_data_structures_biblio.xml: ... this. New.
	* doc/xml/manual/test_policy_data_structures.xml: Fixup <filename>
	markup.

From-SVN: r194379
2012-12-11 01:52:14 +00:00
GCC Administrator
b686a89cba Daily bump.
From-SVN: r194378
2012-12-11 00:18:52 +00:00
Janus Weil
5e4404b808 re PR fortran/52909 ([F03] Procedure pointers not private to modules)
2012-12-10  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/52909
	* trans-decl.c (get_proc_pointer_decl): Apply name mangling.


2012-12-10  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/52909
	* gfortran.dg/proc_ptr_39.f90: New test case.

From-SVN: r194375
2012-12-11 00:17:43 +01:00
Xinliang David Li
c6f0bffeb3 Enable push/pop for latest x86 CPUs
From-SVN: r194374
2012-12-10 22:28:28 +00:00
Steve Ellcey
5874826139 gnu-user.h (NO_SHARED_SPECS): Add space before option.
2012-12-10  Steve Ellcey  <sellcey@mips.com>

	* config/mips/gnu-user.h (NO_SHARED_SPECS): Add space before option.

From-SVN: r194373
2012-12-10 22:27:49 +00:00
Steve Ellcey
2cd45f0e68 re PR target/54061 (gcc.c-torture/compile/mipscop-*.c ICEs with -g)
2012-12-10  Steve Ellcey  <sellcey@mips.com>

	PR target/54061
	rtl.h (IGNORED_DWARF_REGNUM): New.
	* dwarf2out.c (reg_loc_descriptor): Check for IGNORED_DWARF_REGNUM.
	(mem_loc_descriptor): Ditto.
	* config/mips/mips.h (ALL_COP_REG_FIRST): New.
	(ALL_COP_REG_LAST): New.
	(ALL_COP_REG_NUM): Redefine using above macros.
	* config/mips/mips.c (mips_option_override): Set mips_dbx_regno
	coprocessor entries to IGNORED_DWARF_REGNUM.

From-SVN: r194372
2012-12-10 22:19:16 +00:00
Richard Sandiford
4d63a95eec octeon-bbit-2.c: Restructure loops so that no code duplication is required.
gcc/testsuite/
	* gcc.target/mips/octeon-bbit-2.c: Restructure loops so that no
	code duplication is required.  Allow BNE to appear.

From-SVN: r194370
2012-12-10 20:22:48 +00:00
Eric Botcazou
bc5b54c9ca Make-lang.in (cp/typeck.o): Add dependency on $(PARAMS_H).
* Make-lang.in (cp/typeck.o): Add dependency on $(PARAMS_H).
	(cp/name-lookup.o): Likewise.

From-SVN: r194369
2012-12-10 20:01:26 +00:00
Richard Sandiford
07be21386d ext-2.c: Require -mlong64.
gcc/testsuite/
	* gcc.target/mips/ext-2.c: Require -mlong64.

From-SVN: r194368
2012-12-10 19:55:01 +00:00
Sriraman Tallam
83c90bdb73 Fix ChangeLog entry, move entry from toplevel ChangeLog to gcc/ChangeLog.
From-SVN: r194364
2012-12-10 18:07:36 +00:00
Steven Bosscher
5726ad8486 * decl2.c (cp_write_global_declarations): Return after writing a PCH.
From-SVN: r194363
2012-12-10 17:58:45 +00:00
H.J. Lu
570e71f8a0 Record the global variables if WPA isn't enabled
PR lto/55466
	* lto-symtab.c (lto_symtab_merge_decls_1): Don't record the
	prevailing variable.
	* lto.c (lto_register_var_decl_in_symtab): Don't record static
	variables.
	(lto_main): Record the global variables if WPA isn't enabled.

From-SVN: r194359
2012-12-10 06:43:54 -08:00
Richard Biener
4bcc5786cc re PR tree-optimization/55107 (GCC in an infinite loop in PRE)
2012-12-10  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/55107
	* tree-ssa-pre.c (struct pre_stats): Remove constified field.
	(bitmap_set_replace_value): Add gcc_unreachable.
	(do_regular_insertion): Re-write all_same handling.  Insert
	an assignment instead of a PHI in this case.
	(eliminate_bb): Record availability also for SSA names defined
	by a constant.
	(do_pre): Do not record constified events.
	(execute_fre): Likewise.

	* gcc.dg/torture/pr55107.c: New testcase.
	* gcc.dg/tree-ssa/ssa-pre-5.c: Adjust.

From-SVN: r194358
2012-12-10 14:00:25 +00:00
Andreas Krebbel
46e8409ef2 spu.md: Replace "operands" with "operands != NULL" in insn conditions.
2012-12-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/spu/spu.md: Replace "operands" with "operands != NULL" in
	insn conditions.

From-SVN: r194357
2012-12-10 13:15:05 +00:00
Jakub Jelinek
8bdfe1fae6 asan_test.cc: Sync from upstream.
* g++.dg/asan/asan_test.cc: Sync from upstream.
	* g++.dg/asan/asan_test_utils.h: Likewise.

From-SVN: r194356
2012-12-10 13:19:10 +01:00
Jakub Jelinek
94fce891a5 asan.c (asan_init_shadow_ptr_types): Move earlier in the file.
* asan.c (asan_init_shadow_ptr_types): Move earlier in the file.
	Call initialize_sanitizer_builtins at the end.
	(asan_pp_string): Use TREE_TYPE (shadow_ptr_types[0])
	as character type instead of char_type_node.
	(asan_emit_stack_protection): Call asan_init_shadow_ptr_types
	if shadow_ptr_types isn't initialized.
	(asan_protect_global): Return true for STRING_CSTs except those
	created by asan_pp_string.
	(count_string_csts, add_string_csts): New functions.
	(struct asan_add_string_csts_data): New type.
	(asan_finish_file): Clear flag_asan at the beginning, restore at the
	end.  Traverse constant_pool_htab () to look for protected
	STRING_CSTs.  Don't call initialize_sanitizer_builtins,
	instead call asan_init_shadow_ptr_types if shadow_ptr_types isn't
	initialized yet.
	(asan_instrument): Don't call initialize_sanitizer_builtins.
	* varasm.c (output_constant_def_contents): If STRING_CST should be
	asan protected, align it sufficiently and emit padding after it.
	(categorize_decl_for_section): If flag_asan, don't put STRING_CSTs
	that should be asan protected into mergeable sections.  For
	-fmerge-all-constants, ignore it for -fmudflap or if decl is
	asan protected.

From-SVN: r194355
2012-12-10 13:14:36 +01:00
Kyrylo Tkachov
8d28afb446 neon.ml (opcode): Add Vrintn, Vrinta, Vrintp, Vrintm, Vrintz to type.
gcc/ChangeLog

2012-12-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/arm/neon.ml (opcode): Add Vrintn, Vrinta, Vrintp, Vrintm,
	Vrintz to type.
	(type features): Add Requires_arch type constructor.
	(ops): Define Vrintn, Vrinta, Vrintp, Vrintm, Vrintz features.
	* config/arm/neon-docgen.ml (intrinsic_groups): Define Vrintn,
	Vrinta, Vrintp, Vrintm, Vrintz, Vrintx.
	* config/arm/neon-testgen.ml (effective_target): Define check for 
	Requires_arch 8.
	* config/arm/neon-gen.ml 
	(print_feature_test_start): Handle Requires_arch.
	(print_feature_test_end): Likewise.
	Add 2012 to Copyright notice.
	* doc/arm-neon-intrinsics.texi: Regenerate.
	* config/arm/arm_neon.h: Regenerate.

gcc/testsuite/ChangeLog

2012-12-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* gcc.target/arm/neon/vrndaf32.c: New test.
	* gcc.target/arm/neon/vrndqaf32.c: Likewise.
	* gcc.target/arm/neon/vrndf32.c: Likewise.
	* gcc.target/arm/neon/vrndqf32.c: Likewise.
	* gcc.target/arm/neon/vrndmf32.c: Likewise.
	* gcc.target/arm/neon/vrndqmf32.c: Likewise.
	* gcc.target/arm/neon/vrndnf32.c: Likewise.
	* gcc.target/arm/neon/vrndqnf32.c: Likewise.
	* gcc.target/arm/neon/vrndpf32.c: Likewise.
	* gcc.target/arm/neon/vrndqpf32.c: Likewise.

From-SVN: r194353
2012-12-10 11:09:12 +00:00
Kai Tietz
0da911e95e * stmt.c (expand_sjlj_dispatch_table): Fix off by one.
From-SVN: r194351
2012-12-10 11:00:19 +01:00
Kai Tietz
58ccdcc8c2 re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
	* stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t.
	(expand_case): Likewise.

From-SVN: r194350
2012-12-10 10:57:02 +01:00
Kai Tietz
7e48e2758d re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
	* print-tree.c (print_node): Cast from pointer via uintptr_t.

From-SVN: r194348
2012-12-10 10:53:08 +01:00
Matthias Klose
d392c399e5 Makefile.am (libstdc++-symbols.ver): Use CONFIG_HEADER.
2012-12-10  Matthias Klose  <doko@ubuntu.com>

        * src/Makefile.am (libstdc++-symbols.ver): Use CONFIG_HEADER.
        * src/Makefile.in: Regenerate.

From-SVN: r194346
2012-12-10 09:08:12 +00:00
Jakub Jelinek
1fe04fdc32 asan.c (instrument_derefs): Handle bitfield COMPONENT_REFs accesses as reads/writes to their...
* asan.c (instrument_derefs): Handle bitfield COMPONENT_REFs
	accesses as reads/writes to their DECL_BIT_FIELD_REPRESENTATIVE.

From-SVN: r194344
2012-12-10 08:44:18 +01:00
GCC Administrator
cf8d35faee Daily bump.
From-SVN: r194342
2012-12-10 00:19:28 +00:00
John David Anglin
a12e166c6d gcov-12.c: Fix dg order.
* gcc.misc-tests/gcov-12.c: Fix dg order.

From-SVN: r194338
2012-12-09 18:27:21 +00:00
John David Anglin
8e15182f33 re PR middle-end/54470 (FAIL: gcc.dg/ipa/iinline-4.c scan-ipa-dump inline "hooray4[^\\n]*inline copy in test4")
PR middle-end/54470
	* gcc.dg/ipa/iinline-4.c: xfail hooray4 test on 32-bit hppa*-*-*.

From-SVN: r194337
2012-12-09 18:24:27 +00:00
John David Anglin
bbcfbc634b pr47917.c: Change "dg-xfail-if" to "dg-xfail-run-if" for *-*-hpux10*.
* gcc.dg/torture/pr47917.c: Change "dg-xfail-if" to "dg-xfail-run-if"
	for *-*-hpux10*.

From-SVN: r194335
2012-12-09 18:21:35 +00:00
Uros Bizjak
2fcfba3d65 re PR target/55344 (Cross compiling for alpha-linux fails because <signal.h> doesn't exist)
PR target/55344
	* config/alpha/linux-unwind.h: Disable when inhibit_libc is defined.

From-SVN: r194334
2012-12-09 19:15:59 +01:00
John David Anglin
e4139a8dd1 20030711-1.c: Define MAP_FAILED if not defined.
* gcc.dg/20030711-1.c: Define MAP_FAILED if not defined.
	* gcc.dg/20050826-1.c: Likewise.

From-SVN: r194333
2012-12-09 17:41:09 +00:00
Tobias Burnus
c5c1aeb2f2 trans-array.c (gfc_deallocate_scalar_with_status): Use NULL_TREE in the call to gfc_deallocate_scalar_with_status.
2012-12-09  Tobias Burnus  <burnus@net-b.de>

        * trans-array.c (gfc_deallocate_scalar_with_status): Use
        NULL_TREE in the call to gfc_deallocate_scalar_with_status.
        * trans-decl.c (gfc_trans_deferred_vars): Pass symbol.
        * trans-stmt.c (gfc_trans_deallocate): Pass polymorphic
        * variable.

From-SVN: r194332
2012-12-09 16:29:32 +01:00
Eric Botcazou
2608ca66e1 vect9.adb: Add -w to dg-options.
* gnat.dg/vect9.adb: Add -w to dg-options.
	* gnat.dg/vect10.adb: Likewise.

From-SVN: r194331
2012-12-09 14:43:34 +00:00
Andreas Schwab
9ddad47136 libstdc++.exp (dg-test): Unset testname_with_flags after running the test.
* testsuite/lib/libstdc++.exp (dg-test): Unset testname_with_flags
after running the test.

From-SVN: r194330
2012-12-09 14:31:27 +00:00
Thomas Koenig
da52ef4376 re PR fortran/55593 (Bogus error on passing DO LOOP variable)
2012-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/55593
	* frontend-passes.c (doloop_code):  Use resolved_sym
	instead of n.sym->formal for formal argument list
	to get the correct version for all generic subroutines.

2012-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/55593
	* gfortran.dg/do_check_8.f90:  New test.

From-SVN: r194329
2012-12-09 09:15:36 +00:00
GCC Administrator
5f515aaecb Daily bump.
From-SVN: r194328
2012-12-09 00:18:36 +00:00
Eric Botcazou
3d4b05fb68 Fix typo
From-SVN: r194325
2012-12-08 18:07:14 +00:00
Eric Botcazou
acd3f1c2d4 lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of variables in the global contant pool.
* lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of
	variables in the global contant pool.

From-SVN: r194324
2012-12-08 15:53:39 +00:00
Eric Botcazou
54441a34e7 trans.c (gnat_to_gnu): Assert that the type of the prefix is ultimately an array.
* gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Assert
	that the type of the prefix is ultimately an array.

From-SVN: r194323
2012-12-08 12:13:44 +00:00
Steven Bosscher
28ea163c41 re PR rtl-optimization/55158 (segfault in schedule_region at -O3)
PR rtl-optimization/55158
	* sched-rgn.c (bb_state_array, bb_state): Add some explaining
	comment, and initialize to NULL explicitly.
	(realloc_bb_state_array): New function.
	(free_bb_state_array): New function.
	(schedule_region): Call realloc_bb_state_array after schedule_block.
	(sched_rgn_init): Use realloc_bb_state_array to initialize bb_state.
	(sched_rgn_finish): Use free_bb_state_array to free it.

From-SVN: r194322
2012-12-08 12:12:50 +00:00
Eric Botcazou
54625ca121 trans.c (Subprogram_Body_to_gnu): Be prepared for a by-ref VAR_DECL in the case of an Out parameter passed by copy.
* gcc-interface/trans.c (Subprogram_Body_to_gnu): Be prepared for a
	by-ref VAR_DECL in the case of an Out parameter passed by copy.

From-SVN: r194321
2012-12-08 11:57:15 +00:00
Eric Botcazou
a2ce7808e4 * tree-ssa-loop-im.c (for_each_index) <CONST_DECL>: New case.
From-SVN: r194320
2012-12-08 11:44:05 +00:00
Jason Merrill
cf3c30d31f re PR c++/55127 (Incorrect "dependent scope" error with partial specialization of non-type parameter)
PR c++/55127
	* search.c (accessible_in_template_p): New.
	* cp-tree.h: Declare it.
	* pt.c (instantiation_dependent_scope_ref_p): New.
	(value_dependent_expression_p): Use it.
	(instantiation_dependent_r): Likewise.
	* semantics.c (finish_decltype_type): Handle SCOPE_REF.

From-SVN: r194318
2012-12-07 22:31:37 -05:00
Jason Merrill
4eaee921fa re PR c++/55419 (ICE in gimplify_init_ctor_preeval, at gimplify.c:3587)
PR c++/55419
	* tree.c (build_target_expr): Don't set TREE_CONSTANT.

From-SVN: r194317
2012-12-07 22:31:25 -05:00
Aldy Hernandez
3da2b176b3 re PR c++/55513 (Incorrect snprintf folding when building with -std=c++0x)
PR c++/55513
	* semantics.c (cxx_eval_builtin_function_call): Set non_constant_p
	after folding.

From-SVN: r194316
2012-12-08 01:19:13 +00:00
GCC Administrator
cea55d343c Daily bump.
From-SVN: r194315
2012-12-08 00:20:49 +00:00
Paolo Carlini
094484e72e tree.c (build_aggr_init_expr): Remove tsubst_flags_t parameter.
2012-12-07  Paolo Carlini  <paolo.carlini@oracle.com>

	* tree.c (build_aggr_init_expr): Remove tsubst_flags_t parameter.
	(build_cplus_new): Adjust.
	* cp-tree.h: Adjust declaration.
	* init.c (build_value_init): Adjust.

From-SVN: r194312
2012-12-07 23:17:14 +00:00
Sriraman Tallam
6757fd34bc toplev.c (process_options): Do not warn when -ffunction-sections and -fprofile are used together.
2012-12-07  Sriraman Tallan  <tmsriram@google.com>

	* toplev.c (process_options): Do not warn when -ffunction-sections
	and -fprofile are used together.

From-SVN: r194311
2012-12-07 22:46:35 +00:00
Steven Bosscher
8a1239acfc * ree.c (struct ext_cand): Remove GTY markers.
From-SVN: r194310
2012-12-07 22:29:01 +00:00
Mike Stump
9b1baeef25 discr38.adb: Don't use ^M line endings.
2012-12-07  Mike Stump  <mikestump@comcast.net>

	    * gnat.dg/discr38.adb: Don't use ^M line endings.
	    gnat.dg/loop_optimization13.adb: Likewise.
	    gnat.dg/loop_optimization13.ads: Likewise.
	    gnat.dg/discr36_pkg.adb: Likewise.
	    gnat.dg/discr36_pkg.ads: Likewise.
	    gnat.dg/loop_optimization11_pkg.ads: Likewise.
	    gnat.dg/discr36.ads: Likewise.
	    gnat.dg/loop_optimization11.adb: Likewise.

From-SVN: r194309
2012-12-07 21:26:20 +00:00
Vladimir Makarov
9011b0f6b7 re PR rtl-optimization/55141 (wrong code with -fno-split-wide-types)
2012-12-07  Vladimir Makarov  <vmakarov@redhat.com>

	testsuite/gcc.target/i386/pr55141.c
	* lra-constraints.c (lra_constraints): Use biggest mode for
	df_set_regs_ever_live.

2012-12-07  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/55141
	* gcc.target/i386/pr55141.c: New.

From-SVN: r194308
2012-12-07 21:06:38 +00:00
Dodji Seketeli
62defc56c5 PR c++/54401 - Confusing diagnostics about type-alias at class scope
Consider this invalid example given in the PR, where T is not defined:

     1	template<typename>
     2	struct X {
     3	    using type = T;
     4	};

g++ yields the confusing diagnostics:

test.cc:3:10: error: expected nested-name-specifier before 'type'
    using type = T;
          ^
test.cc:3:10: error: using-declaration for non-member at class scope
test.cc:3:15: error: expected ';' before '=' token
    using type = T;
               ^
test.cc:3:15: error: expected unqualified-id before '=' token

I think this is because in cp_parser_member_declaration we tentatively
parse an alias declaration; we then have a somewhat meaningful
diagnostic which alas is not emitted because we are parsing
tentatively.  As the parsing didn't succeed (because the input is
invalid) we try to parse a using declaration, which fails as well; but
then the diagnostic emitted is the one for the failed attempt at
parsing a using declaration, not an alias declaration.  Oops.

The idea of this patch is to commit the tentative parse when we see
the '=' token in the alias-declaration.  That way any error encounter
after that token is reported to the user.

We are now getting the following output:

    test.cc:3:18: erreur: expected type-specifier before ‘T’
	 using type = T;
		      ^
    test.cc:3:18: erreur: ‘T’ does not name a type

I don't really like the "before 'T'" there, but I think we maybe could
revisit the format of what cp_parser_error emits in general, now that
we have caret diagnostics;  We could maybe do away with the "before T"
altogether?

In the mean time, it seems to me that this patch brings an improvement
over what we already have in trunk, and the issue above could be
addressed separately.

Tested on x86_64-unknown-linux-gnu against trunk.

gcc/cp/

	* parser.c (cp_parser_alias_declaration): Commit to tentative
	parse when see the '=' token.  Get out if the type-id is invalid.
	Update function comment.
	(cp_parser_member_declaration): Don't try to parse a using
	declaration if we know that we expected an alias declaration; that
	is, if we see the '=' token after the identifier.

gcc/testsuite/

	* g++.dg/cpp0x/alias-decl-28.C: New test.
	* g++.dg/cpp0x/alias-decl-16.C: Update.

From-SVN: r194306
2012-12-07 18:05:19 +01:00
Jan Hubicka
0588ac84f7 tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND parameter.
* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND
 	parameter.
 	(try_unroll_loop_completely) Update.

From-SVN: r194305
2012-12-07 17:02:20 +00:00