platform/upstream/linaro-gcc.git
10 years ago * varasm.c (get_variable_section): Walk aliases.
hubicka [Thu, 29 May 2014 06:14:52 +0000 (06:14 +0000)]
* varasm.c (get_variable_section): Walk aliases.
(place_block_symbol): Walk aliases.

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

10 years agoDaily bump.
gccadmin [Thu, 29 May 2014 00:16:57 +0000 (00:16 +0000)]
Daily bump.

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

10 years agoruntime: disable split stacks for runtime_printf function under Clang
ian [Thu, 29 May 2014 00:03:30 +0000 (00:03 +0000)]
runtime: disable split stacks for runtime_printf function under Clang

LLVM's code generator does not currently support split stacks for vararg
functions, so we disable split stacks for the only function that uses this
feature under Clang. This appears to be OK as long as:
- this function only calls non-inlined, internal-linkage (hence no dynamic
  loader) functions compiled with split stacks (i.e. go_vprintf), which can
  allocate more stack space as required;
- this function itself does not occupy more than BACKOFF bytes of stack space
  (see libgcc/config/i386/morestack.S).
These conditions are currently known to be satisfied by Clang on x86-32 and
x86-64. Note that signal handlers receive slightly less stack space than they
would normally do if they happen to be called while this function is being
run. If this turns out to be a problem we could consider increasing BACKOFF.

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

10 years agoruntime: fix misc gcc-isms and undefined behavior
ian [Wed, 28 May 2014 23:10:47 +0000 (23:10 +0000)]
runtime: fix misc gcc-isms and undefined behavior

This includes the use of __complex and __builtin_ functions where
unprefixed entities would suffice, and the use of a union for
bit-casting between types.

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

10 years agoFix demangler testsuite crashes with CP_DEMANGLE_DEBUG defined
palves [Wed, 28 May 2014 21:55:41 +0000 (21:55 +0000)]
Fix demangler testsuite crashes with CP_DEMANGLE_DEBUG defined

Running the demangler's testsuite with CP_DEMANGLE_DEBUG defined
crashes, with:

 Program received signal SIGSEGV, Segmentation fault.
 0x000000000040a8c3 in d_dump (dc=0x1, indent=12) at ../../src/libiberty/cp-demangle.c:567
 567       switch (dc->type)

 (gdb) bt 3
 #0  0x000000000040a8c3 in d_dump (dc=0x1, indent=12) at ../../src/libiberty/cp-demangle.c:567
 #1  0x000000000040ae47 in d_dump (dc=0x7fffffffd098, indent=10) at ../../src/libiberty/cp-demangle.c:787
 #2  0x000000000040ae47 in d_dump (dc=0x7fffffffd0c8, indent=8) at ../../src/libiberty/cp-demangle.c:787

Note dc=0x1, which is obviously a bogus pointer.  This is the end of
d_dump recursing for a component type that that doesn't actually have
subtrees:

 787       d_dump (d_left (dc), indent + 2);
 788       d_dump (d_right (dc), indent + 2);

This fixes the two cases the testsuite currently trips on.

libiberty/
2014-05-28  Pedro Alves  <palves@redhat.com>

* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
and DEMANGLE_COMPONENT_NUMBER.

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

10 years agoAdd myself to MAINTAINERS.
palves [Wed, 28 May 2014 21:51:47 +0000 (21:51 +0000)]
Add myself to MAINTAINERS.

2014-05-28  Pedro Alves  <palves@redhat.com>

* MAINTAINERS (Write After Approval): Add myself.

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

10 years ago2014-05-28 Tom de Vries <tom@codesourcery.com>
vries [Wed, 28 May 2014 21:50:28 +0000 (21:50 +0000)]
2014-05-28  Tom de Vries  <tom@codesourcery.com>

Revert:
2014-05-28  Tom de Vries  <tom@codesourcery.com>

* lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
* lra.c (initialize_lra_reg_info_element): Add init of
actual_call_used_reg_set field.
(lra): Call lra_create_live_ranges before lra_inheritance for
-fuse-caller-save.
* lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
-fuse-caller-save.
* lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
instead of call_used_reg_set for -fuse-caller-save.
* lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.

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

10 years agogcc/
rsandifo [Wed, 28 May 2014 19:49:18 +0000 (19:49 +0000)]
gcc/
* doc/md.texi: Document that the % constraint character must
be at the beginning of the string.
* genoutput.c (validate_insn_alternatives): Check that '=',
'+' and '%' only appear at the beginning of a constraint.
* ira.c (commutative_constraint_p): Delete.
(ira_get_dup_out_num): Expect the '%' commutativity marker to be
at the start of the string.
* config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
duplicate '='s.
* config/arm/neon.md (bicdi3_neon): Likewise.
* config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
(slt_si, sltu_si): Likewise.
* config/vax/vax.md (sbcdi3): Likewise.
* config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
* config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
(mul64): Move '%' to beginning of constraint.
* config/arm/arm.md (*xordi3_insn): Likewise.
* config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
(xorsi3): Likewise.

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

10 years agogcc/
rsandifo [Wed, 28 May 2014 19:30:35 +0000 (19:30 +0000)]
gcc/
* doc/md.texi: Document the restrictions on the "enabled" attribute.

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

10 years ago PR c++/47202
jason [Wed, 28 May 2014 16:38:23 +0000 (16:38 +0000)]
PR c++/47202
gcc/cp/
* decl.c (cxx_comdat_group): Return a decl.
* optimize.c (cdtor_comdat_group): Get its DECL_ASSEMBLER_NAME.
gcc/
* cgraph.h (symtab_node::get_comdat_group_id): New.
* cgraphunit.c (analyze_functions): Call it.
* symtab.c (dump_symtab_node): Likewise.
* tree.c (decl_comdat_group_id): New.
* tree.h: Declare it.
* lto-streamer-out.c (write_symbol): Use it.
* trans-mem.c (ipa_tm_create_version_alias): Likewise.

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

10 years ago * pt.c (tsubst) [ARRAY_TYPE]: Check for array of array of unknown
jason [Wed, 28 May 2014 16:30:46 +0000 (16:30 +0000)]
* pt.c (tsubst) [ARRAY_TYPE]: Check for array of array of unknown
bound.

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

10 years ago PR c++/61242
jason [Wed, 28 May 2014 15:55:03 +0000 (15:55 +0000)]
PR c++/61242
* call.c (build_aggr_conv): Ignore passed in flags.
(build_array_conv, build_complex_conv): Likewise.

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

10 years ago PR bootstrap/PR61146
fxcoudert [Wed, 28 May 2014 15:17:29 +0000 (15:17 +0000)]
PR bootstrap/PR61146
* wide-int.cc: Do not include longlong.h when compiling with clang.

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

10 years ago2014-05-28 Richard Biener <rguenther@suse.de>
rguenth [Wed, 28 May 2014 14:24:09 +0000 (14:24 +0000)]
2014-05-28  Richard Biener  <rguenther@suse.de>

* tree-ssa-propagate.c (add_control_edge): Print less vertical space.
* tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
(vrp_visit_assignment_or_call): Print less vertical space.
(vrp_visit_stmt): Likewise.
(vrp_visit_phi_node): Likewise.  For a PHI argument with
VR_VARYING range consider recording it as copy.

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

10 years ago2014-05-28 Richard Biener <rguenther@suse.de>
rguenth [Wed, 28 May 2014 14:17:45 +0000 (14:17 +0000)]
2014-05-28  Richard Biener  <rguenther@suse.de>

Revert
2014-05-28  Richard Biener  <rguenther@suse.de>

* hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.

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

10 years ago2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
edlinger [Wed, 28 May 2014 13:37:02 +0000 (13:37 +0000)]
2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
        sufficiently aligned and an offset is used at the same time.
        (expand_expr_real_1): Likewise.

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

10 years ago2014-05-28 Richard Biener <rguenther@suse.de>
rguenth [Wed, 28 May 2014 12:44:11 +0000 (12:44 +0000)]
2014-05-28  Richard Biener  <rguenther@suse.de>

PR middle-end/61045
* fold-const.c (fold_comparison): When folding
X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
the sign of the remaining constant operand stays the same.

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

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

10 years agoRL78 64bit double support added
kaushikp [Wed, 28 May 2014 12:23:15 +0000 (12:23 +0000)]
RL78 64bit double support added

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

10 years agoRL78 64bit double support added
kaushikp [Wed, 28 May 2014 12:22:19 +0000 (12:22 +0000)]
RL78 64bit double support added

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

10 years agoCentralise clearing hardware capabilities with Sun ld
ro [Wed, 28 May 2014 11:32:54 +0000 (11:32 +0000)]
Centralise clearing hardware capabilities with Sun ld

gcc:
* configure.ac ($gcc_cv_ld_clearcap): New test.
* configure: Regenerate.
* config.in: Regenerate.
* config/sol2.opt (mclear-hwcap): New option.
* config/sol2.h (LINK_CLEARCAP_SPEC): Define.
* config/sol2-clearcap.map: Moved here from
testsuite/gcc.target/i386/clearcap.map.
* config/sol2-clearcapv2.map: Move here from
gcc.target/i386/clearcapv2.map.
* config/t-sol2 (install): Depend on install-clearcap-map.
(install-clearcap-map): New target.
* doc/invoke.texi (Option Summary, Solaris 2 Options): Document
-mclear-hwcap.

gcc/testsuite:
* lib/clearcap.exp: New file.
* gcc.dg/vect/vect.exp: Load clearcap.exp.
Remove clearcap_ldflags handling.
Call clearcap-init, clearcap-finish.
* gcc.target/i386/i386.exp: Likewise.
* gcc.target/i386/clearcap.map: Move to ../config/sol2-clearcap.map.
* gcc.target/i386/clearcapv2.map: Move to
../config/sol2-clearcapv2.map.
* gcc.target/x86_64/abi/avx/abi-avx.exp: Likewise.
* gcc.target/x86_64/abi/avx512f/abi-avx512f.exp: Likewise.

libitm:
* acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
-mclear-hwcap instead.
* configure: Regenerate.
* clearcap.map: Remove.

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

10 years ago2014-05-28 Richard Biener <rguenther@suse.de>
rguenth [Wed, 28 May 2014 11:07:48 +0000 (11:07 +0000)]
2014-05-28  Richard Biener  <rguenther@suse.de>

* hwint.h (*_HALF_WIDE_INT*): Move to ...
* wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
... here and remove the rest.
* hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.

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

10 years ago2014-05-28 Richard Biener <rguenther@suse.de>
rguenth [Wed, 28 May 2014 11:07:06 +0000 (11:07 +0000)]
2014-05-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/61335
* tree-vrp.c (vrp_visit_phi_node): If the compare of old and
new range fails, drop to varying.

* gfortran.dg/pr61335.f90: New testcase.

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

10 years ago2014-05-28 Olivier Hainque <hainque@adacore.com>
hainque [Wed, 28 May 2014 09:51:07 +0000 (09:51 +0000)]
2014-05-28  Olivier Hainque  <hainque@adacore.com>

        * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
        (CPP_SPEC): Add entry for -mcpu=8548.
        * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
        * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.

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

10 years ago-fuse-caller-save - Support in lra
vries [Wed, 28 May 2014 09:43:52 +0000 (09:43 +0000)]
-fuse-caller-save - Support in lra

2014-05-28  Tom de Vries  <tom@codesourcery.com>

* lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
* lra.c (initialize_lra_reg_info_element): Add init of
actual_call_used_reg_set field.
(lra): Call lra_create_live_ranges before lra_inheritance for
-fuse-caller-save.
* lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
-fuse-caller-save.
* lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
instead of call_used_reg_set for -fuse-caller-save.
* lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.

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

10 years ago-fuse-caller-save - Add documentation
vries [Wed, 28 May 2014 09:43:41 +0000 (09:43 +0000)]
-fuse-caller-save - Add documentation

2014-05-28  Radovan Obradovic  <robradovic@mips.com>
            Tom de Vries  <tom@codesourcery.com>

* doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save to
gccoptlist.
(@item -fuse-caller-save): New item.

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

10 years ago-fuse-caller-save - Enable by default at O2 and higher
vries [Wed, 28 May 2014 09:43:32 +0000 (09:43 +0000)]
-fuse-caller-save - Enable by default at O2 and higher

2014-05-28  Radovan Obradovic  <robradovic@mips.com>
            Tom de Vries  <tom@codesourcery.com>

* opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
OPT_fuse_caller_save.

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

10 years ago-fuse-caller-save - Use collected register usage information
vries [Wed, 28 May 2014 09:43:21 +0000 (09:43 +0000)]
-fuse-caller-save - Use collected register usage information

2014-05-28  Radovan Obradovic  <robradovic@mips.com>
            Tom de Vries  <tom@codesourcery.com>

* df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
* caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
get_call_reg_set_usage.
* resource.c (mark_set_resources, mark_target_live_regs): Use
get_call_reg_set_usage.
* ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
field.
(ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
* ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
* ira-build.c (ira_create_allocno): Init
ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
(create_cap_allocno, propagate_allocno_info)
(propagate_some_info_from_allocno)
(copy_info_to_removed_store_destinations): Handle
ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
* ira-costs.c (ira_tune_allocno_costs): Use
ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.

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

10 years ago-fuse-caller-save - Collect register usage information
vries [Wed, 28 May 2014 09:43:11 +0000 (09:43 +0000)]
-fuse-caller-save - Collect register usage information

2014-05-28  Radovan Obradovic  <robradovic@mips.com>
            Tom de Vries  <tom@codesourcery.com>

* cgraph.h (struct cgraph_rtl_info): Add function_used_regs
and function_used_regs_valid fields.
* final.c: Move include of hard-reg-set.h to before rtl.h to declare
find_all_hard_reg_sets.
(collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
(get_call_reg_set_usage): New function.
(rest_of_handle_final): Use collect_fn_hard_reg_usage.
* regs.h (get_call_reg_set_usage): Declare.

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

10 years agogcc/
gjl [Wed, 28 May 2014 09:33:04 +0000 (09:33 +0000)]
gcc/
PR libgcc/61152
* config/dbx.h (License): Add Runtime Library Exception.
* config/newlib-stdint.h (License): Same.
* config/rtems.h (License): Same
* config/initfini-array.h (License): Same
* config/v850/v850.h (License): Same.
* config/v850/v850-opts.h (License): Same
* config/v850/rtems.h (License): Same.

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

10 years ago2014-05-25 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Wed, 28 May 2014 08:59:32 +0000 (08:59 +0000)]
2014-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

* Fix typo in ChangeLog entry.

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

10 years ago PR target/61044
gjl [Wed, 28 May 2014 08:42:25 +0000 (08:42 +0000)]
PR target/61044
* doc/extend.texi (Local Labels): Note that label differences are
not supported for AVR.

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

10 years ago2014-05-26 Richard Sandiford <rdsandiford@googlemail.com>
hainque [Wed, 28 May 2014 08:41:27 +0000 (08:41 +0000)]
2014-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
            Olivier Hainque  <hainque@adacore.com>

        * rtl.h (set_for_reg_notes): Declare.
        * emit-rtl.c (set_for_reg_notes): New function.
        (set_unique_reg_note): Use it.
        * optabs.c (add_equal_note): Likewise

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

10 years ago2014-05-27 Andrew Pinski <apinski@cavium.com>
pinskia [Wed, 28 May 2014 01:24:53 +0000 (01:24 +0000)]
2014-05-27  Andrew Pinski  <apinski@cavium.com>

* config/aarch64/aarch64.md (stack_protect_set_<mode>):
Use <w> for the register in assembly template.
(stack_protect_test): Use the mode of operands[0] for the
result.
(stack_protect_test_<mode>): Use <w> for the register
in assembly template.

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

10 years ago* config/rx/rx.c (add_vector_labels): New.
dj [Wed, 28 May 2014 00:37:00 +0000 (00:37 +0000)]
* config/rx/rx.c (add_vector_labels): New.
(rx_output_function_prologue): Call it.
(rx_handle_func_attribute): Don't require empty arguments.
(rx_handle_vector_attribute): New.
(rx_attribute_table): Add "vector" attribute.
* doc/extend.texi (interrupt, vector): Document new/changed
RX-specific attributes.

* config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.

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

10 years agoDaily bump.
gccadmin [Wed, 28 May 2014 00:17:19 +0000 (00:17 +0000)]
Daily bump.

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

10 years agolibgo/runtime: fix unused-result warning
ian [Tue, 27 May 2014 22:01:21 +0000 (22:01 +0000)]
libgo/runtime: fix unused-result warning

Result of runtime_write is ignored, causing
an unused-result result warning (error in my
case, with -Werror=unused-result).

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

10 years ago * gnat.dg/aliasing1.adb (dg-final): Robustify pattern matching.
ebotcazou [Tue, 27 May 2014 20:37:09 +0000 (20:37 +0000)]
* gnat.dg/aliasing1.adb (dg-final): Robustify pattern matching.

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

10 years ago * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
ebotcazou [Tue, 27 May 2014 20:30:18 +0000 (20:30 +0000)]
* double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
predicate to detect a negative quotient.

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

10 years ago PR c/56724
mpolacek [Tue, 27 May 2014 20:14:22 +0000 (20:14 +0000)]
PR c/56724
* c-typeck.c (convert_arguments): Get location of a parameter.  Change
error and warning calls to error_at and warning_at.  Pass location of
a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
(convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
WARN_FOR_QUALIFIERS.  Pass expr_loc to those.

* gcc.dg/pr56724-1.c: New test.
* gcc.dg/pr56724-2.c: New test.
* gcc.dg/wtr-conversion-1.c: Use -Wtraditional-conversion instead of
-Wtraditional.
* gcc.dg/dfp/wtr-conversion-1.c: Likewise.

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

10 years ago * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
ebotcazou [Tue, 27 May 2014 19:54:46 +0000 (19:54 +0000)]
* fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
Add X - Y CMP 0 to X CMP Y transformation.
(fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.

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

10 years ago * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
segher [Tue, 27 May 2014 18:33:57 +0000 (18:33 +0000)]
* stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
before printing.

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

10 years ago2014-05-27 Steve Ellcey <sellcey@mips.com>
sje [Tue, 27 May 2014 15:59:31 +0000 (15:59 +0000)]
2014-05-27  Steve Ellcey  <sellcey@mips.com>

* config/mips/mips.c: Add include of cgraph.h.

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

10 years ago2014-05-27 Richard Biener <rguenther@suse.de>
rguenth [Tue, 27 May 2014 15:00:29 +0000 (15:00 +0000)]
2014-05-27  Richard Biener  <rguenther@suse.de>

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

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

10 years ago2014-05-27 Richard Biener <rguenther@suse.de>
rguenth [Tue, 27 May 2014 13:36:29 +0000 (13:36 +0000)]
2014-05-27  Richard Biener  <rguenther@suse.de>

* system.h (__STDC_FORMAT_MACROS): Define as very first thing.

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

10 years ago PR testsuite/61319
mpolacek [Tue, 27 May 2014 11:41:45 +0000 (11:41 +0000)]
PR testsuite/61319
* c-c++-common/ubsan/float-cast.h: Conditionally define LLONG_MAX,
LLONG_MIN, and ULLONG_MAX.

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

10 years ago PR libgcc/61152
gjl [Tue, 27 May 2014 11:37:49 +0000 (11:37 +0000)]
PR libgcc/61152
* config/arm/arm.h (License): Add note to COPYING.RUNTIME.
* config/arm/arm-cores.def (License): Same.
* config/arm/arm-opts.h (License): Same.
* config/arm/aout.h (License): Same.
* config/arm/bpabi.h (License): Same.
* config/arm/elf.h (License): Same.
* config/arm/linux-elf.h (License): Same.
* config/arm/linux-gas.h (License): Same.
* config/arm/netbsd-elf.h (License): Same.
* config/arm/uclinux-eabi.h (License): Same.
* config/arm/uclinux-elf.h (License): Same.
* config/arm/vxworks.h (License): Same.

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

10 years ago PR libstdc++/61329
redi [Tue, 27 May 2014 11:14:17 +0000 (11:14 +0000)]
PR libstdc++/61329
* include/bits/regex_automaton.tcc (_State_base::_M_print): Add
inline specifier.
(_State_base::_M_dot): Likewise.

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

10 years ago[ARM] Vectorise bswap* in aarch32.
ktkachov [Tue, 27 May 2014 10:56:25 +0000 (10:56 +0000)]
[ARM] Vectorise bswap* in aarch32.

* config/arm/neon.md (neon_bswap<mode>): New pattern.
* config/arm/arm.c (neon_itype): Add NEON_BSWAP.
(arm_init_neon_builtins): Handle NEON_BSWAP.
Define required type nodes.
(arm_expand_neon_builtin): Handle NEON_BSWAP.
(arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
* config/arm/arm_neon_builtins.def (bswap): Define builtins.
* config/arm/iterators.md (VDQHSD): New mode iterator.

* lib/target-supports.exp (check_effective_target_vect_bswap):
Specify arm*-*-* support.

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

10 years ago2014-05-27 Richard Biener <rguenther@suse.de>
rguenth [Tue, 27 May 2014 10:32:39 +0000 (10:32 +0000)]
2014-05-27  Richard Biener  <rguenther@suse.de>

* tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
Try using literal operands when comparing value-ranges failed.

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

10 years agogcc/
rsandifo [Tue, 27 May 2014 10:23:20 +0000 (10:23 +0000)]
gcc/
* ira.c (commutative_operand): Adjust for change to recog_data.
[Missing from previous commit.]

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

10 years agogcc/
rsandifo [Tue, 27 May 2014 10:06:22 +0000 (10:06 +0000)]
gcc/
* system.h (TEST_BIT): New macro.
* recog.h (alternative_mask): New type.
(ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
(recog_data_d): Replace alternative_enabled_p array with
enabled_alternatives.
(target_recog): New structure.
(default_target_recog, this_target_recog): Declare.
(get_enabled_alternatives, recog_init): Likewise.
* recog.c (default_target_recog, this_target_recog): New variables.
(get_enabled_alternatives): New function.
(extract_insn): Use it.
(recog_init): New function.
(preprocess_constraints, constrain_operands): Adjust for change to
recog_data.
* postreload.c (reload_cse_simplify_operands): Likewise.
* reload.c (find_reloads): Likewise.
* ira-costs.c (record_reg_classes): Likewise.
* ira-lives.c (single_reg_class): Likewise.  Fix bug in which
all alternatives after a disabled one would be skipped.
(ira_implicitly_set_insn_hard_regs): Likewise.
* ira.c (ira_setup_alts): Adjust for change to recog_data.
* lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
with enabled_alternatives.
* lra.c (free_insn_recog_data): Update accordingly.
(lra_update_insn_recog_data): Likewise.
(lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
* lra-constraints.c (process_alt_operands): Likewise.  Handle
only_alternative as part of the enabled mask.
* target-globals.h (this_target_recog): Declare.
(target_globals): Add a recog field.
(restore_target_globals): Restore this_target_recog.
* target-globals.c: Include recog.h.
(default_target_globals): Initialize recog field.
(save_target_globals): Likewise.
* reginfo.c (reinit_regs): Call recog_init.
* toplev.c (backend_init_target): Likewise.

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

10 years agogcc/
rsandifo [Tue, 27 May 2014 10:05:55 +0000 (10:05 +0000)]
gcc/
* gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
rather than any named insn's code.

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

10 years ago * intrinsics/getcwd.c: Include stdlib.h.
uros [Tue, 27 May 2014 09:15:52 +0000 (09:15 +0000)]
* intrinsics/getcwd.c: Include stdlib.h.

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

10 years ago * testsuite/libgomp.fortran/declare-simd-1.f90: Require
uros [Tue, 27 May 2014 09:14:53 +0000 (09:14 +0000)]
* testsuite/libgomp.fortran/declare-simd-1.f90: Require
vect_simd_clones effective target.
* testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.

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

10 years ago PR libgcc/61152
gjl [Tue, 27 May 2014 08:41:24 +0000 (08:41 +0000)]
PR libgcc/61152
* config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
* config/arm/arm-cores.def (License): Same.

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

10 years ago2014-05-27 Dominique d'Humieres <dominiq@lps.ens.fr>
dominiq [Tue, 27 May 2014 08:36:37 +0000 (08:36 +0000)]
2014-05-27  Dominique d'Humieres <dominiq@lps.ens.fr>

PR testsuite/61319
* c-c++-common/ubsan/float-cast-overflow-1.c: Make the sign of
-nan optional.
* c-c++-common/ubsan/float-cast-overflow-2.c: Likewise.
* c-c++-common/ubsan/float-cast-overflow-4.c: Likewise.

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

10 years ago2014-05-27 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 27 May 2014 08:02:01 +0000 (08:02 +0000)]
2014-05-27  Paolo Carlini  <paolo.carlini@oracle.com>

* Fix typo in the last ChangeLog entry.

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

10 years ago * tree.h (decl_comdat_group): Declare.
hubicka [Tue, 27 May 2014 04:18:38 +0000 (04:18 +0000)]
* tree.h (decl_comdat_group): Declare.
* cgraph.h (symtab_in_same_comdat_p): Move offline to ...
* tree.c (decl_comdat_group): Here.

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

10 years agoDaily bump.
gccadmin [Tue, 27 May 2014 00:17:17 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago * ChangeLog-2013: Correct an old entry.
uros [Mon, 26 May 2014 21:49:19 +0000 (21:49 +0000)]
* ChangeLog-2013: Correct an old entry.

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

10 years ago * gcc.dg/tree-ssa/ssa-fre-40.c: Cleanup fre1 tree dump.
uros [Mon, 26 May 2014 21:07:58 +0000 (21:07 +0000)]
* gcc.dg/tree-ssa/ssa-fre-40.c: Cleanup fre1 tree dump.

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

10 years agoIntroduce xrealloc, use it.
jb [Mon, 26 May 2014 20:56:45 +0000 (20:56 +0000)]
Introduce xrealloc, use it.

2014-05-26  Janne Blomqvist  <jb@gcc.gnu.org>

* libgfortran.h (xrealloc): New prototype.
* runtime/memory.c (xrealloc): New function.
* io/fbuf.c (fbuf_alloc): Use xrealloc.
* io/list_read.c (push_char_default): Likewise.
(push_char4): Likewise.

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

10 years ago2014-05-26 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 26 May 2014 19:03:17 +0000 (19:03 +0000)]
2014-05-26  Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi (Project Status): Fix broken link.

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

10 years agogcc/
rsandifo [Mon, 26 May 2014 18:50:55 +0000 (18:50 +0000)]
gcc/
PR rtl-optimization/61222
* combine.c (simplify_shift_const_1): When moving a PLUS outside
the shift, truncate the PLUS operand to the result mode.

gcc/testsuite/
PR rtl-optimization/61222
* gcc.c-torture/compile/pr61222-1.c: New test.
* gcc.c-torture/compile/pr61222-2.c: Likewise.

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

10 years ago * c-c++-common/cilk-plus/AN/pr61191.c: Fix dg-error directives.
uros [Mon, 26 May 2014 18:44:18 +0000 (18:44 +0000)]
* c-c++-common/cilk-plus/AN/pr61191.c: Fix dg-error directives.

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

10 years ago * gcc.dg/lto/pr61278_1.c: Remove dg directives.
uros [Mon, 26 May 2014 18:23:36 +0000 (18:23 +0000)]
* gcc.dg/lto/pr61278_1.c: Remove dg directives.

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

10 years agoPR 61310 Rewrite implementation of CTIME and FDATE intrinsics.
jb [Mon, 26 May 2014 18:17:13 +0000 (18:17 +0000)]
PR 61310 Rewrite implementation of CTIME and FDATE intrinsics.

2014-05-26  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/61310
* intrinsics.texi (CTIME): Remove mention of locale-dependent
behavior.

2014-05-26  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/61310
* intrinsics/ctime.c (strctime): Rename to gf_ctime, use snprintf
instead of strftime.
(fdate): Use gf_ctime.
(fdate_sub): Likewise.
(ctime): Likewise.
(ctime_sub): Likewise.

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

10 years ago PR target/61271
uros [Mon, 26 May 2014 17:33:09 +0000 (17:33 +0000)]
PR target/61271
* config/i386/i386.c (ix86_rtx_costs)
<case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
Fix condition.

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

10 years ago2014-05-26 Martin Jambor <mjambor@suse.cz>
jamborm [Mon, 26 May 2014 15:36:00 +0000 (15:36 +0000)]
2014-05-26  Martin Jambor  <mjambor@suse.cz>

* ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
subreg uses.

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

10 years ago2014-05-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Mon, 26 May 2014 15:32:33 +0000 (15:32 +0000)]
2014-05-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/55117
* gfortran.dg/namelist_85.f90: New test.

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

10 years ago2014-05-26 Tobias Burnus <burnus@net-b.de>
jvdelisle [Mon, 26 May 2014 15:19:36 +0000 (15:19 +0000)]
2014-05-26  Tobias Burnus  <burnus@net-b.de>

PR fortran/55117
* trans-io.c (nml_full_name, transfer_namelist_element): Insert
a '+' rather then '%' to differentiate namelist variable names
that are based on extended derived types.

2014-05-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/55117
* io/list_read.c (extended_look_ahead): New helper function to
scan the namelist name and look for matches with the new '+'
extended type parent indicator.  (str_comp_extended): New
helper function to compare the namelist name with the varname
namelist. (find_nml_name): Use the new helper functions to match
the extended type varnames.

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

10 years ago2014-05-26 Richard Biener <rguenther@suse.de>
rguenth [Mon, 26 May 2014 14:07:42 +0000 (14:07 +0000)]
2014-05-26  Richard Biener  <rguenther@suse.de>

* wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
wi::int_traits <long long>, wi::int_traits <unsigned long long>):
Provide specializations.
(wi::int_traits <HOST_WIDE_INT>,
wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.

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

10 years ago PR target/61098
amodra [Mon, 26 May 2014 13:09:48 +0000 (13:09 +0000)]
PR target/61098
* config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
params and return a bool.  Remove dead code.  Update comment.
Assert we have a const_int source.  Remove bogus code from
32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
handling of constants > 2G and reg_equal note, from..
(rs6000_emit_set_long_const): ..here.  Remove unneeded param and
return value.  Update comment.  If we can, use a new pseudo
for intermediate calculations.
* config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
prototype.
* config/rs6000/rs6000.md (movsi_internal1_single+1): Update
call to rs6000_emit_set_const in splitter.
(movdi_internal64+2, +3): Likewise.

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

10 years ago2014-05-23 Richard Biener <rguenther@suse.de>
rguenth [Mon, 26 May 2014 10:42:43 +0000 (10:42 +0000)]
2014-05-23  Richard Biener  <rguenther@suse.de>

* system.h: Define __STDC_FORMAT_MACROS before
including inttypes.h.
* hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
HOST_WIDEST_INT_C): Remove.
(PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
if C99 inttypes.h is not available.

* coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
* gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
* gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
* cfgloop.h (struct niter_desc): Use uint64_t for niter field.
* bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
(struct output_info): Likewise.
(print_statistics): Adjust.
(dump_bitmap_statistics): Likewise.
* bt-load.c (migrate_btr_defs): Print with PRId64.
* cfg.c (dump_edge_info, dump_bb_info): Likewise.
(MAX_SAFE_MULTIPLIER): Adjust.
* cfghooks.c (dump_bb_for_graph): Print with PRId64.
* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
dump_cgraph_node): Likewise.
* final.c (dump_basic_block_info): Likewise.
* gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
* gcov.c (format_gcov): Likewise.
* ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
for calculation.
(get_clone_agg_value): Use HOST_WIDE_INT for offset.
* ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
(inline_small_functions, dump_overall_stats, dump_inline_stats):
Use PRId64 for dumping.
* ipa-profile.c (dump_histogram, ipa_profile): Likewise.
* ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
(add_allocno_hard_regs): Adjust.
* loop-doloop.c (doloop_modify): Print using PRId64.
* loop-iv.c (inverse): Compute in uint64_t.
(determine_max_iter, iv_number_of_iterations): Likewise.
* loop-unroll.c (decide_peel_completely, decide_peel_simple):
Print using PRId64.
* lto-streamer-out.c (write_symbol): Use uint64_t.
* mcf.c (CAP_INFINITY): Use int64_t maximum.
(dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
* modulo-sched.c (const_iteration_count): Use int64_t.
(sms_schedule): Dump using PRId64.
* predict.c (dump_prediction): Likewise.
* pretty-print.h (pp_widest_integer): Remove.
* profile.c (get_working_sets, is_edge_inconsistent,
is_inconsistent, read_profile_edge_counts): Dump using PRId64.
* tree-pretty-print.c (pp_double_int): Remove case handling
HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
* tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
and adjust users.
(pass_optimize_bswap::execute): Remove restriction on hosts.
* tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
* tree-streamer-out.c (streamer_write_tree_header): Likewise.
* tree.c (widest_int_cst_value): Remove.
* tree.h (widest_int_cst_value): Likewise.
* value-prof.c (dump_histogram_value): Print using PRId64.
* gengtype.c (main): Also inject int64_t.
* ggc-page.c (struct max_alignment): Use int64_t.
* alloc-pool.c (struct allocation_object_def): Likewise.
* ira-conflicts.c (build_conflict_bit_table): Use uint64_t
for computation.
* doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
* doc/tm.texi: Regenerated.
* gengtype-lex.l (IWORD): Handle [u]int64_t.
* config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
* config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
mmix_output_register_setting): Use [u]int64_t in prototypes.
* config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
mmix_output_octa, mmix_output_shifted_value): Adjust.
(mmix_intval): Adjust.  Remove unreachable case.
* config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use
int64_t.

lto/
* lto.c (lto_parse_hex): Use int64_t.
(lto_resolution_read): Likewise.

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

10 years agogcc/c/
kyukhin [Mon, 26 May 2014 10:04:01 +0000 (10:04 +0000)]
gcc/c/
PR c/61191
* c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
function parameters.

gcc/testsuite/
PR c/61191
* c-c++-common/cilk-plus/AN/pr61191.c: Check for correct handling of
the case with syntax error.

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

10 years ago2014-05-26 Richard Biener <rguenther@suse.de>
rguenth [Mon, 26 May 2014 08:19:02 +0000 (08:19 +0000)]
2014-05-26  Richard Biener  <rguenther@suse.de>

libcpp/
* configure.ac: Remove long long and __int64 type checks,
add check for uint64_t and fail if that wasn't found.
* include/cpplib.h (cpp_num_part): Use uint64_t.
* config.in: Regenerate.
* configure: Likewise.

gcc/
* configure.ac: Drop __int64 type check.  Insist that we
found uint64_t and int64_t.
* hwint.h (HOST_BITS_PER___INT64): Remove.
(HOST_BITS_PER_WIDE_INT): Define to 64 and remove
__int64 case.
(HOST_WIDE_INT_PRINT_*): Remove 32bit case.
(HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
(HOST_WIDEST_FAST_INT): Remove __int64 case.
* vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
for dst_q_src_df_rms_cdt.
* configure: Regenerate.
* config.in: Likewise.

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

10 years ago * ChangeLog: Fix last entry.
uros [Mon, 26 May 2014 07:47:14 +0000 (07:47 +0000)]
* ChangeLog: Fix last entry.

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

10 years ago PR target/61249
uros [Mon, 26 May 2014 07:19:25 +0000 (07:19 +0000)]
PR target/61249
* doc/extend.texi: Fix parameter lists of __builtin_ia32_vfrczs[sd],
__builtin_ia32_mpsadbw256.

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

10 years agoChangeLog:
zqchen [Mon, 26 May 2014 06:40:57 +0000 (06:40 +0000)]
ChangeLog:
2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

PR rtl-optimization/61278
* shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.

testsuite/ChangeLog:
2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

* gcc.dg/lto/pr61278_0.c: New test.
* gcc.dg/lto/pr61278_1.c: New test.

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

10 years agoChangeLog:
zqchen [Mon, 26 May 2014 06:11:33 +0000 (06:11 +0000)]
ChangeLog:
2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

PR rtl-optimization/61220
Part of PR rtl-optimization/61225
* shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
insn; skip split_edge for a block with only one successor.

testsuite/ChangeLog:
2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

* gcc.dg/pr61220.c: New test.
* gcc.dg/shrink-wrap-loop.c: Disable for x86_64 -m32 mode.

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

10 years ago * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag for variables.
hubicka [Mon, 26 May 2014 00:50:24 +0000 (00:50 +0000)]
* symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag for variables.

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

10 years agoDaily bump.
gccadmin [Mon, 26 May 2014 00:17:21 +0000 (00:17 +0000)]
Daily bump.

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

10 years agocontrib/
rsandifo [Sun, 25 May 2014 09:35:15 +0000 (09:35 +0000)]
contrib/
* dg-extract-results.py (Named): Remove __cmp__ method.
(output_variation): Use a key to sort variation.harnesses.

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

10 years ago2014-05-25 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Sun, 25 May 2014 08:38:01 +0000 (08:38 +0000)]
2014-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

* include/profile/map.h: Fix typo in comment; minor formatting fix.
* include/profile/multimap.h: Likewise.
* include/profile/set.h: Likewise.
* include/profile/multiset.h: Likewise.

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

10 years agoMissed the following files with commit 210909
burnus [Sun, 25 May 2014 07:08:25 +0000 (07:08 +0000)]
Missed the following files with commit 210909
2014-05-25  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_this_image_1.f90: New.
        * gfortran.dg/coarray_this_image_2.f90: New.

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

10 years ago * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
hubicka [Sun, 25 May 2014 05:52:49 +0000 (05:52 +0000)]
* ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
(update_vtable_references): New function.
(function_and_variable_visibility): Rewrite also vtable initializers.
* varpool.c (cgraph_variable_initializer_availability): Remove assert.

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

10 years ago2014-05-25 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 25 May 2014 05:24:12 +0000 (05:24 +0000)]
2014-05-25  Tobias Burnus  <burnus@net-b.de>

        * check.c (gfc_check_num_images): New.
        (gfc_check_this_image): Handle distance argument.
        * intrinsic.c (add_functions): Update this_image and num_images
        for new distance and failed arguments.
        * intrinsic.texi (THIS_IMAGE, NUM_IMAGES): Document the new
        arguments.
        * intrinsic.h (gfc_check_num_images): New.
        (gfc_check_this_image, gfc_simplify_num_images,
        gfc_simplify_this_image, gfc_resolve_this_image): Update prototype.
        * iresolve.c (gfc_resolve_this_image): Handle distance argument.
        * simplify.c (gfc_simplify_num_images, gfc_simplify_this_image):
        Handle new arguments.
        * trans-intrinsic.c (trans_this_image, trans_num_images): Ditto.
        (gfc_conv_intrinsic_function): Update trans_num_images call.

2014-05-25  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_10.f90: Update dg-warning.
        * gfortran.dg/coarray_this_image_1.f90: New.
        * gfortran.dg/coarray_this_image_2.f90: New.

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

10 years ago * ggc.h (ggc_grow): New function.
hubicka [Sun, 25 May 2014 02:58:54 +0000 (02:58 +0000)]
* ggc.h (ggc_grow): New function.
* ggc-none.c (ggc_grow): New function.
* ggc-page.c (ggc_grow): Likewise.
* lto.c (read_cgraph_and_symbols): Grow ggc memory after streaming.

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

10 years ago * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p, address_taken_from_non_vtab...
hubicka [Sun, 25 May 2014 01:33:28 +0000 (01:33 +0000)]
* ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p, address_taken_from_non_vtable_p,
comdat_can_be_unshared_p_1, comdat_can_be_unshared_p, cgraph_externally_visible_p,
varpool_externally_visible_p, can_replace_by_local_alias,
update_visibility_by_resolution_info, function_and_variable_visibility,
pass_data_ipa_function_and_variable_visibility,
make_pass_ipa_function_and_variable_visibility,
whole_program_function_and_variable_visibility,
pass_data_ipa_whole_program_visibility,
make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
* cgraph.h (cgraph_local_node_p): Declare.
* ipa-visibility.c: New file.
* Makefile.in (OBJS): Add ipa-visiblity.o

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

10 years agoDaily bump.
gccadmin [Sun, 25 May 2014 00:16:39 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
hubicka [Sat, 24 May 2014 22:02:13 +0000 (22:02 +0000)]
* gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
that var decl is available.

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

10 years ago * tree-core.h (tree_decl_with_vis): Replace comdat_group by
hubicka [Sat, 24 May 2014 22:00:14 +0000 (22:00 +0000)]
* tree-core.h (tree_decl_with_vis): Replace comdat_group by
symtab_node pointer.
* tree.c (copy_node_stat): Be sure tonot copy
symtab_node pointer.
(find_decls_types_r): Do not walk COMDAT_GROUP.
* tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
* varasm.c (make_decl_one_only): Use set_comdat_group;
create node if needed.
* ipa-inline-transform.c (save_inline_function_body): Update
way we decl->symtab mapping.
* symtab.c (symtab_hash, hash_node, eq_node
symtab_insert_node_to_hashtable): Remove.
(symtab_register_node): Update.
(symtab_unregister_node): Update.
(symtab_get_node): Reimplement as inline function.
(symtab_add_to_same_comdat_group): Update.
(symtab_dissolve_same_comdat_group_list): Update.
(dump_symtab_base): Update.
(verify_symtab_base): Update.
(symtab_make_decl_local): Update.
(fixup_same_cpp_alias_visibility): Update.
(symtab_nonoverwritable_alias): Update.
* cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
* ipa.c (update_visibility_by_resolution_info): UPdate.
* bb-reorder.c: Include cgraph.h
* lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
with comdat groups.
* ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
* cgraph.c (cgraph_get_create_node): Update.
* cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
and comdat_group_.
(symtab_get_node): Make inline.
(symtab_insert_node_to_hashtable): Remove.
(symtab_can_be_discarded): Update.
(decl_comdat_group): New function.
* tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers): Update.
* lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
comdat group name.
(read_comdat_group): New function.
(input_node, input_varpool_node): Use it.
* trans-mem.c (ipa_tm_create_version_alias): Update code creating
comdat groups.
* mips.c (mips_start_unique_function): Likewise.
(ix86_code_end): Likewise.
(rs6000_code_end): Likweise.
* tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream
comdat group.

* lto-symtab.c (lto_symtab_merge_symbols): Update code setting
symtab pointer.
* lto.c (compare_tree_sccs_1): Do not compare comdat groups.

* optmize.c (maybe_thunk_body): Use set_comdat_group.
(maybe_clone_body): Likewise.
* decl.c (duplicate_decls): Update code duplicating comdat group;
do not copy symtab pointer; before freeing newdecl remove it
from symtab.
* decl2.c (constrain_visibility): Use set_comdat_group.

* c-decl.c (merge_decls): Preserve symtab node pointers.
(duplicate_decls): Free new decl.

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

10 years ago2014-05-24 François Dumont <fdumont@gcc.gnu.org>
fdumont [Sat, 24 May 2014 20:59:00 +0000 (20:59 +0000)]
2014-05-24  François Dumont  <fdumont@gcc.gnu.org>

* include/profile/array: Clean useless white chars.
* include/profile/base.h: Likewise.
* include/profile/iterator_tracker.h: Likewise.
* include/profile/bitset: Code cleanup and remove not instrumented code.
* include/profile/deque: Likewise.
* include/profile/forward_list: Likewise.
* include/profile/list (std::__profile::_List_profile<>): New.
(std::__profile::list<>): Inherit from latter and adapt.
* include/profile/impl/profiler_map_to_unordered_map.h: Generalize
advise to match any ordered to unordered container conversion.
* include/profile/ordered_base.h (std::__profile::_Ordered_profile<>):
New.
* include/Makefile.am: Add latter.
* include/Makefile.in: Regenerate.
* include/profile/map.h (std::__profile::map<>): Inherit from latter,
remove not instrumented code.
* include/profile/multimap.h (std::__profile::multimap<>): Likewise.
* include/profile/set.h (std::__profile::set<>): Likewise.
* include/profile/multiset.h (std::__profile::multiset<>): Likewise.
* include/profile/unordered_base.h: Add some line feed.
* include/profile/unordered_map: Clean useless white chars and replace
spaces with tabs.
* include/profile/unordered_set: Likewise.
* include/profile/vector (std::__profile::_Vector_profile_pre<>): New.
(std::__profile::_Vector_profile_post<>): New.
(std::__profile::vector<>): Inherit from latter and adapt.

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

10 years ago2014-05-24 Jerry DeLisle <jvdelisle@gcc.gnu>
jvdelisle [Sat, 24 May 2014 19:30:38 +0000 (19:30 +0000)]
2014-05-24  Jerry DeLisle  <jvdelisle@gcc.gnu>

PR libfortran/61173
gfortran.dg/arrayio_14.f90: New test.

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

10 years ago2014-05-23 Jerry DeLisle <jvdelisle@gcc.gnu>
jvdelisle [Sat, 24 May 2014 19:26:02 +0000 (19:26 +0000)]
2014-05-23  Jerry DeLisle  <jvdelisle@gcc.gnu>

PR libfortran/61173
* io/list_read.c (eat_spaces): If the next character pointed to
is a space, don't seek, must be at the end.

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

10 years ago* gcc.c-torture/execute/bswap-2.c (main): Handle more bitfield
schwab [Sat, 24 May 2014 18:54:28 +0000 (18:54 +0000)]
* gcc.c-torture/execute/bswap-2.c (main): Handle more bitfield
layouts.

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

10 years ago * gengtype-state.c (fatal_reading_state): Bring offline.
hubicka [Sat, 24 May 2014 17:12:28 +0000 (17:12 +0000)]
* gengtype-state.c (fatal_reading_state): Bring offline.
* optabs.c (widening_optab_handler): Bring offline.
* optabs.h (widening_optab_handler): Likewise.
* final.c (get_attr_length_1): Likewise.

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

10 years ago * sched-int.h (sd_iterator_cond): Manually tail recurse.
hubicka [Sat, 24 May 2014 17:11:35 +0000 (17:11 +0000)]
* sched-int.h (sd_iterator_cond): Manually tail recurse.

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

10 years ago2014-05-24 Dominique d'Humieres <dominiq@lps.ens.fr>
dominiq [Sat, 24 May 2014 14:17:37 +0000 (14:17 +0000)]
2014-05-24  Dominique d'Humieres <dominiq@lps.ens.fr>

* gfortran.dg/gfortran.dg/bind_c_array_params_2.f90:
Adjust regexp for -flto.
* gfortran.dg/gfortran.dg/pr48636-2.f90: Likewise.
* gfortran.dg/pr52835.f90: Likewise.

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

10 years ago * texi2pod.pl: Force .pod file to not be a numbered list.
uros [Sat, 24 May 2014 06:38:31 +0000 (06:38 +0000)]
* texi2pod.pl: Force .pod file to not be a numbered list.

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