- 13 Jul, 2017 5 commits
-
-
2017-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com> gcc/ * doc/invoke.texi (armv8-r): Document +fp.sp ARMv8-R extension. From-SVN: r250178
Thomas Preud'homme committed -
My patch last week to address selection of be8 linking mode broke the build for vxworks. It turns out that this port is one of the few remaining that is still not based on the EABI/AAPCS. This patch fixes the build, but I've not really tested it beyond building the core compiler binaries. Building a workable compiler entails downloading a load of vxworks stuff that I'm not sure where to find. * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define. From-SVN: r250177
Richard Earnshaw committed -
gcc/ * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments during expansion. * builtins.c (expand_asan_emit_allocas_unpoison): Likewise. From-SVN: r250176
Maxim Ostapenko committed -
PR go/81393 syscall: don't use GETREGS/SETREGS on s390 They were removed in recent glibc. Patch by Andreas Krebbel for GCC PR 81393. Reviewed-on: https://go-review.googlesource.com/48231 From-SVN: r250174
Ian Lance Taylor committed -
From-SVN: r250173
GCC Administrator committed
-
- 12 Jul, 2017 13 commits
-
-
re PR target/81193 (PowerPC GCC __builtin_cpu_is and __builtin_cpu_supports should warn about old libraries) [gcc] 2017-07-12 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/81193 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC provides the hardware capability bits, define the macro __BUILTIN_CPU_SUPPORTS__. * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning if GLIBC does not provide the hardware capability bits. Add a gcc_unreachable call if the built-in cpu function is neither __builtin_cpu_is nor __builtin_cpu_supports. (rs6000_get_function_versions_dispatcher): Change the warning that an old GLIBC is used which does not export the capability bits to be an error. * doc/extend.texi (target_clones attribute): Document the restriction that GLIBC 2.23 or newer is needed on the PowerPC. (PowerPC built-in functions): Document that GLIBC 2.23 or newer is needed by __builtin_cpu_is and __builtin_cpu_supports. Document the macros defined by GCC if the newer GLIBC is available. [gcc/testsuite] 2017-07-12 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/81193 * gcc.target/powerpc/bmi-andn-1.c: Add guard against using __builtin_cpu_supports with old GLIBC's. * gcc.target/powerpc/bmi-andn-2.c: Likewise. * gcc.target/powerpc/bmi-bextr-1.c: Likewise. * gcc.target/powerpc/bmi-bextr-2.c: Likewise. * gcc.target/powerpc/bmi-bextr-4.c: Likewise. * gcc.target/powerpc/bmi-bextr-5.c: Likewise. * gcc.target/powerpc/bmi-blsi-1.c: Likewise. * gcc.target/powerpc/bmi-blsi-2.c: Likewise. * gcc.target/powerpc/bmi-blsmsk-1.c: Likewise. * gcc.target/powerpc/bmi-blsmsk-2.c: Likewise. * gcc.target/powerpc/bmi-blsr-1.c: Likewise. * gcc.target/powerpc/bmi-blsr-2.c: Likewise. * gcc.target/powerpc/bmi-tzcnt-1.c: Likewise. * gcc.target/powerpc/bmi-tzcnt-2.c: Likewise. * gcc.target/powerpc/bmi2-bzhi32-1.c: Likewise. * gcc.target/powerpc/bmi2-bzhi64-1.c: Likewise. * gcc.target/powerpc/bmi2-mulx32-1.c: Likewise. * gcc.target/powerpc/bmi2-mulx32-2.c: Likewise. * gcc.target/powerpc/bmi2-mulx64-1.c: Likewise. * gcc.target/powerpc/bmi2-mulx64-2.c: Likewise. * gcc.target/powerpc/bmi2-pdep32-1.c: Likewise. * gcc.target/powerpc/bmi2-pdep64-1.c: Likewise. * gcc.target/powerpc/bmi2-pext32-1.c: Likewise. * gcc.target/powerpc/bmi2-pext64-1.c: Likewise. * gcc.target/powerpc/cpu-builtin-1.c: Likewise. [libgcc] 2017-07-12 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/81193 * configure.ac (PowerPC float128 hardware support): Test whether we can use __builtin_cpu_supports before enabling the ifunc handler. * configure: Regenerate. From-SVN: r250165
Michael Meissner committed -
* config/riscv/riscv.c: Remove unnecessary includes. Reorder remaining includes slightly. * config/riscv/riscv-builtins.c: Include profile-count.h. From-SVN: r250162
Jeff Law committed -
* libcp1plugin.cc (plugin_build_decl): Use DECL_CXX_{CON,DE}STRUCTOR directly. From-SVN: r250159
Nathan Sidwell committed -
* cp-tree.h (DECL_CONSTRUCTOR_P, DECL_MAYBE_IN_CHARGE_CONSTRUCTOR, DECL_DESTRUCTOR_P, DECL_MAYBE_IN_CHARGE_DESTRCTOR): Look at identifier flags. * decl.c (grokfndecl): Set DECL_CXX_CONSTRUCTOR and DECL_CXX_DESTRUCTOR explicitly. * decl2.c (grokclassfn): Likewise. * friend.c (do_friend): Likewise. * method.c (make_thunk, make_alias_for, implicitly_declare_fn): Likewise. From-SVN: r250158
Nathan Sidwell committed -
PR target/79883 * config/avr/avr.c (avr_set_current_function): In diagnostic messages: Quote keywords and (parts of) identifiers. [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or "INTERUPT". From-SVN: r250156
Georg-Johann Lay committed -
gcc/ChangeLog: 2017-07-12 Carl Love <cel@us.ibm.com> * config/rs6000/rs6000-c.c: Add support for built-in functions vector bool char vec_revb (vector bool char); vector bool short vec_revb (vector short char); vector bool int vec_revb (vector bool int); vector bool long long vec_revb (vector bool long long); * doc/extend.texi: Update the built-in documentation file for the new built-in functions. gcc/testsuite/ChangeLog: 2017-07-12 Carl Love <cel@us.ibm.com> * gcc.target/powerpc/p9-xxbr-1.c (rev_bool_char, rev_bool_short, rev_bool_int): Add test cases for builtins. * gcc.target/powerpc/p9-xxbr-2.c (rev_long_long, rev_ulong_ulong): Add test cases for builtins. From-SVN: r250155
Carl Love committed -
gcc/testsuite/ChangeLog: 2017-07-12 Carl Love <cel@us.ibm.com> * gcc.target/powerpc/builtins-1-p9-runnable.c (dg-ddo run): Add lp64 && p9vector_hw. From-SVN: r250154
Carl Love committed -
The backend splitter splitting a 3 operand load on condition into 2 is wrong. The S/390 load on condition instruction might trap on the memory operand even if the condition is false. So if the first load on condition overwrites a register used as part of the memory address of the second the second might trigger a segfault even if it does not actually perform the load. Trying to fix this I noticed that the generated code looks anyway better without the splitter. So removing the splitter entirely is the way to go here. gcc/ChangeLog: 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * config/s390/s390.md: Remove movcc splitter. From-SVN: r250153
Andreas Krebbel committed -
This adds code to the backend rtx_costs function in order to model the costs of a load/store on condition. gcc/ChangeLog: 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * config/s390/s390.c (s390_rtx_costs): Return proper costs for load/store on condition. From-SVN: r250152
Andreas Krebbel committed -
PR target/81407 * config/avr/avr.c (avr_encode_section_info) [progmem && !TREE_READONLY]: Error if progmem object needs constructing. From-SVN: r250151
Georg-Johann Lay committed -
2017-07-12 Christophe Lyon <christophe.lyon@linaro.org> * lib/target-supports.exp (check_stack_check_available): Make testcase name depend on stack_kind. From-SVN: r250149
Christophe Lyon committed -
2017-07-11 Michael Collison <michael.collison@arm.com> * config/aarch64/aarch64-simd.md(aarch64_sub<mode>_compare0): New pattern. * testsuite/gcc.target/aarch64/cmp-2.c: New testcase. From-SVN: r250148
Michael Collison committed -
From-SVN: r250147
GCC Administrator committed
-
- 11 Jul, 2017 14 commits
-
-
2017-07-11 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51270 * g++.dg/warn/Wreturn-local-addr-3.C: New. From-SVN: r250140
Paolo Carlini committed -
* decl.c (grokparms): Downgrade error about array of unknown bound to pedwarn and disable it for C++17. From-SVN: r250137
Jason Merrill committed -
gcc/ChangeLog: 2017-07-11 Carl Love <cel@us.ibm.com> * config/rs6000/rs6000-c.c: Add support for builtins vector unsigned int vec_parity_lsbb (vector signed int); vector unsigned int vec_parity_lsbb (vector unsigned int); vector unsigned __int128 vec_parity_lsbb (vector signed __int128); vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128); vector unsigned long long vec_parity_lsbb (vector signed long long); vector unsigned long long vec_parity_lsbb (vector unsigned long long); * config/rs6000/rs6000-builtin.def (VPARITY_LSBB): Add BU_P9V_OVERLOAD1. * config/rs6000/altivec.h (vec_parity_lsbb): Add define. * doc/extend.texi: Update the built-in documentation file for the new built-in functions. gcc/testsuite/ChangeLog: 2017-07-11 Carl Love <cel@us.ibm.com> * gcc.target/powerpc/builtins-2-p9-runnable.c: Add new file with test cases for the builtins. From-SVN: r250135
Carl Love committed -
From-SVN: r250134
David Malcolm committed -
gcc/ChangeLog: * diagnostic-show-locus.c: Include "gcc-rich-location.h". (layout::m_primary_loc): New field. (layout::layout): Initialize new field. Move location filtering logic from here to... (layout::maybe_add_location_range): ...this new method. Add support for filtering to just the lines already specified by other locations. (layout::will_show_line_p): New method. (selftest::test_add_location_if_nearby): New test function. (selftest::diagnostic_show_locus_c_tests): Call it. * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby): New method. From-SVN: r250133
David Malcolm committed -
From-SVN: r250130
Nathan Sidwell committed -
2017-07-11 Tom de Vries <tom@codesourcery.com> * config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG): New macro. (bb_first_real_insn): New function. (nvptx_single): Add extra initialization of broadcasted condition variables. From-SVN: r250129
Tom de Vries committed -
2017-07-11 Yury Gribov <tetra2005@gmail.com> * lib/profopt.exp: Print relative names in UNSUPPORTED AutoFDO tests. From-SVN: r250128
Yury Gribov committed -
From-SVN: r250127
Nathan Sidwell committed -
* doc/xml/faq.xml: Update several old entries. Improve cross-references. * doc/xml/manual/intro.xml: Add anchors to each DR. * doc/html/*: Regenerate. From-SVN: r250125
Jonathan Wakely committed -
* doc/extend.texi (AVR Function Attributes): Remove weblink to Binutils doc as TEXI will mess them up. * doc/invoke.texi (AVR Options): Same here. From-SVN: r250124
Georg-Johann Lay committed -
* config/sparc/sparc.opt (mfix-ut700): New option. (mfix-gr712rc): Likewise. (sparc_fix_b2bst): New variable. * doc/invoke.texi (SPARC options): Document them. (ARM options): Fix warnings. * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP instructions to prevent sequences that can trigger the store-store errata for certain LEON3FT processors. (pass_work_around_errata::gate): Also test sparc_fix_b2bst. (sparc_option_override): Set sparc_fix_b2bst appropriately. * config/sparc/sparc.md (fix_b2bst): New attribute. (in_branch_delay): Prevent stores in delay slot if fix_b2bst. From-SVN: r250114
Daniel Cederman committed -
2017-07-10 Michael Collison <michael.collison@arm.com> * gcc.target/aarch64/var_shift_mask_1.c: Fix for ILP32 From-SVN: r250112
Michael Collison committed -
From-SVN: r250111
GCC Administrator committed
-
- 10 Jul, 2017 8 commits
-
-
PR target/81375 * config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH. (rcpps): Ditto. (*rsqrtsf2_sse): Ditto. (rsqrtsf2): Ditto. (div<mode>3): Macroize insn from divdf3 and divsf3 using MODEF mode iterator. testsuite/ChangeLog: PR target/81375 * gcc.target/i386/pr81375.c: New test. From-SVN: r250107
Uros Bizjak committed -
gcc/ChangeLog: PR tree-optimization/80397 * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P() instead of testing for equality to INTEGER_TYPE. gcc/testsuite/ChangeLog: PR tree-optimization/80397 * gcc.dg/tree-ssa/builtin-sprintf-warn-17.c: New test. From-SVN: r250106
Martin Sebor committed -
gcc/cp/ChangeLog: * cp-tree.h (cp_operator_id, cp_assignment_operator_id): Document. From-SVN: r250105
Martin Sebor committed -
gcc/c-family/ChangeLog: PR other/81345 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy. gcc/testsuite/ChangeLog: PR other/81345 * gcc.dg/pr81345.c: New test. From-SVN: r250104
Martin Sebor committed -
* testsuite/abi/pr42230.cc: Add header for std::free. From-SVN: r250102
Jonathan Wakely committed -
PR libstdc++/81381 * include/bits/sstream.tcc (basic_stringbuf::overflow) (basic_stringbuf::basic_stringbuf(const __string_type&, ios::mode)) (basic_stringbuf::str()): Construct new strings with an allocator. * testsuite/27_io/basic_stringbuf/cons/81381.cc: New. From-SVN: r250101
Jonathan Wakely committed -
PR libstdc++/81338 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string): Declare basic_stringbuf to be a friend. * include/bits/sstream.tcc (basic_stringbuf::overflow) [_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating. * include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string length to buffer length. * testsuite/27_io/basic_stringstream/assign/81338.cc: New. From-SVN: r250100
Jonathan Wakely committed -
gcc/ 2017-07-10 Vineet Gupta <vgupta@synopsys.com> * config.gcc: Remove uclibc from arc target spec. libgcc/ 2017-07-10 Vineet Gupta <vgupta@synopsys.com> * config.host: Remove uclibc from arc target spec. From-SVN: r250097
Vineet Gupta committed
-