platform/upstream/linaro-gcc.git
11 years ago2012-12-05 Thomas Quinot <quinot@adacore.com>
charlet [Wed, 5 Dec 2012 10:06:51 +0000 (10:06 +0000)]
2012-12-05  Thomas Quinot  <quinot@adacore.com>

* err_vars.ads: Fix minor typo in comment.

2012-12-05  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_attr.adb (Analyze_Attribute): Do not analyze the attribute
arguments when processing Loop_Entry. Rewrite the analysis of
attribute Loop_Entry to handle an optional loop name.
(Convert_To_Indexed_Component): New routine.
(Eval_Attribute): Remove ??? comment and explain
why Loop_Entry does not need to be evaluated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194189 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-05 Richard Biener <rguenther@suse.de>
rguenth [Wed, 5 Dec 2012 09:59:08 +0000 (09:59 +0000)]
2012-12-05  Richard Biener  <rguenther@suse.de>

PR tree-optimization/50222
* gcc.dg/torture/pr50222.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194188 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * passes.c (pass_init_dump_file): Only open a clean graph dump file if
steven [Wed, 5 Dec 2012 09:34:06 +0000 (09:34 +0000)]
* passes.c (pass_init_dump_file): Only open a clean graph dump file if
the dump was not already initialized.

Revert:
2012-12-03  Steven Bosscher  <steven@gcc.gnu.org>
* passes.c (finish_optimization_passes): Don't finish graph dumps here.
(pass_fini_dump_file): Wrap in TV_DUMP.  Finish graph dumps.
(execute_one_pass): Don't set up graph dumps here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194186 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agosyscall: Fix splice syscall.
ian [Wed, 5 Dec 2012 08:49:01 +0000 (08:49 +0000)]
syscall: Fix splice syscall.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194185 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-05 Richard Biener <rguenther@suse.de>
rguenth [Wed, 5 Dec 2012 08:47:40 +0000 (08:47 +0000)]
2012-12-05  Richard Biener  <rguenther@suse.de>

PR lto/55525
* gimple-streamer-in.c (input_gimple_stmt): Fixup ARRAY_REFs as well.

* gcc.dg/lto/pr55525_0.c: New testcase.
* gcc.dg/lto/pr55525_1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194183 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agovalidate_failures.py: also ignore .git
aldot [Wed, 5 Dec 2012 07:34:17 +0000 (07:34 +0000)]
validate_failures.py: also ignore .git

2012-12-01  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

* testsuite-management/validate_failures.py
(IsInterestingResult): Only strip line a second time if we did split.
Rephrase return statement while at it.
(CollectSumFiles): Also ignore .git directory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194182 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * godump.c (find_dummy_types): Output a dummy type if we couldn't
ian [Wed, 5 Dec 2012 06:14:17 +0000 (06:14 +0000)]
* godump.c (find_dummy_types): Output a dummy type if we couldn't
output the real type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194181 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Accept trailing comma after expression in type conversion.
ian [Wed, 5 Dec 2012 01:09:41 +0000 (01:09 +0000)]
compiler: Accept trailing comma after expression in type conversion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194176 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Make sure we produce an error for a call to a non-function.
ian [Wed, 5 Dec 2012 00:53:44 +0000 (00:53 +0000)]
compiler: Make sure we produce an error for a call to a non-function.

Fixes issue 19.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194174 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Check for negative or inverted arguments to make.
ian [Wed, 5 Dec 2012 00:22:13 +0000 (00:22 +0000)]
compiler: Check for negative or inverted arguments to make.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194173 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Wed, 5 Dec 2012 00:18:53 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194172 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago* include/Makefile.am (${host_builddir}/c++config.h): Replace
schwab [Tue, 4 Dec 2012 22:40:24 +0000 (22:40 +0000)]
* include/Makefile.am (${host_builddir}/c++config.h): Replace
[<space><tab>] by [<tab><space>].
* include/Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194169 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoPR bootstrap/55571
rth [Tue, 4 Dec 2012 19:08:18 +0000 (19:08 +0000)]
PR bootstrap/55571

        * Makefile.in (libgcc_s.so): Depend on and link with libgcc.a.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194159 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * rtl.h (print_insn_with_notes): Remove prototype.
steven [Tue, 4 Dec 2012 18:38:26 +0000 (18:38 +0000)]
* rtl.h (print_insn_with_notes): Remove prototype.
(rtl_dump_bb_for_graph): New prototype.
* sched-vis.c (print_insn_with_notes): Make static again.  Fix
printing of notes.
(rtl_dump_bb_for_graph): New function.
* cfghooks.h (struct cfg_hooks) <dump_bb_for_graph>: New hook.
(dump_bb_for_graph): New prototype.
* cfghooks.c (dump_bb_for_graph): New function.
* tree-cfg.c (gimple_cfg_hooks): Register gimple_dump_bb_for_graph
as dump_bb_for_graph hook implementation for GIMPLE.
* cfgrtl.c (rtl_cfg_hooks): Likewise for rtl_dump_bb_for_graph.
(cfg_layout_rtl_cfg_hooks): Likewise.
* graph.c (draw_cfg_node): Don't include sbitmap.h, rtl.h, tree.h,
gimple.h, and gimple-pretty-print.h.
(draw_cfg_node, draw_cfg_node_succ_edges): Use the uniqe function
definition number instead of the function declaration UID.
(print_graph_cfg): Take a struct function instead of a tree.
Use the dump_bb_for_graph hook to dump the basic block content.
* graph.h (print_graph_cfg): Update prototype.
* passes.c (execute_function_dump): Update print_graph_cfg call.
* Makefile.in (graph.o): Fixup dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194157 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-04 Tobias Burnus <burnus@net-b.de>
burnus [Tue, 4 Dec 2012 16:44:00 +0000 (16:44 +0000)]
2012-12-04  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/quad_3.f90: Really fix an if condition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194156 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-04 Tobias Burnus <burnus@net-b.de>
burnus [Tue, 4 Dec 2012 16:00:43 +0000 (16:00 +0000)]
2012-12-04  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/quad_3.f90: Fix a condition,
        which wrongly required ordered/lazy evaluation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194155 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * include/Makefile.am: Fix regexp broken by previous commit.
steven [Tue, 4 Dec 2012 15:52:52 +0000 (15:52 +0000)]
* include/Makefile.am: Fix regexp broken by previous commit.
* include/Makefile.in: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194152 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoAArch64: Define FP_TRAPPING_EXCEPTIONS.
mshawcroft [Tue, 4 Dec 2012 15:51:55 +0000 (15:51 +0000)]
AArch64: Define FP_TRAPPING_EXCEPTIONS.

2012-12-04  Marcus Shawcroft <marcus.shawcroft@arm.com>

        * config/aarch64/sfp-machine.h (FP_EX_ALL): Define.
(FP_EX_SHIFT): Define.
(FP_TRAPPING_EXCEPTIONS): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194151 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agolibatomic: Detect and build for ARM architecture armv8-a.
mshawcroft [Tue, 4 Dec 2012 15:14:47 +0000 (15:14 +0000)]
libatomic: Detect and build for ARM architecture armv8-a.

2012-12-04  Marcus Shawcroft  <marcus.shawcroft@arm.com>

* config/arm/arm-config.h (__ARM_ARCH_8A__): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194150 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoAArch64: Fix ICE due to missing TYPE_STUB_DECL on builtin va_list.
mshawcroft [Tue, 4 Dec 2012 14:52:50 +0000 (14:52 +0000)]
AArch64: Fix ICE due to missing TYPE_STUB_DECL on builtin va_list.

2012-12-04  Marcus Shawcroft  <marcus.shawcroft@arm.com>

* config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Set
TYPE_STUB_DECL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194147 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoaarch64: Refactor aarch64 sfp-machine.h
mshawcroft [Tue, 4 Dec 2012 14:16:17 +0000 (14:16 +0000)]
aarch64: Refactor aarch64 sfp-machine.h

2012-12-04  Marcus Shawcroft <marcus.shawcroft@arm.com>

* config/aarch64/sfp-machine.h (FP_RND_MASK): Define.
(FP_ROUNDMODE): Use FP_RND_MASK.
* config/aarch64/sfp-exceptions.c: New.
* config/aarch64/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
Use __sfp_handle_exceptions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194142 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Tue, 4 Dec 2012 14:04:39 +0000 (14:04 +0000)]
2012-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_select_ccmode): Enable using CC of
          x + imm for higher immediates on z9-109 upwards.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194141 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config.host: (arm*-*-freebsd*): Remove.
rearnsha [Tue, 4 Dec 2012 13:49:09 +0000 (13:49 +0000)]
* config.host: (arm*-*-freebsd*): Remove.
(arm*-*-linux*, arm*-*-uclinux*): Simplify logic.
(arm*-*-elf*): Remove.
(arm*-*-wince-pe*): Remove.
* arm/unwind-arm.c (struct fpa_reg): Delete.
(struct fpa_regs): Delete.
(phase1_vrs): Remove fpa element.
(_Unwind_VRS_Get): Remove _UVRSC_FPA.
(_Unwind_VRS_Set, _Unwind_VRS_Pop): Likewise.
* arm/pr-support.c (__gnu_unwind_execute): Remove FPA support.
* ieee754-sf.S (floatundisf): Remove FPA support.
(floatdisf): Likewise.
* ieee75f-df.S (floatundidf): Likewise.
(floatdidf): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194138 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * arm.opt (cirrus-fix-invalid-insns): Delete option.
rearnsha [Tue, 4 Dec 2012 13:45:53 +0000 (13:45 +0000)]
* arm.opt (cirrus-fix-invalid-insns): Delete option.
* invoke.texi (cirrus-fix-invalid-insns): Remove documentation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194137 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * tsan.c (instrument_expr): If expr_ptr isn't a gimple val, first
jakub [Tue, 4 Dec 2012 13:25:07 +0000 (13:25 +0000)]
* tsan.c (instrument_expr): If expr_ptr isn't a gimple val, first
store it into a SSA_NAME.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194135 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR testsuite/55587
jakub [Tue, 4 Dec 2012 13:21:11 +0000 (13:21 +0000)]
PR testsuite/55587
* lib/asan-dg.exp (asan_init): Return 1 if libasan has been found,
0 if not.
* g++.dg/asan/asan.exp: Don't run gcc-dg-runtest if [asan_init]
returned 0.
* gcc.dg/asan/asan.exp: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194134 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR sanitizer/55439
jakub [Tue, 4 Dec 2012 13:20:20 +0000 (13:20 +0000)]
PR sanitizer/55439
* Makefile.in (tsan.o): Depend on tree-ssa-propagate.h.
* sanitizer.def: Add __tsan_atomic* builtins.
* asan.c (initialize_sanitizer_builtins): Adjust to also
initialize __tsan_atomic* builtins.
* tsan.c: Include tree-ssa-propagate.h.
(enum tsan_atomic_action): New enum.
(tsan_atomic_table): New table.
(instrument_builtin_call): New function.
(instrument_gimple): Take pointer to gimple_stmt_iterator
instead of gimple_stmt_iterator.  Call instrument_builtin_call
on builtin call stmts.
(instrument_memory_accesses): Adjust instrument_gimple caller.
* builtin-types.def (BT_FN_BOOL_VPTR_PTR_I1_INT_INT,
BT_FN_BOOL_VPTR_PTR_I2_INT_INT, BT_FN_BOOL_VPTR_PTR_I4_INT_INT,
BT_FN_BOOL_VPTR_PTR_I8_INT_INT, BT_FN_BOOL_VPTR_PTR_I16_INT_INT): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194133 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix up two ChangeLog entries.
jakub [Tue, 4 Dec 2012 13:18:54 +0000 (13:18 +0000)]
Fix up two ChangeLog entries.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194132 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-04 Tejas Belagod <tejas.belagod@arm.com>
belagod [Tue, 4 Dec 2012 11:43:04 +0000 (11:43 +0000)]
2012-12-04  Tejas Belagod  <tejas.belagod@arm.com>

        * config/aarch64/aarch64.c (aarch64_simd_vector_alignment,
        aarch64_simd_vector_alignment_reachable): New.
        (TARGET_VECTOR_ALIGNMENT, TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE):
        Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194126 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-04 Richard Biener <rguenther@suse.de>
rguenth [Tue, 4 Dec 2012 09:19:05 +0000 (09:19 +0000)]
2012-12-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/55124
* tree-ssa-pre.c (find_or_generate_expression): Instead of
ICEing when we are not able to generate an expression defer it
by signalling failure.  Fix possible wrong-code issue by
not picking random REFERENCE expressions as fallback.
(create_component_ref_by_pieces_1): Adjust.  Add failure paths.
(create_expression_by_pieces): Likewise.
(insert_into_preds_of_block): When expression generation failed
for one edge make sure to not insert a PHI node.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194125 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Give error for constant inverted slice range.
ian [Tue, 4 Dec 2012 09:09:56 +0000 (09:09 +0000)]
compiler: Give error for constant inverted slice range.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194124 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/ia64/ia64.c (ia64_compute_frame_size): Allocate the scratch
ebotcazou [Tue, 4 Dec 2012 09:05:49 +0000 (09:05 +0000)]
* config/ia64/ia64.c (ia64_compute_frame_size): Allocate the scratch
area if the function allocates dynamic stack space.
(ia64_initial_elimination_offset): Adjust offsets to above change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194121 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago[libsanitizer] Fix PR55521 by switching libsanitizer from mach_override to mac interp...
kcc [Tue, 4 Dec 2012 07:00:35 +0000 (07:00 +0000)]
[libsanitizer] Fix PR55521 by switching libsanitizer from mach_override to mac interpose functions on darwin

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194120 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Reject invalid nil == nil comparisons.
ian [Tue, 4 Dec 2012 06:44:19 +0000 (06:44 +0000)]
compiler: Reject invalid nil == nil comparisons.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194119 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agomksysinfo: Fix TIOCNOTTY and TIOCSCTTY for ARM.
ian [Tue, 4 Dec 2012 06:23:37 +0000 (06:23 +0000)]
mksysinfo: Fix TIOCNOTTY and TIOCSCTTY for ARM.

From Matthias Klose.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194118 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoruntime: Fix build failures with -D_FORTIFY_SOURCE=2.
ian [Tue, 4 Dec 2012 06:18:07 +0000 (06:18 +0000)]
runtime: Fix build failures with -D_FORTIFY_SOURCE=2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194116 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Fix crash in go/defer of some builtin functions.
ian [Tue, 4 Dec 2012 05:17:54 +0000 (05:17 +0000)]
compiler: Fix crash in go/defer of some builtin functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194114 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Don't permit go/defer argument to be parenthesized.
ian [Tue, 4 Dec 2012 00:28:30 +0000 (00:28 +0000)]
compiler: Don't permit go/defer argument to be parenthesized.

Fixes Go repository issue 4468.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194112 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Tue, 4 Dec 2012 00:18:53 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194111 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcse.c (struct reg_use): Remove unused struct.
steven [Mon, 3 Dec 2012 23:28:42 +0000 (23:28 +0000)]
* gcse.c (struct reg_use): Remove unused struct.
(gcse_emit_move_after): Do not create REG_EQUAL notes that reference
the SET_DEST of the instruction the note would be attached to.
* cse.c (cse_main): Add the DF_NOTE problem.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194108 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-03 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Mon, 3 Dec 2012 23:23:52 +0000 (23:23 +0000)]
2012-12-03  Benjamin Kosnik  <bkoz@redhat.com>

* include/ext/pb_ds/detail/cc_hash_table_map_/standard_policies.hpp:
Remove.
* include/ext/pb_ds/detail/gp_hash_table_map_/standard_policies.hpp:
Remove.
  * include/Makefile.am (pb_headers): Remove include files.
* include/Makefile.in: Regenerated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194107 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-03 Janus Weil <janus@gcc.gnu.org>
janus [Mon, 3 Dec 2012 22:06:41 +0000 (22:06 +0000)]
2012-12-03  Janus Weil  <janus@gcc.gnu.org>

PR fortran/55548
* intrinsics/system_clock.c (gf_gettime_mono): Add argument 'tck',
which returns the clock resolution.
(system_clock_4): Get resolution from gf_gettime_mono, but limit to
1000/s.
(system_clock_8): Get resolution from gf_gettime_mono.

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

PR fortran/55548
* intrinsic.texi (SYSTEM_CLOCK): Update documentation of SYSTEM_CLOCK.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194105 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-03 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 3 Dec 2012 21:13:42 +0000 (21:13 +0000)]
2012-12-03  Tobias Burnus  <burnus@net-b.de>
            Janus Weil  <janus@gcc.gnu.org>

        PR fortran/37336
        * class.c (gfc_is_finalizable): New function.
        * gfortran.h (gfc_is_finalizable): Its prototype.
        * module.c (mio_component): Read initializer for vtype's _final.
        * resolve.c (resolve_fl_derived0): Call gfc_is_finalizable.
        * trans-expr.c (gfc_vtable_final_get): New function.
        (conv_parent_component_references): Fix comment.
        (gfc_conv_variable): Fix for scalar coarray components.
        * trans-intrinsic.c (conv_intrinsic_move_alloc): For BT_CLASS,
        pass the BT_CLASS type and not the declared type to
        gfc_deallocate_scalar_with_status.
        * trans.h (gfc_vtable_final_get): New prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194104 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * sanitizer.def: Add Address Sanitizer builtins.
jakub [Mon, 3 Dec 2012 17:28:10 +0000 (17:28 +0000)]
* sanitizer.def: Add Address Sanitizer builtins.
Rename BUILT_IN_TSAN_READ_* to BUILT_IN_TSAN_READ* and
BUILT_IN_TSAN_WRITE_* to BUILT_IN_TSAN_WRITE*.
* Makefile.in (asan.o): Depend on langhooks.h.
(tsan.o): Depend on asan.h.
* asan.h (initialize_sanitizer_builtins): New prototype.
* asan.c: Include langhooks.h.
(report_error_func): Use builtin_decl_implicit of corresponding
BUILT_IN_ASAN_REPORT_{LOAD,STORE}*.
(asan_init_func): Removed.
(initialize_sanitizer_builtins): New function.
(asan_finish_file): Call it.  Use builtin_decl_implicit
on BUILT_IN_ASAN_{INIT,{,UN}REGISTER_GLOBALS}.
(asan_instrument): Call initialize_sanitizer_builtins.
* builtins.def (DEF_SANITIZER_BUILTIN): Change condition to
(flag_asan || flag_tsan).
* tsan.c: Include asan.h and tsan.h.
(get_memory_access_decl): Rename BUILT_IN_TSAN_{READ,WRITE}_*
to BUILT_IN_TSAN_{READ,WRITE}*.
(tsan_pass): Call initialize_sanitizer_builtins.
(tsan_gate, tsan_gate_O0): Don't check if
builtin_decl_implicit_p (BUILT_IN_TSAN_INIT) is true.
(tsan_finish_file): Call initialize_sanitizer_builtins.
* builtin-types.def (BT_FN_VOID_PTR_PTRMODE): New fn type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194103 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR bootstrap/55380
jakub [Mon, 3 Dec 2012 17:19:47 +0000 (17:19 +0000)]
PR bootstrap/55380
PR other/54691
* files.c (read_file_guts): Allocate extra 16 bytes instead of
1 byte at the end of buf.  Pass size + 16 instead of size
to _cpp_convert_input.
* charset.c (_cpp_convert_input): Reallocate if there aren't
at least 16 bytes beyond to.len in the buffer.  Clear 16 bytes
at to.text + to.len.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194102 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-03 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 3 Dec 2012 16:16:28 +0000 (16:16 +0000)]
2012-12-03  Tobias Burnus  <burnus@net-b.de>

        * strtod/strtod_l.c (___STRTOF_INTERNAL): Fix exponent
        reading.

2012-12-03  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/quad_3.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194100 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/55401
aldyh [Mon, 3 Dec 2012 16:11:21 +0000 (16:11 +0000)]
PR middle-end/55401
* trans-mem.c (get_tm_region_blocks): Exclude uninstrumented
blocks from vector if requested.
(collect_bb2reg): Pass new argument to
get_tm_region_blocks.
(get_bb_regions_instrumented): Add INCLUDE_UNINSTRUMENTED_P
argument, and pass it to expand_regions.
(execute_tm_mark): Pass new argument to
get_bb_regions_instrumented.
(execute_tm_edges): Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194099 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago/cp
paolo [Mon, 3 Dec 2012 16:01:32 +0000 (16:01 +0000)]
/cp
2012-12-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/54170
* cvt.c (cp_convert_to_pointer): Don't discard side-effects from
expressions of nullptr_t.
* typeck.c (build_ptrmemfunc): Likewise.

/testsuite
2012-12-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/54170
* g++.dg/cpp0x/lambda/lambda-nullptr.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194098 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR testsuite/55452
jakub [Mon, 3 Dec 2012 15:18:49 +0000 (15:18 +0000)]
PR testsuite/55452
* gfortran.dg/reassoc_4.f: Use --param max-completely-peeled-insns=400
on all targets, not just s390*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194095 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * asan.c (instrument_mem_region_access): Don't instrument
jakub [Mon, 3 Dec 2012 15:04:57 +0000 (15:04 +0000)]
* asan.c (instrument_mem_region_access): Don't instrument
if base doesn't have pointer type or len integral type.
Add cast if len doesn't have size_t compatible type.
(instrument_builtin_call): Don't instrument BUILT_IN_ATOMIC_LOAD,
BUILT_IN_ATOMIC_TEST_AND_SET, BUILT_IN_ATOMIC_CLEAR,
BUILT_IN_ATOMIC_EXCHANGE, BUILT_IN_ATOMIC_COMPARE_EXCHANGE
and BUILT_IN_ATOMIC_STORE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194094 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix stale use of old 'options' argument.
dnovillo [Mon, 3 Dec 2012 14:53:37 +0000 (14:53 +0000)]
Fix stale use of old 'options' argument.

An earlier patch had made the command line options a global variable
_OPTIONS, but it had not renamed all the uses of the old options argument.

* testsuite-management/validate_failures.py: Fix stale
use of 'options'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194092 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoAdding missed in r194086 file.
kyukhin [Mon, 3 Dec 2012 13:59:38 +0000 (13:59 +0000)]
Adding missed in r194086 file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194088 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * asan.c (instrument_assignment): Instrument lhs only
jakub [Mon, 3 Dec 2012 13:57:29 +0000 (13:57 +0000)]
* asan.c (instrument_assignment): Instrument lhs only
for gimple_store_p and rhs1 only for gimple_assign_load_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194087 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago* Makefile.in: Add target mddump, build/genmddump.o. Extend
kyukhin [Mon, 3 Dec 2012 13:54:07 +0000 (13:54 +0000)]
* Makefile.in: Add target mddump, build/genmddump.o.  Extend
genprogrtl with mddump.
* genmddump.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194086 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * rtl.h (print_insn_with_notes): Prototype.
steven [Mon, 3 Dec 2012 13:16:55 +0000 (13:16 +0000)]
* rtl.h (print_insn_with_notes): Prototype.
* sched-vis.c (print_insn_with_notes): Export it.

* gimple-pretty-print.h (gimple_dump_bb_for_graph): Prototype.
* gimple-pretty-print.c (print_gimple_expr): Flush the buffer.
(pp_gimple_stmt_1): Don't do it here.
(gimple_dump_bb_for_graph): New function.
* tree-pretty-print.c (print_generic_expr): Flush the buffer here.
(dump_generic_node): Don't flush the buffer here.

* graph.h (print_rtl_graph_with_bb): Rename to print_graph_cfg.
* graph.c: Include gimple.h, dumpfile.h, and gimple-pretty-print.h.
(draw_cfg_node): Handle GIMPLE basic blocks also.
(print_rtl_graph_with_bb): Rename to print_graph_cfg.
* passes.c (finish_optimization_passes): Don't finish graph dumps here.
(execute_function_dump): Use print_graph_cfg. Enable dumping the CFG
for GIMPLE also.
(pass_init_dump_file): Wrap in TV_DUMP.  Set up CFG graph dumps.
(pass_fini_dump_file): Wrap in TV_DUMP.  Finish graph dumps.
(execute_one_pass): Don't set up graph dumps here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194085 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix PR c/55570.
mpolacek [Mon, 3 Dec 2012 13:02:04 +0000 (13:02 +0000)]
Fix PR c/55570.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194083 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag
ebotcazou [Mon, 3 Dec 2012 12:08:35 +0000 (12:08 +0000)]
* tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag
in the non-always executed case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194082 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * lib/asan-dg.exp (asan_get_gtest_test_list,
jakub [Mon, 3 Dec 2012 11:49:41 +0000 (11:49 +0000)]
* lib/asan-dg.exp (asan_get_gtest_test_list,
asan_get_gtest_expect_death_list, asan-gtest): New procedures.
(proc ${tool}_load): Remember [asan_get_gtest_test_list "$output"]
and [asan_get_gtest_expect_death_list "$output"] in global vars.
(asan_symbolize): Sanitize [] characters from key.
* g++.dg/asan/asan_test_config.h: New file.
* g++.dg/asan/asan_globals_test.cc: New file.
* g++.dg/asan/asan_test_utils.h: New file.
* g++.dg/asan/dejagnu-gtest.h: New file.
* g++.dg/asan/asan_test.cc: New file.
* g++.dg/asan/asan_test.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194081 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago[AARCH64] Refactor constant generation.
sofiane [Mon, 3 Dec 2012 11:13:41 +0000 (11:13 +0000)]
[AARCH64] Refactor constant generation.

2012-12-03  Sofiane Naci  <sofiane.naci@arm.com>

* config/aarch64/aarch64.c (aarch64_build_constant): Update prototype.
Call emit_move_insn instead of printing movi/movn/movz instructions.
Call gen_insv_immdi instead of printing movk instruction.
(aarch64_add_constant): Update prototype.
Generate RTL instead of printing add/sub instructions.
(aarch64_output_mi_thunk): Update calls to aarch64_build_constant
and aarch64_add_constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194080 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-03 Richard Biener <rguenther@suse.de>
rguenth [Mon, 3 Dec 2012 10:45:16 +0000 (10:45 +0000)]
2012-12-03  Richard Biener  <rguenther@suse.de>

* gcc.dg/torture/pr35634.c: Use signed char.
* g++.dg/torture/pr35634.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194078 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-03 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 3 Dec 2012 08:56:11 +0000 (08:56 +0000)]
2012-12-03  Tobias Burnus  <burnus@net-b.de>

        PR fortran/55475
        * scanner.c (gfc_next_char_literal): Fix setting locus
        to free_line_length for the error message.
        * error.c (show_locus): Fix potential out-of-bounds
        read.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194076 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-03 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 3 Dec 2012 08:54:18 +0000 (08:54 +0000)]
2012-11-03  Tobias Burnus  <burnus@net-b.de>

        PR fortran/37336
        * class.c (finalizer_insert_packed_call): New static function.
        (finalize_component, generate_finalization_wrapper):
        Fix coarray handling and packing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194075 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Fix field tracking for references in global initializers.
ian [Mon, 3 Dec 2012 07:21:16 +0000 (07:21 +0000)]
compiler: Fix field tracking for references in global initializers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194073 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/53912
ktietz [Mon, 3 Dec 2012 07:05:26 +0000 (07:05 +0000)]
PR target/53912
* ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194072 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/53912
ktietz [Mon, 3 Dec 2012 07:02:17 +0000 (07:02 +0000)]
PR target/53912
* tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194070 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Don't encode non-ASCII characters in identifiers.
ian [Mon, 3 Dec 2012 06:57:04 +0000 (06:57 +0000)]
compiler: Don't encode non-ASCII characters in identifiers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194068 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/53912
ktietz [Mon, 3 Dec 2012 06:56:16 +0000 (06:56 +0000)]
PR target/53912
* pointer-set.c (hash1): Cast from pointer via uintptr_t.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194067 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Fix nil func panics, constant type conversions.
ian [Mon, 3 Dec 2012 03:25:18 +0000 (03:25 +0000)]
compiler: Fix nil func panics, constant type conversions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194064 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Mon, 3 Dec 2012 00:18:00 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194063 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoPR54838
mpolacek [Sun, 2 Dec 2012 20:16:09 +0000 (20:16 +0000)]
PR54838

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194060 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-02 Teresa Johnson <tejohnson@google.com>
tejohnson [Sun, 2 Dec 2012 16:40:28 +0000 (16:40 +0000)]
2012-12-02  Teresa Johnson  <tejohnson@google.com>

        PR gcov-profile/55551
* lto-cgraph.c (merge_profile_summaries): Handle scaled histogram
        entries that map to the same index.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194055 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * optabs.c (add_equal_note): Do not create self-referencing REG_EQUAL
steven [Sun, 2 Dec 2012 15:46:26 +0000 (15:46 +0000)]
* optabs.c (add_equal_note): Do not create self-referencing REG_EQUAL
notes.
* fwprop.c (forward_propagate_and_simplify): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194054 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * function.h (struct rtl_data): Remove epilogue_delay_list.
steven [Sun, 2 Dec 2012 15:43:16 +0000 (15:43 +0000)]
* function.h (struct rtl_data): Remove epilogue_delay_list.
* reorg.c (find_end_label): Simplify always-true test.
(optimize_skip): Likewise.
* final.c (leaf_function_p): Don't loop over epilogue_delay_list.
(leaf_renumber_regs): Likewise.
* varasm.c (mark_constant_pool): Likewise.
* except.c (set_nothrow_function_flags): Likewise.
* cfgrtl.c (print_rtl_with_bb): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194053 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-02 Paul Thomas <pault@gcc.gnu.org>
pault [Sun, 2 Dec 2012 15:23:30 +0000 (15:23 +0000)]
2012-12-02  Paul Thomas  <pault@gcc.gnu.org>

* resolve.c (resolve_allocate_deallocate,
resolve_typebound_intrinsic_op): Recover revisions 193568 and
193778, which were accidentally reverted by the previous patch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194052 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoRemove stray "gcc/" heading to previous^2 entry.
hp [Sun, 2 Dec 2012 11:34:55 +0000 (11:34 +0000)]
Remove stray "gcc/" heading to previous^2 entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194051 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/mmix/mmix.c (mmix_function_value): Set the mode of the
hp [Sun, 2 Dec 2012 11:33:16 +0000 (11:33 +0000)]
* config/mmix/mmix.c (mmix_function_value): Set the mode of the
returned PARALLEL to that of the return-value, not VOIDmode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194050 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-02 Sandra Loosemore <sandra@codesourcery.com>
sandra [Sun, 2 Dec 2012 04:26:39 +0000 (04:26 +0000)]
2012-12-02  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/extend.texi: Various corrections to punctuation and grammar
throughout the file.  Use consistent terminology and proper names.
Correct some minor markup issues.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194049 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agomissing Changelog
davidxl [Sun, 2 Dec 2012 01:11:53 +0000 (01:11 +0000)]
missing Changelog

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194044 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Sun, 2 Dec 2012 00:18:36 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194042 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * reorg.c: Remove an obsolete comment.
steven [Sun, 2 Dec 2012 00:06:30 +0000 (00:06 +0000)]
* reorg.c: Remove an obsolete comment.
* config/pa/pa.md: Add back the HP-PA comment here, with details.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194039 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoEnable cltd for modern CPUs
davidxl [Sat, 1 Dec 2012 23:43:51 +0000 (23:43 +0000)]
Enable cltd for modern CPUs

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194038 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-01 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Sat, 1 Dec 2012 22:52:27 +0000 (22:52 +0000)]
2012-12-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55558
* g++.dg/cpp0x/decltype46.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194036 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago Add newline.
danglin [Sat, 1 Dec 2012 21:05:43 +0000 (21:05 +0000)]
Add newline.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194028 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/52450
danglin [Sat, 1 Dec 2012 20:17:13 +0000 (20:17 +0000)]
PR middle-end/52450
* gcc.dg/torture/pr52402.c: Remove xfail for hppa*-*-hpux*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194026 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR ada/52110
danglin [Sat, 1 Dec 2012 19:43:04 +0000 (19:43 +0000)]
PR ada/52110
* s-osinte-hpux-dce.ads: Declare pthread_rwlockattr_t and
pthread_rwlock_t subtypes.  Delete duplicate declaration of clockid_t.
* s-taspri-hpux-dce.ads: Change "pragma Atomic (Thread)" to comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194024 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR libstdc++/55503
danglin [Sat, 1 Dec 2012 18:25:11 +0000 (18:25 +0000)]
PR libstdc++/55503
* testsuite/30_threads/condition_variable/members/53841.cc: Add
hppa*-hp-hpux11* to -pthread dg-options.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194021 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix a typo in PR debug/53860 ChangeLog
hjl [Sat, 1 Dec 2012 16:10:30 +0000 (16:10 +0000)]
Fix a typo in PR debug/53860 ChangeLog

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194019 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoAdd a testcase for PR debug/r53860
hjl [Sat, 1 Dec 2012 16:08:41 +0000 (16:08 +0000)]
Add a testcase for PR debug/r53860

PR debug/r53860
* g++.dg/debug/pr53860.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194018 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * MAINTAINERS: Remove self as RTL optimization maintainer.
rsandifo [Sat, 1 Dec 2012 09:36:06 +0000 (09:36 +0000)]
* MAINTAINERS: Remove self as RTL optimization maintainer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194017 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-12-01 Alessandro Fanfarillo <alessandro.fanfarillo@gmail.com>
pault [Sat, 1 Dec 2012 08:00:22 +0000 (08:00 +0000)]
2012-12-01   Alessandro Fanfarillo <alessandro.fanfarillo@gmail.com>
             Paul Thomas  <pault@gcc.gnu.org>

PR fortran/46897
* gfortran.h : Add bit field 'defined_assign_comp' to
symbol_attribute structure.
Add primitive for gfc_add_full_array_ref.
* expr.c (gfc_add_full_array_ref): New function.
(gfc_lval_expr_from_sym): Call new function.
* resolve.c (add_comp_ref): New function.
(build_assignment): New function.
(get_temp_from_expr): New function
(add_code_to_chain): New function
(generate_component_assignments): New function that calls all
the above new functions.
(resolve_code): Call generate_component_assignments.
(check_defined_assignments): New function.
(resolve_fl_derived0): Call check_defined_assignments.
(gfc_resolve): Reset component_assignment_level in case it is
left in a bad state by errors.

* resolve.c (is_sym_host_assoc, resolve_procedure_interface,
resolve_contained_fntype, resolve_procedure_expression,
resolve_elemental_actual, resolve_global_procedure,
is_scalar_expr_ptr, gfc_iso_c_func_interface, resolve_function,
set_name_and_label, gfc_iso_c_sub_interface,
resolve_specific_s0, resolve_operator, compare_bound_mpz_t,
gfc_resolve_character_operator, resolve_typebound_function,
gfc_resolve_expr, forall_index, remove_last_array_ref,
conformable_arrays, resolve_allocate_expr,
resolve_allocate_deallocate, resolve_select_type,
resolve_transfer, resolve_where,
gfc_resolve_where_code_in_forall, gfc_resolve_forall_body,
gfc_count_forall_iterators, resolve_values,
resolve_bind_c_comms, resolve_bind_c_derived_types,
gfc_verify_binding_labels, apply_default_init,
build_default_init_expr, apply_default_init_local,
resolve_fl_var_and_proc, resolve_fl_procedure,
gfc_resolve_finalizers, check_generic_tbp_ambiguity,
resolve_typebound_intrinsic_op, resolve_typebound_procedure,
resolve_typebound_procedures, ensure_not_abstract,
resolve_fl_derived0, resolve_fl_parameter, resolve_symbol,
resolve_equivalence_derived): Remove trailing white space.
* gfortran.h : Remove trailing white space.

2012-12-01   Alessandro Fanfarillo <alessandro.fanfarillo@gmail.com>
             Paul Thomas  <pault@gcc.gnu.org>

PR fortran/46897
* gfortran.dg/defined_assignment_1.f90: New test.
* gfortran.dg/defined_assignment_2.f90: New test.
* gfortran.dg/defined_assignment_3.f90: New test.
* gfortran.dg/defined_assignment_4.f90: New test.
* gfortran.dg/defined_assignment_5.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194016 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Sat, 1 Dec 2012 00:18:32 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194015 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Fix bug converting unnamed types with placeholders.
ian [Sat, 1 Dec 2012 00:15:16 +0000 (00:15 +0000)]
compiler: Fix bug converting unnamed types with placeholders.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194011 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR c++/55542
jakub [Fri, 30 Nov 2012 23:51:26 +0000 (23:51 +0000)]
PR c++/55542
* pt.c (make_ith_pack_parameter_name): Return NULL if
name is NULL.
(tsubst_decl): Call make_ith_pack_parameter_name even if
DECL_NAME is NULL.

* g++.dg/cpp0x/vt-55542.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194010 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator): Deal
ebotcazou [Fri, 30 Nov 2012 22:36:07 +0000 (22:36 +0000)]
* stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator): Deal
with degenerate cases where the bitsize isn't positive.  Rework comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194009 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * testsuite-management/validate_failures.py: Add support for @include,
devans [Fri, 30 Nov 2012 21:53:34 +0000 (21:53 +0000)]
* testsuite-management/validate_failures.py: Add support for @include,
@remove directives in manifest files.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194008 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * testsuite-management/validate_failures.py: Add function
devans [Fri, 30 Nov 2012 20:06:27 +0000 (20:06 +0000)]
* testsuite-management/validate_failures.py: Add function
GetManifestPath.  New global _MANIFEST_SUBDIR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194007 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Define.
dje [Fri, 30 Nov 2012 19:02:53 +0000 (19:02 +0000)]
    * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194004 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * xcoffout.c (xcoff_tls_data_section_name): Define.
dje [Fri, 30 Nov 2012 17:54:07 +0000 (17:54 +0000)]
    * xcoffout.c (xcoff_tls_data_section_name): Define.
        * xcoffout.h (xcoff_tls_data_section_name): Declare.
        * config/rs6000/rs6000.c (tls_data_section): Define.
        (TARGET_USE_BLOCKS_FOR_DECL_P): Define.
        (rs6000_legitimize_tls_address_aix): New function.
        (rs6000_legitimize_tls_address): Use new function for AIX.
        (rs6000_cannot_force_const_mem): No sum in TLS TOC symbols.
        Allow TLS symbol in constant pool other than ELF.
        (rs6000_legitimate_address_p): Allow TLS symbol other than ELF.
        (rs6000_assemble_visibility): Do not emit anything on AIX.
        (output_toc): Handle alias of TLS general-dynamic symbols.
        Emit TLS decorations on symbols.
        (rs6000_use_blocks_for_decl_p): New function.
        (rs6000_xcoff_output_tls_section_asm_op): New function.
        (rs6000_xcoff_asm_init_sections): Initialize tls_data_section.
        (rs6000_xcoff_select_section): Choose tls_data_section for
        thread-local storage.
        (rs6000_xcoff_file_start): Generate xcoff_tls_data_section_name.
        (rs6000_legitimate_constant_p): Allow TLS symbol other than ELF.
        * config/rs6000/rs6000.md (tls_tls_): Restrict to ELF.
        (tls_get_tpointer): New.
        (tle_get_tpointer_internal): New.
        (tls_get_addr<mode>): New.
        (tls_get_addr_internal<mode>): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194003 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoRevised patch to ensure that histograms from the profile summary are streamed
tejohnson [Fri, 30 Nov 2012 16:47:04 +0000 (16:47 +0000)]
Revised patch to ensure that histograms from the profile summary are streamed
through the LTO files so that the working set can be computed for use in
downstream optimizations.

2012-11-30  Teresa Johnson  <tejohnson@google.com>

* lto-cgraph.c (output_profile_summary): Stream out sum_all
and histogram.
(input_profile_summary): Stream in sum_all and histogram.
(merge_profile_summaries): Merge sum_all and histogram, and
change to use RDIV.
(input_symtab): Call compute_working_sets after merging
summaries.
* gcov-io.c (gcov_histo_index): Make extern for compiler.
* gcov-io.h (gcov_histo_index): Ditto.
* profile.c (compute_working_sets): Remove static keyword.
* profile.h (compute_working_sets): Ditto.
* Makefile.in (lto-cgraph.o): Depend on profile.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193999 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-30 Martin Jambor <mjambor@suse.cz>
jamborm [Fri, 30 Nov 2012 16:11:33 +0000 (16:11 +0000)]
2012-11-30  Martin Jambor  <mjambor@suse.cz>

PR middle-end/52890
PR tree-optimization/55415
PR tree-optimization/54386
PR target/55448
* ipa-prop.c (ipa_modify_call_arguments): Be optimistic when
get_pointer_alignment_1 returns false and the base was not a
dereference.
* tree-sra.c (access_precludes_ipa_sra_p): New parameter req_align,
added check for required alignment.  Update the user.

* testsuite/gcc.dg/ipa/ipa-sra-7.c: New test.
* testsuite/gcc.dg/ipa/ipa-sra-8.c: Likewise.
* testsuite/gcc.dg/ipa/ipa-sra-9.c: Likewise.
* testsuite/gcc.target/i386/pr55448.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193998 138bc75d-0d04-0410-961f-82ee72b054a4