gcc.git
10 years agoUse GET_MODE_BITSIZE to get vector natural alignment
H.J. Lu [Mon, 19 Oct 2015 11:41:03 +0000 (11:41 +0000)]
Use GET_MODE_BITSIZE to get vector natural alignment

Since GET_MODE_ALIGNMENT is defined by psABI and the biggest alignment
is 4 byte for IA MCU psABI, we should use GET_MODE_BITSIZE for IA MCU
psABI to get vector natural alignment to check misaligned vector move.

* config/i386/i386.c (ix86_expand_vector_move): Use
GET_MODE_BITSIZE for IA MCU psABI to get vector natural
alignment.

From-SVN: r228969

10 years agoReplace @optindex with @opindex
H.J. Lu [Mon, 19 Oct 2015 11:30:46 +0000 (11:30 +0000)]
Replace @optindex with @opindex

* doc/invoke.texi: Replace @optindex with @opindex.

From-SVN: r228968

10 years agoDon't leak ISA to __attribute__ ((target("arch=XXX")))
H.J. Lu [Mon, 19 Oct 2015 11:18:14 +0000 (11:18 +0000)]
Don't leak ISA to __attribute__ ((target("arch=XXX")))

When processing __attribute__ ((target("arch=XXX"))), we should clear
the ISA bits in x_ix86_isa_flags first to avoid leaking ISA from
command line.

gcc/

PR target/67995
* config/i386/i386.c (ix86_valid_target_attribute_tree): If
arch= is set,  clear all bits in x_ix86_isa_flags, except for
ISA_64BIT, ABI_64, ABI_X32, and CODE16.

gcc/testsuite/

PR target/67995
* gcc.target/i386/pr67995-1.c: New test.
* gcc.target/i386/pr67995-2.c: Likewise.
* gcc.target/i386/pr67995-3.c: Likewise.

From-SVN: r228967

10 years agofix date of changelog entry
Joost VandeVondele [Mon, 19 Oct 2015 10:26:32 +0000 (10:26 +0000)]
fix date of changelog entry

From-SVN: r228966

10 years agoFix PR68002, add -fkeep-static-functions
Joost VandeVondele [Mon, 19 Oct 2015 10:24:37 +0000 (10:24 +0000)]
Fix PR68002, add -fkeep-static-functions

gcc/ChangeLog:

2015-10-17  Joost VandeVondele  <vondele@gnu.gcc.org>

        PR middle-end/68002
        * common.opt (fkeep-static-functions): New option.
        * doc/invoke.texi: Document it.
        * cgraphunit.c (cgraph_node::finalize_function): Use it.

gcc/testsuite/ChangeLog:

2015-10-17  Joost VandeVondele  <vondele@gnu.gcc.org>

        PR middle-end/68002
        * gcc.dg/PR68002.c: New test.

From-SVN: r228965

10 years agoRemove undefined behaviour from builtins-20.c
Richard Sandiford [Mon, 19 Oct 2015 10:06:56 +0000 (10:06 +0000)]
Remove undefined behaviour from builtins-20.c

builtins-20.c had:

      if (cos((y*=2, -fabs(tan(x/-y)))) != cos((y*=2,tan(x/y))))
        link_error ();

which is undefined behaviour.  The test expected that y had the same
value in x/y and x/-y, but gimplification actually implements the
"obvious" interpretation, multiplying y by 2, using it for one cos call,
then multiplying it by 2 again and using it for the other cos call.

The file has other (valid) tests that side-effects don't block
optimisation, such as:

      if (cosf((y*=3, -x)) != cosf((y*=3,x)))
        link_error ();

so this patch simply removes this instance.

Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.

gcc/testsuite/
* gcc.dg/builtins-20.c: Remove undefined behavior.

From-SVN: r228963

10 years ago[haifa-sched] model load/store multiples properly in autoprefetcher scheduling
Kyrylo Tkachov [Mon, 19 Oct 2015 09:23:07 +0000 (09:23 +0000)]
[haifa-sched] model load/store multiples properly in autoprefetcher scheduling

* sched-int.h (struct autopref_multipass_data_): Remove offset
field.  Add min_offset, max_offset, multi_mem_insn_p fields.
* haifa-sched.c (analyze_set_insn_for_autopref): New function.
(autopref_multipass_init): Use it.  Handle PARALLEL sets.
(autopref_rank_data): New function.
(autopref_rank_for_schedule): Use it.
(autopref_multipass_dfa_lookahead_guard_1): Likewise.

From-SVN: r228962

10 years agoDaily bump.
GCC Administrator [Mon, 19 Oct 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r228959

10 years agoFix crash in gengtype debug dump
Mikhail Maltsev [Sun, 18 Oct 2015 23:33:21 +0000 (23:33 +0000)]
Fix crash in gengtype debug dump

gcc/
PR other/65800
* gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.

From-SVN: r228956

10 years agoRevise Darwin's sysroot handling to be compatible with the clang toolchain.
Iain Sandoe [Sun, 18 Oct 2015 18:33:05 +0000 (18:33 +0000)]
Revise Darwin's sysroot handling to be compatible with the clang toolchain.

gcc/
* config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
(HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
(LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
(STANDARD_STARTFILE_PREFIX_1): New.
(STANDARD_STARTFILE_PREFIX_2): New.

From-SVN: r228950

10 years agore PR c++/68006 ([C++14] Incorrect aggregate initialization from empty initializer...
Jason Merrill [Sun, 18 Oct 2015 18:02:10 +0000 (14:02 -0400)]
re PR c++/68006 ([C++14] Incorrect aggregate initialization from empty initializer list with NSDMI)

PR c++/68006

* decl.c (implicit_default_ctor_p): New.
(start_preparsed_function): Don't clobber on entry to one.

From-SVN: r228949

10 years agoFix common-related error recovery ICE.
Mikael Morin [Sun, 18 Oct 2015 17:17:21 +0000 (17:17 +0000)]
Fix common-related error recovery ICE.

Fix an inconsistent state, between the in_common attribute
and the common_block pointer.

 - adding a symbol to a common block list in gfc_match_common is delayed
   after the call to gfc_add_in_common.
 - gfc_restore_latest_undo_checkpoint is changed to check the common_block
   pointer directly instead of the in_common attribute.
 - gfc_restore_old_symbol is changed to also restore
   the common-related pointers.  This is done using a new function created
   to factor the related memory management.
 - In gfc_restore_last_undo_checkpoint, when a symbol has been removed
   from the common block linked list, its common_next pointer is cleared.

PR fortran/67758
gcc/fortran/
* gfortran.h (gfc_symbol): Expand comment.
* match.c (gfc_match_common): Delay adding the symbol to
the common_block after the gfc_add_in_common call.
* symbol.c (gfc_free_symbol): Move common block memory handling...
(gfc_set_symbol_common_block): ... here as a new function.
(restore_old_symbol): Restore common block fields.
(gfc_restore_last_undo_checkpoint):
Check the common_block pointer instead of the in_common attribute.
When a symbol has been removed from the common block linked list,
clear its common_next pointer.
gcc/testsuite/
* gfortran.dg/common_25.f90: New file.

From-SVN: r228947

10 years agoDarwin - Tidy mmacosx-version-min code and specs.
Iain Sandoe [Sun, 18 Oct 2015 14:31:25 +0000 (14:31 +0000)]
Darwin - Tidy mmacosx-version-min code and specs.

gcc/

* config/darwin-driver.c (darwin_default_min_version): Refactor code.
(darwin_driver_init): Note a version-min when provided on the c/l.
* config/darwin.h (%darwin_minversion): Remove.
* config/i386/darwin.h: Likewise.
* config/rs6000/darwin.h: Likewise.
* config/darwin.opt (mmacosx-version-min=): Use the configured default, rather than
an arbitrary constant.

From-SVN: r228944

10 years agoFix PR63758 by using the _NSGetEnviron() API on Darwin
Roland McGrath [Sun, 18 Oct 2015 10:33:37 +0000 (10:33 +0000)]
Fix PR63758 by using the _NSGetEnviron() API on Darwin

include/

Roland McGrath  <roland@gnu.org>

PR other/63758
* environ.h: New file.

libiberty/

Roland McGrath  <roland@gnu.org>
Iain Sandoe  <iain@codesourcery.com>

PR other/63758
* pex-unix.c: Obtain the environment interface from settings in environ.h
rather than in-line code.  Update copyright date.
* setenv.c: Likewise.
* xmalloc.c: Likewise.

Co-Authored-By: Iain Sandoe <iain@codesourcery.com>
From-SVN: r228942

10 years agoImprove handling of -arch flag for Darwin
Iain Sandoe [Sun, 18 Oct 2015 10:11:03 +0000 (10:11 +0000)]
Improve handling of -arch flag for Darwin

gcc/
* config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
PPC, detect conflicts between -arch and multilib settings.  Detect
and warn about conflicts between multiple -arch definitions.

From-SVN: r228941

10 years agore PR fortran/67177 (MOVE_ALLOC not automatically allocating deferred character array...
Paul Thomas [Sun, 18 Oct 2015 09:31:21 +0000 (09:31 +0000)]
re PR fortran/67177 (MOVE_ALLOC not automatically allocating deferred character arrays in derived types)

2015-10-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/67177
PR fortran/67977
* primary.c (match_substring): Add an argument 'deferred' to
flag that a substring reference with null start and end should
not be optimized away for deferred length strings.
(match_string_constant, gfc_match_rvalue): Set the argument.
* trans-expr.c (alloc_scalar_allocatable_for_assignment): If
there is a substring reference return.
* trans-intrinsic.c (conv_intrinsic_move_alloc): For deferred
characters, assign the 'from' string length to the 'to' string
length. If the 'from' expression is deferred, set its string
length to zero. If the 'to' expression has allocatable
components, deallocate them.

2015-10-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/67177
* gfortran.dg/move_alloc_15.f90: New test
* gfortran.dg/move_alloc_16.f90: New test

PR fortran/67977
* gfortran.dg/deferred_character_assignment_1.f90: New test

From-SVN: r228940

10 years agofix Darwin bootstrap
Iain Sandoe [Sun, 18 Oct 2015 09:22:33 +0000 (09:22 +0000)]
fix Darwin bootstrap

gcc/
* config/darwin-driver.h: Adjust includes to add diagnostic-core.

From-SVN: r228939

10 years agoDaily bump.
GCC Administrator [Sun, 18 Oct 2015 00:16:13 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r228936

10 years agore PR fortran/67987 (ICE on declaring and initializing character with negative len)
Steven G. Kargl [Sat, 17 Oct 2015 16:50:47 +0000 (16:50 +0000)]
re PR fortran/67987 (ICE on declaring and initializing character with negative len)

2015-10-17  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/67987
* decl.c (char_len_param_value): Unwrap unlong line.  If LEN < 0,
force it to zero per the Fortran 90, 95, 2003, and 2008 Standards.
* resolve.c (gfc_resolve_substring_charlen): Unwrap unlong line.
If 'start' is larger than 'end', length of substring is negative,
so explicitly set it to zero.
(resolve_charlen): Remove -Wsurprising warning.  Update comment to
reflect that the text is from the F2008 standard.

2015-10-17  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/67987
* gfortran.df/pr67987.f90: New test.
* gfortran.dg/char_length_2.f90: Update testcase.

From-SVN: r228933

10 years agochange a function argument from rtx to rtx_insn *
Trevor Saunders [Sat, 17 Oct 2015 01:00:08 +0000 (01:00 +0000)]
change a function argument from rtx to rtx_insn *

gcc/ChangeLog:

2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

* lra-constraints.c (add_next_usage_insn): Change argument type
from rtx to rtx_insn *.

From-SVN: r228931

10 years agoDaily bump.
GCC Administrator [Sat, 17 Oct 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r228929

10 years agodivmodqi.S: Return 0x00 by default for div by 0.
Kaushik Phatak [Fri, 16 Oct 2015 21:47:07 +0000 (21:47 +0000)]
divmodqi.S: Return 0x00 by default for div by 0.

* config/rl78/divmodqi.S: Return 0x00 by default for div by 0.
* config/rl78/divmodsi.S: Update return register to r8.
* config/rl78/divmodhi.S: Update return register to r8,r9.
Branch to main_loop_done_himode to pop registers before return.

From-SVN: r228926

10 years agoDisable X86_TUNE_ALWAYS_FANCY_MATH_387 for Lakemont
H.J. Lu [Fri, 16 Oct 2015 21:07:54 +0000 (21:07 +0000)]
Disable X86_TUNE_ALWAYS_FANCY_MATH_387 for Lakemont

Since Lakemont processor doesn't have 387, we should disable
X86_TUNE_ALWAYS_FANCY_MATH_387 for Lakemont.

* i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
for Lakemont.

From-SVN: r228925

10 years agoFix def_test_returning_type in iamcu/test_basic_returning.c
H.J. Lu [Fri, 16 Oct 2015 20:03:17 +0000 (20:03 +0000)]
Fix def_test_returning_type in iamcu/test_basic_returning.c

Use union to check float return bits to avoid converting from integer
to float when comparing float return value.

* gcc.target/i386/iamcu/test_basic_returning.c
(def_test_returning_type): Use union to check float return bits.

From-SVN: r228924

10 years agogen-mul-tables.cc: Adjust include files.
Andrew MacLeod [Fri, 16 Oct 2015 19:47:09 +0000 (19:47 +0000)]
gen-mul-tables.cc: Adjust include files.

2015-10-16  Andrew MacLeod  <amacleod@redhat.com>

* config/tilepro/gen-mul-tables.cc: Adjust include files.
* config/tilegx/mul-tables.c: Regenerate.
* config/tilepro/mul-tables.c: Regenerate.

* config/tilegx/tilegx-c.c: Adjust include files.
* config/tilegx/tilegx.c: Likewise.
* config/tilepro/tilepro-c.c: Likewise.
* config/tilepro/tilepro.c: Likewise.
* config/aarch64/aarch64-builtins.c: Likewise.
* config/aarch64/aarch64.c: Likewise.
* config/aarch64/cortex-a57-fma-steering.c: Likewise.
* config/alpha/alpha.c: Likewise.
* config/arc/arc.c: Likewise.
* config/arm/aarch-common.c: Likewise.
* config/arm/arm-builtins.c: Likewise.
* config/arm/arm-c.c: Likewise.
* config/arm/arm.c: Likewise.
* config/avr/avr-c.c: Likewise.
* config/avr/avr-devices.c: Likewise.
* config/avr/avr-log.c: Likewise.
* config/avr/avr.c: Likewise.
* config/bfin/bfin.c: Likewise.
* config/c6x/c6x.c: Likewise.
* config/cr16/cr16.c: Likewise.
* config/cris/cris.c: Likewise.
* config/darwin-c.c: Likewise.
* config/darwin-driver.c: Likewise.
* config/darwin.c: Likewise.
* config/default-c.c: Likewise.
* config/epiphany/epiphany.c: Likewise.
* config/epiphany/mode-switch-use.c: Likewise.
* config/epiphany/resolve-sw-modes.c: Likewise.
* config/fr30/fr30.c: Likewise.
* config/frv/frv.c: Likewise.
* config/ft32/ft32.c: Likewise.
* config/glibc-c.c: Likewise.
* config/h8300/h8300.c: Likewise.
* config/i386/host-cygwin.c: Likewise.
* config/i386/host-mingw32.c: Likewise.
* config/i386/i386-c.c: Likewise.
* config/i386/i386.c: Likewise.
* config/i386/msformat-c.c: Likewise.
* config/i386/winnt-cxx.c: Likewise.
* config/i386/winnt-stubs.c: Likewise.
* config/i386/winnt.c: Likewise.
* config/ia64/ia64-c.c: Likewise.
* config/ia64/ia64.c: Likewise.
* config/iq2000/iq2000.c: Likewise.
* config/lm32/lm32.c: Likewise.
* config/m32c/m32c-pragma.c: Likewise.
* config/m32c/m32c.c: Likewise.
* config/m32r/m32r.c: Likewise.
* config/mcore/mcore.c: Likewise.
* config/mep/mep-pragma.c: Likewise.
* config/mep/mep.c: Likewise.
* config/microblaze/microblaze-c.c: Likewise.
* config/microblaze/microblaze.c: Likewise.
* config/mips/mips-tables.opt
* config/mips/mips.c: Likewise.
* config/mmix/mmix.c: Likewise.
* config/mn10300/mn10300.c: Likewise.
* config/moxie/moxie.c: Likewise.
* config/msp430/msp430-c.c: Likewise.
* config/msp430/msp430.c: Likewise.
* config/nds32/nds32-cost.c: Likewise.
* config/nds32/nds32-fp-as-gp.c: Likewise.
* config/nds32/nds32-intrinsic.c: Likewise.
* config/nds32/nds32-isr.c: Likewise.
* config/nds32/nds32-md-auxiliary.c: Likewise.
* config/nds32/nds32-memory-manipulation.c: Likewise.
* config/nds32/nds32-pipelines-auxiliary.c: Likewise.
* config/nds32/nds32-predicates.c: Likewise.
* config/nds32/nds32.c: Likewise.
* config/nios2/nios2.c: Likewise.
* config/nvptx/mkoffload.c: Likewise.
* config/nvptx/nvptx.c: Likewise.
* config/pa/pa.c: Likewise.
* config/pdp11/pdp11.c: Likewise.
* config/rl78/rl78-c.c: Likewise.
* config/rl78/rl78.c: Likewise.
* config/rs6000/host-darwin.c: Likewise.
* config/rs6000/rs6000-c.c: Likewise.
* config/rs6000/rs6000-linux.c: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/rx/rx.c: Likewise.
* config/s390/s390-c.c: Likewise.
* config/s390/s390.c: Likewise.
* config/sh/sh-c.c: Likewise.
* config/sh/sh-mem.cc: Likewise.
* config/sh/sh.c: Likewise.
* config/sh/sh_optimize_sett_clrt.cc: Likewise.
* config/sh/sh_treg_combine.cc: Likewise.
* config/sol2-c.c: Likewise.
* config/sol2-cxx.c: Likewise.
* config/sol2-stubs.c: Likewise.
* config/sol2.c: Likewise.
* config/sparc/sparc-c.c: Likewise.
* config/sparc/sparc.c: Likewise.
* config/spu/spu-c.c: Likewise.
* config/spu/spu.c: Likewise.
* config/stormy16/stormy16.c: Likewise.
* config/v850/v850-c.c: Likewise.
* config/v850/v850.c: Likewise.
* config/vax/vax.c: Likewise.
* config/visium/visium.c: Likewise.
* config/vms/vms-c.c: Likewise.
* config/vms/vms.c: Likewise.
* config/vxworks.c: Likewise.
* config/winnt-c.c: Likewise.
* config/xtensa/xtensa.c: Likewise.

From-SVN: r228923

10 years agoReplace printf with __builtin_printf
H.J. Lu [Fri, 16 Oct 2015 19:34:32 +0000 (19:34 +0000)]
Replace printf with __builtin_printf

* gcc.target/i386/iamcu/test_basic_64bit_returning.c (main):
Replace printf with __builtin_printf.

From-SVN: r228922

10 years agoProperly initialize u5
H.J. Lu [Fri, 16 Oct 2015 19:31:20 +0000 (19:31 +0000)]
Properly initialize u5

* gcc.target/i386/iamcu/test_passing_unions.c (main): Properly
initialize u5.

From-SVN: r228921

10 years agore PR middle-end/67966 (ICE in convert_move, at expr.c:282)
Eric Botcazou [Fri, 16 Oct 2015 15:56:49 +0000 (15:56 +0000)]
re PR middle-end/67966 (ICE in convert_move, at expr.c:282)

PR middle-end/67966
* gnat.dg/pack21.adb: New test.
* gnat.dg/pack22.adb: Likewise.
* gnat.dg/pack22_pkg.ad[sb]: New helper.

From-SVN: r228917

10 years agoDocument options for Filesystem TS library
Jonathan Wakely [Fri, 16 Oct 2015 13:55:12 +0000 (14:55 +0100)]
Document options for Filesystem TS library

* doc/xml/manual/configure.xml: Document
--enable-libstdcxx-filesystem-ts option.
* doc/xml/manual/status_cxx2014.xml: Document libstdc++fs.a.
* doc/xml/manual/using.xml: Likewise.
* doc/html/*: Regenerate.

From-SVN: r228914

10 years agore PR target/67745 ([ARM] wrong alignments when __attribute__ ((optimize,target,align...
Christian Bruel [Fri, 16 Oct 2015 13:52:51 +0000 (15:52 +0200)]
re PR target/67745 ([ARM] wrong alignments when __attribute__ ((optimize,target,align) is used)

2015-10-16  Christian Bruel  <christian.bruel@st.com>

  PR target/67745
  * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
  (FUNCTION_BOUNDARY_P): New macro:
  * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
  New hook.
  * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
  * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
  * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
  * gcc/function.c (allocate_struct_function): Call relayout_function hook.
  * gcc/passes.c (rest_of_decl_compilation): Likewise.

From-SVN: r228912

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 13:52:44 +0000 (15:52 +0200)]
[multiple changes]

2015-10-16  Hristian Kirtchev  <kirtchev@adacore.com>

* aspects.adb Add an entry for Constant_After_Elaboration in
table Canonical_Aspect.
* aspects.ads Add entries for Constant_After_Elaboration in
tables Aspect_Argument, Aspect_Delay, Aspect_Id, Aspect_Names
and Implementation_Defined_Aspect.
* par-prag.adb Pragma Constant_After_Elaboration does not require
special processing by the parser.
* sem_ch13.adb Add an entry for Constant_After_Elaboration
in table Sig_Flags.
(Analyze_Aspect_Specifications):
Add processing for aspect Constant_After_Elaboration.
(Check_Aspect_At_Freeze_Point): Aspect Constant_After_Elaboration
does not require special processing at freeze time.
* sem_prag.adb (Analyze_Pragma): Add processing for pragma
Constant_After_Elaboration. Use routine Find_Related_Context to
retrieve the context of pragma Part_Of.
(Duplication_Error): Update comment on usage.
(Find_Related_Context): New routine.
* sem_prag.ads Add an entry for Constant_After_Elaboration
in table Aspect_Specifying_Pragma.
(Analyze_Contract_Cases_In_Decl_Part): Update the comment on usage.
* sem_util.adb (Add_Contract_Item): Add processing for pragma
Constant_After_Elaboration.
* sem_util.ads (Add_Contract_Item): Update the comment on usage.
* snames.ads-tmpl Add new predefined name and aspect id for
Constant_After_Elaboration.

2015-10-16  Vincent Celier  <celier@adacore.com>

* prj-pp.adb (Pretty_Print.Print): Correctly display extending
packages, instead of making them renamed packages.

From-SVN: r228911

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 13:43:47 +0000 (15:43 +0200)]
[multiple changes]

2015-10-16  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch12.adb (Analyze_Package_Instantiation):
Treat a missing SPARK_Mode annotation as having mode "Off".
(Analyze_Subprogram_Instantiation): Treat a missing SPARK_Mode
annotation as having mode "Off".
(Instantiate_Package_Body): Code
reformatting. Treat a missing SPARK_Mode annotation as having mode
"Off".
(Instantiate_Subprogram_Body): Code reformatting. Treat
a missing SPARK_Mode annotation as having mode "Off".

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* exp_ch5.adb: Code clean up.
* sem_ch13.adb: Minor fix in comment.

2015-10-16  Bob Duff  <duff@adacore.com>

* a-exexda.adb: Change format of Exception_Information to be
more like what we print for unhandled exceptions.
* a-exstat.adb: Parse new format.
* a-except-2005.adb, a-except.adb: Document new format.

From-SVN: r228907

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 13:41:29 +0000 (15:41 +0200)]
[multiple changes]

2015-10-16  Javier Miranda  <miranda@adacore.com>

* sem_ch5.adb (Analyze_Iterator_Specification): Associate a
transient scope with the renaming object declararation.
* exp_util.adb (Insert_Actions): if the enclosing interator
loop is marked as requiring the secondary stack then attach the
actions to the transient scope.

2015-10-16  Bob Duff  <duff@adacore.com>

* exp_ch7.adb: Minor spelling fixes.

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram):
If anonymous type is component type of array type declaration,
analyze its declaration in the current scope, not the enclosing
one.

From-SVN: r228906

10 years agoComplete previous change.
Arnaud Charlet [Fri, 16 Oct 2015 13:40:04 +0000 (15:40 +0200)]
Complete previous change.

From-SVN: r228905

10 years agore PR target/67745 ([ARM] wrong alignments when __attribute__ ((optimize,target,align...
Christian Bruel [Fri, 16 Oct 2015 13:37:14 +0000 (15:37 +0200)]
re PR target/67745 ([ARM] wrong alignments when __attribute__ ((optimize,target,align) is used)

2015-10-16  Christian Bruel  <christian.bruel@st.com>

PR target/67745
* config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
* config/arm/arm.c (arm_option_override_internal): Call
arm_override_options_after_change_1.
(arm_override_options_after_change): New function.
(arm_override_options_after_change_1): Likewise.
(TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.

From-SVN: r228904

10 years agoCode clean up.
Doug Rupp [Fri, 16 Oct 2015 13:28:39 +0000 (13:28 +0000)]
Code clean up.

From-SVN: r228903

10 years agoComplete previous change.
Arnaud Charlet [Fri, 16 Oct 2015 13:26:51 +0000 (15:26 +0200)]
Complete previous change.

From-SVN: r228902

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 13:25:00 +0000 (15:25 +0200)]
[multiple changes]

2015-10-16  Gary Dismukes  <dismukes@adacore.com>

* prj.adb, sem_util.adb, exp_ch6.adb: Minor reformatting.

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* exp_ch5.adb (Expand_Formal_Container_Element_Loop): Modify
expansion to allow element iteration over formal containers
whose elements are indefinite types.

2015-10-16  Doug Rupp  <rupp@adacore.com>

* s-taprop-linux.adb (Monotonic_Clock): Call clock_gettime
instead of gettimeofday.
* s-osinte-linux.ads (clock_gettime): New imported subprogram.

From-SVN: r228901

10 years agoComplete previous change.
Arnaud Charlet [Fri, 16 Oct 2015 13:21:25 +0000 (15:21 +0200)]
Complete previous change.

From-SVN: r228900

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 13:14:24 +0000 (15:14 +0200)]
[multiple changes]

2015-10-16  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
Indefinite or limited library level objects are now returned on
the heap.
* exp_ch7.adb (Build_Finalization_Master): Add formal
parameter For_Lib_Level. Add context specific insertion for a
finalization master created for an access result type related
to a build-in-place function call used to initialize a library
level object.
* exp_ch7.ads (Build_Finalization_Master): Add formal parameter
For_Lib_Level. Update the comment on usage.
* sem_util.adb (Mark_Coextensions): Code cleanup.

2015-10-16  Emmanuel Briot  <briot@adacore.com>

* prj.adb (For_Every_Project_Imported_Context): Fix handling
of aggregated projects with duplicate names.
* a-ngelfu.ads: Minor whitespace fix.

From-SVN: r228899

10 years agoFix typo.
Arnaud Charlet [Fri, 16 Oct 2015 13:14:12 +0000 (15:14 +0200)]
Fix typo.

From-SVN: r228898

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 13:11:18 +0000 (15:11 +0200)]
[multiple changes]

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* sem_ch13.adb (Build_Predicate_Functions): The expression for
the predicate is side-effect free if it does not contain any
variable references.

2015-10-16  Bob Duff  <duff@adacore.com>

* a-convec.adb ("="): Previous version depended
on "=" composing, but that doesn't quite work -- we want the "="
operator passed in to the generic. So we need a loop after all.

2015-10-16  Yannick Moy  <moy@adacore.com>

* sem_util.adb (Is_Object_Reference): Attribute 'Loop_Entry produces
an object.
* sem_ch6.adb: Minor fix in comment.

From-SVN: r228897

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 13:08:04 +0000 (15:08 +0200)]
[multiple changes]

2015-10-16  Bob Duff  <duff@adacore.com>

* a-contai.ads: Add two check names: Container_Checks and
Tampering_Check.  Move the tampering check machinery from
Ada.Containers.Vectors to Ada.Containers. Later we can share it
with other containers.
Disable the tampering machinery in the presence of
Suppress(Tampering_Check).
Simplify the implementation of tampering checks. E.g. use RAII
to make incrementing/decrementing of the counts more concise.
* a-contai.adb: New package body, implementing the above.
* a-convec.ads, a-convec.adb: Use tampering check machinery
in Ada.Containers.
Disable all checking code when checks are suppressed.
Simplify many of the operations. Implement "&" in terms of Append,
rather than "by hand".
Remove: function "=" (L, R : Elements_Array) return Boolean is
abstract; so we can call the predefined "=" on Elements_Array.
For "=" on Vectors: Previously, we returned True immediately if
Left'Address = Right'Address.  That seems like a non-optimization
("if X = X" is unusual), so removed that.  Simplify by using
slice comparison ("=" on Element_Array will automatically call
"=" on the components, even if user defined).

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* sem_ch13.adb (Chek_Record_Representation_Clause): When
iterating over components, skip anonymous subtypes created for
constrained array components.

From-SVN: r228896

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 13:03:16 +0000 (15:03 +0200)]
[multiple changes]

2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>

* a-tags.ads (Parent_Size): Remove obsolete pragma Export.
* s-finmas.ads (Header_Offset): Delete.
* s-finmas.adb (Header_Offset): Likewise.
(Finalize): Call Header_Size instead of Header_Offset.
* s-stposu.adb (Allocate_Any_Controlled): Likewise.
(Deallocate_Any_Controlled): Likewise.

2015-10-16  Arnaud Charlet  <charlet@adacore.com>

* a-exetim.ads, a-exetim-mingw.ads, a-exetim-default.ads: Whitespace
cleanup.
* s-osprim-mingw.adb, einfo.ads, sem_util.adb, sem_util.ads,
sem_ch4.adb, sem_ch13.adb, s-trasym.adb, s-trasym.ads,
s-taprop-posix.adb: Minor reformatting.

From-SVN: r228895

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 12:53:03 +0000 (14:53 +0200)]
[multiple changes]

2015-10-16  Bob Duff  <duff@adacore.com>

* adadecode.h, adadecode.c (ada_demangle): Remove
ada_demangle, no longer used.
* a-except-2005.adb: Bring System.Traceback.Symbolic into the
closure.

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* sem_util.adb, sem_util.ads (Get_Reference_Discriminant): Utility to
locate the access discriminant that supports implicit dereference on a
record type.
(Is_OK_Variable_For_Out_Parameter): Reject other illegal uses
of Implicit_Dereference on an access_to_constant when actual
parameter is a rewritten variable or function call.

From-SVN: r228886

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 12:47:43 +0000 (14:47 +0200)]
[multiple changes]

2015-10-16  Bob Duff  <duff@adacore.com>

        * a-tags.adb, s-trasym.adb, s-trasym.ads: Make sure we don't get                elaboration circularities when polling is turned on.

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram):
When creating a full declaration for a formal parameter, the
entity is labelled as an Itype, so set Associated_Node_For_Itype
accordingly.
* einfo.ads: Clarify use of Associated_Node_For_Itype.

2015-10-16  Bob Duff  <duff@adacore.com>

* bindgen: Move pragmas Warnings earlier, otherwise
we can get warnings on with_clauses.

From-SVN: r228885

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 12:43:21 +0000 (14:43 +0200)]
[multiple changes]

2015-10-16  Arnaud Charlet  <charlet@adacore.com>

* s-osprim-mingw.adb, s-osprim-x32.adb, s-taprop-mingw.adb,
s-taprop-posix.adb (Monotonic_Clock): Removed, not used.
Remove remaining references to OS_Primitives.Monotonic_Clock.
Keep it only on windows which is a special case.

2015-10-16  Javier Miranda  <miranda@adacore.com>

* a-textio.adb (Get_Line): Fix documentation.
* einfo.ads (Interface_Name): Fix documentation.
* exp_aggr.adb (Backend_Processing_Possible): Fix documentation.
* exp_ch4.adb (Expand_N_In): Fix documentation.

From-SVN: r228884

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 12:41:13 +0000 (14:41 +0200)]
[multiple changes]

2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>

* inline.adb (Subp_Info): Remove Listed component.
(Add_Inlined_Subprogram): Take an entity instead of an index.
Do not set Listed component to True.
(New_Entry): Do not initialize Listed component to False.
(Analyze_Inlined_Bodies): Do not test Listed component
(Must_Inline): Add calls not in the main unit only
if they are in a subprogram that can be inlined outside its unit.
(Add_Inlined_Body): Move test around and add comment.

2015-10-16  Arnaud Charlet  <charlet@adacore.com>

* sinfo.ads, einfo.ads: monir clean ups.

From-SVN: r228883

10 years agoMake-lang.in: Update dependencies
Arnaud Charlet [Fri, 16 Oct 2015 12:35:59 +0000 (12:35 +0000)]
Make-lang.in: Update dependencies

        * gcc-interface/Make-lang.in: Update dependencies

From-SVN: r228882

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 12:32:52 +0000 (14:32 +0200)]
[multiple changes]

2015-10-16  Arnaud Charlet  <charlet@adacore.com>

* usage.adb, debug.adb, a-except.adb, a-except.ads, a-except-2005.adb,
a-except-2005.ads, s-imgrea.adb: Minor code clean ups related to
jgnat/dotnet removal.

2015-10-16  Arnaud Charlet  <charlet@adacore.com>

* s-osprim-vxworks.adb, s-osprim-darwin.adb, s-tadeca.adb,
s-osprim-unix.adb, s-osprim-solaris.adb, s-osprim-posix.adb,
s-osprim.ads (Monotonic_Clock): Removed, unused.

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* sem_ch4.adb (Try_Object_Operation, Try_One_Interpretation):
Do not reset the Obj_Type of the prefix if an interpretation
involves an untagged type, to prevent a crash when analyzing an
illegal program in All_Errors mode.

2015-10-16  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch4.adb (Expand_N_Expression_With_Actions):
Force the evaluation of the expression when its type is Boolean.
(Force_Boolean_Evaluation): New routine.

2015-10-16  Bob Duff  <duff@adacore.com>

* sem_util.adb (Has_Discrim_Dep_Array): Remove
this function, and the call. No longer needed now that the back
end can handle such things. Should result in further speedups
in some cases.

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* sem_ch13.adb (Build_Predicate_Functions): If expression for
predicate is side-effect free, indicate that the predicate
function is pure, to allow for optimization of redundant
predicate checks.

From-SVN: r228881

10 years agochecks.adb: Fix typo.
Arnaud Charlet [Fri, 16 Oct 2015 12:25:58 +0000 (12:25 +0000)]
checks.adb: Fix typo.

2015-10-16  Arnaud Charlet  <charlet@adacore.com>

* checks.adb: Fix typo.
* s-osinte-linux.ads: Add header.
* projects.texi: Removed, no longer used.
* s-multip.adb: Minor: fix header.
* sem_ch3.adb, exp_ch7.adb, g-dirope.ads, sinfo.ads, types.ads,
a-textio.adb, s-exctra.adb, ali.adb, back_end.ads, exp_intr.adb,
a-tigeli.adb, exp_ch3.adb, s-os_lib.ads: Remove further references to
.NET.
* gnatlink.adb, opt.ads, exp_aggr.adb, s-solita.adb: Minor comment
updates.

From-SVN: r228880

10 years agoexp_ch9.adb (Build_Simple_Entry_Call): Set_Is_Internal on the temporary object used...
Gary Dismukes [Fri, 16 Oct 2015 12:22:22 +0000 (12:22 +0000)]
exp_ch9.adb (Build_Simple_Entry_Call): Set_Is_Internal on the temporary object used for a by-copy entry parameter...

2015-10-16  Gary Dismukes  <dismukes@adacore.com>

* exp_ch9.adb (Build_Simple_Entry_Call): Set_Is_Internal on
the temporary object used for a by-copy entry parameter, to
ensure that the object doesn't get its No_Initialization flag
reset later in Default_Initialize_Object. Also, generate the
assignment of the actual to the temporary in the additional case
of a scalar out parameter whose type has a Default_Value aspect.
* exp_ch3.adb: Fix minor typo in comment.

From-SVN: r228879

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 12:21:03 +0000 (14:21 +0200)]
[multiple changes]

2015-10-16  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_util.adb, sem_util.ads, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb:
Minor reformatting.
* sem_ch12.adb (Analyze_Formal_Package_Declaration): Set the
SPARK_Mode from the context.

2015-10-16  Bob Duff  <duff@adacore.com>

* sem_util.adb (Requires_Transient_Scope):
If Typ is a generic formal incomplete type, look at the actual
type. Otherwise, we don't notice that the actual type is tagged,
has a variant part, etc, causing a mismatch of calling conventions
between caller and callee.

2015-10-16  Hristian Kirtchev  <kirtchev@adacore.com>

* einfo.ads: Move the declaration of enumeration
literal E_Abstract_State above E_Entry.  Update the upper bound
of subtype Overloadable_Kind.

2015-10-16  Gary Dismukes  <dismukes@adacore.com>

* exp_attr.adb: Minor editorial changes.

From-SVN: r228878

10 years agoShrink std::random_shuffle test to pass on simulators
Aurelio Remonda [Fri, 16 Oct 2015 11:12:15 +0000 (11:12 +0000)]
Shrink std::random_shuffle test to pass on simulators

2015-10-16  Aurelio Remonda  <aurelio.remonda@tallertechnologies.com>

* testsuite/25_algorithms/random_shuffle/moveable.cc: Change variable
N from const int N = 200000 to const unsigned int N = 10000.
Delete useless fill_ascending function call.

From-SVN: r228876

10 years agorevert: ipa-icf-gimple.c (func_checker::compare_operand): Compare only empty construc...
Jan Hubicka [Fri, 16 Oct 2015 11:06:14 +0000 (13:06 +0200)]
revert: ipa-icf-gimple.c (func_checker::compare_operand): Compare only empty constructors.

Revert:
* ipa-icf-gimple.c (func_checker::compare_operand): Compare only
empty constructors.
* gcc.c-torture/compile/icfmatch.c: Add testcase

From-SVN: r228875

10 years agoexp_ch5.adb, [...]: Code clean up: remove special handling for .NET and JVM.
Arnaud Charlet [Fri, 16 Oct 2015 11:01:53 +0000 (11:01 +0000)]
exp_ch5.adb, [...]: Code clean up: remove special handling for .NET and JVM.

2015-10-16  Arnaud Charlet  <charlet@adacore.com>

* exp_ch5.adb, sem_ch3.adb, frontend.adb, exp_ch7.adb, exp_ch7.ads,
sem_ch5.adb, sem_type.adb, exp_util.adb, exp_util.ads, comperr.adb,
exp_attr.adb, sinfo.ads, exp_ch9.adb, make.adb, usage.adb,
lib-writ.adb, sem_ch9.adb, bindgen.adb, debug.adb, einfo.adb,
einfo.ads, types.ads, checks.adb, sem_prag.adb, s-tasini.adb,
rtsfind.ads, freeze.adb, sem_util.adb, sem_util.ads, exp_dbug.adb,
gnatlink.adb, gnat1drv.adb, targparm.adb, targparm.ads, exp_ch4.adb,
exp_ch11.adb, repinfo.adb, s-soflin.adb, s-soflin.ads, exp_ch6.adb,
exp_ch13.adb, sem_mech.adb, sem_ch6.adb, par-prag.adb, exp_disp.adb,
sem_ch8.adb, exp_disp.ads, snames.adb-tmpl, exp_aggr.adb, sem_eval.adb,
exp_intr.adb, sem_ch13.adb, snames.ads-tmpl, sem_disp.adb, exp_ch3.adb:
Code clean up: remove special handling for .NET and JVM.

From-SVN: r228874

10 years agosem_ch12.adb: Minor punctuation fix in comment
Arnaud Charlet [Fri, 16 Oct 2015 11:00:05 +0000 (11:00 +0000)]
sem_ch12.adb: Minor punctuation fix in comment

2015-10-16  Arnaud Charlet  <charlet@adacore.com>

* sem_ch12.adb: Minor punctuation fix in comment
* s-rident.ads: Minor consistency fix in comment
* exp_attr.adb, g-spipat.ads: punctuation fixes in comments.
* restrict.ads: Style fix in comments.
* sem_prag.adb: Minor grammar fix in comment

From-SVN: r228873

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 10:56:54 +0000 (12:56 +0200)]
[multiple changes]

2015-10-16  Gary Dismukes  <dismukes@adacore.com>

* sem_ch12.adb: Minor reformatting/rewording.

2015-10-16  Arnaud Charlet  <charlet@adacore.com>

* einfo.ads: Minor fix of duplicate words
* rident.ads: Minor style fix in comment

From-SVN: r228872

10 years agoexp_ch3.adb (Expand_N_Full_Type_Declaration): Do not capture, set and restore the...
Hristian Kirtchev [Fri, 16 Oct 2015 10:54:13 +0000 (10:54 +0000)]
exp_ch3.adb (Expand_N_Full_Type_Declaration): Do not capture, set and restore the Ghost mode.

2015-10-16  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch3.adb (Expand_N_Full_Type_Declaration): Do not capture,
set and restore the Ghost mode.
(Expand_N_Object_Declaration): Do not capture, set and restore the
Ghost mode.
(Freeze_Type): Redo the capture and restore of the Ghost mode.
(Restore_Globals): Removed.
* exp_ch5.adb (Expand_N_Assignment_Statement): Redo the capture
and restore of the Ghost mode.
(Restore_Globals): Removed.
* exp_ch6.adb (Expand_N_Procedure_Call_Statement):
Redo the capture and restore of the Ghost mode.
(Expand_N_Subprogram_Body): Redo the capture, set and restore
of the Ghost mode.
(Expand_N_Subprogram_Declaration): Do not
capture, set and restore the Ghost mode.
(Restore_Globals): Removed.
* exp_ch7.adb (Expand_N_Package_Body): Redo the capture, set
and restore of the Ghost mode.
(Expand_N_Package_Declaration): Do not capture, set and restore the
Ghost mode.
* exp_ch8.adb (Expand_N_Exception_Renaming_Declaration):
Redo the capture and restore of the Ghost mode.
(Expand_N_Object_Renaming_Declaration): Redo
the capture and restore of the Ghost mode.
(Expand_N_Package_Renaming_Declaration):
Redo the capture and restore of the Ghost mode.
(Expand_N_Subprogram_Renaming_Declaration): Redo the capture
and restore of the Ghost mode.
* exp_ch11.adb Remove with and use clauses for Ghost.
(Expand_N_Exception_Declaration): Do not capture, set and restore
the Ghost mode.
* exp_disp.adb (Make_DT): Redo the capture and restore of the
Ghost mode.
(Restore_Globals): Removed.
* exp_prag.adb (Expand_Pragma_Check): Do not capture, set
and restore the Ghost mode.
(Expand_Pragma_Contract_Cases):
Redo the capture and restore of the Ghost mode.  Preserve the
original context of contract cases by setting / resetting the
In_Assertion_Expr counter.
(Expand_Pragma_Initial_Condition):
Redo the capture and restore of the Ghost mode.
(Expand_Pragma_Loop_Variant): Redo the capture and restore of
the Ghost mode.
(Restore_Globals): Removed.
* exp_util.adb (Make_Predicate_Call): Redo the capture and
restore of the Ghost mode.
(Restore_Globals): Removed.
* freeze.adb (Freeze_Entity): Redo the capture and restore of
the Ghost mode.
(Restore_Globals): Removed.
* ghost.adb (Check_Ghost_Context): Remove the RM reference from
the error message.
(Is_OK_Statement): Account for statements
that appear in assertion expressions.
(Is_Subject_To_Ghost):
Moved from spec.
* ghost.ads (Is_Subject_To_Ghost): Moved to body.
* rtsfind.ads (Load_RTU): Redo the capture and restore of the
Ghost mode.
* sem.adb Add with and use clauses for Ghost.
(Analyze): Redo
the capture and restore of the Ghost mode. Set the Ghost mode
when analyzing a declaration.
(Do_Analyze): Redo the capture
and restore of the Ghost mode.
* sem_ch3.adb (Analyze_Full_Type_Declaration): Do not capture, set
and restore the Ghost mode.
(Analyze_Incomplete_Type_Decl):
Do not capture, set and restore the Ghost mode.
(Analyze_Number_Declaration): Do not capture, set and restore the
Ghost mode.
(Analyze_Object_Declaration): Do not capture, set and
restore the Ghost mode.
(Analyze_Private_Extension_Declaration):
Do not capture, set and restore the Ghost mode.
(Analyze_Subtype_Declaration): Do not capture, set and restore
the Ghost mode.
(Restore_Globals): Removed.
* sem_ch5.adb (Analyze_Assignment): Redo the capture and restore
of the Ghost mode.
(Restore_Globals): Removed.
* sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration):
Do not capture, set and restore the Ghost mode.
(Analyze_Procedure_Call): Redo the capture and restore of the
Ghost mode.
(Analyze_Subprogram_Body_Helper): Redo the capture
and restore of the Ghost mode. (Analyze_Subprogram_Declaration):
Do not capture, set and restore the Ghost mode.
(Restore_Globals): Removed.
* sem_ch7.adb (Analyze_Package_Body_Helper): Redo the capture and
restore of the Ghost mode.
(Analyze_Package_Declaration):
Do not capture, set and restore the Ghost mode.
(Analyze_Private_Type_Declaration): Do not capture, set and
restore the Ghost mode.
(Restore_Globals): Removed.
* sem_ch8.adb (Analyze_Exception_Renaming): Do not capture,
set and restore the Ghost mode.
(Analyze_Generic_Renaming): Do not capture, set and restore the Ghost
mode.
(Analyze_Object_Renaming): Do not capture, set and restore the
Ghost mode.
(Analyze_Package_Renaming): Do not capture, set and restore the Ghost
mode.
(Analyze_Subprogram_Renaming): Do not capture, set and restore the
Ghost mode.
(Restore_Globals): Removed.
* sem_ch11.adb (Analyze_Exception_Declaration): Do not capture,
set and restore the Ghost mode.
* sem_ch12.adb (Analyze_Generic_Package_Declaration):
Do not capture, set and restore the Ghost mode.
(Analyze_Generic_Subprogram_Declaration): Do not capture, set
and restore the Ghost mode.
* sem_ch13.adb (Build_Invariant_Procedure_Declaration): Redo
the capture and restore of the Ghost mode.
* sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part):
Redo the capture and restore of the Ghost mode.
(Analyze_External_Property_In_Decl_Part):
Redo the capture and restore of the Ghost mode.
(Analyze_Initial_Condition_In_Decl_Part): Redo the
capture and restore of the Ghost mode. (Analyze_Pragma):
Do not capture, set and restore the Ghost mode for Assert.
Redo the capture and restore of the Ghost mode for Check. Do
not capture and restore the Ghost mode for Invariant.
(Analyze_Pre_Post_Condition_In_Decl_Part): Redo the capture and
restore of the Ghost mode.
* sem_res.adb (Resolve): Capture, set and restore the Ghost mode
when resolving a declaration.
* sem_util.adb (Build_Default_Init_Cond_Procedure_Body):
Redo the capture and restore of the Ghost mode.
(Build_Default_Init_Cond_Procedure_Declaration): Redo the capture
and restore of the Ghost mode.

From-SVN: r228871

10 years agotree.c (recompute_tree_invariant_for_addr_expr): Assert that the argument is an ADDR_...
Eric Botcazou [Fri, 16 Oct 2015 10:52:46 +0000 (10:52 +0000)]
tree.c (recompute_tree_invariant_for_addr_expr): Assert that the argument is an ADDR_EXPR.

* tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
argument is an ADDR_EXPR.

From-SVN: r228870

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 10:51:32 +0000 (12:51 +0200)]
[multiple changes]

2015-10-16  Bob Duff  <duff@adacore.com>

* debug.adb: Document -gnatdQ switch.

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* sem_ch12.adb (Analyze_Formal_Subprogram): Implement rule that
a formal abstract subprogram cannot have a null default: RM 12.6
(4 1.2).

From-SVN: r228869

10 years agosem_util.ads, [...]: Minor comment fixes.
Bob Duff [Fri, 16 Oct 2015 10:50:42 +0000 (10:50 +0000)]
sem_util.ads, [...]: Minor comment fixes.

2015-10-16  Bob Duff  <duff@adacore.com>

* sem_util.ads, sinput.ads, bcheck.adb: Minor comment fixes.

From-SVN: r228868

10 years ago* MAINTAINERS: Update list of Ada maintainers and email addresses.
Arnaud Charlet [Fri, 16 Oct 2015 10:48:32 +0000 (10:48 +0000)]
* MAINTAINERS: Update list of Ada maintainers and email addresses.

From-SVN: r228867

10 years ago[multiple changes]
Arnaud Charlet [Fri, 16 Oct 2015 10:44:09 +0000 (12:44 +0200)]
[multiple changes]

2015-10-16  Javier Miranda  <miranda@adacore.com>

* inline.adb (Add_Inlined_Body): Ensure that
Analyze_Inlined_Bodies will be invoked after completing the
analysis of the current unit.

2015-10-16  Arnaud Charlet  <charlet@adacore.com>

* sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Fix error
message for bad last bit position.
* sem_ch3.adb, sem_util.adb, sem_util.ads: Minor reformatting.

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* exp_ch5.adb (Expand_N_Case_Statement): If expression is
compile-time known but does not obey a static predicate on
its type, replace the case statement with a raise statement,
as with other statically detected constraint violations.

2015-10-16  Bob Duff  <duff@adacore.com>

* s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb:
Reinstate code.
* opt.ads: Minor typo.

From-SVN: r228866

10 years agosem_util.adb (Gather_Components): When gathering components of a nested variant...
Ed Schonberg [Fri, 16 Oct 2015 10:28:37 +0000 (10:28 +0000)]
sem_util.adb (Gather_Components): When gathering components of a nested variant...

2015-10-16  Ed Schonberg  <schonberg@adacore.com>

* sem_util.adb (Gather_Components): When gathering components
of a nested variant, the record type used in legality checks is
the enclosing record type.

From-SVN: r228865

10 years agogimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build and get rid of force_...
Richard Biener [Fri, 16 Oct 2015 07:52:32 +0000 (07:52 +0000)]
gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build and get rid of force_gimple_operand_gsi.

2015-10-16  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
and get rid of force_gimple_operand_gsi.
(gimple_fold_builtin_memory_chk): Likewise.
(gimple_fold_builtin_stxcpy_chk): Likewise.
(rewrite_to_defined_overflow): Likewise.
(gimple_convert_to_ptrofftype): New function.
* gimple-fold.h (gimple_convert_to_ptrofftype): New overload,
declare.

From-SVN: r228863

10 years agotree-nested.h (build_addr): Adjust prototype.
Richard Biener [Fri, 16 Oct 2015 07:45:09 +0000 (07:45 +0000)]
tree-nested.h (build_addr): Adjust prototype.

2015-10-16  Richard Biener  <rguenther@suse.de>

* tree-nested.h (build_addr): Adjust prototype.
* tree-nested.c (build_addr): Remove context argument and use
mark_addressable.
(get_static_chain): Adjust calls to build_addr.
(convert_nl_goto_reference): Likewise.
(convert_tramp_reference_op): Likewise.
(finalize_nesting_tree_1): Likewise.
* value-prof.c (gimple_ic): Likewise.
* gimple-low.c (lower_builtin_setjmp): Likewise.
* tree-parloops.c (take_address_of): Likewise.
(create_call_for_reduction_1): Likewise.
* tree-profile.c (gimple_gen_interval_profiler): Likewise.
(gimple_gen_ic_func_profiler): Likewise.

fortran/
* trans-intrinsic.c (gfc_conv_intrinsic_lib_function): Adjust
calls to build_addr.
(gfc_conv_intrinsic_mod): Likewise.
(gfc_conv_intrinsic_ctime): Likewise.
(gfc_conv_intrinsic_fdate): Likewise.
(gfc_conv_intrinsic_ttynam): Likewise.
(gfc_conv_intrinsic_minmax_char): Likewise.
(gfc_conv_intrinsic_index_scan_verify): Likewise.
(gfc_conv_intrinsic_trim): Likewise.

From-SVN: r228862

10 years agore PR c++/67926 (Using folding expressions in a constexpr context ice's)
Paolo Carlini [Fri, 16 Oct 2015 07:06:11 +0000 (07:06 +0000)]
re PR c++/67926 (Using folding expressions in a constexpr context ice's)

/cp
2015-10-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67926
* constexpr.c (potential_constant_expression_1): Handle
UNARY_LEFT_FOLD_EXPR, UNARY_RIGHT_FOLD_EXPR, BINARY_LEFT_FOLD_EXPR,
BINARY_RIGHT_FOLD_EXPR.

/testsuite
2015-10-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67926
* g++.dg/cpp1z/fold-ice1.C: New.

From-SVN: r228861

10 years agoipa-icf-gimple.c (func_checker::compare_operand): Compare only empty constructors.
Jan Hubicka [Fri, 16 Oct 2015 03:10:27 +0000 (05:10 +0200)]
ipa-icf-gimple.c (func_checker::compare_operand): Compare only empty constructors.

* ipa-icf-gimple.c (func_checker::compare_operand): Compare only
empty constructors.

From-SVN: r228860

10 years agoDaily bump.
GCC Administrator [Fri, 16 Oct 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r228858

10 years ago2015-09-30 Michael Collison <michael.collison@linaro.org>
Michael Collison [Thu, 15 Oct 2015 22:21:22 +0000 (22:21 +0000)]
2015-09-30  Michael Collison  <michael.collison@linaro.org>
    Andrew Pinski <andrew.pinski@caviumnetworks.com>

* match.pd ((x < y) && (x < z) -> x < min (y,z),
(x > y) and (x > z) -> x > max (y,z))
* testsuite/gcc.dg/tree-ssa/minmax-loopend.c: New test.

Co-Authored-By: Andrew Pinski <andrew.pinski@caviumnetworks.com>
From-SVN: r228854

10 years agomicroblaze musl support
Gregor Richards [Thu, 15 Oct 2015 19:12:15 +0000 (19:12 +0000)]
microblaze musl support

* config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
(DYNAMIC_LINKER): Renamed to ...
(GLIBC_DYNAMIC_LINKER): This.
(SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.

Co-Authored-By: Szabolcs Nagy <szabolcs.nagy@arm.com>
From-SVN: r228850

10 years agoFixup ChangeLog entry
Peter Bergner [Thu, 15 Oct 2015 16:35:40 +0000 (11:35 -0500)]
Fixup ChangeLog entry

From-SVN: r228845

10 years agomark libstdc++ tests unsupported if they fail with "relocation truncated"
Szabolcs Nagy [Thu, 15 Oct 2015 15:15:37 +0000 (15:15 +0000)]
mark libstdc++ tests unsupported if they fail with "relocation truncated"

* testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for
unsupported compiler output.

From-SVN: r228844

10 years agotree-ssa-reassoc.c (attempt_builtin_copysign): Call gimple_call_builtin instead of...
Marek Polacek [Thu, 15 Oct 2015 13:22:47 +0000 (13:22 +0000)]
tree-ssa-reassoc.c (attempt_builtin_copysign): Call gimple_call_builtin instead of is_gimple_call.

* tree-ssa-reassoc.c (attempt_builtin_copysign): Call
gimple_call_builtin instead of is_gimple_call.

* gcc.dg/tree-ssa/reassoc-42.c: New test.

From-SVN: r228843

10 years agotree-vect-stmts.c (vect_init_vector): Remove unused vars.
Richard Biener [Thu, 15 Oct 2015 12:14:23 +0000 (12:14 +0000)]
tree-vect-stmts.c (vect_init_vector): Remove unused vars.

2015-10-15  Richard Biener  <rguenther@suse.de>

* tree-vect-stmts.c (vect_init_vector): Remove unused vars.

From-SVN: r228842

10 years agotree-vectorizer.h (vect_get_new_ssa_name): Declare.
Richard Biener [Thu, 15 Oct 2015 11:39:09 +0000 (11:39 +0000)]
tree-vectorizer.h (vect_get_new_ssa_name): Declare.

2015-10-15  Richard Biener  <rguenther@suse.de>

* tree-vectorizer.h (vect_get_new_ssa_name): Declare.
* tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
* tree-vect-loop.c (get_initial_def_for_induction): Drop
use of force_gimple_operand in favor of gimple_build.
Use vect_get_new_ssa_name.
* tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
(vectorizable_mask_load_store): Likewise.
(vectorizable_call): Likewise.
(vectorizable_store): Likewise.
(vectorizable_load): Likewise.
(vect_get_vec_def_for_stmt_copy): Remove redundant stmt.

From-SVN: r228841

10 years agoPR67945: Fix oscillation between pow representations
Richard Sandiford [Thu, 15 Oct 2015 09:50:07 +0000 (09:50 +0000)]
PR67945: Fix oscillation between pow representations

This patch fixes some fallout from my patch to move the sqrt and cbrt
folding rules to match.pd.  The rules included canonicalisations like:

       sqrt(sqrt(x))->pow(x,1/4)

which in the original code was only ever done at the generic level.
My patch meant that we'd do it whenever we tried to fold a gimple
statement, and eventually it would win over the sincos optimisation
that replaces pow(x,1/4) with sqrt(sqrt(x)).

Following a suggestion from Richard B, the patch adds a new
PROP_gimple_* flag to say whether fp routines have been optimised
for the target.  If so, match.pd should only transform calls to math
functions if the result is actually an optimisation, not just an
IL simplification or canonicalisation.  The question then of course
is: which rules are which?  I've added block comments that describe
the criteria I was using.

A slight wart is that we need to use the cfun global to access
the PROP_gimple_* flag; there's no local function pointer available.

Bootstrapped & regression-tested on x86_64-linux-gnu.  Also tested
on powerc64-linux-gnu.

gcc/
PR tree-optimization/67945
* tree-pass.h (PROP_gimple_opt_math): New property flag.
* generic-match-head.c (canonicalize_math_p): New function.
* gimple-match-head.c: Include tree-pass.h.
(canonicalize_math_p): New function.
* match.pd: Group math built-in rules into simplifications
and canonicalizations.  Guard the latter with canonicalize_math_p.
* tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
PROP_gimple_opt_math property.

From-SVN: r228840

10 years agore PR tree-optimization/67953 (match.pd: X - (X / Y) * Y wrong on change of sign)
Marek Polacek [Thu, 15 Oct 2015 09:39:35 +0000 (09:39 +0000)]
re PR tree-optimization/67953 (match.pd: X - (X / Y) * Y wrong on change of sign)

PR tree-optimization/67953
* match.pd (X - (X / Y) * Y): Don't change signedness of @0.

* gcc.dg/fold-minus-6.c (fn4): Change the type of A to
unsigned.
* gcc.dg/torture/pr67953.c: New test.

From-SVN: r228839

10 years agore PR other/66887 (trunk/libmpx/mpxrt/mpxrt.c:158: possible performance problem)
Ilya Enkovich [Thu, 15 Oct 2015 09:26:39 +0000 (09:26 +0000)]
re PR other/66887 (trunk/libmpx/mpxrt/mpxrt.c:158: possible performance problem)

libmpx/

PR other/66887
* mpxrt/mpxrt.c (read_mpx_status_sig): Remove useless code.

From-SVN: r228838

10 years ago[AArch64] --with-arch in config.gcc support "."
Jiong Wang [Thu, 15 Oct 2015 09:19:42 +0000 (09:19 +0000)]
[AArch64] --with-arch in config.gcc support "."

* config.gcc: Recognize "." in architecture base name for AArch64.

From-SVN: r228837

10 years agoDaily bump.
GCC Administrator [Thu, 15 Oct 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r228834

10 years agomips.h (MIPS_STACK_ALIGN): Implement using ROUND_UP macro.
Uros Bizjak [Wed, 14 Oct 2015 21:52:37 +0000 (23:52 +0200)]
mips.h (MIPS_STACK_ALIGN): Implement using ROUND_UP macro.

* config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
ROUND_UP macro.
* config/mips/mips.c (mips_setup_incoming_varargs): Use
ROUND_DOWN to calculate off.
(mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
(mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
rounded_size.

From-SVN: r228829

10 years ago* gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
Eric Botcazou [Wed, 14 Oct 2015 21:32:04 +0000 (21:32 +0000)]
* gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.

From-SVN: r228828

10 years agohtm.md (UNSPEC_HTM_FENCE): New.
Peter Bergner [Wed, 14 Oct 2015 21:28:06 +0000 (16:28 -0500)]
htm.md (UNSPEC_HTM_FENCE): New.

* config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
(tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
(*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
*trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
(tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
trechkpt, treclaim, tsr, ttest): New define_expands.
* config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
__TM_FENCE__ for htm.
* doc/extend.texi: Update documentation for htm builtins.

Co-Authored-By: Torvald Riegel <triegel@redhat.com>
From-SVN: r228827

10 years agore PR target/67967 (ICE in i386_pe_seh_unwind_emit)
Uros Bizjak [Wed, 14 Oct 2015 21:18:19 +0000 (23:18 +0200)]
re PR target/67967 (ICE in i386_pe_seh_unwind_emit)

PR target/67967
* config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
REG_CFA_EXPRESSION to aligned SSE stores.

From-SVN: r228826

10 years agotarget.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end to 0 when mapnum...
Ilya Verbin [Wed, 14 Oct 2015 18:37:10 +0000 (18:37 +0000)]
target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end to 0 when mapnum is 0.

libgomp/
* target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
to 0 when mapnum is 0.

Co-Authored-By: Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
From-SVN: r228825

10 years ago[PATCH] Fix accounting for num_threaded_edges
Jeff Law [Wed, 14 Oct 2015 17:53:46 +0000 (11:53 -0600)]
[PATCH] Fix accounting for num_threaded_edges

* tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
num_threaded_edges for successful FSM threads too.

From-SVN: r228822

10 years ago[PATCH] Split ssa-dom-thread-2.c into separate files/tests
Jeff Law [Wed, 14 Oct 2015 17:12:40 +0000 (11:12 -0600)]
[PATCH] Split ssa-dom-thread-2.c into separate files/tests

* gcc.dg/tree-ssa/ssa-dom-thread-2.c: Deleted.  The six functions
contained within have their own file/test now.
* gcc.dg/tree-ssa/ssa-dom-thread-2a.c: New test extracted from
ssa-dom-thread-2.c.  Tighten expected output slightly and comment
expectations a bit more.
* gcc.dg/tree-ssa/ssa-dom-thread-2b.c: Likewise.
* gcc.dg/tree-ssa/ssa-dom-thread-2c.c: Likewise.
* gcc.dg/tree-ssa/ssa-dom-thread-2d.c: Likewise.
* gcc.dg/tree-ssa/ssa-dom-thread-2e.c: Likewise.
* gcc.dg/tree-ssa/ssa-dom-thread-2f.c: Likewise.

From-SVN: r228821

10 years ago[PATCH] [PR testsuite/67959]Minor cleanup for ssa-thread-13.c
Jeff Law [Wed, 14 Oct 2015 17:04:04 +0000 (11:04 -0600)]
[PATCH] [PR testsuite/67959]Minor cleanup for ssa-thread-13.c

        PR testsuite/67959
        * gcc.dg/tree-ssa/ssa-thread-13.c: Avoid bitfield assumptions.

From-SVN: r228819

10 years agoreassoc-39.c: Use -g.
Marek Polacek [Wed, 14 Oct 2015 14:08:51 +0000 (14:08 +0000)]
reassoc-39.c: Use -g.

* gcc.dg/tree-ssa/reassoc-39.c: Use -g.  Adjust dg-final.
(f6): New.
(f7): New.
(f8): New.
(f9): New.
(f10): New.
(f11): New.
(f12): New.
(f13): New.

From-SVN: r228812

10 years agotree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
Richard Biener [Wed, 14 Oct 2015 13:57:09 +0000 (13:57 +0000)]
tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.

2015-10-14  Richard Biener  <rguenther@suse.de>

* tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
(vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
(vect_get_vec_def_for_operand): Remove unused parameter.
* tree-vect-loop.c (get_initial_def_for_induction): Adjust.
(vect_create_epilog_for_reduction): Likewise.
(vectorizable_reduction): Likewise.
(vectorizable_live_operation): Likewise.
* tree-vect-patterns.c (type_conversion_p): Likewise.
(vect_recog_vector_vector_shift_pattern): Likewise.
(check_bool_pattern): Likewise.
* tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
(vect_analyze_slp_cost_1): Likewise.
* tree-vect-stmts.c (process_use): Likewise.
(vect_get_vec_def_for_operand): Do not handle reductions.
(vect_get_vec_defs): Adjust.
(vectorizable_mask_load_store): Likewise.
(vectorizable_call): Likewise.
(vectorizable_simd_clone_call): Likewise.
(vect_get_loop_based_defs): Likewise.
(vectorizable_conversion): Likewise.
(vectorizable_assignment): Likewise.
(vectorizable_shift): Likewise.
(vectorizable_operation): Likewise.
(vectorizable_store): Likewise.
(vectorizable_load): Likewise.
(vect_is_simple_cond): Likewise.
(vectorizable_condition): Likewise.
(vect_is_simple_use): Remove unused parameters.
(vect_is_simple_use_1): Adjust and rename.

From-SVN: r228811

10 years agore PR tree-optimization/67915 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu)
Richard Biener [Wed, 14 Oct 2015 12:59:15 +0000 (12:59 +0000)]
re PR tree-optimization/67915 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu)

2015-10-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/67915
* match.pd: Handle comparisons of addresses of STRING_CSTs.
* gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
* tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
stmt folding in favor of GIMPLE one.

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

From-SVN: r228810

10 years agore PR tree-optimization/67815 (Optimize const1 * copysign (const2, y) into copysign...
Marek Polacek [Wed, 14 Oct 2015 12:54:03 +0000 (12:54 +0000)]
re PR tree-optimization/67815 (Optimize const1 * copysign (const2, y) into copysign (const1 * const2, y) if const1 > 0 or -copysign (const1 * const2, y) if const1 < 0)

PR tree-optimization/67815
* tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
(reassociate_bb): Call it.

* gcc.dg/tree-ssa/reassoc-39.c: New test.
* gcc.dg/tree-ssa/reassoc-40.c: New test.
* gcc.dg/tree-ssa/reassoc-41.c: New test.

From-SVN: r228809

10 years agoparse.c (decode_statement): Initialize M to MATCH_NO.
Max Ostapenko [Wed, 14 Oct 2015 12:06:29 +0000 (15:06 +0300)]
parse.c (decode_statement): Initialize M to MATCH_NO.

2015-10-14  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>

* parse.c (decode_statement): Initialize M to MATCH_NO.

From-SVN: r228807

10 years agotree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reset info at start.
Richard Biener [Wed, 14 Oct 2015 08:32:25 +0000 (08:32 +0000)]
tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reset info at start.

2015-10-14  Richard Biener  <rguenther@suse.de>

* tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
Reset info at start.
(vect_analyze_group_access_1): Add debug print.
* tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
(vect_compute_single_scalar_iteration_cost): ... to this.
(vect_analyze_loop_2): Adjust.
* tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
* tree-vectorizer.h: ... here.
(add_stmt_info_to_vec): Remove.
* tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.

From-SVN: r228806

10 years ago[gomp] Fix build for 32-bit targets with int != int32_t
Sebastian Huber [Wed, 14 Oct 2015 08:30:52 +0000 (08:30 +0000)]
[gomp] Fix build for 32-bit targets with int != int32_t

libgomp/
2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>

* fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
Cast to int from int32_t.

From-SVN: r228805

10 years agoFix "#pragma GCC pop_options"
Dominik Vogt [Wed, 14 Oct 2015 06:53:54 +0000 (06:53 +0000)]
Fix "#pragma GCC pop_options"

gcc/ChangeLog

* targhooks.c (default_target_option_pragma_parse): Do not warn if
called on behalf of "#pragma GCC pop_options".

gcc/testsuite/ChangeLog

* gcc.dg/pragma-pop_options-1.c: New test.

From-SVN: r228794

10 years agoDaily bump.
GCC Administrator [Wed, 14 Oct 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r228793

10 years agoCheck no unreachable blocks in inverted_post_order_compute
Tom de Vries [Tue, 13 Oct 2015 22:10:45 +0000 (22:10 +0000)]
Check no unreachable blocks in inverted_post_order_compute

2015-10-14  Tom de Vries  <tom@codesourcery.com>

* cfganal.c (verify_no_unreachable_blocks): New function.
(inverted_post_order_compute) [ENABLE_CHECKING]: Call
verify_no_unreachable_blocks.
cfganal.h (verify_no_unreachable_blocks): Declare.

From-SVN: r228789