Re: [PATCH][RFC] Instrument function exit with __builtin_unreachable in C++.

2017-11-07 Thread Andreas Schwab
01504e6f run_selective_scheduling() ../../gcc/sel-sched.c:7713 0x41df9bdf ia64_reorg ../../gcc/config/ia64/ia64.c:9854 0x4146d40f execute ../../gcc/reorg.c:3947 Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4

Re: [PATCH] Fix test-suite fallout of default -Wreturn-type.

2017-11-07 Thread Andreas Schwab
v2d & crUV, v3d & rPnt) const { if (!_Dom.cop2d(crUV)) { sUV = _Dom.clp2d(crUV); } - eval(); + return eval(); } -- 2.15.0 -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now

Re: [PING^3][RFC, PATCH][ASAN] Implement dynamic allocas/VLAs sanitization.​

2017-07-08 Thread Andreas Schwab
Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: Use ucontext_t not struct ucontext in linux-unwind.h files

2017-07-10 Thread Andreas Schwab
*)::ucontext' struct ucontext *_uc = (struct ucontext *)_p;\ ^ ../../../libjava/prims.cc:192:3: note: in expansion of macro 'HANDLE_DIVIDE_OVERFLOW' HANDLE_DIVIDE_OVERFLOW; ^~~~~~ make[3]: *** [Makefile:9968: prims.lo] Error 1 Andreas. -- An

Re: Use ucontext_t not struct ucontext in linux-unwind.h files

2017-07-10 Thread Andreas Schwab
On Jul 10 2017, Joseph Myers wrote: > On Mon, 10 Jul 2017, Andreas Schwab wrote: > >> On Jun 27 2017, Joseph Myers wrote: >> >> > Testing compilation together with current glibc with glibc's >> > build-many-glibcs.py. OK to commit (mainline and act

Re: [PING^3][RFC, PATCH][ASAN] Implement dynamic allocas/VLAs sanitization.​

2017-07-11 Thread Andreas Schwab
/expr.h:276 0x716517 expand_call_stmt ../../gcc/cfgexpand.c:2664 0x716517 expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3583 0x716517 expand_gimple_stmt ../../gcc/cfgexpand.c:3749 0x719077 expand_gimple_basic_block ../../gcc/cfgexpand.c:5753 0x71dfc7 execute ../../

Re: [PING^3][RFC, PATCH][ASAN] Implement dynamic allocas/VLAs sanitization.​

2017-07-11 Thread Andreas Schwab
t; - TYPE_MODE (pointer_sized_int_node)); > + ptr_mode, virtual_stack_dynamic_rtx, ptr_mode); That doesn't work, same backtrace. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44

Re: [PING^3][RFC, PATCH][ASAN] Implement dynamic allocas/VLAs sanitization.​

2017-07-12 Thread Andreas Schwab
On Jul 11 2017, Maxim Ostapenko wrote: > Ok, I see, it seems that we need to add convert in > expand_asan_emit_allocas_unpoison too. This patch seems to work for me on > aarch64 -mabi=ilp32, could you check it as well? This fixes all regressions. Andreas. -- Andreas Schwab, sch

Re: libgo patch committed: Call f?statfs64 on GNU/Linux

2017-07-21 Thread Andreas Schwab
ting back_state. */ > > -static Lock back_state_lock; > +static uint32 back_state_lock; > > /* The program arguments. */ > Wrong patch? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [COMMITED][AArch64] Fix PR79041

2017-07-25 Thread Andreas Schwab
; +/* { dg-final { scan-assembler "adr" } } */ > +/* { dg-final { scan-assembler-not "adrp" } } */ That fails in ILP32 mode. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v12] add -fpatchable-function-entry=N,M option

2017-07-26 Thread Andreas Schwab
ion_entry-definition.c > new file mode 100644 > index 000..a007867dcb0 > --- /dev/null > +++ b/gcc/testsuite/c-c++-common/patchable_function_entry-definition.c > @@ -0,0 +1,16 @@ > +/* { dg-do compile } */ > +/* { dg-options "-O2 -fpatchable-function-entry=3,1"

Re: [PATCH] PR libstdc++/53984 handle exceptions in basic_istream::sentry

2017-07-26 Thread Andreas Schwab
t; +// { dg-require-file-io "" } ERROR: 27_io/basic_fstream/53984.cc: unknown dg option: dg-require-file-io 18 {} for " dg-require-file-io 18 "" " Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v12] add -fpatchable-function-entry=N,M option

2017-07-26 Thread Andreas Schwab
On Jul 26 2017, Torsten Duwe wrote: > On Wed, Jul 26, 2017 at 04:16:25PM +0200, Andreas Schwab wrote: >> On Jul 07 2017, Torsten Duwe wrote: >> >> > diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c >> > b/gcc/testsuite/c-c++-commo

Re: [PATCH v12] add -fpatchable-function-entry=N,M option

2017-08-01 Thread Andreas Schwab
> > Make sense, given that the use of Itanium has gone done drastically. You can get the same failure with any target, for example if there are delay slots to be filled. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v12] add -fpatchable-function-entry=N,M option

2017-08-01 Thread Andreas Schwab
On Aug 01 2017, Maxim Kuvyrkov wrote: > Do you know a reliable way of checking whether target can issue nops in > simple code? Try inspecting one of the rtl dumps. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EE

Re: [PATCH, rs6000] Clean up capitalized diagnostic messages

2017-08-06 Thread Andreas Schwab
) Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH #4, cleanup, committed] Remove PowerPC -mvsx-small-integer

2017-08-06 Thread Andreas Schwab
On BE/-m64: FAIL: gcc.target/powerpc/loop_align.c scan-assembler .p2align 5,,31 Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH] i386: Don't use frame pointer without stack access

2017-08-07 Thread Andreas Schwab
On Aug 07 2017, Michael Matz wrote: > +/* { dg-final { scan-assembler "%\[re\]bp" } } */ Please use {} for regexps. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: C PATCH to further improve diagnostic for -Wsign-compare (PR c/81417)

2017-08-10 Thread Andreas Schwab
from 'int' to 'unsigned int' due to unsignedness of other operand [-Wsign-compare] /usr/local/gcc/gcc-20170810/gcc/testsuite/gcc.dg/compare2.c:57:12: warning: operand of ?: changes signedness from 'int' to 'unsigned int' due to unsignedness of other operand

Re: C PATCH to display types when printing a conversion warning (PR c/81233)

2017-08-10 Thread Andreas Schwab
' from 'id' makes integer from pointer without a cast [-Wint-conversion] /daten/aranym/gcc/gcc-20170810/gcc/testsuite/objc.dg/proto-lossage-4.m:36:12: warning: assignment to 'intptr_t {aka int}' from 'id' makes integer from pointer without a cast [-Wint-conversion] /daten/aranym/gcc/gcc-20170810/gcc/testsuite/objc.dg/proto-lossage-4.m:44:12: warning: assignment to 'intptr_t {aka int}' from 'id' makes integer from pointer without a cast [-Wint-conversion] Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH] correct documentation of attribute ifunc (PR 81882)

2017-08-17 Thread Andreas Schwab
On Aug 17 2017, Martin Sebor wrote: > -static void (*resolve_memcpy (void)) (void) > +static void* (*resolve_memcpy (void))(void *, const void *, size_t) Please use consistent spacing. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D

Re: [PATCH] Fix fallout from VRP strict-overflow changes

2017-08-18 Thread Andreas Schwab
in_memcpy' specified size between 2147483648 and 4294967295 exceeds maximum object size 2147483647 [-Wstringop-overflow=] Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH] [i386] PR 81850 Don't ignore -mabi=sysv on Cygwin/MinGW

2017-08-21 Thread Andreas Schwab
On Aug 21 2017, Daniel Santos wrote: > This is a problem that occured because of this code in > ix86_option_override_internal: > > if (!opts_set->x_ix86_abi) > opts->x_ix86_abi = DEFAULT_ABI; Why is that a problem? Note opts_set vs opts. Andreas. -- Andreas S

Re: [PATCH 2/2] C: use full locations within c_parser_expr_list's vec

2017-08-22 Thread Andreas Schwab
;float' rather than 'double' due to prototype cc1: warning: passing argument 1 of 'x.ff' as 'float' rather than 'double' due to prototype Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [RFC, vectorizer] Allow single element vector types for vector reduction operations

2017-09-02 Thread Andreas Schwab
c:4971 0x71e2f3 expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3653 0x71e2f3 expand_gimple_stmt ../../gcc/cfgexpand.c:3751 0x721cdb expand_gimple_basic_block ../../gcc/cfgexpand.c:5750 0x726b07 execute ../../gcc/cfgexpand.c:6357 Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH], PR target/82015, add PowerPC warning for unpack_vector_int128 with illegal 2nd argument

2017-09-08 Thread Andreas Schwab
'vector' /daten/gcc/gcc-20170907/gcc/testsuite/gcc.target/powerpc/pr82015.c:11:21: error: unknown type name 'vector' Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH, rs6000] Fix PR target/80210: ICE in extract_insn

2017-09-08 Thread Andreas Schwab
../../gcc/function.c:1591 0x1043e5f7 instantiate_virtual_regs ../../gcc/function.c:1959 0x1043e5f7 execute ../../gcc/function.c:2008 Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for somet

Re: [PATCH, rs6000] Fix PR target/80210: ICE in extract_insn

2017-09-09 Thread Andreas Schwab
> fixes the problem on AIX. I've verified that this fixes the ICE. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [Ada] Pragma Atomic wrongly rejected on composite component

2017-09-11 Thread Andreas Schwab
padding type on success before doing the atomic check. That regresses on gnat.dg/specs/atomic1.ads for aarch64/-mabi=ilp32, missing the error on line 13. The missing error on line 9 is preexisting. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3

Re: [PATCH] prevent -Wno-system-headers from suppressing -Wstringop-overflow (PR 79214)

2017-05-05 Thread Andreas Schwab
:33:0: Warning: '__builtin_memcpy': specified size between 2147483648 and 4294967295 exceeds maximum object size 2147483647 [-Wstringop-overflow=] Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And no

Re: [PATCH] prevent -Wno-system-headers from suppressing -Wstringop-overflow (PR 79214)

2017-05-08 Thread Andreas Schwab
ngop-overflow=] /usr/local/gcc/gcc-20170508/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:55: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' reading 8 bytes from a region of size 1 [-Wstringop-overflow=] Andreas. -- Andreas Schwab, SUSE Labs, sch...@

Re: [C++ PATCH] namespace bindings

2017-05-08 Thread Andreas Schwab
g/template/virtual3.C:11:2: error: use of deleted function 'virtual B::~B()' /usr/local/gcc/gcc-20170508/gcc/testsuite/g++.dg/template/virtual3.C:11:2: error: use of deleted function 'virtual B::~B()' Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [C++ PATCH] namespace bindings

2017-05-08 Thread Andreas Schwab
On Mai 08 2017, Nathan Sidwell wrote: > On 05/08/2017 08:07 AM, Andreas Schwab wrote: >> On Mai 05 2017, Nathan Sidwell wrote: >> >>> This cleanup patch kills IDENTIFIER_NAMESPACE_VALUE and replaces >>> {get,set}_namespace_binding with get_namespace_value and

Re: [patch, fortran] Reduce stack use in blocked matmul

2017-05-09 Thread Andreas Schwab
dim = (a_dim1-1) * 256 + b_dim1; > + if (t1_dim > 65536) > + t1_dim = 65536; What happens if (a_dim1-1) * 256 + b_dim1 > 65536? Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [patch, fortran] Reduce stack use in blocked matmul

2017-05-10 Thread Andreas Schwab
ADBEEF. (gdb) p (a_dim1-1) * 256 + b_dim1 $2 = -764456190 Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [patch, fortran] Reduce stack use in blocked matmul

2017-05-10 Thread Andreas Schwab
On Mai 10 2017, Thomas Koenig wrote: > If you manage to come up with a legal Fortran testcas which > sets b_dim1 to 0xdeadbeef, I owe you a beer :-) grep is your friend. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E

Re: [patch, fortran] Reduce stack use in blocked matmul

2017-05-10 Thread Andreas Schwab
mit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test FAIL: gfortran.dg/matmul_bounds_6.f90 -O3 -g execution test FAIL: gfortran.dg/matmul_bounds_6.f90 -Os execution test Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 B

Re: Go patches committed: merge recent changes to gofrontend

2017-05-11 Thread Andreas Schwab
void *p = runtime_sysAlloc(stacksize, &mstats()->other_sys); ^~ Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: dejagnu version update?

2017-05-15 Thread Andreas Schwab
On Mai 15 2017, Mike Stump wrote: > That said, a little surprising that SLE is lagging everyone else so > hard. DejaGnu doesn't exactly have frequent releases. Missing just one release can easily put you more than 5 years behind. Andreas. -- Andreas Schwab, sch...@linux-m68k.

Re: C++ PATCH to add __integer_pack built-in for std::make_integer_sequence (c++/80396)

2017-05-24 Thread Andreas Schwab
: error: overflow in constant expression [-fpermissive] Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Update libstdc++ baseline symbols (ia64, m68k)

2017-05-24 Thread Andreas Schwab
:GLIBCXX_3.4.4 OBJECT:0:GLIBCXX_3.4.5 -- 2.13.0 -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH] PR c++/80544 strip cv-quals from cast results

2017-05-25 Thread Andreas Schwab
const) rt2; ^~~ Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH] add more detail to -Wconversion and -Woverflow (PR 80731)

2017-05-25 Thread Andreas Schwab
to 'int' changes value from '2147483648' to '-2147483648' [-Wsign-conversion] /daten/aranym/gcc/gcc-20170525/gcc/testsuite/gcc.dg/pr60114.c:23:17: warning: overflow in conversion from 'int' to 'signed char' changes value from '256' to '

Re: [PATCH] add more detail to -Wconversion and -Woverflow (PR 80731)

2017-05-28 Thread Andreas Schwab
t for warnings, line 16) FAIL: g++.dg/ext/utf16-4.C -std=c++11 (test for excess errors) Excess errors: /opt/gcc/gcc-20170528/gcc/testsuite/g++.dg/ext/utf16-4.C:16:28: warning: conversion from 'wchar_t' to 'char16_t' changes value from '410401' to '17185' [-Woverflow] Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Update baseline symbols for powerpc-linux

2017-06-03 Thread Andreas Schwab
+OBJECT:0:GLIBCXX_3.4.23 +OBJECT:0:GLIBCXX_3.4.24 OBJECT:0:GLIBCXX_3.4.3 OBJECT:0:GLIBCXX_3.4.4 OBJECT:0:GLIBCXX_3.4.5 -- 2.13.0 -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH 0/5 v3] Vect peeling cost model

2017-06-03 Thread Andreas Schwab
> No regressions on s390x, x86-64 and ppc64. Bootstrapped. Patch 6 breaks no-vfa-vect-57.c on powerpc. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH], Add PowerPC ISA 3.0 vec_vinsert4b and vec_vextract4b built-in functions

2016-12-28 Thread Andreas Schwab
4b must 0..11"); be > + return expand_call (exp, target, false); > + } > + break; > + > default: >break; >/* Fall through. */ Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [patch] [libobjc] fix build with --disable-shared and .la files

2016-12-31 Thread Andreas Schwab
ions. > +@option{--with-target-bdw-gc}. If @option{--with-target-bdw-gc-include} > +is missing values for a multilib, then the value for the default > +multilib is used. (e.g. > @samp{--with-target-bdw-gc-include=/opt/bdw-gc/include} The period before the paren should be removed.

Re: [PATCH v3, rs6000] Add built-in support for vector compare listed in the ABI

2017-01-02 Thread Andreas Schwab
scan-assembler-times "vcmpnew" 1 } } */ > +/* { dg-final { scan-assembler-times "vcmpequd" 1 } } */ > +/* { dg-final { scan-assembler-times "xxlnor" 1 } } */ The last three fail with -m32. $ grep -c vcmpnew builtins-3-p9.s 2 $ grep -c vcmpequd builtins-3-p9.s 0 $ grep -c xxlnor builtins-3-p9.s 0 Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [bootstrap-O1] change value type to avoid sprintf buffer size warning

2017-01-05 Thread Andreas Schwab
tty_printer *pp, tree t) >else > { >static char xname[8]; > - sprintf (xname, "", ((unsigned)((uintptr_t)(t) & 0x))); > + sprintf (xname, "", ((unsigned short)((uintptr_t)(t) & > 0x))); Please fix the spacing whi

Re: [PATCH] Fix precompiled header for '-' being input file (PR, pch/78970)

2017-01-05 Thread Andreas Schwab
fatal_error (input_location, >> + "can't use '-' as input filename for a " >> + "precompiled header"); > > That would be can%'t Better: cannot. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [bootstrap-O1] change value type to avoid sprintf buffer size warning

2017-01-05 Thread Andreas Schwab
On Jan 05 2017, Alexandre Oliva wrote: > On Jan 5, 2017, Andreas Schwab wrote: > >> On Jan 05 2017, Alexandre Oliva wrote: >>> - sprintf (xname, "", ((unsigned)((uintptr_t)(t) & 0x))); >>> + sprintf (xname, "", ((unsigned s

Re: [bootstrap-O1] change value type to avoid sprintf buffer size warning

2017-01-06 Thread Andreas Schwab
On Jan 06 2017, Alexandre Oliva wrote: > On Jan 5, 2017, Andreas Schwab wrote: > >> On Jan 05 2017, Alexandre Oliva wrote: >>> On Jan 5, 2017, Andreas Schwab wrote: >>> >>>> On Jan 05 2017, Alexandre Oliva wrote: >>>>> -

Re: [PATCH] avoid infinite recursion in maybe_warn_alloc_args_overflow (pr 78775)

2017-01-11 Thread Andreas Schwab
eabihf --with-cpu=cortex-a5 > (works fine --with-cpu=cortex-a9) Dito. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH] adding missing LTO to some warning options (PR 78606)

2017-01-13 Thread Andreas Schwab
2); /* { dg-warning "argument to > .alloca. is too large" } */ > + > + __builtin_sprintf (d, "%32s", "x"); /* { dg-warning "directive writing > 32 bytes into a region of size 12" "-Wformat-length" { xfail *-*-* } } */ > + >

Re: libgo patch committed: Update to Go1.8rc1

2017-01-15 Thread Andreas Schwab
^~~ make[4]: *** [libgobegin_a-go-main.o] Error 1 Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: RFA: Update XFAIL comments in

2017-01-20 Thread Andreas Schwab
ogue" { xfail arm*-*-* powerpc*-*-* } } } */ Shouldn't that rather be target { ! { arm*-*-* powerpc*-*-* } }? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH][AArch64] Optimized implementation of search_line_fast for the CPP lexer

2017-03-20 Thread Andreas Schwab
d:91:5 error: expected (, got NAME (define_operator_list EXPM1 ^ Some part of the code appears to depend on LP64. When I insert three newlines before this line then the parser goes on further, but reports a similar error later on. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fin

Re: [PATCH][AArch64] Optimized implementation of search_line_fast for the CPP lexer

2017-03-20 Thread Andreas Schwab
2_t)t) != 0, 0)) goto done; } -- 2.12.0 -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: install.texi and sparc-*-linux*

2017-03-21 Thread Andreas Schwab
On Mär 21 2017, Gerald Pfeifer wrote: > On Sun, 19 Mar 2017, Andreas Schwab wrote: >>> @anchor{sparc-x-linux} >>> @heading sparc-*-linux* >> The section is now empty. Should it be removed at all? > > I considered that, but then figured we do want to keep

[PATCH] Support for Ada on aarch64 with -mabi=ilp32

2017-03-22 Thread Andreas Schwab
= False; + Use_Ada_Main_Program_Name : constant Boolean := False; + Frontend_Exceptions : constant Boolean := False; + ZCX_By_Default: constant Boolean := True; + +end System; -- 2.12.1 -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[PATCH] internal/syscall/unix: fix syscalls for m68k

2017-03-22 Thread Andreas Schwab
LICENSE file. + +package unix + +// Linux getrandom system call number. +// See GetRandom in getrandom_linux.go. +const randomTrap uintptr = 352 -- 2.12.1 -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for some

Re: [patch v2] Get rid of stack trampolines for nested functions (1/4)

2017-03-23 Thread Andreas Schwab
> + rtx chain = targetm.calls.static_chain (fndecl_or_type, false); > + > + /* Avoid long live ranges around function calls. */ > + funexp = copy_to_mode_reg (Pmode, funexp); That needs to use ptr_mode, not Pmode. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [patch v2] Get rid of stack trampolines for nested functions (1/4)

2017-03-29 Thread Andreas Schwab
DE (funexp) != Pmode) + funexp = convert_memory_address (Pmode, funexp); + /* Avoid long live ranges around function calls. */ funexp = copy_to_mode_reg (Pmode, funexp); -- 2.12.2 -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9

Re: [patch v2] Get rid of stack trampolines for nested functions (1/4)

2017-03-29 Thread Andreas Schwab
big surrounding conditional? Yes. It talks about SYMBOL_REF which it clearly isn't at this point. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH, rs6000] Fix PR target/80246, DFP builtins using the wrong types

2017-04-02 Thread Andreas Schwab
l { scan-assembler-times "diex " 1} } */ > /* { dg-final { scan-assembler-times "dscli " 2} } */ > /* { dg-final { scan-assembler-times "dscri " 2} } */ > +/* { dg-final { scan-assembler-times "std "1} } */ > +/* { dg-final

Re: [PATCH] [PATCH, rs6000] Fix pr79941 (v2)

2017-04-02 Thread Andreas Schwab
vec-mule-misc.exe Illegal instruction Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH, rs6000] Fix PR target/80246, DFP builtins using the wrong types

2017-04-02 Thread Andreas Schwab
powerpc/pr80246.c:24:10: error: Builtin function __builtin_dxexq requires the -mhard-dfp option /daten/gcc/gcc-20170401/gcc/testsuite/gcc.target/powerpc/pr80246.c:30:10: error: Builtin function __builtin_diex requires the -mhard-dfp option /daten/gcc/gcc-20170401/gcc/testsuite/gcc.target/powerpc/pr80

Re: [PATCH] [PATCH, rs6000] Fix pr79941 (v2)

2017-04-02 Thread Andreas Schwab
On Apr 02 2017, Segher Boessenkool wrote: > On Sun, Apr 02, 2017 at 09:26:24AM +0200, Andreas Schwab wrote: >> > +/* PR target/79941 */ >> > + >> > +/* { dg-do run } */ >> > +/* { dg-require-effective-target powerpc_vsx_ok } */ >> > +/* { dg-

Re: [PATCH] [PATCH, rs6000] Fix pr79941 (v2)

2017-04-02 Thread Andreas Schwab
On Apr 02 2017, Segher Boessenkool wrote: > Why does powerpc_vsx_ok return true then, ugh. Because the assembler is new enough. That's all it checks. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 &quo

Re: [PATCH, rs6000] Fix PR target/80246, DFP builtins using the wrong types

2017-04-02 Thread Andreas Schwab
On Apr 02 2017, Peter Bergner wrote: > On 4/2/17 2:29 AM, Andreas Schwab wrote: >>> +/* { dg-require-effective-target dfp } */ > [snip] >> FAIL: gcc.target/powerpc/pr80246.c (test for excess errors) >> Excess errors: >> /daten/gcc/gcc-20170401/gcc/testsuite/g

Re: [Aarch64] Enable descriptors for nested functions in Ada

2017-04-03 Thread Andreas Schwab
TORS 4 In which way are the bits reserved? This does not work for ILP32, because the descriptor address starts off at address 4 modulo 8, and adding 4 clears the bit. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7

Re: [Aarch64] Enable descriptors for nested functions in Ada

2017-04-03 Thread Andreas Schwab
lears the bit. > > I see, can you try the attached patchlet? Thanks, that at least fixes tasking. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[PATCH] Fix type of __builtin_update_setjmp_buf

2017-04-03 Thread Andreas Schwab
UILT_IN_VA_START, "va_start", BT_FN_VOID_VALIST_REF_VAR, ATTR_NOTHROW_LEAF_LIST) -- 2.12.2 -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH] Fix type of __builtin_update_setjmp_buf

2017-04-05 Thread Andreas Schwab
I have checked it in as obvious. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH] Fix PR79814

2017-04-25 Thread Andreas Schwab
ing_passes); (gdb) p m_name_to_pass_map $13 = (hash_map, opt_pass*> > *) 0x20988140 <_IO_2_1_stderr_> Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: Who broke options.h?

2017-04-25 Thread Andreas Schwab
On Apr 25 2017, Steve Kargl wrote: > Someone (other than Richard who seems to have fixed his > bootstrap issue) in the last 3 days has broken bootstrap > on FreeBSD. Did you change your locale since then? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA

Re: [PATCH] have -Wformat-overflow handle -fexec-charset (PR 80503)

2017-04-29 Thread Andreas Schwab
ten/aranym/gcc/gcc-20170429/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-18.c:125:3: warning: '%.2147483648i' directive output of 2147483648 bytes causes result to exceed 'INT_MAX' [-Wformat-overflow=] Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [committed] fix ILP32 testsuite failures for after PR 80503

2017-05-01 Thread Andreas Schwab
xceed .INT_MAX." "" { target *-*-* } .-1 } */ > + T ("%.9223372036854775808i", 0); /* { dg-warning "precision out of > range" } */ > + /* { dg-warning "causes result to exceed .INT_MAX." "" { target *-*-* > } .-1 } */ Please also

Re: [PATCH v2] Destroy arguments for _Cilk_spawn calling in the child (PR 80038)

2017-05-02 Thread Andreas Schwab
; EXPR_CILK_SPAWN (TREE_OPERAND (fcall, 1)) = 1; ^ Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [RFC, vectorizer] Allow single element vector types for vector reduction operations

2017-09-12 Thread Andreas Schwab
e do not know how to scalarize those. */ > + return; The assignment is surely useless. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH][RFA/RFC] Stack clash mitigation patch 02/08 - V3

2017-09-18 Thread Andreas Schwab
but it could also end up using a VLA of size 1. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH][RFA/RFC] Stack clash mitigation patch 02/08 - V3

2017-09-18 Thread Andreas Schwab
;+1220>: mov r1, #0 0x0001411c <+1224>: add r3, sp, #8 0x00014120 <+1228>: mov r0, r3 => 0x00014124 <+1232>: str r0, [sp, #8] Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PR target/25512] Optimize certain equality tests on m68k

2017-09-18 Thread Andreas Schwab
(pc) (if_then_else (match_op_dup 5 [(cc0) (const_int 0)]) -- 2.14.1 -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: Enable no-exec stacks for more targets using the Linux kernel

2017-09-19 Thread Andreas Schwab
s needs to be fixed in glibc. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH][RFA/RFC] Stack clash mitigation patch 02/08 - V3

2017-09-19 Thread Andreas Schwab
On Sep 18 2017, Jeff Law wrote: > On 09/18/2017 10:09 AM, Andreas Schwab wrote: >> On Sep 18 2017, Jeff Law wrote: >> >>> Can you confirm if the probe was in the red zone vs the live areas on >>> the stack? >> >> It overwrites a nearby v

Re: Enable no-exec stacks for more targets using the Linux kernel

2017-09-19 Thread Andreas Schwab
> the main process stacks, and GCC will never generate an explicit marker on > those architectures to request an executable stack? For ia64 on linux there is EF_IA_64_LINUX_EXECUTABLE_STACK to request executable heap and stack. But since ia64 uses function descriptors, trampolines never

Re: [PATCH][RFA/RFC] Stack clash mitigation patch 02/08 - V3

2017-09-19 Thread Andreas Schwab
On Sep 19 2017, Jeff Law wrote: > I know some early bits had hardcoded "8" in some places, but I didn't > think those had ever been posted -- I may have given them to Matz for > him to play with. Are you using those perhaps? Yes, that looks like what's been happ

Re: [PATCH] Fix PR80295[aarch64] [7/8 Regression] ICE in __builtin_update_setjmp_buf expander

2017-09-25 Thread Andreas Schwab
+ gen_stack_tiesi (stack_pointer_rtx, hard_frame_pointer_rtx) > : > + gen_stack_tiedi (stack_pointer_rtx, > hard_frame_pointer_rtx)); GNU style is line break before the operator, not after. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint

Re: [PATCH] detect incompatible aliases (PR c/81854)

2017-10-03 Thread Andreas Schwab
look like a valid ifunc resolver. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [RFA] [PATCH] Add a warning for invalid function casts

2017-10-05 Thread Andreas Schwab
is causing undefined behviour. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: r253513 - in /trunk/gcc: ChangeLog common.opt d...

2017-10-08 Thread Andreas Schwab
atible implicit declaration of built-in function 'abort' /usr/local/gcc/gcc-20171008/gcc/testsuite/gcc.dg/cold-1.c:7:1: warning: function might be candidate for attribute 'cold' [-Wsuggest-attribute=cold] Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint =

Re: Restore functional DONT_USE_BUILTIN_SETJMP support

2017-10-08 Thread Andreas Schwab
arning: conflicting types for built-in function 'setjmp' [-Wbuiltin-declaration-mismatch] Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: Restore functional DONT_USE_BUILTIN_SETJMP support

2017-10-08 Thread Andreas Schwab
le-low.c:205 0x118997f lower_gimple_bind ../../gcc/gimple-low.c:441 0x118afff lower_function_body ../../gcc/gimple-low.c:109 0x118afff execute ../../gcc/gimple-low.c:183 Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 21

Re: r253554 - in /trunk/gcc: ada/ChangeLog ada/exp_...

2017-10-10 Thread Andreas Schwab
e class_wide4.adb:18:04: actual for "This" must be a variable class_wide4.adb:19:04: actual for "This" must be a variable Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH] preprocessor stringizing raw strings

2017-10-11 Thread Andreas Schwab
IZE(R"( > )") END > > -// { dg-final { scan-file string-3.ii "BEGIN \"R\\\"(\\n)\\\"\"\n END" } } > +// { dg-final { scan-file string-3.i "BEGIN \"R\"\\(n\\)\\\\\"\"\n > END" } } You can avoid the inflati

Re: [PATCH] Simplify SCEV entry

2017-10-11 Thread Andreas Schwab
e.c:486 0x10ea7f0 execute ../../gcc/graphite.c:563 Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: Fix ICE with -Wduplicated-branches (PR c/79199)

2017-01-27 Thread Andreas Schwab
++-common/Wduplicated-branches-13.c:18:7: warning: this decimal constant is unsigned only in ISO C90 Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH] restore pedantic warning on flexible array members (c++/71290)

2017-01-27 Thread Andreas Schwab
't work. At least not according to the > instructions on the Wiki. To transfer a commit from a git worktree to an svn checkout, you can use `git -C $git_worktree format-patch -1 --stdout | patch -p1'. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7

Re: [PATCH v2,rs6000] PR78056: Finish fixing build failure on Power7

2017-02-03 Thread Andreas Schwab
testsuite/gcc.target/powerpc/pr78056-8.c -m64 -fno-diagnostics-show-caret -fdiagnostics-color=never -mcpu=power5 -S -o pr78056-8.s FAIL: gcc.target/powerpc/pr78056-8.c (test for warnings, line 24) FAIL: gcc.target/powerpc/pr78056-8.c (test for warnings, line 25) Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

<    4   5   6   7   8   9   10   11   12   13   >