rguenth [Tue, 11 Dec 2012 10:19:21 +0000 (10:19 +0000)]
2012-12-11 Richard Biener <rguenther@suse.de>
PR other/54324
* doc/install.texi (Tools/packages necessary for building GCC):
State ISO C++98 host compiler requirement. Increment minimum
GCC version required for building all languages for a cross-compiler
to 3.4 or later.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194389
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Tue, 11 Dec 2012 10:06:15 +0000 (10:06 +0000)]
2012-12-11 Richard Biener <rguenther@suse.de>
PR tree-optimization/55079
* tree-vrp.c (extract_range_from_binary_expr_1): Handle MAX/MIN_EXPR
for more cases.
(register_edge_assert_for_2): Register asserts for post-in/decrement
tests.
(check_array_ref): Dump what expression we emit array bound
warnings for.
(search_for_addr_array): Likewise.
* gcc.dg/Warray-bounds-9.c: New testcase.
* gcc.dg/Warray-bounds-10.c: Likewise.
* gcc.dg/tree-ssa/ssa-pre-1.c: Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194388
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Tue, 11 Dec 2012 09:16:59 +0000 (09:16 +0000)]
* tree-ssa-loop-ivopts.c (prepare_decl_rtl) <ADDR_EXPR>: Generate RTL
only for a DECL which HAS_RTL_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194387
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Tue, 11 Dec 2012 09:06:10 +0000 (09:06 +0000)]
* ChangeLog: Fix whitespace.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194386
138bc75d-0d04-0410-961f-
82ee72b054a4
krebbel [Tue, 11 Dec 2012 08:37:00 +0000 (08:37 +0000)]
2012-12-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/predicates.md ("execute_operation"): New predicate.
* config/s390/s390.md ("*execute_rl", "*execute"): Use the new
predicate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194385
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Tue, 11 Dec 2012 08:03:13 +0000 (08:03 +0000)]
* gcc-interface/Make-lang.in (RTS_DIR): Define only if Ada is enabled.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194384
138bc75d-0d04-0410-961f-
82ee72b054a4
doko [Tue, 11 Dec 2012 06:47:42 +0000 (06:47 +0000)]
* doc/xsl/customization.xsl.in: Set svn:mime-type property to text/xml.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194383
138bc75d-0d04-0410-961f-
82ee72b054a4
bkoz [Tue, 11 Dec 2012 01:52:14 +0000 (01:52 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194379
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Tue, 11 Dec 2012 00:18:52 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194378
138bc75d-0d04-0410-961f-
82ee72b054a4
janus [Mon, 10 Dec 2012 23:17:43 +0000 (23:17 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194375
138bc75d-0d04-0410-961f-
82ee72b054a4
davidxl [Mon, 10 Dec 2012 22:28:28 +0000 (22:28 +0000)]
Enable push/pop for latest x86 CPUs
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194374
138bc75d-0d04-0410-961f-
82ee72b054a4
sje [Mon, 10 Dec 2012 22:27:49 +0000 (22:27 +0000)]
2012-12-10 Steve Ellcey <sellcey@mips.com>
* config/mips/gnu-user.h (NO_SHARED_SPECS): Add space before option.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194373
138bc75d-0d04-0410-961f-
82ee72b054a4
sje [Mon, 10 Dec 2012 22:19:16 +0000 (22:19 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194372
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Mon, 10 Dec 2012 20:22:48 +0000 (20:22 +0000)]
gcc/testsuite/
* gcc.target/mips/octeon-bbit-2.c: Restructure loops so that no
code duplication is required. Allow BNE to appear.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194370
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Mon, 10 Dec 2012 20:01:26 +0000 (20:01 +0000)]
* Make-lang.in (cp/typeck.o): Add dependency on $(PARAMS_H).
(cp/name-lookup.o): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194369
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Mon, 10 Dec 2012 19:55:01 +0000 (19:55 +0000)]
gcc/testsuite/
* gcc.target/mips/ext-2.c: Require -mlong64.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194368
138bc75d-0d04-0410-961f-
82ee72b054a4
tmsriram [Mon, 10 Dec 2012 18:07:36 +0000 (18:07 +0000)]
Fix ChangeLog entry, move entry from toplevel ChangeLog to gcc/ChangeLog.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194364
138bc75d-0d04-0410-961f-
82ee72b054a4
steven [Mon, 10 Dec 2012 17:58:45 +0000 (17:58 +0000)]
* decl2.c (cp_write_global_declarations): Return after writing a PCH.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194363
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Mon, 10 Dec 2012 14:43:54 +0000 (14:43 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194359
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 10 Dec 2012 14:00:25 +0000 (14:00 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194358
138bc75d-0d04-0410-961f-
82ee72b054a4
krebbel [Mon, 10 Dec 2012 13:15:05 +0000 (13:15 +0000)]
2012-12-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/spu/spu.md: Replace "operands" with "operands != NULL" in
insn conditions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194357
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 10 Dec 2012 12:19:10 +0000 (12:19 +0000)]
* g++.dg/asan/asan_test.cc: Sync from upstream.
* g++.dg/asan/asan_test_utils.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194356
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 10 Dec 2012 12:14:36 +0000 (12:14 +0000)]
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194355
138bc75d-0d04-0410-961f-
82ee72b054a4
ktkachov [Mon, 10 Dec 2012 11:09:12 +0000 (11:09 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194353
138bc75d-0d04-0410-961f-
82ee72b054a4
ktietz [Mon, 10 Dec 2012 10:00:19 +0000 (10:00 +0000)]
* stmt.c (expand_sjlj_dispatch_table): Fix off by one.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194351
138bc75d-0d04-0410-961f-
82ee72b054a4
ktietz [Mon, 10 Dec 2012 09:57:02 +0000 (09:57 +0000)]
PR target/53912
* stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t.
(expand_case): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194350
138bc75d-0d04-0410-961f-
82ee72b054a4
ktietz [Mon, 10 Dec 2012 09:53:08 +0000 (09:53 +0000)]
PR target/53912
* print-tree.c (print_node): Cast from pointer via uintptr_t.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194348
138bc75d-0d04-0410-961f-
82ee72b054a4
doko [Mon, 10 Dec 2012 09:08:12 +0000 (09:08 +0000)]
2012-12-10 Matthias Klose <doko@ubuntu.com>
* src/Makefile.am (libstdc++-symbols.ver): Use CONFIG_HEADER.
* src/Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194346
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 10 Dec 2012 07:44:18 +0000 (07:44 +0000)]
* asan.c (instrument_derefs): Handle bitfield COMPONENT_REFs
accesses as reads/writes to their DECL_BIT_FIELD_REPRESENTATIVE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194344
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Mon, 10 Dec 2012 00:19:28 +0000 (00:19 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194342
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Sun, 9 Dec 2012 18:27:21 +0000 (18:27 +0000)]
* gcc.misc-tests/gcov-12.c: Fix dg order.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194338
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Sun, 9 Dec 2012 18:24:27 +0000 (18:24 +0000)]
PR middle-end/54470
* gcc.dg/ipa/iinline-4.c: xfail hooray4 test on 32-bit hppa*-*-*.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194337
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Sun, 9 Dec 2012 18:21:35 +0000 (18:21 +0000)]
* gcc.dg/torture/pr47917.c: Change "dg-xfail-if" to "dg-xfail-run-if"
for *-*-hpux10*.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194335
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Sun, 9 Dec 2012 18:15:59 +0000 (18:15 +0000)]
PR target/55344
* config/alpha/linux-unwind.h: Disable when inhibit_libc is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194334
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Sun, 9 Dec 2012 17:41:09 +0000 (17:41 +0000)]
* gcc.dg/
20030711-1.c: Define MAP_FAILED if not defined.
* gcc.dg/
20050826-1.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194333
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Sun, 9 Dec 2012 15:29:32 +0000 (15:29 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194332
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Sun, 9 Dec 2012 14:43:34 +0000 (14:43 +0000)]
* gnat.dg/vect9.adb: Add -w to dg-options.
* gnat.dg/vect10.adb: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194331
138bc75d-0d04-0410-961f-
82ee72b054a4
schwab [Sun, 9 Dec 2012 14:31:27 +0000 (14:31 +0000)]
* testsuite/lib/libstdc++.exp (dg-test): Unset testname_with_flags
after running the test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194330
138bc75d-0d04-0410-961f-
82ee72b054a4
tkoenig [Sun, 9 Dec 2012 09:15:36 +0000 (09:15 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194329
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sun, 9 Dec 2012 00:18:36 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194328
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Sat, 8 Dec 2012 18:07:14 +0000 (18:07 +0000)]
Fix typo
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194325
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Sat, 8 Dec 2012 15:53:39 +0000 (15:53 +0000)]
* lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of
variables in the global contant pool.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194324
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Sat, 8 Dec 2012 12:13:44 +0000 (12:13 +0000)]
* gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Assert
that the type of the prefix is ultimately an array.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194323
138bc75d-0d04-0410-961f-
82ee72b054a4
steven [Sat, 8 Dec 2012 12:12:50 +0000 (12:12 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194322
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Sat, 8 Dec 2012 11:57:15 +0000 (11:57 +0000)]
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194321
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Sat, 8 Dec 2012 11:44:05 +0000 (11:44 +0000)]
* tree-ssa-loop-im.c (for_each_index) <CONST_DECL>: New case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194320
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Sat, 8 Dec 2012 03:31:37 +0000 (03:31 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194318
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Sat, 8 Dec 2012 03:31:25 +0000 (03:31 +0000)]
PR c++/55419
* tree.c (build_target_expr): Don't set TREE_CONSTANT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194317
138bc75d-0d04-0410-961f-
82ee72b054a4
aldyh [Sat, 8 Dec 2012 01:19:13 +0000 (01:19 +0000)]
PR c++/55513
* semantics.c (cxx_eval_builtin_function_call): Set non_constant_p
after folding.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194316
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sat, 8 Dec 2012 00:20:49 +0000 (00:20 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194315
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 7 Dec 2012 23:17:14 +0000 (23:17 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194312
138bc75d-0d04-0410-961f-
82ee72b054a4
tmsriram [Fri, 7 Dec 2012 22:46:35 +0000 (22:46 +0000)]
2012-12-07 Sriraman Tallan <tmsriram@google.com>
* toplev.c (process_options): Do not warn when -ffunction-sections
and -fprofile are used together.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194311
138bc75d-0d04-0410-961f-
82ee72b054a4
steven [Fri, 7 Dec 2012 22:29:01 +0000 (22:29 +0000)]
* ree.c (struct ext_cand): Remove GTY markers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194310
138bc75d-0d04-0410-961f-
82ee72b054a4
mrs [Fri, 7 Dec 2012 21:26:20 +0000 (21:26 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194309
138bc75d-0d04-0410-961f-
82ee72b054a4
vmakarov [Fri, 7 Dec 2012 21:06:38 +0000 (21:06 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194308
138bc75d-0d04-0410-961f-
82ee72b054a4
dodji [Fri, 7 Dec 2012 17:05:19 +0000 (17:05 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194306
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Fri, 7 Dec 2012 17:02:20 +0000 (17:02 +0000)]
* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND
parameter.
(try_unroll_loop_completely) Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194305
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 7 Dec 2012 16:04:26 +0000 (16:04 +0000)]
PR fortran/55395
* varpool.c (varpool_remove_node): Don't drop DECL_INITIAL
for -g for any kind of debug info.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194304
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 7 Dec 2012 14:14:25 +0000 (14:14 +0000)]
PR bootstrap/54926
* Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
* Makefile.in: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194303
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Fri, 7 Dec 2012 13:16:28 +0000 (13:16 +0000)]
2012-12-07 Richard Biener <rguenther@suse.de>
PR tree-optimization/54886
* graphite-sese-to-poly.c (build_loop_iteration_domains): Properly
free all memory.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194302
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Fri, 7 Dec 2012 13:05:52 +0000 (13:05 +0000)]
2012-12-07 Martin Jambor <mjambor@suse.cz>
PR middle-end/55078
* ipa-inline-transform.c (inline_call): Turn #if 0 to #ifdef
ENABLE_CHECKING.
* ipa-prop.c (try_make_edge_direct_simple_call): Use
ipa_value_from_jfunc.
(try_make_edge_direct_virtual_call): Likewise.
(update_indirect_edges_after_inlining): Lookup new_root_info and pass
it to the functions above.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194301
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Fri, 7 Dec 2012 12:50:43 +0000 (12:50 +0000)]
2012-12-07 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/55590
* tree-sra.c (build_ref_for_offset): Use get_object_alignment_1 to
get base alignment.
* testsuite/gcc.target/i386/pr55590-1.c: New test.
* testsuite/gcc.target/i386/pr55590-2.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194300
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Fri, 7 Dec 2012 11:02:37 +0000 (11:02 +0000)]
* config/i386/i386.c (legitimize_tls_address): Reorganize a tiny bit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194299
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 7 Dec 2012 09:53:04 +0000 (09:53 +0000)]
2012-12-07 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54975
* g++.dg/cpp0x/lambda/lambda-typedef.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194297
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 7 Dec 2012 04:54:27 +0000 (04:54 +0000)]
PR c++/54325
* tree.c (build_aggr_init_expr): Don't check for abstract class.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194284
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 7 Dec 2012 04:54:12 +0000 (04:54 +0000)]
add PR 55245 marker
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194283
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 7 Dec 2012 04:53:59 +0000 (04:53 +0000)]
PR c++/55058
* pt.c (tsubst): Keep the quals when looking through a typedef.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194282
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 7 Dec 2012 04:53:46 +0000 (04:53 +0000)]
PR c++/55249
* tree.c (build_vec_init_elt): Use the type of the initializer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194281
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 7 Dec 2012 00:18:45 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194278
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Thu, 6 Dec 2012 23:27:57 +0000 (23:27 +0000)]
Remove empty directory.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194275
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Thu, 6 Dec 2012 22:05:21 +0000 (22:05 +0000)]
PR target/55597
* config/i386/i386.c (legitimize_tls_address): Zero-extend x to Pmode,
before using it as insn or call equivalent.
testsuite/ChangeLog:
PR target/55597
* gcc.target/i386/pr55597.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194274
138bc75d-0d04-0410-961f-
82ee72b054a4
bergner [Thu, 6 Dec 2012 21:53:36 +0000 (21:53 +0000)]
libsanitizer/
* configure.tgt: Enable build on powerpc*-linux.
gcc/
* config/rs6000/sysv4.h (TARGET_ASAN_SHADOW_OFFSET): Define.
* config/rs6000/rs6000.c (rs6000_asan_shadow_offset): New function.
* config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Disable if using ASAN.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194273
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 6 Dec 2012 20:34:55 +0000 (20:34 +0000)]
PR fortran/55395
* varpool.c (varpool_remove_node): Don't drop DECL_INITIAL
if -g and emitting DWARF2+.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194272
138bc75d-0d04-0410-961f-
82ee72b054a4
pthaugen [Thu, 6 Dec 2012 20:32:37 +0000 (20:32 +0000)]
* config/rs6000/rs6000.c (rs6000_option_override_internal): Set
default loop peeling limits.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194271
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 6 Dec 2012 20:21:08 +0000 (20:21 +0000)]
PR c++/54744
* pt.c (resolve_typename_type): Check TYPENAME_IS_RESOLVING_P on scope.
* init.c (expand_member_init): Check for being in a template first.
* parser.c (cp_parser_mem_initializer_list): Only check class types
for equivalence to the current class.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194267
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 6 Dec 2012 20:20:52 +0000 (20:20 +0000)]
PR c++/54913
* semantics.c (finish_qualified_id_expr): convert_from_reference
after building a SCOPE_REF.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194266
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 6 Dec 2012 20:20:34 +0000 (20:20 +0000)]
PR c++/55032
* tree.c (build_array_type_1): Re-layout if we found it in the
hash table.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194265
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 6 Dec 2012 18:55:48 +0000 (18:55 +0000)]
PR c++/54207
* except.c (build_noexcept_spec): Avoid direct comparison
with boolean_true_node or boolean_false_node, instead use
operand_equal_p and/or INTEGER_CST check.
* pt.c (tsubst_exception_specification): Likewise.
* typeck2.c (merge_exception_specifiers): Likewise.
* g++.dg/cpp0x/noexcept18.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194263
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 6 Dec 2012 18:54:25 +0000 (18:54 +0000)]
PR c++/55573
* semantics.c (adjust_temp_type): Handle VECTOR_CST.
* g++.dg/cpp0x/constexpr-55573.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194262
138bc75d-0d04-0410-961f-
82ee72b054a4
kcc [Thu, 6 Dec 2012 14:49:44 +0000 (14:49 +0000)]
Fix PR55599/sanitizer by disabling static libasan on darwin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194257
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 6 Dec 2012 14:45:11 +0000 (14:45 +0000)]
PR c++/54947
* parser.c (cp_parser_initializer_list): Don't require an
expression in [] to be constant until we know it's a C99
designator.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194256
138bc75d-0d04-0410-961f-
82ee72b054a4
kcc [Thu, 6 Dec 2012 14:43:11 +0000 (14:43 +0000)]
[libsanitizer] merge from upstream r169392
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194255
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 6 Dec 2012 14:37:59 +0000 (14:37 +0000)]
PR middle-end/43631
* var-tracking.c (emit_note_insn_var_location, emit_notes_in_bb):
Clear BLOCK_FOR_INSN on notes emitted in between basic blocks,
don't adjust BB_END when inserting note after BB_END of some bb.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194252
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 6 Dec 2012 14:37:13 +0000 (14:37 +0000)]
PR c++/55015
PR c++/53821
* semantics.c (maybe_add_lambda_conv_op): Revert earlier change.
* decl.c (start_preparsed_function): Make local class methods comdat
in templates, too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194251
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 6 Dec 2012 14:37:09 +0000 (14:37 +0000)]
PR c++/55137
* fold-const.c (fold_binary_loc) <associate>: Don't introduce
TREE_OVERFLOW through reassociation. If type doesn't have defined
overflow, but one or both of the operands do, use the wrapping type
for reassociation and only convert to type at the end.
* g++.dg/opt/pr55137.C: New test.
* gcc.c-torture/execute/pr55137.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194250
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 6 Dec 2012 14:37:04 +0000 (14:37 +0000)]
PR c++/54653
* parser.c (cp_parser_class_head): A partial specialization scope
counts as a template.
* pt.c (tsubst_template_parms): Handle template template parm parms.
(tsubst_decl) [TEMPLATE_DECL]: Handle getting a template template
argument back.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194249
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 6 Dec 2012 14:36:55 +0000 (14:36 +0000)]
PR c++/55564
* pt.c (unify) [ARRAY_TYPE]: Unify the element type before the bounds.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194248
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 6 Dec 2012 11:00:23 +0000 (11:00 +0000)]
2012-12-06 Richard Biener <rguenther@suse.de>
* gimple-fold.c (fold_stmt_1): Remove code handling folding
stmts away.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194247
138bc75d-0d04-0410-961f-
82ee72b054a4
ktkachov [Thu, 6 Dec 2012 10:07:41 +0000 (10:07 +0000)]
2012-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
gcc/
* doc/sourcebuild.texi: Document arm_v8_neon_ok.
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_arm_v8_neon_ok):
New procedure.
(add_options_for_arm_v8_neon): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194245
138bc75d-0d04-0410-961f-
82ee72b054a4
ktkachov [Thu, 6 Dec 2012 09:55:45 +0000 (09:55 +0000)]
2012-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.c (neon_itype): Define NEON_RINT enum element.
(neon_builtin_data): Register vrintn, vrinta, vrintp, vrintm,
vrintz, vrintx neon builtins.
(arm_init_neon_builtins): Handle NEON_RINT.
(arm_expand_neon_builtin): Likewise.
* config/arm/unspecs.md: New file.
* config/arm/arm.md ("unspec"): Move to unspecs.md.
* config/arm/iterators.md (NEON_VRINT): New int iterator.
(nvrint_variant): New int attribute.
* config/arm/neon.md
(neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): New pattern.
("unspec"): Move to unspecs.md.
* config/arm/iwmmxt2.md ("unspec"): Move to unspecs.md.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194244
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Thu, 6 Dec 2012 09:49:43 +0000 (09:49 +0000)]
* config/i386/sfp-machine.h (FP_EX_ALL): Define.
(FP_TRAPPING_EXCEPTIONS): Define.
* config/i386/32/sfp-machine.h (FP_EX_SHIFT): Define.
* config/i386/64/sfp-machine.h (FP_EX_SHIFT): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194243
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Thu, 6 Dec 2012 04:11:54 +0000 (04:11 +0000)]
compiler: Correct test for whether go/defer arg is parenthesized.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194240
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Thu, 6 Dec 2012 02:00:13 +0000 (02:00 +0000)]
os: Clean up directory reading code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194237
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Thu, 6 Dec 2012 01:38:00 +0000 (01:38 +0000)]
* config/pa/pa.md: Use "const_int 0" instead of match_test to simplify
opaque cond in all call insns.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194235
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 6 Dec 2012 00:18:38 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194234
138bc75d-0d04-0410-961f-
82ee72b054a4
steven [Wed, 5 Dec 2012 23:57:17 +0000 (23:57 +0000)]
* g++.dg/pr55604.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194231
138bc75d-0d04-0410-961f-
82ee72b054a4
steven [Wed, 5 Dec 2012 23:55:28 +0000 (23:55 +0000)]
PR rtl-optimization/55604
* lra-lives.c (lra_create_live_ranges): If there are no referenced
pseudos left, do not compute live ranges.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194230
138bc75d-0d04-0410-961f-
82ee72b054a4
steven [Wed, 5 Dec 2012 23:16:52 +0000 (23:16 +0000)]
* doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Update documentation.
* doc/tm.texi: Regenerate.
* regs.h (REG_LIVE_LENGTH): Update comments to not refer to no longer
existing files global.c and local-alloc.c.
* regmove.c (copy_src_to_dest): Likewise.
* function.h (struct rtl_data): Likewise.
* ira-color.c (allocno_priority_compare_func): Likewise.
* regstat.c (regstat_compute_ri): Likewise.
* config/epiphany/epiphany.h, config/vax/vax.h, config/cris/cris.h,
config/h8300/h8300.h, config/alpha/alpha.h, config/sparc/sparc.h,
config/rs6000/rs6000.h, config/pdp11/pdp11.h, config/pa/pa.h,
config/v850/v850.h, config/mn10300/mn10300.h, config/m32r/m32r.h,
config/i386/i386.h, config/mcore/mcore.h, config/sh/sh.h,
config/arm/arm.h (REGNO_OK_FOR_BASE_P): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194229
138bc75d-0d04-0410-961f-
82ee72b054a4
aldyh [Wed, 5 Dec 2012 21:10:18 +0000 (21:10 +0000)]
PR target/54160
* config/t-darwin (darwin-c.o): Depend on $(CPP_INTERNAL_H).
* config/darwin-c.c (darwin_cpp_builtins): Only set __OBJC2__
when in obj mode.
Include libcpp/internal.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194227
138bc75d-0d04-0410-961f-
82ee72b054a4
eager [Wed, 5 Dec 2012 17:27:05 +0000 (17:27 +0000)]
PR rtl-optimization/54739
* config/microblaze/microblaze.md: (anddi3, iordi3, xordi3): Delete patterns.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194226
138bc75d-0d04-0410-961f-
82ee72b054a4