gcc.git
12 years agotree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix comment.
Manuel López-Ibáñez [Thu, 26 Apr 2012 07:14:01 +0000 (07:14 +0000)]
tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix comment.

2012-04-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
comment. Delete unused parameter first_exp_point_map.
(virt_loc_aware_diagnostic_finalizer): Update call.
libcpp/
* line-map.c (linemap_resolve_location): Synchronize comments with
those in line-map.h.
* include/line-map.h (linemap_resolve_location): Fix spelling in
comment.

From-SVN: r186860

12 years agolinux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
Michael Hope [Thu, 26 Apr 2012 04:33:08 +0000 (04:33 +0000)]
linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.

2012-04-26  Michael Hope  <michael.hope@linaro.org>
    Richard Earnshaw  <rearnsha@arm.com>

* config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
(GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
(GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
(GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.

Co-Authored-By: Richard Earnshaw <rearnsha@arm.com>
From-SVN: r186859

12 years agomksysinfo, net: Always define syscall.SO_REUSEPORT.
Ian Lance Taylor [Thu, 26 Apr 2012 04:25:56 +0000 (04:25 +0000)]
mksysinfo, net: Always define syscall.SO_REUSEPORT.

From-SVN: r186857

12 years agohashtable.h: Adjust doxygen markup for base classes.
Benjamin Kosnik [Thu, 26 Apr 2012 02:20:32 +0000 (02:20 +0000)]
hashtable.h: Adjust doxygen markup for base classes.

2012-04-25  Benjamin Kosnik  <bkoz@redhat.com>

*  include/bits/hashtable.h: Adjust doxygen markup for base classes.
*  include/bits/hashtable_policy.h: Same.

From-SVN: r186856

12 years agoi386-cpuinfo.c (FEATURE_AVX2): New enum value.
Sriraman Tallam [Thu, 26 Apr 2012 00:52:09 +0000 (00:52 +0000)]
i386-cpuinfo.c (FEATURE_AVX2): New enum value.

2012-04-25  Sriraman Tallam  <tmsriram@google.com>

* config/i386/i386-cpuinfo.c (FEATURE_AVX2): New enum value.
(get_available_features): New argument. Check for AVX2.
(__cpu_indicator_init): Modify call to get_available_features.

* doc/extend.texi: Document avx2 support.
* config/i386/i386.c (fold_builtin_cpu): Add avx2.

* testsuite/gcc.target/i386/builtin_target.c: Check avx2.

From-SVN: r186855

12 years agoDaily bump.
GCC Administrator [Thu, 26 Apr 2012 00:18:36 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r186854

12 years agosavres.c: New test.
Alan Modra [Thu, 26 Apr 2012 00:02:12 +0000 (09:32 +0930)]
savres.c: New test.

* gcc.target/powerpc/savres.c: New test.
* gcc.target/powerpc/powerpc.exp: Run it.

From-SVN: r186850

12 years agore PR libstdc++/52689 (static linking with libstdc++ fails)
Benjamin Kosnik [Wed, 25 Apr 2012 22:47:52 +0000 (22:47 +0000)]
re PR libstdc++/52689 (static linking with libstdc++ fails)

2012-04-25  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/52689
* testsuite/17_intro/static.cc: Fix.
* testsuite/lib/dg-options.exp (dg-require-static-libstdcxx): New.

From-SVN: r186845

12 years agore PR target/53120 (ICE exposing strict_low_part / in/out operand thinko -fno-tree...
Hans-Peter Nilsson [Wed, 25 Apr 2012 22:33:30 +0000 (22:33 +0000)]
re PR target/53120 (ICE exposing strict_low_part / in/out operand thinko -fno-tree-sra)

PR target/53120
* gcc.dg/torture/pr53120.c: New test.

From-SVN: r186844

12 years agore PR target/53120 (ICE exposing strict_low_part / in/out operand thinko -fno-tree...
Hans-Peter Nilsson [Wed, 25 Apr 2012 22:31:36 +0000 (22:31 +0000)]
re PR target/53120 (ICE exposing strict_low_part / in/out operand thinko -fno-tree-sra)

PR target/53120
* config/cris/cris.md ("*andhi_lowpart_v32")
("*andqi_lowpart_v32"): Change first input-only operand from
a (match_operand ...) to (match_dup 0).  Drop alternatives with
const_int-matching constraints for redundancy.
("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
three-operand alternative.

From-SVN: r186843

12 years agore PR target/53110 (GCC-4.7 generates stupid x86_64 asm)
Jakub Jelinek [Wed, 25 Apr 2012 19:40:31 +0000 (21:40 +0200)]
re PR target/53110 (GCC-4.7 generates stupid x86_64 asm)

PR target/53110
* config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
instead expand it as zero extension.

From-SVN: r186839

12 years agoAssert dbx_reg_number doesn't return INVALID_REGNUM
H.J. Lu [Wed, 25 Apr 2012 19:08:23 +0000 (19:08 +0000)]
Assert dbx_reg_number doesn't return INVALID_REGNUM

PR debug/52857
* dwarf2out.c (dbx_reg_number): Assert return value !=
INVALID_REGNUM.

From-SVN: r186837

12 years agoscoped_allocator (scoped_allocator::__outermost): Do not pass non-POD to varargs...
Jonathan Wakely [Wed, 25 Apr 2012 18:03:03 +0000 (18:03 +0000)]
scoped_allocator (scoped_allocator::__outermost): Do not pass non-POD to varargs function.

* include/std/scoped_allocator (scoped_allocator::__outermost): Do
not pass non-POD to varargs function.
* testsuite/20_util/scoped_allocator/1.cc: Fix test.

From-SVN: r186836

12 years agocommon.opt (flag_debug_types_section): Default to 0.
Jakub Jelinek [Wed, 25 Apr 2012 16:59:11 +0000 (18:59 +0200)]
common.opt (flag_debug_types_section): Default to 0.

* common.opt (flag_debug_types_section): Default to 0.
(dwarf_version): Default to 4.
(dwarf_record_gcc_switches): Default to 1.
(dwarf_strict): Default to 0.
* toplev.c (process_options): Don't handle dwarf_strict
or dwarf_version here.
* config/vxworks.c (vxworks_override_options): Don't
test whether dwarf_strict or dwarf_version are negative,
instead test !global_options_set.x_dwarf_*.
* config/darwin.c (darwin_override_options): Default to
dwarf_version 2.
* doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
and -fno-debug-types-section are now the default.

From-SVN: r186835

12 years agocgraphunit.c: Update toplevel comment.
Jan Hubicka [Wed, 25 Apr 2012 16:31:42 +0000 (18:31 +0200)]
cgraphunit.c: Update toplevel comment.

* cgraphunit.c: Update toplevel comment.
(tree_rest_of_compilation): Merge into cgraph_expand_function.
(cgraph_analyze_function): Make static.
(cgraph_decide_is_function_needed): Make static.
(cgraph_add_new_function): Use expand_function instead of
rest_of_compilation.
(clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
Move to cgraph.c
(cgraph_inline_p): Remove.
(cgraph_preserve_function_body_p): Move to ipa-inline-transform.
(init_cgraph): Add comment.
* cgraphbuild.c (record_reference, mark_address, mark_load,
mark_store): Do not call analyze_expr hook.
* cgraph.c: Update toplevel comment.
(clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
Move fere from cgraphunit.c
(cgraph_mark_force_output_node): Move to cgraph.h
* cgraph.h: Reorder so the comments match the function placement.
(cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
(cgraph_mark_force_output_node): Move here from cgraph.c
* tree.c (free_lang_data): Do not clear analyze_expr hook.
* ipa-inline-transform.c (preserve_function_body_p): New function.
(inline_transform): Update.
* langhooks.c (lhd_callgraph_analyze_expr): Remove.
* langhooks.h (lang_hooks_for_callgraph): Remove.
(lang_hooks): Remove callgraph.
* tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
* varpool.c: Remove out of date comment.
* langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
(LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.

From-SVN: r186832

12 years agoUpdate config.sub to 2012-04-18 version from official repo.
Joel Brobecker [Wed, 25 Apr 2012 15:48:28 +0000 (15:48 +0000)]
Update config.sub to 2012-04-18 version from official repo.

ChangeLog:

        * config.sub: Update to 2012-04-18 version from official repo.

From-SVN: r186830

12 years ago[multiple changes]
Arnaud Charlet [Wed, 25 Apr 2012 15:17:25 +0000 (17:17 +0200)]
[multiple changes]

2012-04-25  Gary Dismukes  <dismukes@adacore.com>

* exp_ch9.adb: Add comments on the usage of the
lock-free data structures.

2012-04-25  Vincent Pucci  <pucci@adacore.com>

* exp_intr.adb (Expand_Shift): Convert the left
operand and the operator when the type of the call differs from
the type of the operator.

2012-04-25  Geert Bosch  <bosch@adacore.com>

* stand.ads: Minor comment fix.

2012-04-25  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch4.adb (Analyze_Slice): Handle the case where the prefix
is a string literal. Retrieve the first index from the base type
when slicing a string literal.
* sem_ch12.adb (Check_Private_View): Move the initialization
of the type inside the loop to reflect the changing index.
* sem_eval.adb (Eval_Relational_Op): Retrieve the first index
from the base type when dealing with a string literal.
* sem_res.adb (Resolve_Slice): Retrieve the first index from
the base type when slicing a string literal.
* sem_util.adb (Is_Internally_Generated_Renaming): New routine.
(Is_Object_Reference): String literals may act
as object references only when they are renamed internally.
(Proper_First_Index): New routine.
* sem_util.ads (Proper_First_Index): New routine.

From-SVN: r186829

12 years ago[multiple changes]
Arnaud Charlet [Wed, 25 Apr 2012 15:14:44 +0000 (17:14 +0200)]
[multiple changes]

2012-04-25  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb, csinfo.adb, lib-writ.adb, sem_ch12.adb,
lib-xref.adb: Minor reformatting.

2012-04-25  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch9.adb: Rename Lock_Free_Sub_Type
to Lock_Free_Subprogram. Remove type Subprogram_Id.
Rename LF_Sub_Table to Lock_Free_Subprogram_Table.
(Allow_Lock_Free_Implementation): Renamed to
Allows_Lock_Free_Implementation.  Update the comment on
lock-free restrictions. Code clean up and restructuring.
(Build_Lock_Free_Protected_Subprogram_Body): Update the
profile and related comments. Code clean up and restructuring.
(Build_Lock_Free_Unprotected_Subprogram_Body): Update the
profile and related comments. Code clean up and restructuring.
(Comp_Of): Removed.

From-SVN: r186828

12 years ago[multiple changes]
Arnaud Charlet [Wed, 25 Apr 2012 15:12:34 +0000 (17:12 +0200)]
[multiple changes]

2012-04-25  Vincent Celier  <celier@adacore.com>

* sem_ch12.adb (Inherit_Context): Compare library units, not
names of units, when checking if a unit is already in the context.

2012-04-25  Thomas Quinot  <quinot@adacore.com>

* sem_ch3.adb: Reverse_Storage_Order must be propagated to
untagged derived record types.

2012-04-25  Ed Schonberg  <schonberg@adacore.com>

* lib-xref.adb: Adjust position of end label.

From-SVN: r186827

12 years agore PR middle-end/53089 (gfortran.dg/coarray/atomic_1.f90 and gfortran.dg/coarray...
Jan Hubicka [Wed, 25 Apr 2012 14:54:21 +0000 (16:54 +0200)]
re PR middle-end/53089 (gfortran.dg/coarray/atomic_1.f90 and gfortran.dg/coarray/registering_1.f90)

PR middle-end/53089
* cgraphunit.c (referred_to_p): Move ahead in file to avoid forward declaration.
(cgraph_finalize_function): Finalize them here.
* symtab.c (dump_symtab): Dump ctors and dtors.

From-SVN: r186820

12 years agore PR tree-optimization/52979 (likely wrong code bug w/packed bitfields)
Jakub Jelinek [Wed, 25 Apr 2012 14:27:08 +0000 (16:27 +0200)]
re PR tree-optimization/52979 (likely wrong code bug w/packed bitfields)

PR middle-end/52979
* stor-layout.c (get_best_mode): Don't return mode with bitsize
larger than maxbits.  Don't compute maxbits modulo align.
Also check that unit bytes long store at bitpos / unit * unit
doesn't affect bits beyond bitregion_end.
* expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
would not fit into bitregion_start ... bitregion_end + 1 bit
region.
(store_split_bit_field): Decrease unit close to end of bitregion_end
if access is restricted in order to avoid mutual recursion.

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

From-SVN: r186819

12 years agol_fma_float_5.c: Adjust.
Richard Guenther [Wed, 25 Apr 2012 13:30:19 +0000 (13:30 +0000)]
l_fma_float_5.c: Adjust.

2012-04-25  Richard Guenther  <rguenther@suse.de>

* gcc.target/i386/l_fma_float_5.c: Adjust.
* gcc.target/i386/l_fma_double_4.c: Likewise.
* gcc.target/i386/l_fma_float_2.c: Likewise.
* gcc.target/i386/l_fma_float_6.c: Likewise.
* gcc.target/i386/l_fma_double_1.c: Likewise.
* gcc.target/i386/l_fma_double_5.c: Likewise.
* gcc.target/i386/l_fma_float_3.c: Likewise.
* gcc.target/i386/l_fma_double_2.c: Likewise.
* gcc.target/i386/l_fma_double_6.c: Likewise.
* gcc.target/i386/l_fma_float_4.c: Likewise.
* gcc.target/i386/l_fma_double_3.c: Likewise.
* gcc.target/i386/l_fma_float_1.c: Likewise.

From-SVN: r186817

12 years agore PR tree-optimization/53058 (Another ice in remove_range_assertions)
Jakub Jelinek [Wed, 25 Apr 2012 11:35:38 +0000 (13:35 +0200)]
re PR tree-optimization/53058 (Another ice in remove_range_assertions)

PR tree-optimization/53058
* double-int.h (double_int_max_value, double_int_min_value): New
prototypes.
* double-int.c (double_int_max_value, double_int_min_value): New
functions.
* tree-vrp.c (register_edge_assert_for_2): Compare mask
for LE_EXPR or GT_EXPR with double_int_max_value
instead of double_int_mask.

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

From-SVN: r186816

12 years agore PR middle-end/53088 (gcc.target/i386/pr39082-1.c)
Jan Hubicka [Wed, 25 Apr 2012 11:31:42 +0000 (13:31 +0200)]
re PR middle-end/53088 (gcc.target/i386/pr39082-1.c)

PR middle-end/53088
* gcc.target/i386/pr39082-1.c: Update warning location.

From-SVN: r186815

12 years agotree-vectorizer.h (vect_loop_versioning): Adjust prototype.
Richard Guenther [Wed, 25 Apr 2012 11:19:08 +0000 (11:19 +0000)]
tree-vectorizer.h (vect_loop_versioning): Adjust prototype.

2012-04-25  Richard Guenther  <rguenther@suse.de>

* tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
* tree-vect-loop.c (vect_transform_loop): Adjust.
* tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
the maximum number of iterations for the epilogue loop.
(vect_loop_versioning): Remove case re-using the peeled
epilogue loop.

From-SVN: r186813

12 years agore PR c/52880 (-Woverride-init emitts unexpected error)
Jakub Jelinek [Wed, 25 Apr 2012 09:14:02 +0000 (11:14 +0200)]
re PR c/52880 (-Woverride-init emitts unexpected error)

PR c/52880
* c-typeck.c (set_nonincremental_init,
set_nonincremental_init_from_string): Pass true instead of false
as IMPLICIT to add_pending_init.

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

From-SVN: r186808

12 years agoc-typeck.c (pop_init_level): Improve diagnostics.
Manuel López-Ibáñez [Wed, 25 Apr 2012 08:49:23 +0000 (08:49 +0000)]
c-typeck.c (pop_init_level): Improve diagnostics.

2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* c-typeck.c (pop_init_level): Improve diagnostics.
testsuite/
* gcc.dg/m-un-2.c: Update.
* gcc.dg/20011021-1.c: Update.

From-SVN: r186807

12 years agore PR fortran/52196 (Add -Wrealloc-lhs)
Tobias Burnus [Wed, 25 Apr 2012 06:25:48 +0000 (08:25 +0200)]
re PR fortran/52196 (Add -Wrealloc-lhs)

2012-04-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52196
        * lang.opt (Wrealloc-lhs, Wrealloc-lhs-all): New flags.
        * gfortran.h (gfc_option_t): Add them.
        * options.c (gfc_init_options, gfc_post_options,
        gfc_handle_option): Handle them.
        * invoke.texi: Document them.
        * trans-expr.c (realloc_lhs_warning): New function.
        (gfc_trans_arrayfunc_assign,
        alloc_scalar_allocatable_for_assignment,
        gfc_trans_assignment_1): Use it.

2012-04-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52196
        * gfortran.dg/realloc_on_assign_14.f90: New.

From-SVN: r186806

12 years agocompare-elim.c (try_eliminate_compare): Also handle operands with implicit extensions.
Uros Bizjak [Wed, 25 Apr 2012 06:05:26 +0000 (08:05 +0200)]
compare-elim.c (try_eliminate_compare): Also handle operands with implicit extensions.

* compare-elim.c (try_eliminate_compare): Also handle operands with
implicit extensions.

From-SVN: r186805

12 years agore PR go/52341 (crypto/rand FAILs before Solaris 11)
Ian Lance Taylor [Wed, 25 Apr 2012 04:40:49 +0000 (04:40 +0000)]
re PR go/52341 (crypto/rand FAILs before Solaris 11)

PR go/52341

crypto/rand: Use io.ReadFull when reading from /dev/urandom.

From-SVN: r186803

12 years agore PR go/52583 (Several new go testsuite failues on Solaris)
Ian Lance Taylor [Wed, 25 Apr 2012 04:26:12 +0000 (04:26 +0000)]
re PR go/52583 (Several new go testsuite failues on Solaris)

PR go/52583

net: Solaris fixes.

In particular fix fd_select.go to handle the case where a file
descriptor is closed by one goroutine while another goroutine
is waiting for it.

From-SVN: r186801

12 years agors6000 (SAVE_INLINE_VRS, [...]): Define.
Alan Modra [Wed, 25 Apr 2012 02:32:56 +0000 (12:02 +0930)]
rs6000 (SAVE_INLINE_VRS, [...]): Define.

gcc/
* config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
(no_global_regs_above): Delete.
(no_global_regs): New function.
(rs6000_savres_strategy): Handle vector regs.  Use proper lr_save_p
value for load multiple test.
(savres_routine_syms): Increase size.
(rs6000_savres_routine_name, rs6000_savres_routine_sym,
ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
rather than a number of boolean flags.  Update all callers.
(rs6000_savres_routine_name): Generate vector save/restore names.
(rs6000_savres_routine_sym): Handle vector regs.  Delete forward decl.
(ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
(rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
and using_store_multiple.  Expand uses.  Don't always use r11 as
frame reg when needed for out-of-line saves.  Set up initial offset
for out-of-line vector saves when buying stack frame.  Handle pointer
reg setup for out-of-line fp save.  Emit call to out-of-line vector
save function.  Choose r11 or r12 for vrsave reg when available for
better scheduling.
(rs6000_output_function_prologue): Don't emit .extern for ELF.
(rs6000_emit_epilogue): Choose a better frame reg when restoring
from back-chain to suit out-of-line vector restore functions.  Emit
call to out-of-line vector restore function.  Adjust register used
for cr restore.  Tweak pointer register setup for gpr restore.
* config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
FIXED_R13.
* config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
(V_SAVE_INLINE): Define.
* config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
libgcc/
* config/rs6000/crtsavevr.S: New file.
* config/rs6000/crtrestvr.S: New file.
* config/rs6000/t-savresfgpr: Build the above.
* config/rs6000/t-netbsd: Likewise.

From-SVN: r186800

12 years agors6000.c (rs6000_savres_strategy): Allow out-of-line save/restore for large frames.
Alan Modra [Wed, 25 Apr 2012 02:21:09 +0000 (11:51 +0930)]
rs6000.c (rs6000_savres_strategy): Allow out-of-line save/restore for large frames.

* config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
out-of-line save/restore for large frames.  Don't disable
out-of-line saves on ABI_AIX when using static chain reg.
(rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
clobber static chain reg, and tweak for out-of-line gpr saves
that use r1.

From-SVN: r186799

12 years agors6000.c (START_USE, [...]): Define.
Alan Modra [Wed, 25 Apr 2012 02:18:56 +0000 (11:48 +0930)]
rs6000.c (START_USE, [...]): Define.

* config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
(rs6000_emit_prologue): Use the above to catch register overlap.

From-SVN: r186798

12 years agors6000.c (rs6000_emit_stack_reset): Delete forward decl.
Alan Modra [Wed, 25 Apr 2012 02:15:48 +0000 (11:45 +0930)]
rs6000.c (rs6000_emit_stack_reset): Delete forward decl.

* config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
decl.  Move logic selecting update reg to callers.  Update all callers.
(rs6000_emit_allocate_stack): Add copy_off param.
(emit_frame_save): Don't handle reg+reg addressing.
(ptr_regno_for_savres): New function, extracted from..
(rs6000_emit_savres_rtx): ..here.  Add lr_offset param.
(rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
Set frame_reg_rtx to r11 whenever r11 is needed, and merge
frame offset adjustment for out-of-line save with copy from sp.
Simplify condition controlling whether cr is saved early or
late.  Use ptr_regno_for_savres to verify correct reg is set
up for out-of-line saves.  Pass the actual pointer reg used to
rs6000_emit_savres_rtx so rtl matches insns in out-of-line
function.  Rearrange spe vars so code is similar to that
elsewhere in this function.  Don't update frame_off when spe
save code will restore r11.  Use emit_frame_save for spe and
gpr saves.  Consolidate darwin out-of-line gpr setup with that
for other abis.  Don't assume frame_offset is zero and frame
reg is sp when setting up altivec reg saves, and calculate
exact offset requirement.
(rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off.  Tidy
spe restore code.  Consolidate darwin out-of-line gpr setup
with that for other abis.

From-SVN: r186797

12 years agors6000.c (rs6000_frame_related): Don't emit a REG_FRAME_RELATED_EXPR note when...
Alan Modra [Wed, 25 Apr 2012 02:12:12 +0000 (11:42 +0930)]
rs6000.c (rs6000_frame_related): Don't emit a REG_FRAME_RELATED_EXPR note when...

* config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
REG_FRAME_RELATED_EXPR note when the instruction exactly matches
the replacement.
(emit_frame_save): Delete frame_ptr param.  Rename total_size to
frame_reg_to_sp.
(rs6000_emit_prologue): Add sp_off.  Update rs6000_frame_related
and emit_frame_save calls.  Cope with possibly missing note.

From-SVN: r186796

12 years agoi386-cpuinfo.c: Set __cpu_vendor always.
Sriraman Tallam [Wed, 25 Apr 2012 02:04:22 +0000 (02:04 +0000)]
i386-cpuinfo.c: Set __cpu_vendor always.

2012-04-24  Sriraman Tallam  <tmsriram@google.com>

* libgcc/config/i386/i386-cpuinfo.c: Set __cpu_vendor always.

From-SVN: r186795

12 years agore PR libstdc++/52689 (static linking with libstdc++ fails)
Benjamin Kosnik [Wed, 25 Apr 2012 01:17:57 +0000 (01:17 +0000)]
re PR libstdc++/52689 (static linking with libstdc++ fails)

2012-04-24  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/52689
* testsuite/17_intro/static.cc: New.

From-SVN: r186794

12 years agoDaily bump.
GCC Administrator [Wed, 25 Apr 2012 00:17:56 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r186793

12 years agoThis patch adds new builtins to check for cpu type and features.
Sriraman Tallam [Wed, 25 Apr 2012 00:08:37 +0000 (00:08 +0000)]
This patch adds new builtins to check for cpu type and features.

2012-04-24  Sriraman Tallam  <tmsriram@google.com>

This patch adds new builtins to check for cpu type and features.

* __builtin_cpu_is ("<CPUNAME>")
* __builtin_cpu_supports ("<FEATURE>")

apart from the cpu init builtin, __builtin_cpu_init.

List of CPU names :

* "amd"
* "intel"
* "atom"
* "core2"
* "corei7"
* "nehalem"
* "westmere"
* "sandybridge"
* "amdfam10h"
* "barcelona"
* "shanghai"
* "istanbul"
* "bdver1"
* "bdver2"

List of CPU features :

* "cmov"
* "mmx"
* "popcnt"
* "sse"
* "sse2"
* "sse3"
* "ssse3"
* "sse4.1"
* "sse4.2"
* "avx"

        * config/i386/i386.c (build_processor_model_struct): New function.
        (make_var_decl): New function.
        (fold_builtin_cpu): New function.
        (ix86_fold_builtin): New function.
        (make_cpu_type_builtin): New function.
        (ix86_init_platform_type_builtins): New function.
        (ix86_expand_builtin): Expand new builtins by folding them.
        (ix86_init_builtins): Make new builtins to detect CPU type.
        (TARGET_FOLD_BUILTIN): New macro.
        (IX86_BUILTIN_CPU_INIT): New enum value.
        (IX86_BUILTIN_CPU_IS): New enum value.
        (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
        * config/i386/i386-builtin-types.def: New function type.
        * testsuite/gcc.target/builtin_target.c: New testcase.
        * doc/extend.texi: Document builtins.

        * libgcc/config/i386/i386-cpuinfo.c: New file.
        * libgcc/config/i386/t-cpuinfo: New file.
        * libgcc/config.host: Include t-cpuinfo.
        * libgcc/config/i386/libgcc-glibc.ver: Version symbol __cpu_model.

From-SVN: r186789

12 years agounwind-dw2-fde-dip.c: Define USE_PT_GNU_EH_FRAME for BIONIC.
Chao-ying Fu [Tue, 24 Apr 2012 22:41:33 +0000 (22:41 +0000)]
unwind-dw2-fde-dip.c: Define USE_PT_GNU_EH_FRAME for BIONIC.

2012-04-24  Chao-ying Fu  <fu@mips.com>

* unwind-dw2-fde-dip.c: Define USE_PT_GNU_EH_FRAME for BIONIC.

From-SVN: r186788

12 years ago* vi.po: Update.
Joseph Myers [Tue, 24 Apr 2012 22:16:24 +0000 (23:16 +0100)]
* vi.po: Update.

From-SVN: r186786

12 years ago* sv.po: Update.
Joseph Myers [Tue, 24 Apr 2012 22:14:54 +0000 (23:14 +0100)]
* sv.po: Update.

From-SVN: r186784

12 years agocommon.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
Olivier Hainque [Tue, 24 Apr 2012 20:34:30 +0000 (20:34 +0000)]
common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.

        * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
        * toplev.c (process_options): Default to dwarf_version 2.
        * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
        and dwarf_version 2.

From-SVN: r186783

12 years agogotest: Remove race in use of ../testdata.
Ian Lance Taylor [Tue, 24 Apr 2012 20:13:12 +0000 (20:13 +0000)]
gotest: Remove race in use of ../testdata.

From-SVN: r186781

12 years agotree-pretty-print.h (default_tree_printer): Do not declare.
Manuel López-Ibáñez [Tue, 24 Apr 2012 19:21:21 +0000 (19:21 +0000)]
tree-pretty-print.h (default_tree_printer): Do not declare.

2012-04-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>

gcc/
* tree-pretty-print.h (default_tree_printer): Do not declare.
* tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
intl.h.
(default_tree_diagnostic_starter): Make static.
(default_tree_printer): Move to here. Make static.
(tree_diagnostics_defaults): New.
* tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
* tree.c (free_lang_data): Use tree_diagnostics_defaults.
* toplev.c: Do not include tree-pass.h.
(default_tree_printer): Move from here.
(general_init): Use tree_diagnostics_defaults.

From-SVN: r186780

12 years agomksysinfo: Only define PathMax if PATH_MAX is defined.
Ian Lance Taylor [Tue, 24 Apr 2012 19:12:26 +0000 (19:12 +0000)]
mksysinfo: Only define PathMax if PATH_MAX is defined.

From-SVN: r186778

12 years agoconfig.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
Chao-ying Fu [Tue, 24 Apr 2012 18:23:12 +0000 (18:23 +0000)]
config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.

2012-04-24  Chao-ying Fu  <fu@mips.com>

* config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
(mips*-*-linux*): Append mips/linux-common.h to tm_file.
* config/mips/gnu-user.h
(SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
(GNU_USER_TARGET_LINK_SPEC): New define.
(LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
(LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
(GNU_USER_TARGET_MATHFILE_SPEC): New define.
(ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
GNU_USER_TARGET_ENDFILE_SPEC.
* config/mips/gnu-user64.h (LIB_SPEC): Remove.
(GNU_USER_TARGET_LINK_SPEC): New define.
(LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
* config/mips/linux-common.h: New file.

From-SVN: r186777

12 years agore PR testsuite/52641 (Test cases fail for 16-bit int targets)
Georg-Johann Lay [Tue, 24 Apr 2012 17:18:54 +0000 (17:18 +0000)]
re PR testsuite/52641 (Test cases fail for 16-bit int targets)

PR testsuite/52641
PR tree-optimizations/52891
* gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int.

From-SVN: r186776

12 years agore PR c++/52363 (Presence/absence of -pedantic compilation affects run-time behavior)
Paolo Carlini [Tue, 24 Apr 2012 16:25:15 +0000 (16:25 +0000)]
re PR c++/52363 (Presence/absence of -pedantic compilation affects run-time behavior)

/cp
2012-04-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52363
* call.c (tourney, perform_overload_resolution,
build_operator_new_call, build_user_type_conversion_1,
build_user_type_conversion, perform_overload_resolution,
add_template_candidate, add_template_candidate_real,
add_template_conv_candidate, add_builtin_candidates,
add_builtin_candidate, build_builtin_candidate,
add_conv_candidate, add_function_candidate, implicit_conversion,
reference_binding, build_list_conv, conditional_conversion,
add_candidates, can_convert_array, build_aggr_conv,
build_array_conv, build_complex_conv, conditional_conversion):
Add tsubst_flags_t parameter.
(joust): Likewise, use it to handle SFINAE as if pedantic.
(add_list_candidates, build_integral_nontype_arg_conv,
perform_overload_resolution, build_new_function_call,
build_operator_new_call, build_op_call_1,
build_conditional_expr_1, build_new_op_1, convert_like_real,
convert_arg_to_ellipsis, convert_default_arg,
convert_for_arg_passing, build_over_call,
build_new_method_call_1, can_convert_arg, can_convert_arg_bad,
perform_implicit_conversion_flags,
perform_direct_initialization_if_possible,
initialize_reference): Adjust.
* typeck.c (casts_away_constness, casts_away_constness_r):
Add tsubst_flags_t parameter.
(convert_arguments, check_for_casting_away_constness,
build_static_cast_1, build_ptrmemfunc, convert_for_assignment):
Adjust.
* decl.c (reshape_init_r, check_default_argument): Likewise.
* cp-gimplify.c (cxx_omp_clause_apply_fn): Likewise.
* pt.c (convert_nontype_argument, check_non_deducible_conversion):
Likewise.
* init.c (build_new_1): Likewise.
* cvt.c (convert_to_reference, ocp_convert, build_type_conversion,
build_expr_type_conversion, ): Likewise.
* search.c (check_final_overrider): Likewise.
* cp-tree.h (build_user_type_conversion,
build_operator_new_call, can_convert, can_convert_arg,
can_convert_arg_bad, convert_default_arg,
convert_arg_to_ellipsis, convert_for_arg_passing):
Adjust declaration.

/testsuite
2012-04-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52363
* g++.dg/cpp0x/sfinae35.C: New.
* g++.dg/cpp0x/sfinae36.C: Likewise.

From-SVN: r186774

12 years agocompiler: Fix order of evalation for m[0] = len(m) when m is a map.
Ian Lance Taylor [Tue, 24 Apr 2012 16:24:38 +0000 (16:24 +0000)]
compiler: Fix order of evalation for m[0] = len(m) when m is a map.

From-SVN: r186772

12 years agore PR target/47197 (ICE in gimplify_expr, at gimplify.c:7153 on AltiVec code (vec_dst))
Bill Schmidt [Tue, 24 Apr 2012 15:51:58 +0000 (15:51 +0000)]
re PR target/47197 (ICE in gimplify_expr, at gimplify.c:7153 on AltiVec code (vec_dst))

gcc:

2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/47197
* config/rs6000/rs6000-c.c (fully_fold_convert): New function.
(altivec_build_resolved_builtin): Call fully_fold_convert.

gcc/testsuite:

2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/47197
* gcc.target/powerpc/pr47197.c: New test.

From-SVN: r186771

12 years agoi386.md (*addsi_2_zext): Remove wrong assert.
Uros Bizjak [Tue, 24 Apr 2012 15:23:22 +0000 (17:23 +0200)]
i386.md (*addsi_2_zext): Remove wrong assert.

* config/i386.md (*addsi_2_zext): Remove wrong assert.
(*addsi_3_zext): Ditto.

From-SVN: r186769

12 years agore PR target/53065 (ICE replace_reg_with_saved_mem, at caller-save.c:1125)
Georg-Johann Lay [Tue, 24 Apr 2012 15:21:29 +0000 (15:21 +0000)]
re PR target/53065 (ICE replace_reg_with_saved_mem, at caller-save.c:1125)

PR target/53065
* config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.

From-SVN: r186768

12 years agocompiler: Reject invalid composite literals.
Ian Lance Taylor [Tue, 24 Apr 2012 14:54:17 +0000 (14:54 +0000)]
compiler: Reject invalid composite literals.

From-SVN: r186766

12 years agore PR tree-optimization/53085 (writes to volatile struct members is missing)
Richard Guenther [Tue, 24 Apr 2012 14:41:49 +0000 (14:41 +0000)]
re PR tree-optimization/53085 (writes to volatile struct members is missing)

2012-04-24  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53085
* tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
stores.

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

From-SVN: r186764

12 years agotree-if-conv.c (main_tree_if_conversion): Move bb under ENABLE_CHECKING.
Richard Biener [Tue, 24 Apr 2012 14:18:40 +0000 (14:18 +0000)]
tree-if-conv.c (main_tree_if_conversion): Move bb under ENABLE_CHECKING.

2012-04-24  Richard Guenther  <rguenther@suse.de>

* tree-if-conv.c (main_tree_if_conversion): Move bb under
ENABLE_CHECKING.

From-SVN: r186763

12 years agogenattrtab: avoid NULL-deref on error
Jim Meyering [Tue, 24 Apr 2012 12:07:30 +0000 (12:07 +0000)]
genattrtab: avoid NULL-deref on error

* genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
absence of an define_enum call.

From-SVN: r186761

12 years agotree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If the epilogue loop is...
Richard Guenther [Tue, 24 Apr 2012 11:25:21 +0000 (11:25 +0000)]
tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If the epilogue loop is not re-used as unvectorized version record the its...

2012-04-24  Richard Guenther  <rguenther@suse.de>

* tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
the epilogue loop is not re-used as unvectorized version
record the its maximum number of iterations.

From-SVN: r186760

12 years agofixincl.c (fix_with_system): Add missing specifier.
Tristan Gingold [Tue, 24 Apr 2012 09:24:55 +0000 (09:24 +0000)]
fixincl.c (fix_with_system): Add missing specifier.

2012-04-24  Tristan Gingold  <gingold@adacore.com>

        * fixincl.c (fix_with_system): Add missing specifier.
        * configure.ac: Default to twoprocess on vms.
        * configure: Regenerate.

From-SVN: r186759

12 years agotree-ssa-forwprop.c (simplify_bitwise_binary): Don't directly use def1/def2.
Andrew Pinski [Tue, 24 Apr 2012 08:43:33 +0000 (08:43 +0000)]
tree-ssa-forwprop.c (simplify_bitwise_binary): Don't directly use def1/def2.

2012-04-24  Andrew Pinski  <apinski@cavium.com>

* tree-ssa-forwprop.c (simplify_bitwise_binary):
Don't directly use def1/def2.

From-SVN: r186757

12 years agore PR tree-optimization/53098 (tree-vect-loop.c:1414:19: error: comparison between...
Richard Guenther [Tue, 24 Apr 2012 08:06:20 +0000 (08:06 +0000)]
re PR tree-optimization/53098 (tree-vect-loop.c:1414:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare])

2012-04-24  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53098
* tree-vect-loop.c (vect_analyze_loop_operations): Fixup
comparison sign.

From-SVN: r186754

12 years agoAdd myself in Write After Approval list in MAINTAINERS file.
Naveen H.S [Tue, 24 Apr 2012 07:49:14 +0000 (07:49 +0000)]
Add myself in Write After Approval list in MAINTAINERS file.

From-SVN: r186753

12 years agocompare_tests: Append '/' to make 'find' traverse symlinked directories.
Manuel López-Ibáñez [Tue, 24 Apr 2012 07:22:41 +0000 (07:22 +0000)]
compare_tests: Append '/' to make 'find' traverse symlinked directories.

2012-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>

contrib/
* compare_tests: Append '/' to make 'find' traverse
symlinked directories.

From-SVN: r186750

12 years agore PR tree-optimization/33512 (Simple bitwise simplification missed)
Andrew Pinski [Tue, 24 Apr 2012 07:05:09 +0000 (07:05 +0000)]
re PR tree-optimization/33512 (Simple bitwise simplification missed)

2012-04-24  Andrew Pinski  <apinski@cavium.com>

PR tree-opt/33512
* tree-ssa-forwprop.c (defcodefor_name): New function.
(simplify_bitwise_binary): Use defcodefor_name instead of manually
Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
Simplify "(~X | Y) & X" to "X & Y" and
"(~X & Y) | X" to "X | Y".

2012-04-24  Andrew Pinski  <apinski@cavium.com>

PR tree-opt/33512
* gcc.dg/tree-ssa/andor-3.c: New testcase.
* gcc.dg/tree-ssa/andor-4.c: New testcase.
* gcc.dg/tree-ssa/andor-5.c: New testcase.

From-SVN: r186749

12 years agorecog.c (insn_invalid_p): Add IN_GROUP parameter and use validate_change to add clobb...
Andreas Krebbel [Tue, 24 Apr 2012 07:01:52 +0000 (07:01 +0000)]
recog.c (insn_invalid_p): Add IN_GROUP parameter and use validate_change to add clobbers if...

2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* recog.c (insn_invalid_p): Add IN_GROUP parameter and use
validate_change to add clobbers if IN_GROUP is nonzero.
(verify_changes): Call insn_invalid_p with IN_GROUP set to true.
* recog.h (insn_invalid_p): Add IN_GROUP parameter to function
prototype.
* gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
set to false.
* config/s390/s390.c (insn_invalid_p): Likewise.

From-SVN: r186748

12 years agoUse braced string notation where applicable for v850.md
Naveen H.S [Tue, 24 Apr 2012 06:59:57 +0000 (06:59 +0000)]
Use braced string notation where applicable for v850.md

From-SVN: r186747

12 years agoUse braced string notation where applicable for h8300.md
Naveen H.S [Tue, 24 Apr 2012 06:10:14 +0000 (06:10 +0000)]
Use braced string notation where applicable for h8300.md

From-SVN: r186744

12 years agore PR middle-end/53084 (GCC cannot handle array initialization of string constant...
Jakub Jelinek [Tue, 24 Apr 2012 06:07:30 +0000 (08:07 +0200)]
re PR middle-end/53084 (GCC cannot handle array initialization of string constant with point arithmetic properly)

PR middle-end/53084
* varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR
of MEM_REF.
(output_addressed_constants): Likewise.

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

From-SVN: r186742

12 years agore PR target/52999 (ICE, segmentation fault in c_tree_printer)
Jakub Jelinek [Tue, 24 Apr 2012 06:03:43 +0000 (08:03 +0200)]
re PR target/52999 (ICE, segmentation fault in c_tree_printer)

PR middle-end/52999
* varasm.c (get_section): Don't ICE for section conflicts with
built-in section kinds.

From-SVN: r186741

12 years agocompiler: Error for invalid use of ... in call.
Ian Lance Taylor [Tue, 24 Apr 2012 05:55:27 +0000 (05:55 +0000)]
compiler: Error for invalid use of ... in call.

From-SVN: r186739

12 years agos390.h (LINK_SPEC): Remove, no longer needed.
DJ Delorie [Tue, 24 Apr 2012 01:53:20 +0000 (21:53 -0400)]
s390.h (LINK_SPEC): Remove, no longer needed.

* config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
(LIBSTDCXX): Change to CPP2.

From-SVN: r186737

12 years agoDaily bump.
GCC Administrator [Tue, 24 Apr 2012 00:17:57 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r186734

12 years agonoexcept15.C: Adjust for Rev 186726 library changes.
Paolo Carlini [Mon, 23 Apr 2012 23:55:42 +0000 (23:55 +0000)]
noexcept15.C: Adjust for Rev 186726 library changes.

2012-04-23  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/noexcept15.C: Adjust for Rev 186726 library changes.

From-SVN: r186730

12 years agoCheck if MASK_/TARGET_ macros defined for extra_masks
H.J. Lu [Mon, 23 Apr 2012 23:32:54 +0000 (23:32 +0000)]
Check if MASK_/TARGET_ macros defined for extra_masks

2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>

PR bootstrap/52878
* opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
extra_masks.

From-SVN: r186729

12 years agogo-lang.c (go_langhook_init): Set MPFR precision to 256.
Ian Lance Taylor [Mon, 23 Apr 2012 21:39:12 +0000 (21:39 +0000)]
go-lang.c (go_langhook_init): Set MPFR precision to 256.

* go-lang.c (go_langhook_init): Set MPFR precision to 256.

time: Adjust float expression so that it first integer context.

From-SVN: r186727

12 years agotype_traits (is_nothrow_destructible): Implement.
Daniel Krugler [Mon, 23 Apr 2012 21:34:06 +0000 (21:34 +0000)]
type_traits (is_nothrow_destructible): Implement.

2012-04-23  Daniel Krugler  <daniel.kruegler@googlemail.com>

* include/std/type_traits (is_nothrow_destructible): Implement.
(is_destructible): Implement LWG 2049.
* testsuite/util/testsuite_tr1.h: Add tests.
* testsuite/20_util/is_nothrow_destructible/value.cc: New.
* testsuite/20_util/is_nothrow_destructible/requirements/typedefs.cc:
* testsuite/20_util/is_nothrow_destructible/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_destructible/value.cc: Adjust and extend.
* testsuite/20_util/is_default_constructible/value.cc: Tweak.
* testsuite/20_util/is_constructible/value-2.cc: Likewise.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
dg-error line numbers.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.
* testsuite/20_util/declval/requirements/1_neg.cc: Likewise.

From-SVN: r186726

12 years agoi386.md (*add<mode>_2): Add r/r/0 alternative.
Uros Bizjak [Mon, 23 Apr 2012 21:24:56 +0000 (23:24 +0200)]
i386.md (*add<mode>_2): Add r/r/0 alternative.

* config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
(*addsi_2_zext): Ditto.
(*add<mode>_3): Ditto.
(*addsi_3_zext): Ditto.
(*add<mode>_5): Ditto.

From-SVN: r186725

12 years agocompiler: Correct handling of negative zero floating constant.
Ian Lance Taylor [Mon, 23 Apr 2012 20:49:33 +0000 (20:49 +0000)]
compiler: Correct handling of negative zero floating constant.

From-SVN: r186722

12 years agotree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0 (C & B) to (A...
Andrew Pinski [Mon, 23 Apr 2012 19:37:59 +0000 (19:37 +0000)]
tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0 (C & B) to (A OP0) & B.

2012-04-23  Andrew Pinski  <apinski@cavium.com>

* tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
(C & B) to (A OP0) & B.

2012-04-23  Andrew Pinski  <apinski@cavium.com>

* gcc.dg/tree-ssa/forwprop-17.c: New testcase.

From-SVN: r186721

12 years agoexpr.c (expand_expr_real_1): Remove setting parent's alias set for temporaries create...
Martin Jambor [Mon, 23 Apr 2012 17:17:48 +0000 (19:17 +0200)]
expr.c (expand_expr_real_1): Remove setting parent's alias set for temporaries created for a bitfield...

2012-04-23  Martin Jambor  <mjambor@suse.cz>

* expr.c (expand_expr_real_1): Remove setting parent's alias set for
temporaries created for a bitfield (reverting revision 122014).

From-SVN: r186718

12 years agolibgo: Make sure log/syslog subdirectory exists before using it.
Ian Lance Taylor [Mon, 23 Apr 2012 17:02:54 +0000 (17:02 +0000)]
libgo: Make sure log/syslog subdirectory exists before using it.

From-SVN: r186715

12 years agotree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify the condition using is_gimpl...
Richard Guenther [Mon, 23 Apr 2012 14:38:16 +0000 (14:38 +0000)]
tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify the condition using is_gimple_condexpr and avoid the not necessary...

2012-04-23  Richard Guenther  <rguenther@suse.de>

* tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
the condition using is_gimple_condexpr and avoid the not necessary
boolification.
(set_prologue_iterations): Likewise.
(vect_loop_versioning): Likewise.

From-SVN: r186710

12 years agore PR regression/53076 (gcc.dg/torture/builtin-explog-1.c, gcc.dg/torture/builtin...
Bill Schmidt [Mon, 23 Apr 2012 14:06:11 +0000 (14:06 +0000)]
re PR regression/53076 (gcc.dg/torture/builtin-explog-1.c, gcc.dg/torture/builtin-power-1.c at -O0)

gcc-testsuite:

2012-04-23  Bill Schmidt  <wschmidt@linux.ibm.com>

PR regression/53076
* gcc.dg/torture/builtin-explog-1.c: Skip if -O0.
* gcc.dg/torture/builtin-power-1.c: Likewise.

From-SVN: r186709

12 years agodefineclass.cc (MAJOR_1_7, MINOR_1_7): New.
Andrew Haley [Mon, 23 Apr 2012 13:33:32 +0000 (13:33 +0000)]
defineclass.cc (MAJOR_1_7, MINOR_1_7): New.

2012-04-23  Andrew Haley  <aph@redhat.com>

* defineclass.cc (MAJOR_1_7,  MINOR_1_7): New.
(parse): Allow MAJOR_1_7 classfile version.

From-SVN: r186707

12 years agore PR tree-optimization/53070 (ICE: in execute_cse_reciprocals, at tree-ssa-math...
Richard Guenther [Mon, 23 Apr 2012 12:47:02 +0000 (12:47 +0000)]
re PR tree-optimization/53070 (ICE: in execute_cse_reciprocals, at tree-ssa-math-opts.c:513 with -O -ffast-math -ftree-loop-if-convert -fno-tree-loop-im)

2012-04-23  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53070
* tree-if-conv.c (combine_blocks): Free predicates in all blocks.
(main_tree_if_conversion): Verify we succeeded in that.

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

From-SVN: r186704

12 years agore PR libstdc++/53080 (tuple interface to std::array doesn't check bounds)
Paolo Carlini [Mon, 23 Apr 2012 12:26:43 +0000 (12:26 +0000)]
re PR libstdc++/53080 (tuple interface to std::array doesn't check bounds)

2012-04-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/53080
* include/std/array (tuple_element, get): static_assert I < N.
* testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
New.
* testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
* testsuite/23_containers/array/tuple_interface/tuple_element.cc: Fix.

From-SVN: r186702

12 years agore PR testsuite/53046 (New libstdc++ test failures)
Chris Jefferson [Mon, 23 Apr 2012 11:17:28 +0000 (11:17 +0000)]
re PR testsuite/53046 (New libstdc++ test failures)

2012-04-23  Chris Jefferson  <chris@bubblescope.net>

PR testsuite/53046
* testsuite/25_algorithms/stable_partition/mem_check.cc: Fix size
of array A.
* testsuite/25_algorithms/stable_sort/mem_check.cc: Likewise.

From-SVN: r186701

12 years agolto-symtab.c (lto_cgraph_replace_node): Do not call mark_reahcable_node.
Jan Hubicka [Mon, 23 Apr 2012 11:13:46 +0000 (13:13 +0200)]
lto-symtab.c (lto_cgraph_replace_node): Do not call mark_reahcable_node.

* lto-symtab.c (lto_cgraph_replace_node): Do not call
mark_reahcable_node.
* cgraph.c (cgraph_remove_node): Do not clear reachable.
(cgraph_mark_reachable_node): Remove.
(cgraph_mark_force_output_node): Do not set reachable.
(dump_cgraph_node): Do not dump reachable.
(cgraph_create_virtual_clone): Do not set reachable.
* cgraph.h (cgraph_node): Remove reachable flag.
(varpool_node): Remove reachable flag.
(cgraph_mark_if_needed): Remove.
(cgraph_mark_reachable_node): Remove.
* tree-emutls.c (ipa_lower_emutls): Do not check
reachable.
* cgraphunit.c (cgraph_finalize_function): Do not mark node as
reachable.
(cgraph_add_new_function): Likewise.
(cgraph_mark_if_needed): Remove.
(cgraph_analyze_function): Do not set target as reachable.
(process_function_and_variable_attributes): Do not care about dllexport.
(cgraph_analyze_functions): Do not set reachable flags.
(cgraph_mark_functions_to_output): Do not check reachability.
(cgraph_copy_node_for_versioning): Do not set reachable flag.
(dbxout_expand_expr): Update.
* c-decl.c (merge_decls): Do not track changed externs.
* ipa.c: Include pointer-set.h
(enqueue_cgraph_node): Use reachable pointer set.
(process_references): Likewise.
(cgraph_remove_unreachable_nodes): Likewise.
(whole_program_function_and_variable_visibility): Do not recompute reachable.
* trans-mem.c (ipa_tm_execute): Do not check reachable flag.

From-SVN: r186700

12 years agoextend.texi (AVR Named Address Spaces): Fix typos.
Georg-Johann Lay [Mon, 23 Apr 2012 10:23:04 +0000 (10:23 +0000)]
extend.texi (AVR Named Address Spaces): Fix typos.

* doc/extend.texi (AVR Named Address Spaces): Fix typos.

From-SVN: r186697

12 years agore PR c/53060 (Typo in build_binary_op for scalar-vector ops)
Richard Biener [Mon, 23 Apr 2012 10:20:05 +0000 (10:20 +0000)]
re PR c/53060 (Typo in build_binary_op for scalar-vector ops)

2012-04-23  Richard Guenther  <rguenther@suse.de>

PR c/53060
* c-typeck.c (build_binary_op): Fix typo.

* gcc.dg/pr53060.c: New testcase.

From-SVN: r186696

12 years agore PR tree-optimization/52891 (ICE in adjust_bool_pattern)
Jakub Jelinek [Mon, 23 Apr 2012 10:13:39 +0000 (12:13 +0200)]
re PR tree-optimization/52891 (ICE in adjust_bool_pattern)

PR tree-optimizations/52891
* tree-vect-patterns.c (adjust_bool_pattern): Use
build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
but with non-standard precision.

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

From-SVN: r186694

12 years ago* tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL tree refs.
Jan Hubicka [Mon, 23 Apr 2012 10:04:48 +0000 (12:04 +0200)]
* tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL tree refs.

From-SVN: r186693

12 years agoDaily bump.
GCC Administrator [Mon, 23 Apr 2012 00:18:11 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r186692

12 years agolto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
Jan Hubicka [Sun, 22 Apr 2012 21:28:07 +0000 (23:28 +0200)]
lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.

* lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
* cgraphbuild.c (record_reference, record_type_list, mark_address,
mark_load, mark_store): Do not mark varpool nodes as needed.
* cgraph.c (cgraph_new_nodes): Remove.
(cgraph_create_function_alias): Do not mark nodes as reachable.
(cgraph_add_thunk): Likewise.
(cgraph_mark_reachable_node): Do not manage the queue.
* cgraph.h (cgraph_node): Remove next_needed.
(varpool_nodes_queue): Remove next_needed and prev_needed.
(x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
(cgraph_new_nodes): Declare.
(x_varpool_nodes_queue, varpool_nodes_queue); Remove.
(varpool_analyze_pending_decls): Remove.
(varpool_analyze_node): New.
(varpool_mark_needed_node): Remove.
(varpool_first_variable, varpool_next_variable): New inlines.
(varpool_first_static_initializer, varpool_next_static_initializer): Update.
(FOR_EACH_STATIC_VARIABLE): Remove unused walker.
(varpool_first_defined_variable): New inline.
(varpool_next_defined_variable): New inline
(FOR_EACH_VARIABLE): Reimplement.
(FOR_EACH_DEFINED_VARIABLE): Reimplement.
* toplev.c (wrapup_global_declaration_2): Use analyzed instead of
needed flag.
* cgraphunit.c (cgraph_new_nodes): Declare here.
(enqueue_node): New function.
(cgraph_process_new_functions): update for new
node set; when constructing cgraph enqueue node for processing.
(cgraph_add_new_function): Use new node set.
(process_function_and_variable_attributes): Do not set varpool needed
flags.
(referred_to_p): New function.
(varpool_finalize_decl): Move here from varpool.c; enqueue needed node
when varpool is in construction.
(cgraph_analyze_functions): Rewrite.
(cgraph_expand_all_functions): Update.
(cgraph_output_in_order): Do not analyze pending decls; do not set needed flags.
(cgraph_optimize): Do not analyze pending decls.
* lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects in other
partition; do not mark node as needed.
* dwarf2out.c (reference_to_unused): Use analyzed flag.
(premark_types_used_by_global_vars_helper): Likewise.
* ipa.c (process_references): Do not call varpool_mark_needed_node.
(cgraph_remove_unreachable_nodes): Do not rely on varpool and
cgrpah queues.
(function_and_variable_visibility): Do not mark node as needed.
(whole_program_function_and_variable_visibility): Likewise.
* Makefile.in (gt-varpool.h): No longer needed.
* passes.c (execute_one_pass, execute_ipa_pass_list): Update.
(ipa_write_summaries): Do not use needed flag.
* varpool.c: Do not include gt-varpool.h
(x_varpool_nodes_queue, x_varpool_last_needed_node,
x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
Remove.
(varpool_remove_node): Do not update the lists.
(dump_varpool_node): Do not dump needed flag.
(varpool_enqueue_needed_node): Remove.
(varpool_mark_needed_node): Remove.
(varpool_reset_queue): Remove.
(varpool_finalize_decl): Move to cgraphunit.c
(varpool_analyze_node): New functions based on former
varpool_analyze_pending_decls.
(varpool_analyze_pending_decls): Remove.
(varpool_assemble_decl): Do not update the lists.
(enqueue_node): New function.
(varpool_remove_unreferenced_decls): Rewrite.
(varpool_empty_needed_queue): Remove.
(add_new_static_var): Do not mark node as needed.
(varpool_create_variable_alias): Handle expansion state
creation.
* except.c (output_ttype): Do not mark node as needed.
* varasm.c (mark_decl_referenced): Do not use mark_needed_node.
* tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
Likewise.
* tree-switch-conversion.c (build_one_array): Likewise.

* class.c (build_utf8_ref): Do not mark varpool node as needed.

* gcc-interface/utils.c (gnat_write_global_declarations): Do not mark
needed node.

* lto-partition.c (partition_varpool_node_p): Do not use needed flag.

* decl2.c (maybe_make_one_only): Mark keyed COMDATs as USED so they
gets finalized.

From-SVN: r186687

12 years agomksysinfo: More fixes to emulate master Go library.
Ian Lance Taylor [Sun, 22 Apr 2012 20:07:23 +0000 (20:07 +0000)]
mksysinfo: More fixes to emulate master Go library.

From-SVN: r186685

12 years agomksysinfo: Define more structs.
Ian Lance Taylor [Sun, 22 Apr 2012 19:26:01 +0000 (19:26 +0000)]
mksysinfo: Define more structs.

From-SVN: r186683

12 years agore PR c/44774 (-Werror=edantic)
Manuel López-Ibáñez [Sun, 22 Apr 2012 19:17:47 +0000 (19:17 +0000)]
re PR c/44774 (-Werror=edantic)

2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR c/44774
gcc/
* doc/invoke.texi (pedantic): Rename to Wpedantic.
* common.opt (Wpedantic): New.
(pedantic): Alias Wpedantic.
* diagnostic.c (warning_at): Likewise.
* c-decl.c (diagnose_mismatched_decls): Likewise.
(build_array_declarator): Likewise.
(mark_forward_parm_decls):
(check_bitfield_type_and_width): Likewise.
(grokdeclarator): Likewise.
(grokfield): Likewise.
(finish_struct): Likewise.
(build_enumerator): Likewise.
(store_parm_decls_oldstyle): Likewise.
(declspecs_add_qual): Likewise.
(declspecs_add_type): Likewise.
(finish_declspecs): Likewise.
* c-typeck.c (composite_type): Likewise.
(comp_target_types): Likewise.
(build_array_ref): Likewise.
(pointer_diff): Likewise.
(build_unary_op): Likewise.
(build_conditional_expr): Likewise.
(build_c_cast): Likewise.
(convert_for_assignment): Likewise.
(maybe_warn_string_init): Likewise.
(digest_init): Likewise.
(pop_init_level): Likewise.
(set_init_index): Likewise.
(c_finish_goto_label): Likewise.
(c_finish_return): Likewise.
(do_case): Likewise.
(build_binary_op): Likewise.
* c-parser.c (static): Likewise.
(c_parser_external_declaration): Likewise.
(c_parser_declaration_or_fndef): Likewise.
(c_parser_static_assert_declaration_no_se): Likewise.
(c_parser_enum_specifier): Likewise.
(c_parser_struct_or_union_specifier): Likewise.
(c_parser_struct_declaration): Likewise.
(c_parser_alignas_specifier): Likewise.
(c_parser_braced_init): Likewise.
(c_parser_initelt): Likewise.
(c_parser_compound_statement_nostart): Likewise.
(c_parser_conditional_expression): Likewise.
(c_parser_alignof_expression): Likewise.
(c_parser_postfix_expression): Likewise.
(c_parser_postfix_expression_after_paren_): Likewise.
(c_parser_objc_class_instance_variables): Likewise.
(c_parser_objc_method_definition): Likewise.
(c_parser_objc_methodprotolist): Likewise.

c-family/
* c.opt (Wpedantic): New.
(pedantic): Alias Wpedantic.
* c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
(c_common_post_options): Likewise.
(sanitize_cpp_opts): Likewise.
* c-lex.c (interpret_float): Likewise.
* c-format.c (check_format_types): Likewise.
* c-common.c (pointer_int_sum): Likewise.
(c_sizeof_or_alignof_type): Likewise.
(c_add_case_label): Likewise.
(c_do_switch_warnings): Likewise.
* c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
cp/
* typeck.c (composite_pointer_type): Likewise.
(cxx_sizeof_or_alignof_type): Likewise.
(cp_build_array_ref): Likewise.
(cp_build_function_call_vec): Likewise.
(cp_build_addr_expr_1): Likewise.
(convert_member_func_to_ptr): Likewise.
* decl.c (check_tag_decl): Likewise.
(check_static_variable_definition): Likewise.
(compute_array_index_type): Likewise.
(create_array_type_for_decl): Likewise.
(grokdeclarator): Likewise.
(grok_op_properties): Likewise.
* error.c (maybe_warn_cpp0x): Likewise.
* pt.c (maybe_process_partial_specialization): Likewise.
(convert_template_argument): Likewise.
(do_decl_instantiation): Likewise.
(do_type_instantiation): Likewise.
* parser.c (cp_parser_primary_expression): Likewise.
(cp_parser_postfix_expression): Likewise.
(cp_parser_unary_expression): Likewise.
(cp_parser_question_colon_clause): Likewise.
(cp_parser_lambda_introducer): Likewise.
(cp_parser_lambda_declarator_opt): Likewise.
(cp_parser_compound_statement): Likewise.
(cp_parser_jump_statement): Likewise.
(cp_parser_declaration_seq_opt): Likewise.
(cp_parser_enum_specifier): Likewise.
(cp_parser_enumerator_list): Likewise.
(cp_parser_initializer_list): Likewise.
(cp_parser_member_declaration): Likewise.
* call.c (build_conditional_expr_1): Likewise.
* friend.c (make_friend_class): Likewise.
* name-lookup.c (pushdecl_maybe_friend_1): Likewise.

From-SVN: r186681

12 years agogodump.c (go_output_typedef): Dump size of structs.
Ian Lance Taylor [Sun, 22 Apr 2012 18:51:44 +0000 (18:51 +0000)]
godump.c (go_output_typedef): Dump size of structs.

* godump.c (go_output_typedef): Dump size of structs.

mksysinfo, syscall: Change Sizeof names from var to const.

From-SVN: r186678

12 years agore PR c++/53067 (c++0x GCC 4.7.0 Regression std::ref with unordered sets)
Paolo Carlini [Sun, 22 Apr 2012 17:37:57 +0000 (17:37 +0000)]
re PR c++/53067 (c++0x GCC 4.7.0 Regression std::ref with unordered sets)

2012-04-22  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/53067
* include/bits/hashtable_policy.h: Change inheritances to public.
* testsuite/23_containers/unordered_map/requirements/53067.cc: New.
* testsuite/23_containers/unordered_set/requirements/53067.cc: Likewise.

From-SVN: r186676