[fortran,patch] Forbid assignment of different character kinds

2014-09-28 Thread FX
Hi all, When I added support for nondefault initial character kinds, I thought they could be assigned freely to each other. It turns out it’s not the case: this is PR 37173. The attached patch simplifies the front-end by dropping support for conversion: then, the generic conversion code generat

[PATCH] Fix signed integer overflow in gcc/data-streamer.c

2014-09-28 Thread Markus Trippelsdorf
Running the testsuite with a -fsanitize=undefined instrumented compiler shows: % gcc -O2 -flto -fno-use-linker-plugin -flto-partition=none testsuite/gcc.dg/torture/pr28045.c gcc/data-streamer.c:113:45: runtime error: negation of -9223372036854775808 cannot be represented in type 'long int'; cast

Re: [PATCH] Fix signed integer overflow in gcc/data-streamer.c

2014-09-28 Thread Steven Bosscher
On Sun, Sep 28, 2014 at 2:22 PM, Markus Trippelsdorf wrote: > Running the testsuite with a -fsanitize=undefined instrumented compiler > shows: > % gcc -O2 -flto -fno-use-linker-plugin -flto-partition=none > testsuite/gcc.dg/torture/pr28045.c > gcc/data-streamer.c:113:45: runtime error: negation o

[PATCH v2] Fix signed integer overflow in gcc/data-streamer.c

2014-09-28 Thread Markus Trippelsdorf
On 2014.09.28 at 14:36 +0200, Steven Bosscher wrote: > > Can you use HOST_WIDE_INT_1U for this? Sure. Thanks for the suggestion. (Fix now resembles similar idiom in data-streamer-in.c) 2014-09-28 Markus Trippelsdorf * data-streamer.c (bp_unpack_var_len_int): Avoid signed int

Re: [fortran,patch] Forbid assignment of different character kinds

2014-09-28 Thread Tobias Burnus
Hi FX, FX wrote: When I added support for nondefault initial character kinds, I thought they could be assigned freely to each other. It turns out it’s not the case: Am am vaguely remembering that some interpretation request/change now allows this. And if I look at the current Fortran 2015

[PATCH] Add test case for "((void (*)(void)) 0)()"

2014-09-28 Thread Chen Gang
For the original microblaze, it will report error with "-O0" (and other flags are all OK). gcc/testsuite/: 2014-09-28 Chen Gang * gcc.c-torture/compile/calls-void.c: New test. --- gcc/testsuite/gcc.c-torture/compile/calls-void.c | 23 +++ 1 file changed, 23 inser

Re: [jit] Add a test of using very long names

2014-09-28 Thread Mike Stump
On Sep 26, 2014, at 12:31 PM, David Malcolm wrote: > On Fri, 2014-09-26 at 11:45 -0700, Mike Stump wrote: >> On Sep 26, 2014, at 8:14 AM, David Malcolm >> wrote: >>> * jit.dg/test-long-names.c: New test case. >> >>> +/* 65KB */ >>> +#define NAME_LENGTH (65 * 1024) >> >> 65K was a tiny name

[committed] Fix ICE in pa_output_function_epilogue

2014-09-28 Thread John David Anglin
The attached change fixes a segmentation fault that occurs building llvm-toolchain-3.4. Tested on hppa-unknown-linux-gnu. Committed to trunk, 4.9 and 4.8 branches. Dave -- John David Anglin dave.ang...@bell.net 2014-09-28 John David Anglin * config/pa/pa.c (pa_output_fu

Re: RFA: one more version of the patch for PR61360

2014-09-28 Thread Uros Bizjak
On Fri, Sep 26, 2014 at 10:31 PM, Vladimir Makarov wrote: > I guess we achieved the consensus about the following patch to fix PR61360 > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61360 > > The patch was successfully bootstrapped and tested (w/wo -march=amdfam10) on > x86/x86-64. > > Is it ok

Re: [RFC: Patch, PR 60102] [4.9/4.10 Regression] powerpc fp-bit ices@dwf_regno

2014-09-28 Thread Maciej W. Rozycki
On Mon, 4 Aug 2014, Edmar wrote: > Committed on trunk, revision 213596 > Committed on 4.9 branch, revision 213597 This change regressed GDB for e500v2 multilibs, presumably because it does not understand the new DWARF register numbers and does not know how to map them to hardware registers. H

Re: [PATCH C++] - SD-6 Implementation Part 1 - __has_include.

2014-09-28 Thread Ed Smith-Rowland
On 09/25/2014 12:57 PM, Jason Merrill wrote: On 09/01/2014 09:34 PM, Ed Smith-Rowland wrote: (open_file_failed()): Not an error to not find a header file for __has_include__. Hmm, looks like this means that __has_include__ will silently return false if a header exists but is unreadabl

Re: [PATCH 2/n] OpenMP 4.0 offloading infrastructure: LTO streaming

2014-09-28 Thread Jan Hubicka
> 2014-09-27 Ilya Verbin > Ilya Tocar > Andrey Turetskiy > Bernd Schmidt > gcc/ > * cgraph.h (symtab_node): Add need_dump flag. > * cgraphunit.c: Include lto-section-names.h. > (initialize_offload): New function. > (ipa_passes): Initial

RE: [PATCH][ARM] Fix -fcall-saved-rX for X > 7 with -Os -mthumb

2014-09-28 Thread Thomas Preud'homme
Ping? > -Original Message- > From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches- > ow...@gcc.gnu.org] On Behalf Of Thomas Preud'homme > Sent: Wednesday, August 20, 2014 9:28 AM > To: gcc-patches@gcc.gnu.org > Subject: [PATCH][ARM] Fix -fcall-saved-rX for X > 7 > > This patch makes -f

[committed] Fix alignment for OpenMP mapped array sections with non-zero bias (PR middle-end/63247)

2014-09-28 Thread Jakub Jelinek
Hi! For OMP_CLAUSE_MAP_POINTER on arrays (rather than pointers), when the bias is non-zero, we pass map those as a pointer mapping, so need to request alignment of the pointer variable rather than the array itself. Fixed thusly, bootstrapped/tested on x86_64-linux and i686-linux, committed to tru

[PATCH] Fix ICE in redirect_jump_1 (PR inline-asm/63282)

2014-09-28 Thread Jakub Jelinek
Hi! On the following testcase, dead_or_predicable decides to call redirect_jump_1 on asm goto which has more than one label, but the bb still has just two successors (one of the labels points to code label at the start of the fallthru bb) and redirect_jump_1 ICEs on that. Usually dead_or_predicab