Size difference in base class between GCC releases

2012-08-27 Thread Paul_Koning
I'm doing some checking of data structure layouts in different releases of our code -- which were produced by different releases of GCC (3.3.3 vs. 4.5.4). One difference I'm seeing that is puzzling is in the handling of base classes. Specifically, the case where a base class has padding at the

Re: Size difference in base class between GCC releases

2012-08-27 Thread Paul_Koning
On Aug 27, 2012, at 3:33 PM, Jonathan Wakely wrote: On 27 August 2012 19:48, Paul_Koningwrote: I'm doing some checking of data structure layouts in different releases of our code -- which were produced by different releases of GCC (3.3.3 vs. 4.5.4). One difference I'm seeing that is

Re: Size difference in base class between GCC releases

2012-08-27 Thread Paul_Koning
On Aug 27, 2012, at 4:05 PM, Gabriel Dos Reis wrote: On Mon, Aug 27, 2012 at 1:48 PM, paul_kon...@dell.com wrote: I'm doing some checking of data structure layouts in different releases of our code -- which were produced by different releases of GCC (3.3.3 vs. 4.5.4). One difference

Re: C++ conversion? Why still .c (not .cc) files and CC (not CXX) in Makefile.in?

2012-08-28 Thread Paul_Koning
On Aug 28, 2012, at 9:45 AM, Michael Matz wrote: Hi, On Tue, 28 Aug 2012, Ian Lance Taylor wrote: Or do we have a rule than any file using C++ specific feature should be renamed from *.c to *.cc at the moment the C++ feature goes inside? We do not have such a rule and I would not

Bug in bitfield handling?

2012-09-07 Thread Paul_Koning
This seems to be a bug: struct bug { int f1:1; unsigned long long f2:31; }; struct bug test = { 1, 0x8000ULL }; int main (int c, char **v) { unsigned long long tf2; tf2 = test.f2 16; if (tf2 == 0x8000ULL) return 0; return 1; } Since the underlying type

Re: Bug in bitfield handling?

2012-09-07 Thread Paul_Koning
On Sep 7, 2012, at 2:02 PM, Andrew Pinski wrote: On Fri, Sep 7, 2012 at 10:57 AM, paul_kon...@dell.com wrote: This seems to be a bug: struct bug { int f1:1; unsigned long long f2:31; }; struct bug test = { 1, 0x8000ULL }; int main (int c, char **v) { unsigned long long

Re: GCC 4.7.2 error handling type short

2012-11-26 Thread Paul_Koning
On Nov 26, 2012, at 3:57 PM, Bill Beech (NJ7P) wrote: I have run into a problem with both 4.6.1 and 4.7.2 of the gcc compiler handling type short. Sizeof(unsigned short) returns a length of 2 as expected, but when I use a union of a character buffer and some fields including a unsigned

Re: Use of templates in c code?

2013-02-13 Thread Paul_Koning
On Feb 13, 2013, at 5:04 PM, Diego Novillo wrote: ... Ah, so if we rename a file with 'svn rename', its history will be preserved across the rename? In that case, renaming files should not be a problem. Yes, that's one of many ways that SVN (or most other source control systems) are

Re: 32 bit pointers on a 64 bit system

2013-03-06 Thread Paul_Koning
On Mar 6, 2013, at 7:38 AM, David McQuillan wrote: Have there been any implementations of gcc for a 32 bit pointer system where the registers are 64 bits long? MIPS (N32 ABI, and if you want, also O64) is another example. paul

Re: Should -Wmaybe-uninitialized be included in -Wall?

2013-07-10 Thread Paul_Koning
On Jul 10, 2013, at 10:42 AM, Andi Kleen wrote: Andrew Haley a...@redhat.com writes: On 07/09/2013 12:59 PM, Andreas Arnez wrote: With this situation at hand, I wonder whether it's a good idea to keep maybe-uninitialized included in -Wall. Projects which have been using -Wall -Werror

Re: Should -Wmaybe-uninitialized be included in -Wall?

2013-07-10 Thread Paul_Koning
On Jul 10, 2013, at 12:44 PM, Jeff Law wrote: On 07/10/2013 10:29 AM, Jonathan Wakely wrote: On 10 July 2013 17:11, Andi Kleen wrote: FWIW basically -Werror -Wall defines a compiler version specific variant of C. May be great for individual developers, but it's always a serious mistake in

Re: Automated Toolchain Building and Testing

2013-08-28 Thread Paul_Koning
On Aug 28, 2013, at 8:52 PM, Samuel Mi samuel.mi...@gmail.com wrote: On Thu, Aug 29, 2013 at 2:54 AM, Jan-Benedict Glaw jbg...@lug-owl.de wrote: On Thu, 2013-08-29 02:43:54 +0800, Samuel Mi samuel.mi...@gmail.com wrote: ...or can you, instead of using the Java-based client part of Jenkins,

Re: GCC retargeting

2013-10-09 Thread Paul_Koning
On Oct 9, 2013, at 5:24 AM, Umesh Kalappa umesh.kalap...@gmail.com wrote: Dear Group , We are re-targeting the GCC to the CISC target ,which has the eight 8-bit registers and same register set can used as pair register for 16 bit computation i.e four 16-bits . Any one in the group

Re: Make SImode as default mode for INT type.

2013-12-06 Thread Paul_Koning
On Dec 6, 2013, at 5:40 AM, Umesh Kalappa umesh.kalap...@gmail.com wrote: Hi all, We are re-targeting the gcc 4.8.1 to the 16 bit core ,where word =int = short = pointer= 16 , char = 8 bit and long =32 bit. We model the above requirement as #define BITS_PER_UNIT 8

Re: linux says it is a bug

2014-03-04 Thread Paul_Koning
On Mar 4, 2014, at 2:30 PM, Richard Henderson r...@redhat.com wrote: On 03/04/2014 01:23 AM, Richard Biener wrote: Doesn't sound like a bug but a feature. We can move asm ( : : : memory) around freely up to the next/previous instruction involving memory. Asms without outputs are

Re: linux says it is a bug

2014-03-05 Thread Paul_Koning
On Mar 5, 2014, at 10:07 AM, Richard Henderson r...@redhat.com wrote: On 03/04/2014 10:12 PM, Yury Gribov wrote: Asms without outputs are automatically volatile. So there ought be zero change with and without the explicit use of the __volatile__ keyword. That’s what the documentation

Re: Builtin: stack pointer

2014-03-27 Thread Paul_Koning
On Mar 27, 2014, at 6:38 AM, Renato Golin renato.go...@linaro.org wrote: On 27 March 2014 10:29, Andreas Schwab sch...@suse.de wrote: Depends on what you need the value for. Mostly unwind code that uses both FP and SP, example: But unwind code is inherently platform-dependent. Your

Re: soft-fp functions support without using libgcc

2014-05-16 Thread Paul_Koning
On May 16, 2014, at 12:25 PM, Ian Bolton ian.bol...@arm.com wrote: On Fri, May 16, 2014 at 6:34 AM, Sheheryar Zahoor Qazi sheheryar.zahoor.q...@gmail.com wrote: I am trying to provide soft-fp support to a an 18-bit soft-core processor architecture at my university. But the problem is that

Re: ViewVC is broken on your web site

2014-08-06 Thread Paul_Koning
On Aug 6, 2014, at 2:38 PM, David Gero david.g...@exfo.com wrote: Accessing https://gcc.gnu.org/viewvc/gcc/trunk/ Says it is showing 38 files. But in fact, it shows only the first 25. As an example, libstdc++-v3 is missing. Same thing happens in other parts of the tree. I checked

Re: ViewVC is broken on your web site

2014-08-06 Thread Paul_Koning
On Aug 6, 2014, at 2:59 PM, Paolo Carlini paolo.carl...@oracle.com wrote: Hi, On 08/06/2014 08:48 PM, paul_kon...@dell.com wrote: On Aug 6, 2014, at 2:38 PM, David Gero david.g...@exfo.com wrote: Accessing https://gcc.gnu.org/viewvc/gcc/trunk/ Says it is showing 38 files. But in

Re: Problems with gcc-bugs

2014-09-29 Thread Paul_Koning
On Sep 29, 2014, at 7:59 PM, George R Goffe grgo...@yahoo.com wrote: Jonathan, I'll give it a try. Thanks. What is the problem with the mailing list software? Can't handle rich-text? What a pain! I don’t know if that is true, but if so, a lot of people would argue that is a

Re: volatile access optimization (C++ / x86_64)

2014-12-27 Thread Paul_Koning
On Dec 26, 2014, at 6:19 PM, Andrew Haley a...@redhat.com wrote: On 26/12/14 22:49, Matt Godbolt wrote: On Fri, Dec 26, 2014 at 4:26 PM, Andrew Haley a...@redhat.com wrote: On 26/12/14 20:32, Matt Godbolt wrote: Is there a reason why (in principal) the volatile increment can't be made

Re: volatile access optimization (C++ / x86_64)

2014-12-27 Thread Paul_Koning
On Dec 27, 2014, at 1:40 PM, Andrew Haley a...@redhat.com wrote: On 27/12/14 18:04, Matt Godbolt wrote: On Sat, Dec 27, 2014 at 11:57 AM, Andrew Haley a...@redhat.com wrote: if you don't need an atomic access, why do you care that it uses a read-modify-write instruction instead of three

Re: Bootstrap failure on Mac OS Yosemite (10.10)

2014-12-29 Thread Paul_Koning
On Dec 29, 2014, at 2:01 PM, paul_kon...@dell.com paul_kon...@dell.com wrote: I would bug this but bugz says to report things under “bootstrap” only if they are long lived failures, and I don’t know if this is. Just tried to build on my Mac OS 10.10 system, plain native build. It

Re: volatile access optimization (C++ / x86_64)

2014-12-30 Thread Paul_Koning
On Dec 30, 2014, at 1:32 PM, Matt Godbolt m...@godbolt.org wrote: On Tue, Dec 30, 2014 at 5:05 AM, Torvald Riegel trie...@redhat.com wrote: I agree with Andrew. My understanding of volatile is that the generated code must do exactly what the abstract machine would do. That makes sense.

RE: Bootstrap with -Wmissing-prototypes doesn't work for C++

2011-08-19 Thread Paul_Koning
I think the point is that the effect of -Wmissing-prototypes is always enabled in C++, so that switch is rejected. The solution would seem to be to remove that switch from the command line if C++ is used to build; that will produce the intended result. paul -Original Message-

RE: CCmode size

2011-09-15 Thread Paul_Koning
genmodes.c has the following comment: /* Again, nothing more need be said. For historical reasons, the size of a CC mode is four units. */ validate_mode (m, UNSET, UNSET, UNSET, UNSET, UNSET); m-bytesize = 4; Now, this is probably ok for _most_

RE: Expanding instructions with condition codes inter-deps

2011-10-18 Thread Paul_Koning
From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Richard Henderson On 10/17/2011 03:50 AM, Paulo J. Matos wrote: ... (for example, it would be ok to output negqi2, xorqi3 and addc_internal since xorqi3 only sets N and Z, not the Carry bit) For that you'd have to model

RE: Expanding instructions with condition codes inter-deps

2011-10-21 Thread Paul_Koning
There are lots of parts of the compiler that don't optimize well when an insn has more than one output. For the normal insn, just clobber the flags; don't include a second SET. Yes, but... isn't the whole point of CC modeling that you can take advantage of the CC left around by an

RE: structure offset to structure name conversion.

2011-10-27 Thread Paul_Koning
If I have a structure e.g. struct test_s { int32_t var1; int32_t var2; uint64_t var3; int var4; } test; If I have an offset value of 8, I wish to do a lookup and get to: test.var3 Is there some part of gcc that I could use to parse .h files and produce a table for me

RE: volatile correctness: combine vs. target.md

2011-12-02 Thread Paul_Koning
... It's never correct to exchange volatile accesses. That's not true. volatile accesses to different memory locations have no special dependence. If it happens that GCC doesn't do this kind of things then this is only because most passes don't thouch volatile stmts at all (thus the reports

RE: Dealing with compilers that pretend to be GCC

2012-01-19 Thread Paul_Koning
Write a test that checks for the existence of that machinery. I agree with the earlier comments. Checking version strings or program names is the wrong way, because you're essentially saying if it is X then I know it can do Y rather than directly asking the question can it do Y. The issue

RE: Assignment to volatile objects

2012-01-30 Thread Paul_Koning
I would prefer this to generate a warning. The C language standard change you refer to is a classic example of a misguided change, and any code whose behavior depends on this deserves a warning message, NOT an option to work one way or the other. paul -Original Message- From:

RE: RFC: -Wall by default

2012-04-09 Thread Paul_Koning
I think removing an existing warning from -Wall would be a bad idea. paul -Original Message- From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Gerald Pfeifer Sent: Monday, April 09, 2012 12:30 PM To: Robert Dewar Cc: Jonathan Wakely; James Cloos;

RE: RFH - Testing targets for the switch to C++

2012-04-10 Thread Paul_Koning
Tested x86_64-apple-darwin10, pdp11-aout -- both pass. paul

Re: Register constraints + and =

2012-05-04 Thread Paul_Koning
On May 4, 2012, at 9:44 AM, Ian Lance Taylor wrote: Paulo J. Matos pa...@matos-sorge.com writes: Expand generates: (define_insn_and_split movmem_long [(set (match_operand:QI 2 register_operand d,c) (const_int 0)) (set (mem:BLK (match_operand:QI 0 register_operand d,c))

Re: Register constraints + and =

2012-05-04 Thread Paul_Koning
On May 4, 2012, at 11:39 AM, Ian Lance Taylor wrote: paul_kon...@dell.com writes: I thought that the operand in a mem:BLK is the pointer to the block, not the block itself. So if the instruction(s) generated don't touch the pointer -- a likely answer for a block-move instruction -- then

Re: Register constraints + and =

2012-05-04 Thread Paul_Koning
On May 4, 2012, at 1:52 PM, Ian Lance Taylor wrote: paul_kon...@dell.com writes: On May 4, 2012, at 11:39 AM, Ian Lance Taylor wrote: paul_kon...@dell.com writes: I thought that the operand in a mem:BLK is the pointer to the block, not the block itself. So if the instruction(s)

Re: Register constraints + and =

2012-05-09 Thread Paul_Koning
On May 9, 2012, at 5:34 AM, Paulo J. Matos wrote: On 08/05/12 21:57, Jan Hubicka wrote: In expanded form it is (set (reg5) (const 10)) (parallel [(set (reg2) (const 0)) (set (reg0) (plus (reg3) (reg5))) (set (reg1) (plus (reg4) (reg5))) (set (mem

Trying to track down a register allocation issue

2012-05-14 Thread Paul_Koning
I'm running into an ICE due to what looks like wrong register allocation, and I'm trying to figure out where the problem lies. It shows up with today's GCC (trunk). I haven't yet tried to narrow it down to a particular change. It shows up in the pdp11 target, -O2. Not clear that this is

Re: Trying to track down a register allocation issue

2012-05-15 Thread Paul_Koning
On May 14, 2012, at 5:47 PM, Joern Rennecke wrote: Quoting paul_kon...@dell.com: I'm running into an ICE due to what looks like wrong register allocation, and I'm trying to figure out where the problem lies. It shows up with today's GCC (trunk). I haven't yet tried to narrow it down

50% slowdown with LTO

2012-08-13 Thread Paul_Koning
I'm not sure what LTO is supposed to do -- the documentation is not exactly clear. But I assumed it should make things faster and/or smaller. So I tried using it on an application -- a processor emulator, CPU intensive code, a lot of 64 bit integer arithmetic. Using a compile/assembler run on

gcc trunk fails to build without isl/cloog

2012-08-13 Thread Paul_Koning
The installation instructions seem to imply that GCC can be built without having ISL and/or CLOOG installed, and the configure script accepts --without-isl and --without-cloog. But I can't build that. Reading the installation instructions makes me expect that such a configuration would skip

ISL install troubles

2012-08-13 Thread Paul_Koning
Where does one go to report issues with ISL? Since GCC doesn't build without it, I'm trying to install ISL from sources. That doesn't work. It accepts --with-gmp but there is nothing in the Makefile to pay attention to that -- the compiles are done without any switches so it fails unless

Re: gcc trunk fails to build without isl/cloog

2012-08-13 Thread Paul_Koning
On Aug 13, 2012, at 12:42 PM, H.J. Lu wrote: On Mon, Aug 13, 2012 at 9:01 AM, paul_kon...@dell.com wrote: The installation instructions seem to imply that GCC can be built without having ISL and/or CLOOG installed, and the configure script accepts --without-isl and --without-cloog. But

Re: ISL install troubles

2012-08-14 Thread Paul_Koning
On Aug 14, 2012, at 4:17 AM, Richard Guenther wrote: On Mon, Aug 13, 2012 at 6:25 PM, paul_kon...@dell.com wrote: Where does one go to report issues with ISL? Since GCC doesn't build without it, I'm trying to install ISL from sources. That doesn't work. It accepts --with-gmp but there

Re: ISL install troubles

2012-08-14 Thread Paul_Koning
On Aug 14, 2012, at 4:17 AM, Richard Guenther wrote: On Mon, Aug 13, 2012 at 6:25 PM, paul_kon...@dell.com wrote: Where does one go to report issues with ISL? Since GCC doesn't build without it, I'm trying to install ISL from sources. That doesn't work. It accepts --with-gmp but there

RE: -fno-ira removal

2008-10-23 Thread Paul_Koning
arc m32c m68hc11 mmix pdp11 score vax I'll try to get to pdp11 soon. paul

Re: Android native build of GCC

2015-02-06 Thread Paul_Koning
On Feb 6, 2015, at 5:28 AM, Andrew Haley a...@redhat.com wrote: On 02/06/2015 10:18 AM, Hans-Peter Nilsson wrote: ... Not sure what's not understood. IIUC you want to disable LTO when building gcc natively on Android? As LTO is considered a language, ??? LTO is considered a

Re: volatile access optimization (C++ / x86_64)

2015-01-05 Thread Paul_Koning
On Jan 5, 2015, at 4:11 PM, DJ Delorie d...@redhat.com wrote: To try to generalize from that: it looks like the operating principle is that an insn that expands into multiple references to a given operand isn’t volatile-safe, but one where there is only a single reference is safe? No,

Re: Branch taken rate of Linux kernel compiled with GCC 4.9

2015-01-13 Thread Paul_Koning
On Jan 13, 2015, at 7:44 AM, Alexander Monakov amona...@ispras.ru wrote: On Tue, 13 Jan 2015, Pengfei Yuan wrote: I use perf with rbf88:k,rff88:k events (Haswell specific) to profile the taken rate of conditional branches in the kernel. Here are the results: [...] The results are very

Re: volatile access optimization (C++ / x86_64)

2015-01-05 Thread Paul_Koning
On Jan 5, 2015, at 1:47 PM, DJ Delorie d...@redhat.com wrote: One question: do you have an example of a non-volatile-safe machine so I can get a feel for the problems one might encounter? At best I can imagine a machine that optimizes add 0, [mem] to avoid the read/write, but I'm not

Broken link on homepage

2015-01-05 Thread Paul_Koning
The “news” section first link points to https://gcc.gnu.org/gcc-5/“ which comes up “forbidden”. The other release links seem to be fine. paul

Re: volatile access optimization (C++ / x86_64)

2015-01-05 Thread Paul_Koning
On Jan 5, 2015, at 1:24 PM, DJ Delorie d...@redhat.com wrote: What is involved with the auditing? Each pattern that (directly or indirectly) uses general_operand, memory_operand, or nonimmediate_operand needs to be checked to see if it's volatile-safe. If so, you need to change the

Re: inline asm clobbers

2015-03-11 Thread Paul_Koning
On Mar 11, 2015, at 7:19 PM, Ian Lance Taylor i...@google.com wrote: On Wed, Mar 11, 2015 at 3:58 PM, David Wohlferd d...@limegreensocks.com wrote: Why does gcc allow you to specify clobbers using numbers: asm ( : : r (var) : 0); // i386: clobbers eax How is this better than

Re: inline asm clobbers

2015-03-12 Thread Paul_Koning
On Mar 11, 2015, at 8:53 PM, David Wohlferd d...@limegreensocks.com wrote: ... I would agree that one should avoid it. I'd be wary of removing it from GCC at this point since it might break working code. It certainly would. It’s not all that common, but I have seen this done in

Re: Obscure crashes due to gcc 4.9 -O2 = -fisolate-erroneous-paths-dereference

2015-02-20 Thread Paul_Koning
On Feb 20, 2015, at 12:01 PM, Jeff Law l...@redhat.com wrote: On 02/20/15 04:43, Jonathan Wakely wrote: ... I'm inclined to agree. Most developers aren't aware of the preconditions on memcpy, but GCC optimizes aggressively based on those preconditions, so we have a large and

Re: Obscure crashes due to gcc 4.9 -O2 = -fisolate-erroneous-paths-dereference

2015-02-20 Thread Paul_Koning
On Feb 20, 2015, at 12:01 PM, Jeff Law l...@redhat.com wrote: ... Regardless, the right thing to do is to disable elimination of NULL pointer checks on targets where page 0 is mapped and thus a reference to *0 may not fault. In my mind this is an attribute of both the processor (see H8

Re: Questions about C as used/implemented in practice

2015-04-17 Thread Paul_Koning
On Apr 17, 2015, at 9:14 AM, Peter Sewell peter.sew...@cl.cam.ac.uk wrote: Dear gcc list, we are trying to clarify what behaviour of C implementations is actually relied upon in modern practice, and what behaviour is guaranteed by current mainstream implementations (these are quite

Re: Is there a way to adjust alignment of DImode and DFmode?

2015-05-20 Thread Paul_Koning
On May 20, 2015, at 1:00 PM, H.J. Lu hjl.to...@gmail.com wrote: By default, alignment of DImode and DFmode is set to 8 bytes. When did that change? I know it was 4 in the past, unless you specifically passed a compile switch to make it 8. paul

Re: Is there a way to adjust alignment of DImode and DFmode?

2015-05-20 Thread Paul_Koning
On May 20, 2015, at 1:22 PM, Jakub Jelinek ja...@redhat.com wrote: On Wed, May 20, 2015 at 05:19:28PM +, paul_kon...@dell.com wrote: On May 20, 2015, at 1:00 PM, H.J. Lu hjl.to...@gmail.com wrote: By default, alignment of DImode and DFmode is set to 8 bytes. When did that change?

Re: Moving to git

2015-08-20 Thread Paul_Koning
On Aug 20, 2015, at 4:09 PM, Jason Merrill ja...@redhat.com wrote: On 08/20/2015 02:23 PM, Jeff Law wrote: ...As far as the trunk and release branches, are there any best practices out there that we can draw from? Obviously doing things like push-rebase-push is bad. Presumably there's

Re: Moving to git

2015-08-20 Thread Paul_Koning
On Aug 20, 2015, at 4:24 PM, Jason Merrill ja...@redhat.com wrote: On 08/20/2015 04:22 PM, paul_kon...@dell.com wrote: Let's make sure the procedures that people are supposed to follow are clearly documented. I recently went looking for the equivalent in the binutils/gdb project and it

Re: Git conversion: disposition of old branches and tags

2015-09-16 Thread Paul_Koning
> On Sep 16, 2015, at 4:38 AM, Richard Biener > wrote: > > On Tue, Sep 15, 2015 at 7:09 PM, Florian Weimer wrote: >> ... >> Unlike Subversion branch deletion, Git branch deletion is permanent, >> so this might not be the best option. > > We

Re: Compiler support for erasure of sensitive data

2015-09-09 Thread Paul_Koning
> On Sep 9, 2015, at 12:36 PM, Zack Weinberg wrote: > > ... > I think the ideal feature addition to address this would be > >void safe(void) >{ >struct key __attribute__((sensitive)) k = get_key(); >use_key(k); >} That certainly is a cleaner

Re: Compiler support for erasure of sensitive data

2015-09-09 Thread Paul_Koning
> On Sep 9, 2015, at 1:54 PM, David Edelsohn wrote: > > On Wed, Sep 9, 2015 at 12:36 PM, Zack Weinberg wrote: > >> The ABI dictates basically everything you see. The call to >> explicit_bzero has forced the compiler to *create* a second copy of >> the

Re: basic asm and memory clobbers - Proposed solution

2015-12-03 Thread Paul_Koning
> On Dec 3, 2015, at 12:29 AM, Bernd Edlinger wrote: > >> ... >> If the goal is to order things wrt x, why wouldn't you just reference x? >> >> x = 1; >> asm volatile("nop":"+m"(x)); >> x = 0; >> > > Exactly, that is what I mean. Either the asm can use

Re: basic asm and memory clobbers - Proposed solution

2015-12-15 Thread Paul_Koning
> On Dec 15, 2015, at 7:52 AM, Bernd Schmidt wrote: > > On 12/14/2015 09:10 AM, Segher Boessenkool wrote: >> That, and adding a memory clobber degrades performance for a lot of >> existing basic asm that does not expect the clobber, e.g. asm(""), >> asm("#"), asm("nop"),

Re: basic asm and memory clobbers - Proposed solution

2015-12-15 Thread Paul_Koning
> On Dec 15, 2015, at 5:22 PM, David Wohlferd wrote: > > On 12/14/2015 1:53 AM, Andrew Haley wrote: >> > This just seems like another argument for deprecating basic asm and >> > pushing people to extended. >> Yes. I am not arguing against deprecation. We should do

Re: basic asm and memory clobbers - Proposed solution

2015-12-12 Thread Paul_Koning
> On Dec 12, 2015, at 4:51 AM, Andrew Haley wrote: > > ... > You've missed the most practical solution, which meets most common > usage: clobber memory, but not registers. That allows most of the > effects that people intuitively want and expect, but avoids the > breakage of

Re: C++ order of evaluation of operands, arguments

2015-11-25 Thread Paul_Koning
> On Nov 25, 2015, at 1:25 PM, Martin Sebor wrote: > > On 11/24/2015 02:55 AM, Andrew Haley wrote: >> On 23/11/15 23:01, Jason Merrill wrote: >>> There's a proposal working through the C++ committee to define the order >>> of evaluation of subexpressions that previously had

Re: basic asm and memory clobbers - Proposed solution

2015-11-28 Thread Paul_Koning
> On Nov 28, 2015, at 2:02 AM, Bernd Edlinger wrote: > > ... > Well, I start to think that Jeff is right, and we should treat a asm ("") as > if it > were asm volatile ("" ::: ) but if the asm ("nonempty with optional %") we > should > treat it as asm volatile

Re: basic asm and memory clobbers

2015-11-24 Thread Paul_Koning
> On Nov 23, 2015, at 8:39 PM, David Wohlferd wrote: > > On 11/23/2015 1:44 PM, paul_kon...@dell.com wrote: >>> On Nov 23, 2015, at 4:36 PM, David Wohlferd wrote: >>> >>> ... The more I think about it, I'm just not keen on forcing all

Re: basic asm and memory clobbers

2015-11-24 Thread Paul_Koning
> On Nov 24, 2015, at 12:49 PM, Ian Lance Taylor wrote: > > On Tue, Nov 24, 2015 at 8:58 AM, wrote: >> >> I'm really concerned with loosening the meaning of basic asm. I >> wish I could find the documentation that says, or implies, that it >> is a

Re: basic asm and memory clobbers - Proposed solution

2015-11-30 Thread Paul_Koning
> On Nov 29, 2015, at 6:53 PM, David Wohlferd wrote: > > > > On 11/28/2015 10:30 AM, paul_kon...@dell.com wrote: >>> On Nov 28, 2015, at 2:02 AM, Bernd Edlinger >>> wrote: >>> >>> ... >>> Well, I start to think that Jeff is right, and we

Re: basic asm and memory clobbers

2015-11-20 Thread Paul_Koning
> On Nov 20, 2015, at 1:24 PM, Jeff Law wrote: > > On 11/20/2015 06:05 AM, Richard Henderson wrote: > >> ... >> It seems to me that it would be better to remove the feature, forcing >> what must be an extremely small number of users to audit and update to >> extended asm. >

Re: basic asm and memory clobbers

2015-11-20 Thread Paul_Koning
> On Nov 20, 2015, at 3:01 PM, Jeff Law wrote: > > On 11/20/2015 07:56 AM, Segher Boessenkool wrote: > > When basic asm changes, I expect that having a way to "just do what it > used to do" is going to be useful for some people. 24414 says the documented behaviour

Re: basic asm and memory clobbers

2015-11-23 Thread Paul_Koning
> On Nov 23, 2015, at 4:36 PM, David Wohlferd wrote: > > ... >> The more I think about it, I'm just not keen on forcing all those old-style >> asms to change. > > If you mean you aren't keen to change them to "clobber all," I'm with you. > If you are worried about

Re: __builtin_memcpy and alignment assumptions

2016-01-08 Thread Paul_Koning
> On Jan 8, 2016, at 6:32 AM, Jakub Jelinek wrote: > > On Fri, Jan 08, 2016 at 12:24:49PM +0100, Eric Botcazou wrote: >>> See some existing PR. The GCC middle-end cannot assume that pointers >>> are aligned according to their type (while at least the C language would >>>

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread Paul_Koning
> On Mar 14, 2016, at 11:31 AM, Andrey Tarasevich > wrote: > > Hi, > > I have a source file with 700k lines of code 99% of which are printf() > statements. Compiling this test case crashes GCC 5.3.0 with segmentation > fault. > Can such test case be

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread Paul_Koning
> On Mar 14, 2016, at 12:05 PM, C Bergström wrote: > > I don't speak with any community authority - I think your test tool is > misconfigured then. I don't see any pragmatic reason to generate such > a test. It's unlikely to mirror any real world code and artificial >

Re: Is test case with 700k lines of code a valid test case?

2016-03-19 Thread Paul_Koning
> On Mar 18, 2016, at 12:53 PM, Paulo Matos wrote: > > > > On 18/03/16 15:02, Jonathan Wakely wrote: >> >> It's probably crashing because it's too large, so if you reduce it >> then it won't crash. >> > > Would be curious to see what's the limit though, or if it depends

Re: Spurious register spill with volatile function argument

2016-03-28 Thread Paul_Koning
> On Mar 28, 2016, at 8:11 AM, Florian Weimer wrote: > > ... > The problem is that “reading” is either not defined, or the existing > flatly contradicts existing practice. > > For example, if p is a pointer to a struct, will the expression >m > read *p? Presumably the

Re: Machine constraints list

2016-05-09 Thread Paul_Koning
> On May 8, 2016, at 6:27 PM, David Wohlferd wrote: > > Looking at the v6 release criteria (https://gcc.gnu.org/gcc-6/criteria.html) > there are about a dozen supported platforms. > > Looking at the Machine Constraints docs >

Re: Two suggestions for gcc C compiler to extend C language (by WD Smith)

2016-07-26 Thread Paul_Koning
> On Jul 26, 2016, at 2:07 PM, Warren D Smith wrote: > > To the guy who falsely claimed MIPS fails to provide an add with carry > instruction, > a google search in 1 minute finds this: > > stackoverflow.com/questions/1281806/adding-two-64-bit-numbers-in-assembly > > I

Re: Two suggestions for gcc C compiler to extend C language (by WD Smith)

2016-07-26 Thread Paul_Koning
> On Jul 26, 2016, at 12:50 PM, Warren D Smith wrote: > > ... > Sigh. It's really hard to get compiler and language guys to do anything. I find it puzzling that you appear to think that insulting your audience is the best way to influence them. > ... > There is

Re: [PATCH 8/8] Add a common .md file and define standard constraints there

2014-06-12 Thread Paul_Koning
On Jun 12, 2014, at 3:24 PM, Segher Boessenkool seg...@kernel.crashing.org wrote: On Thu, Jun 05, 2014 at 10:43:25PM +0100, Richard Sandiford wrote: This final patch uses a common .md file to define all standard constraints except 'g'. I had a look at what targets still use g. Note:

Re: Remove LIBGCC2_HAS_?F_MODE target macros

2014-09-12 Thread Paul_Koning
On Sep 11, 2014, at 9:22 PM, Joseph S. Myers jos...@codesourcery.com wrote: This patch removes the LIBGCC2_HAS_{SF,DF,XF,TF}_MODE target macros, replacing them by predefines with -fbuilding-libgcc, together with a target hook that can influence those predefines when needed. The new default

RE: [Patch,AVR] Print no-return functions as JMP

2011-10-13 Thread Paul_Koning
You should have a way to turn this off. Otherwise this makes debugging the call to abort impossible. What do you propose? o A command line option that is on per default like -mnoreturn-tail-calls or -mjmp-noreturn o Hard-coded factor out some function names like abort, exit, _exit I'd

RE: [Patch,AVR] Print no-return functions as JMP

2011-10-17 Thread Paul_Koning
There is no real post morten debugging on AVR as there is nothing like core dump. But if there is any kind of debugging at all, you might use the debugger to put a breakpoint in abort(), and if so, having that invoked via jmp means you don't know who called it. So you'd want a way to suppress

Re: [patch] For alpha-vms, unset flag_jump_tables if flag_pic is nonzero

2012-05-16 Thread Paul_Koning
It turns out that there is a second target that doesn't define ASM_OUTPUT_ADDR_DIFF_ELT: pdp11. I'll fix that. The documentation is out of date as a consequence of this patch, because it still says that ASM_OUTPUT_ADDR_DIFF_ELT is optional which is no longer the case (or not unless you take

Re: [patch] For alpha-vms, unset flag_jump_tables if flag_pic is nonzero

2012-05-16 Thread Paul_Koning
On May 16, 2012, at 1:27 PM, paul_kon...@dell.com paul_kon...@dell.com wrote: It turns out that there is a second target that doesn't define ASM_OUTPUT_ADDR_DIFF_ELT: pdp11. I'll fix that. The documentation is out of date as a consequence of this patch, because it still says that

RE: Commit: RX: Disable extender peepholes at -O3

2011-08-09 Thread Paul_Koning
I am checking in the patch below to the mainline and 4.6 branch. It disables the peephole optimizations in the rx.md file that combine a load followed by a zero- or sign- extend operation. The disabling only happens at -O3 (or higher) as although the peepholes reduce the number of

RE: [patch] clean up pdp11.md a bit

2012-02-16 Thread Paul_Koning
These look fine. I'll defer to others on whether it should wait to Phase 1. I had tried to make divmod work but never figured out the reason why it did not. Thanks for answering that question. As for the subregs that Richard commented on -- I will gladly admit that this target isn't all

RE: [patch] clean up pdp11.md a bit

2012-02-21 Thread Paul_Koning
By the way, the compile subset of the testsuite works for pdp11; it has some errors which still need cleanup but a large fraction works. paul -Original Message- From: Steven Bosscher [mailto:stevenb@gmail.com] Sent: Tuesday, February 14, 2012 5:09 PM To: Koning, Paul; GCC

Re: Turn most genrecog warnings into errors

2013-11-22 Thread Paul_Koning
On Nov 22, 2013, at 3:43 AM, Richard Sandiford rdsandif...@googlemail.com wrote: genrecog does some useful sanity checks on the .md files. At the moment it only reports most of the problems as warnings though, which means you won't notice them unless you specifically look. I think the

[DOC] Update -feliminate-unused-debug-types description

2012-09-17 Thread Paul_Koning
Currently the description of -feliminate-unused-debug-types says that it is off by default. In fact, it is on by default. The attached patch corrects the documentation to reflect that. Ok to commit? paul 2012-09-17 Paul Koning n...@arrl.net * doc/invoke.text

Re: [DOC] Update -feliminate-unused-debug-types description

2012-09-17 Thread Paul_Koning
On Sep 17, 2012, at 1:20 PM, Ian Lance Taylor wrote: On Mon, Sep 17, 2012 at 8:59 AM, paul_kon...@dell.com wrote: 2012-09-17 Paul Koning n...@arrl.net * doc/invoke.text (-feliminate-unused-debug-types): Update to reflect that this is enabled by default. This is OK.

[patch] pr/54508: fix incomplete debug information for class

2012-09-17 Thread Paul_Koning
If the only reference in a source file is to a static method of a class, then GCC would output debug information for the class name but not any of its members or base classes. The attached patch fixes this by having prune_unused_types_mark mark all of the parent's children if the parent DIE

Ping: [patch] pr/54508: fix incomplete debug information for class

2012-09-24 Thread Paul_Koning
Ping... paul Begin forwarded message: From: paul_kon...@dell.com Date: September 20, 2012 4:55:05 PM EDT To: gcc-patches@gcc.gnu.org Subject: Re: [patch] pr/54508: fix incomplete debug information for class Attached below is an update to the testcase file, to fix the

  1   2   >