OSDN Git Service

pf3gnuchains/gcc-fork.git
9 years agoruntime: More efficient implementation of trampolines.
ian [Fri, 25 May 2012 21:51:45 +0000 (21:51 +0000)]
runtime: More efficient implementation of trampolines.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187900 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agocompiler: Don't create a closure if not needed.
ian [Fri, 25 May 2012 21:14:50 +0000 (21:14 +0000)]
compiler: Don't create a closure if not needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187898 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agolibgcc/:
ian [Fri, 25 May 2012 20:49:17 +0000 (20:49 +0000)]
libgcc/:
* config/i386/morestack.S (__morestack_non_split): Check whether
caller is varargs and needs %bp to hold the stack frame on return.
gcc/testsuite/:
* gcc.dg/split-6.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187895 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR lto/52178
ebotcazou [Fri, 25 May 2012 20:28:10 +0000 (20:28 +0000)]
PR lto/52178
* tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
* tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187893 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoruntime: Fix cast error in print.c on 32-bit systems.
ian [Fri, 25 May 2012 18:22:14 +0000 (18:22 +0000)]
runtime: Fix cast error in print.c on 32-bit systems.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187890 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
kyukhin [Fri, 25 May 2012 13:34:07 +0000 (13:34 +0000)]
2012-05-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>

        PR target/53435
        * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
        (ix86_expand_vec_perm): Use int mode instead of float.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187882 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR ada/52362
ebotcazou [Fri, 25 May 2012 10:07:23 +0000 (10:07 +0000)]
PR ada/52362
* config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
gnu_ld variables to yes.
* configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
(HAVE_GNU_AS): Likewise.
* config.in: Regenerate.
* configure: Likewise.
ada/
* link.c (__gnat_object_file_option): Set to "-Wl,@" for GNU linker.
(__gnat_using_gnu_linker): Delete.
* gnatlink.adb (Gnatlink): Declare Object_File_Option_Ptr here...
Declare Object_File_Option string constant and Using_GNU_response_file
boolean constant.
(Process_Binder_File): ...instead of here.  Delete Using_GNU_Linker,
Opening and Closing local variables.  Do not handle the GNU linker
specially.
(Write_RF): New procedure to write into the response file.  Escape some
characters if a GNU response file is used.  Keep track of error status.
Invoke Write_RF to write into the response file.  Delete the file only
if the link was successful.
* mlib-utl.adb: Do not `with' package System.
(Gcc): Likewise.  Declare Object_File_Option string constant and
Using_GNU_response_file boolean constant.
(Write_RF): Take a string instead of address and length.  Escape some
characters if a GNU response file is used.
Invoke Write_RF to write into the response file.  Delete the file only
if the link was successful.  Do not warn if it cannot be deleted.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187877 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
ramana [Fri, 25 May 2012 09:57:57 +0000 (09:57 +0000)]
2012-05-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

Backport from mainline
        2012-03-12  Richard Guenther  <rguenther@suse.de>
* config/arm/arm.c (neon_dereference_pointer): Do not call
covert during RTL expansion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187876 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Fri, 25 May 2012 00:17:26 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187864 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoruntime: Make runtime.Stack actually work.
ian [Thu, 24 May 2012 21:07:30 +0000 (21:07 +0000)]
runtime: Make runtime.Stack actually work.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187855 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoruntime: Correct definition of __go_file_line to match declaration.
ian [Thu, 24 May 2012 20:47:20 +0000 (20:47 +0000)]
runtime: Correct definition of __go_file_line to match declaration.

From Rainer Orth.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187852 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoruntime: Copy runtime_printf from other Go library.
ian [Thu, 24 May 2012 20:45:16 +0000 (20:45 +0000)]
runtime: Copy runtime_printf from other Go library.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187849 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago libgcc/
hainque [Thu, 24 May 2012 14:59:38 +0000 (14:59 +0000)]
    libgcc/
        * Makefile.in: Move dependency on install-unwind_h from
        "install-leaf" to "install".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187841 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Thu, 24 May 2012 13:54:16 +0000 (13:54 +0000)]
2012-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
        2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/53385
* config/rs6000/rs6000.c (print_operand): Revise code that unsafely
relied on signed overflow behavior.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187835 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-24 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 24 May 2012 12:50:15 +0000 (12:50 +0000)]
2012-05-24  Richard Guenther  <rguenther@suse.de>

PR middle-end/53460
* tree-profile.c (tree_profiling): Cleanup the CFG if
execute_fixup_cfg requests it.

* g++.dg/tree-prof/pr53460.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187832 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR tree-optimization/53465
jakub [Thu, 24 May 2012 11:53:29 +0000 (11:53 +0000)]
PR tree-optimization/53465
* tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
vr0 into *vr, then vrp_meet that.
(vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
have any equivalences.
(vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
first time.

* gcc.c-torture/execute/pr53465.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187828 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Thu, 24 May 2012 00:18:19 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187821 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
ebotcazou [Wed, 23 May 2012 19:09:04 +0000 (19:09 +0000)]
* gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
size handling.
(gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
(iterative_hash_gimple_type): Adjust comment.
(iterative_hash_canonical_type): Likewise.  Hash the bounds of the
domain for an array type instead of the domain type itself.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187809 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-23 Tobias Burnus <burnus@net-b.de>
burnus [Wed, 23 May 2012 19:08:52 +0000 (19:08 +0000)]
2012-05-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53389
        * trans-array.c (gfc_add_loop_ss_code): Don't evaluate
        * expression, if
        ss->is_alloc_lhs is set.

2012-05-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53389
        * gfortran.dg/realloc_on_assign_15.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187808 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago Backport from 2012-05-23 mainline r187803
gjl [Wed, 23 May 2012 15:28:05 +0000 (15:28 +0000)]
Backport from 2012-05-23 mainline r187803
PR target/53448
* config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
* config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
ASM_OUTPUT_ALIGN.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187804 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoGenerate fma3 instructions by default for 'march=native' in AMD processors that suppo...
vekumar [Wed, 23 May 2012 08:25:38 +0000 (08:25 +0000)]
Generate fma3 instructions by default for 'march=native' in AMD processors that support both fma3 and fma4

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187794 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Wed, 23 May 2012 00:18:16 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187787 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoruntime: Tweak runtime.Callers for Go 1 compatibility.
ian [Tue, 22 May 2012 21:53:14 +0000 (21:53 +0000)]
runtime: Tweak runtime.Callers for Go 1 compatibility.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187782 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoruntime: Use getcontext, not setjmp, to save regs for GC.
ian [Tue, 22 May 2012 16:57:35 +0000 (16:57 +0000)]
runtime: Use getcontext, not setjmp, to save regs for GC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187778 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-22 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 22 May 2012 10:46:21 +0000 (10:46 +0000)]
2012-05-22  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53408
* tree-vect-loop.c (vectorizable_induction): Properly check
the restriction that we cannot handle induction results from
the inner loop outside of the outer loop.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187770 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-22 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 22 May 2012 09:28:38 +0000 (09:28 +0000)]
2012-05-22  Richard Guenther  <rguenther@suse.de>

PR middle-end/51071
* gcc.dg/torture/pr51071-2.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187765 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Tue, 22 May 2012 00:18:21 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187754 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR tree-optimization/53436
jakub [Mon, 21 May 2012 21:06:13 +0000 (21:06 +0000)]
PR tree-optimization/53436
* omp-low.c (omp_build_component_ref): New function.
(build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187742 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR tree-optimization/53366
jakub [Mon, 21 May 2012 21:03:42 +0000 (21:03 +0000)]
PR tree-optimization/53366
* tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
tests if complex_numbers == 2, but there are non-complex number loads
too.

* gcc.dg/torture/pr53366-1.c: New test.
* gcc.dg/torture/pr53366-2.c: New test.
* gcc.target/i386/pr53366-1.c: New test.
* gcc.target/i386/pr53366-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187740 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR tree-optimization/53409
jakub [Mon, 21 May 2012 21:02:40 +0000 (21:02 +0000)]
PR tree-optimization/53409
* tree-vect-loop.c (vect_analyze_loop_operations): Don't check
vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.

* gcc.c-torture/compile/pr53409.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187739 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR tree-optimization/53410
jakub [Mon, 21 May 2012 21:00:43 +0000 (21:00 +0000)]
PR tree-optimization/53410
* fold-const.c (fold_binary_loc): Use build_zero_cst (type)
instead of build_int_cst (type, 0) where vector types might be
involved.

* gcc.c-torture/compile/pr53410-1.c: New test.
* gcc.c-torture/compile/pr53410-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187738 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoRemove svn:mergeinfo property.
jakub [Mon, 21 May 2012 20:59:22 +0000 (20:59 +0000)]
Remove svn:mergeinfo property.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187737 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-21 Andrew Pinski <apinski@cavium.com>
pinskia [Mon, 21 May 2012 19:02:11 +0000 (19:02 +0000)]
2012-05-21  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/53183
        * configure.ac: Define the default includes to being none.
        * configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187733 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-21 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Mon, 21 May 2012 18:14:01 +0000 (18:14 +0000)]
2012-05-21  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/52700
* configure.ac: Allow gnu, gnu-versioned-namespace for
--enable-symvers arguments.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187730 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR c/53418
jsm28 [Mon, 21 May 2012 16:47:32 +0000 (16:47 +0000)]
PR c/53418
* c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
from folded operands before wrapping another around the
conditional expression.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187726 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-21 Dave Boutcher <daveboutcher@gmail.com>
pmarlier [Mon, 21 May 2012 15:15:51 +0000 (15:15 +0000)]
2012-05-21  Dave Boutcher  <daveboutcher@gmail.com>
    Patrick Marlier  <patrick.marlier@gmail.com>

* trans-mem.c (ipa_tm_transform_clone): Transform functions with
indirect calls.

testsuite/
2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>

* gcc.dg/tm/indirect-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187721 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoUse unspec_volatile on rdrand<mode>_1
hjl [Mon, 21 May 2012 13:07:11 +0000 (13:07 +0000)]
Use unspec_volatile on rdrand<mode>_1

gcc/

Backport from mainline
PR target/53416
* config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
(UNSPECV_RDRAND): This.
(rdrand<mode>_1): Updated.

gcc/testsuite/

Backport from mainline
PR target/53416
* gcc.target/i386/pr53416.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187713 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Mon, 21 May 2012 00:18:13 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187702 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoAdd RDRND, F16C and FSGSBASE support to -march=native
hjl [Sun, 20 May 2012 23:10:57 +0000 (23:10 +0000)]
Add RDRND, F16C and FSGSBASE support to -march=native

Backport from mainline
* config/i386/driver-i386.c (host_detect_local_cpu): Support
RDRND, F16C and FSGSBASE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187697 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/utils.c (gnat_write_global_declarations): Put a name
ebotcazou [Sun, 20 May 2012 09:46:42 +0000 (09:46 +0000)]
* gcc-interface/utils.c (gnat_write_global_declarations): Put a name
on the dummy global variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187693 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Sun, 20 May 2012 00:18:17 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187687 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago Backport from mainline
ebotcazou [Sat, 19 May 2012 23:16:33 +0000 (23:16 +0000)]
Backport from mainline
2012-05-14  Eric Botcazou  <ebotcazou@adacore.com>

* tree-ssa-pre.c (can_value_number_call): Delete.
(compute_avail): Skip all statements with side effects.
<GIMPLE_CALL>: Skip calls to internal functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187683 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-19 Eric Botcazou <ebotcazou@adacore.com>
ebotcazou [Sat, 19 May 2012 09:34:06 +0000 (09:34 +0000)]
2012-05-19  Eric Botcazou  <ebotcazou@adacore.com>

* gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
(gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the thiscall
calling convention
(get_minimal_subprog_decl): Likewise.
(gnat_first_param_is_class): New predicate.

Backport from mainline
2012-05-15  Javier Miranda  <miranda@adacore.com>

* exp_ch3.adb (Build_Offset_To_Top): Modify the
expansion of the offset_to_top functions to ensure that their
profile is conformant with the profile specified in Ada.Tags. No
change in functionality.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187677 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix VIS3 vector shift wrong code generation on sparc.
davem [Sat, 19 May 2012 06:19:10 +0000 (06:19 +0000)]
Fix VIS3 vector shift wrong code generation on sparc.

Backport r185385 from mainline.
2012-03-14  Richard Guenther  <rguenther@suse.de>

PR middle-end/52584
* tree-vect-generic.c (type_for_widest_vector_mode): Take
element type instead of mode, use build_vector_type_for_mode
instead of the langhook, build a vector of proper signedness.
(expand_vector_operations_1): Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187675 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Sat, 19 May 2012 00:18:05 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187673 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an object at
ebotcazou [Fri, 18 May 2012 20:40:23 +0000 (20:40 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an object at
global level with unconstrained nominal subtype and a non-fixed size,
make a variable for the size.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187668 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agocompiler: Fix erroneous use of VEC.
ian [Fri, 18 May 2012 20:15:58 +0000 (20:15 +0000)]
compiler: Fix erroneous use of VEC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187665 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
hainque [Fri, 18 May 2012 16:32:05 +0000 (16:32 +0000)]
    * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
        $(libsubdir) as libexecsubdir.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187659 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Fri, 18 May 2012 00:18:30 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187646 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix bessel_7.f90 failures on sparc-*-linux-gnu
davem [Thu, 17 May 2012 19:29:51 +0000 (19:29 +0000)]
Fix bessel_7.f90 failures on sparc-*-linux-gnu

* gfortran.dg/bessel_7.f90: Bump allowed precision to avoid
failure on sparc-*-linux-gnu.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187637 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoruntime: Print stack trace on panic or signal.
ian [Thu, 17 May 2012 05:30:43 +0000 (05:30 +0000)]
runtime: Print stack trace on panic or signal.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187624 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Thu, 17 May 2012 00:17:24 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187619 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-16 Andrew Pinski <apinski@cavium.com>
pinskia [Wed, 16 May 2012 20:38:25 +0000 (20:38 +0000)]
2012-05-16  Andrew Pinski  <apinski@cavium.com>

* gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
GIMPLE_ASSIGN.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187609 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix var tracking ICE due to reorg.
davem [Wed, 16 May 2012 19:54:19 +0000 (19:54 +0000)]
Fix var tracking ICE due to reorg.

If during reorg we delete a code label, and as a result we decide to
delete all the code following that label, we hit this condition in
jump.c:delete_related_insns():

  if (was_code_label && prev && BARRIER_P (prev))

which passes and then we proceed to delete insns until we hit a
non-deleted code label.

During this traversal, we can end up deleting a CALL, but in doing so
we will leave the var tracking note for the call arguments around.

Later in dwarf2_var_location() we will ICE, because we can't find the
CALL when we search backwards for it.

gcc/

* jump.c (delete_related_insns): If we remove a CALL, make sure
we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187605 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoPR debug/52727
rth [Wed, 16 May 2012 17:49:38 +0000 (17:49 +0000)]
PR debug/52727
* combine-stack-adj.c (prev_active_insn_bb): New.
(next_active_insn_bb): New.
(force_move_args_size_note): New.
(combine_stack_adjustments_for_block): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187603 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago toplevel/
hainque [Wed, 16 May 2012 15:54:24 +0000 (15:54 +0000)]
    toplevel/
        * Makefile.tpl (gcc-no-fixedincludes): Rename into ...
        (gcc-install-no-fixedincludes): Now forwarder to local target in gcc/
        (install-no-fixedincludes): Adjust accordingly.
        * Makefile.in: Regenerate.

        gcc/
        * Makefile.in (install-no-fixedincludes): New target, former toplevel
        gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
        Add comments and improve stamp preservation across the whole sequence.
        (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187601 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agolibgcc/
hainque [Wed, 16 May 2012 15:53:13 +0000 (15:53 +0000)]
libgcc/
* Makefile.in (install-unwind_h): Rename into ...
(install-unwind_h-forbuild): New target.
(all): Use it instead of the former install-unwind_h.
(install-unwind_h): Reinstate, copy to user install destination
for include files, not to the internal gcc object directory one.
(install-leaf): Depend on it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187600 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agolog/syslog: Fix name of C function syslog_c.
ian [Wed, 16 May 2012 14:52:21 +0000 (14:52 +0000)]
log/syslog: Fix name of C function syslog_c.

From Rainer Orth.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187597 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-16 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 16 May 2012 13:08:33 +0000 (13:08 +0000)]
2012-05-16  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53364
* tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
detect a view-conversion of the decl.

* g++.dg/torture/pr53364.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187589 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agodebug/dwarf: Fix handling of LineSetFile.
ian [Wed, 16 May 2012 05:36:46 +0000 (05:36 +0000)]
debug/dwarf: Fix handling of LineSetFile.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187579 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agocompiler: Fix assembler names of types defined in functions.
ian [Wed, 16 May 2012 00:26:48 +0000 (00:26 +0000)]
compiler: Fix assembler names of types defined in functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187575 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Wed, 16 May 2012 00:17:23 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187572 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agocompiler: Fix taking address of constant outside of function.
ian [Tue, 15 May 2012 22:54:39 +0000 (22:54 +0000)]
compiler: Fix taking address of constant outside of function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187566 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR ada/52494
ebotcazou [Tue, 15 May 2012 22:35:33 +0000 (22:35 +0000)]
PR ada/52494
* s-taprop-dummy.adb (Specific): New package.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187564 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agocompiler: Sort array constructors by index.
ian [Tue, 15 May 2012 22:30:57 +0000 (22:30 +0000)]
compiler: Sort array constructors by index.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187561 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * sem_prag.adb (Process_Atomic_Shared_Volatile): Propagate
ebotcazou [Tue, 15 May 2012 20:08:00 +0000 (20:08 +0000)]
* sem_prag.adb (Process_Atomic_Shared_Volatile): Propagate
atomicity from an object to its underlying type only if it
is composite.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187555 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agocompiler: Don't try to take the address of a constant.
ian [Tue, 15 May 2012 20:00:57 +0000 (20:00 +0000)]
compiler: Don't try to take the address of a constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187554 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoruntime: Make all variables used across getcontext volatile.
ian [Tue, 15 May 2012 18:57:03 +0000 (18:57 +0000)]
runtime: Make all variables used across getcontext volatile.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187550 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR target/53358
jakub [Tue, 15 May 2012 15:21:38 +0000 (15:21 +0000)]
PR target/53358
* config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
that operands[2] is either immediate, or q_regs_operand.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187545 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoPR c++/53209
aoliva [Tue, 15 May 2012 04:25:25 +0000 (04:25 +0000)]
PR c++/53209
* pt.c (tsubst_decl): Bail out if argvec is error_mark_node.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187497 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago Backport r187139 from mainline.
amker [Tue, 15 May 2012 02:14:05 +0000 (02:14 +0000)]
Backport r187139 from mainline.
2012-05-04  Bin Cheng  <bin.cheng@arm.com>

PR rtl-optimization/52804
* reload1.c (reload_reg_reaches_end_p): Check whether successor
reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
of current one with type RELOAD_FOR_INPADDR_ADDRESS.
Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
RELOAD_FOR_OUTADDR_ADDRESS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187496 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Tue, 15 May 2012 00:17:28 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187492 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agolibgo: Use -fgo-pkgpath.
ian [Mon, 14 May 2012 22:09:21 +0000 (22:09 +0000)]
libgo: Use -fgo-pkgpath.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187486 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR target/46098
uros [Mon, 14 May 2012 21:30:23 +0000 (21:30 +0000)]
PR target/46098
* config/i386/i386.c (ix86_expand_special_args_builtin): Always
generate target register for "load" class builtins.

Revert:
2010-10-22  Uros Bizjak  <ubizjak@gmail.com>

PR target/46098
* config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
(avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
(*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
(<sse>_movu<ssemodesuffix>): New expander.
(*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
(avx_movdqu<avxmodesuffix>): New expander.
(*sse2_movdqu): Rename from sse2_movdqu.
(sse2_movdqu): New expander.

testsuite/ChangeLog:

* gcc.target/i386/avx256-unaligned-load-[1234].c: Update scan strings.
* gcc.target/i386/avx256-unaligned-store-[1234].c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187482 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
jakub [Mon, 14 May 2012 17:08:12 +0000 (17:08 +0000)]
* dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
lineno 1 the same as lineno 0 before first start file directive.
(optimize_macinfo_range): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187476 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * dwarf2out.c (have_macinfo): Define.
jakub [Mon, 14 May 2012 17:06:49 +0000 (17:06 +0000)]
* dwarf2out.c (have_macinfo): Define.
(dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
attribute, don't force empty compilation unit and don't emit any
.debug_macinfo/.debug_macro section if macinfo_table is empty.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187474 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Mon, 14 May 2012 00:18:39 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187448 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago Backport from mainline
uros [Sun, 13 May 2012 16:25:20 +0000 (16:25 +0000)]
Backport from mainline
2012-05-12  Uros Bizjak  <ubizjak@gmail.com>

* config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
ORDERED and UNORDERED conditions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187439 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Sun, 13 May 2012 00:18:12 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187433 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * function.c (requires_stack_frame_p): If the function can throw
ebotcazou [Sat, 12 May 2012 21:37:23 +0000 (21:37 +0000)]
* function.c (requires_stack_frame_p): If the function can throw
non-call exceptions, return true if the insn can throw internally.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187430 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Sat, 12 May 2012 00:18:14 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187422 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-12 Tobias Burnus <burnus@net-b.de>
burnus [Fri, 11 May 2012 22:32:27 +0000 (22:32 +0000)]
2012-05-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53310
        * intrinsics/eoshift2.c (eoshift2): Do not leak
        memory by allocating it in the loop.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187417 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Fri, 11 May 2012 14:45:09 +0000 (14:45 +0000)]
2012-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* java/typeck.c (java_type_for_size): Handle 128-bit sizes for
bitsizetype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187409 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Fri, 11 May 2012 00:18:02 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187390 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago* include/bits/random.tcc (seed_seq::generate): Cast max()
dj [Thu, 10 May 2012 21:07:04 +0000 (21:07 +0000)]
* include/bits/random.tcc (seed_seq::generate): Cast max()
operands to size_t to ensure a template match.
* include/std/bitset (_M_copy_from_ptr): Cast min() operands to
size_t to ensure a template match.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187379 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago/cp
paolo [Thu, 10 May 2012 21:06:42 +0000 (21:06 +0000)]
/cp
2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53301
* decl.c (check_default_argument): Fix typo (POINTER_TYPE_P
instead of TYPE_PTR_P) in zero-as-null-pointer-constant warning.

/testsuite
2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53301
* g++.dg/warn/Wzero-as-null-pointer-constant-6.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187378 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
ebotcazou [Thu, 10 May 2012 15:00:11 +0000 (15:00 +0000)]
* gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
DECL_ORIGINAL_TYPE if it is present.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187370 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Thu, 10 May 2012 00:18:18 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187361 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agocompiler: Add -fgo-pkgpath option.
ian [Wed, 9 May 2012 23:30:17 +0000 (23:30 +0000)]
compiler: Add -fgo-pkgpath option.

* lang.opt: Add -fgo-pkgpath.
* go-lang.c (go_pkgpath): New static variable.
(go_prefix): New static variable.
(go_langhook_init): Pass go_pkgpath and go_prefix to
go_create_gogo.
(go_langhook_handle_option): Handle -fgo-pkgpath.  Change
-fgo-prefix handling to just set go_prefix.
* go-c.h (go_set_prefix): Don't declare.
(go_create_gogo): Add pkgpath and prefix to declaration.
* go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
to pkgpath.  Don't include the package name in the asm name.
* gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
docs for -fgo-prefix.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187357 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago Backport from 2012-05-12 mainline r187342.
gjl [Wed, 9 May 2012 16:39:33 +0000 (16:39 +0000)]
Backport from 2012-05-12 mainline r187342.
PR target/53256
* config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
* config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
* config/avr/avr.h (struct machine_function): Add attributes_checked_p.
* config/avr/avr.c (avr_asm_declare_function_name): Remove.
(expand_prologue): Move initialization of cfun->machine->is_naked,
is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
(avr_set_current_function): ...this new static function.
(TARGET_SET_CURRENT_FUNCTION): New define.
(avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
checking attributes of current_function_decl.
(avr_regs_to_save): Ditto.
(signal_function_p): Rename to avr_signal_function_p.
(interrupt_function_p): Rename to avr_interrupt_function_p.
* doc/extend.texi (Function Attributes): Better explanation of
'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
alphabetical order.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187343 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-09 Matthias Klose <doko@ubuntu.com>
doko [Wed, 9 May 2012 16:02:34 +0000 (16:02 +0000)]
2012-05-09  Matthias Klose  <doko@ubuntu.com>

        * gcc-ar.c (main): Don't check for execute bits for the plugin.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187339 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Wed, 9 May 2012 00:18:27 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187306 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR target/53272
hp [Tue, 8 May 2012 15:27:58 +0000 (15:27 +0000)]
PR target/53272
* gcc.dg/torture/pr53272-1.c, gcc.dg/torture/pr53272-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187286 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR target/53272
hp [Tue, 8 May 2012 15:27:03 +0000 (15:27 +0000)]
PR target/53272
* config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
when a constant source operand matches an "I" constraint, the "no
CC0 change" applies to a register-destination only, not a
strict_low_part-destination.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187285 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2012-05-07 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
ramana [Tue, 8 May 2012 10:57:58 +0000 (10:57 +0000)]
2012-05-07  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

Backport from mainline:
2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

* config/arm/sync.md (sync_optab): Change ior attribute to "or".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187278 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Tue, 8 May 2012 00:17:50 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187274 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agocompiler: fix an ICE when parsing 0xdie, reject token 0x123i.
ian [Mon, 7 May 2012 18:53:44 +0000 (18:53 +0000)]
compiler: fix an ICE when parsing 0xdie, reject token 0x123i.

The lexer used to incorrectly accept a token like 0x123i
and interpreted it as 123i. It also used to die when encountering
0xdie.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187267 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agocompiler: fix ICE in handling of rune constants.
ian [Mon, 7 May 2012 18:37:00 +0000 (18:37 +0000)]
compiler: fix ICE in handling of rune constants.

This patch corrects an ICE in handling on constant expressions
such as

const r = ^'a'

Part of issue 9.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187265 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agocompiler: reject NOT operator on integer types.
ian [Mon, 7 May 2012 18:24:32 +0000 (18:24 +0000)]
compiler: reject NOT operator on integer types.

The Go specification only accepts the NOT operator on boolean
types.

Fixes issue 10.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187263 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR tree-optimization/53239
jakub [Mon, 7 May 2012 13:33:27 +0000 (13:33 +0000)]
PR tree-optimization/53239
* tree-vrp.c (get_value_range): Set VR of
SSA_NAME_IS_DEFAULT_DEF of DECL_BY_REFERENCE RESULT_DECL
to nonnull.

* g++.dg/opt/vrp3.C: New test.
* g++.dg/opt/vrp3-aux.cc: New file.
* g++.dg/opt/vrp3.h: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187241 138bc75d-0d04-0410-961f-82ee72b054a4