[Darwin, PPC, committed] Use Darwin9 bundle header for Rosetta builds.

2019-12-14 Thread Iain Sandoe
On Darwin10 it's possible to make a 32b PPC build using the 'Rosetta' emulator. However, these builds need to make use of Darwin9 crts (for exes, dylibs and bundles). This adds the change to cater for bundles. tested on powerpc-darwin10 cross from x86-64-darwin16 and on x86-64-darwin16.

Re: Add a compatible_vector_types_p target hook

2019-12-14 Thread Richard Sandiford
Richard Biener writes: > On December 13, 2019 10:12:40 AM GMT+01:00, Richard Sandiford > wrote: >>Richard Biener writes: >>The AArch64 port emits an error if calls pass values of SVE type to an >>unprototyped function. To do that we need to know whether the >>value >>really is

Re: [PATCH] Fix up handling of __builtin_apply in ipa-pure-const (PR tree-optimization/92930)

2019-12-14 Thread Richard Biener
On December 14, 2019 9:21:21 AM GMT+01:00, Jakub Jelinek wrote: >Hi! > >__builtin_apply calls some other function, so whether it is const, pure >or >none of that, whether it can throw or not etc. depends on whether that >called function is const or pure or none of that, whether it can throw

[PATCH] Fix ipa_fn_summary_write for offloading LTO streaming (PR ipa/92357)

2019-12-14 Thread Jakub Jelinek
Hi! As discussed on IRC and in the PR, we get an ICE during inline_read_section in the offloading lto1, because the size of streamed out and expected to be streamed in data doesn't match. This happens on the testcase from the PR where for (edge = cnode->callees; edge; edge =

Re: [PATCH] Fix ipa_fn_summary_write for offloading LTO streaming (PR ipa/92357)

2019-12-14 Thread Richard Biener
On December 14, 2019 10:11:33 AM GMT+01:00, Jakub Jelinek wrote: >Hi! > >As discussed on IRC and in the PR, we get an ICE during >inline_read_section >in the offloading lto1, because the size of streamed out and expected >to be >streamed in data doesn't match. This happens on the testcase from

[PATCH] Fix out of bounds array access in the preprocessor (PR preprocessor/92919)

2019-12-14 Thread Jakub Jelinek
Hi! wide_str_to_charconst function relies on the string passed to it having at least two wide characters, the one we are looking for and the terminating NUL. The empty wide character literal like L'' or u'' or U'' is handled earlier and will not reach this function, but unfortunately for const

[PATCH] Fix up handling of __builtin_apply in ipa-pure-const (PR tree-optimization/92930)

2019-12-14 Thread Jakub Jelinek
Hi! __builtin_apply calls some other function, so whether it is const, pure or none of that, whether it can throw or not etc. depends on whether that called function is const or pure or none of that, whether it can throw etc. So, assuming __builtin_apply is const is wrong. The following patch

Re: Add a compatible_vector_types_p target hook

2019-12-14 Thread Richard Biener
On December 14, 2019 11:43:48 AM GMT+01:00, Richard Sandiford wrote: >Richard Biener writes: >> On December 13, 2019 10:12:40 AM GMT+01:00, Richard Sandiford > wrote: >>>Richard Biener writes: >>>The AArch64 port emits an error if calls pass values of SVE type >to >an

Re: AW: [PATCH] m68k architecture: support ccmode + lra

2019-12-14 Thread John Paul Adrian Glaubitz
Hi Stefan! > The problems are in the gcc implementation > > - the lra implementation is buggy > - the compare elimination can't handle parallel's containing a compare > - df-core considers parallel's containing a compare also as a USE > - some optimizations/mechanisms do only work if HAVE_CC0 is

Re: [PATCH] Fix out of bounds array access in the preprocessor (PR preprocessor/92919)

2019-12-14 Thread Jason Merrill
On 12/14/19 3:09 AM, Jakub Jelinek wrote: Hi! wide_str_to_charconst function relies on the string passed to it having at least two wide characters, the one we are looking for and the terminating NUL. The empty wide character literal like L'' or u'' or U'' is handled earlier and will not reach

Re: C++ PATCH for c++/88337 - Implement P1327R1: Allow dynamic_cast in constexpr

2019-12-14 Thread Marek Polacek
On Fri, Dec 13, 2019 at 05:56:57PM -0500, Jason Merrill wrote: > On 12/13/19 3:20 PM, Marek Polacek wrote: > > + /* Given dynamic_cast(v), > > + > > + [expr.dynamic.cast] If C is the class type to which T points or > > refers, > > + the runtime check logically executes as follows: > > +

Re: [PING 3][PATCH] track dynamic allocation in strlen (PR 91582)

2019-12-14 Thread Jeff Law
On Fri, 2019-12-13 at 17:55 -0700, Martin Sebor wrote: > After more testing by Jeff's buildbot and correcting the problems > it exposed I have committed the attached patch in r279392. And just to close the loop on this. Your last version fixed all the issues I saw in the tester. jeff

Re: AW: [PATCH] m68k architecture: support ccmode + lra

2019-12-14 Thread Jeff Law
On Sat, 2019-12-14 at 15:33 +0100, John Paul Adrian Glaubitz wrote: > Hi Stefan! > > > The problems are in the gcc implementation > > > > - the lra implementation is buggy > > - the compare elimination can't handle parallel's containing a compare > > - df-core considers parallel's containing a

[committed] fix typos in attribute access

2019-12-14 Thread Martin Sebor
Committed in r279398. Martin gcc/ChangeLog: * doc/extend.texi (attribute access): Correct typos. Index: gcc/doc/extend.texi === --- gcc/doc/extend.texi (revision 279397) +++ gcc/doc/extend.texi (working copy) @@ -2489,10 +2489,10