-Warray-bounds false negative

2009-11-13 Thread Matt
return 0; } When i is 36 and hyphen is 0 (and in many other cases), data[] will be overflowed by quite a bit. Where does the breakdown in array bounds detection occur, and why? Once I understand, and if the fix is simple enough, I can try to fix the bug and supply a patch. Thanks! -- tangled strands of DNA explain the way that I behave. http://www.clock.org/~matt

Re: -Warray-bounds false negative

2009-11-13 Thread Matt
On Fri, 13 Nov 2009, Andrew Pinski wrote: On Fri, Nov 13, 2009 at 1:09 PM, Matt wrote: Hello, I recently came across a false negative in GCC's detection of array bounds violation. At first, I thought the other tool (PC-Lint) was having false positive, but it turns out to be correct

build failure bootstrapping trunk on Ubuntu 9.10

2009-11-18 Thread Matt
I'm getting this build failure with latest trunk, as of the composing of this email: ../gcc-trunk/configure --prefix=/home/matt --enable-stage1-checking=all --enable-bootstrap --enable-lto --enable-languages=c,c++../gcc-trunk/configure --prefix=/home/matt --enable-stage1-checkin

missed IPA/whopr optimization?

2009-11-19 Thread Matt
insights and/or help! PS: I would test with a newer 4.5.0 build, but I'm having trouble bootstrapping. Any help is appreciated on that email (sent yesterday), as well. -- tangled strands of DNA explain the way that I behave. http://www.clock.org/~matt

Re: GCC 4.5 is uncompilable

2009-11-20 Thread Matt
racking on testing 4.5. Thanks! -- tangled strands of DNA explain the way that I behave. http://www.clock.org/~matt

df_changeable_flags use in combine.c

2010-01-04 Thread Matt
d the explicit cast necessary to silence the gcc-as-cxx warning I was running into, but I wanted to be a good citizen :) Any pointers are appreciated, Thanks! -- tangled strands of DNA explain the way that I behave. http://www.clock.org/~matt

[gcc-as-cxx] enum conversion to int

2010-01-04 Thread Matt
o make sure that this wasn't a warning false positive first, though. -- tangled strands of DNA explain the way that I behave. http://www.clock.org/~matt

Re: [gcc-as-cxx] enum conversion to int

2010-01-05 Thread Matt
On Tue, 5 Jan 2010, Ian Lance Taylor wrote: Matt writes: I'm trying to fix some errors/warnings to make sure that gcc-as-cxx doesn't bitrot too much. I ran into this issue, and an unsure how to fix it without really ugly casting: enum df_changeable_flags df_set_f

Re: [gcc-as-cxx] enum conversion to int

2010-01-05 Thread Matt
On Tue, 5 Jan 2010, Ian Lance Taylor wrote: Matt writes: Yes, was I pasted was a local change. I was trying to eliminate the implicit cast to int from the enum type, which was causing my --enable-werror build to fail. At this point, I think the better option would be to break up the enum

Re: ICE building svn trunk on Ubuntu 9.x amd64

2009-06-25 Thread Matt
(now sending to gcc@ instead of gcc-help@, as suggested) I have narrowed it down to this reduced commandline (the time is there just to show that it may take a while, but this particular issue doesn't cause a hang): m...@hargett-755:~/src/gcc-obj/prev-gcc$ time /home/matt/src/gc

Re: Phase 1 of gcc-in-cxx now complete

2009-06-26 Thread Matt
f template expansion during the profiledbootstrap. If I can get pointed in the right direction, I can probably produce a patch within the next week. Thanks for this work and adding all the extra warnings! -- tangled strands of DNA explain the way that I behave. http://www.clock.org/~matt

4.1.1 profiledbootstrap failure on amd64

2006-05-23 Thread Matt
I get this failure when trying to do a proifledbootstrap on amd64. This is a gentoo Linux machine with gcc 3.4.4, glibc 2.35, binutils 2.16.1, autoconf 2.59, etc, etc. make[6]: Entering directory `/home/matt/src/gcc-bin/x86_64-unknown-linux-gnu/libstdc++-v3' if [ -z "32" ]; then \

Re: build failure, GMP not available

2006-11-16 Thread Matt Fago
(or at least the libgfortran configure) would test the execution of some or all of the required functions in GMP/MPFR. I vaguely recall that this is possible with autoconf, and should be more robust. Would it add too much complexity to the top-level configure? Thanks, - Matt

Re: build failure, GMP not available

2006-11-17 Thread Matt Fago
>From: "Kaveh R. GHAZI" <[EMAIL PROTECTED]> >> Matt Fago wrote: >> One issue here is that '--with-mpfr=path' assumes that 'libmpfr.a' is >> in 'path/lib' (not true for how I installed it), while '--with-mpfr- >> dir=path

Re: Bootstrap broken on x86_64 on the trunk in libgfortran?

2006-11-30 Thread Matt Fago
of libmfpr was available so long as the header was the correct version (this is likely on x86_64). Please excuse any formatting issues -- this is my first patch. I have neither SVN access nor a copyright assignment, but this is a short patch. Would someone be willing to help test and possibly apply?

Re: mpfr issues when Installing gcc 3.4 on fedora core

2007-01-03 Thread Matt Fago
's outdated gmp/mpfr package doesn't help either ... - Matt

Re: mpfr issues when Installing gcc 3.4 on fedora core

2007-01-04 Thread Matt Fago
> drizzle drizzle wrote: >And as matt suggested if mpfr is not needed by 3.4, how can I >configure it that way. --disable -mpfr did not help. MPFR should not have _anything_ to do with any gcc prior to 4.x. Where did you get gcc 3.4? A tarball from a gnu mirror or somewhere else? I thi

Re: mpfr issues when Installing gcc 3.4 on fedora core

2007-01-04 Thread Matt Fago
>From: drizzle drizzle <[EMAIL PROTECTED]> >Still no luck so far .. I got the gcc3.4 from the gcc archive. Any way >I can make gcc 3.4 not use these libraries ? What is the exact file name and URL? I will download the same tarball and try to build it on my fc6 box. - M

Re: mpfr issues when Installing gcc 3.4 on fedora core

2007-01-04 Thread Matt Fago
s what specifies the tag (in this case 'trunk'). - Matt

gcc gcov and --coverage on x86_64

2007-03-08 Thread Matt Fago
e bug? Thanks, Matt

Re: gcc gcov and --coverage on x86_64

2007-03-14 Thread Matt Fago
so can probably help you. Contact me in >private mail and we'll try and troubleshoot it. If necessary, you can >then file a bug report. FYI, this is an issue with ccache and not gcc (I forgot about that possibility). Guess it's time to dig into ccache. Thanks, Matt

VAX backend status

2007-04-01 Thread Matt Thomas
Over the past several weeks, I've revamped the VAX backend: - fixed various bugs - improved 64bit move, add, subtract code. - added patterns for ffs, bswap16, bswap32, sync_lock_test_and_set, and sync_lock_release - modified it to generate PIC code. - fixed the dwarf2 output so it is r

[RFA] Invalid mmap(2) assumption in pch (ggc-common.c)

2005-04-23 Thread Matt Thomas
D set for architecture specific reasons). Is there a reason why MAP_FIXED isn't used even though it probably should be? -- Matt Thomas email: [EMAIL PROTECTED] 3am Software Foundry www: http://3am-software.com/bio/matt/ Cupertino, CA disclaimer:

[PATCH] VAX: cleanup; move macros from config/vax/vax.h to normal in config/vax/vax.c

2005-04-26 Thread Matt Thomas
Committed. -- Matt Thomas email: [EMAIL PROTECTED] 3am Software Foundry www: http://3am-software.com/bio/matt/ Cupertino, CA disclaimer: I avow all knowledge of this message. 2005-03-26 Matt Thomas <[EMAIL PROTECTED]> *

GCC 4.1: Buildable on GHz machines only?

2005-04-26 Thread Matt Thomas
just to see how much faster they are. I hope I'm going to pleasantly surprised but I'm not counting on it. -- Matt Thomas email: [EMAIL PROTECTED] 3am Software Foundry www: http://3am-software.com/bio/matt/ Cupertino, CA disclaimer: I avow all knowledge of this message.

Re: GCC 4.1: Buildable on GHz machines only?

2005-04-26 Thread Matt Thomas
only decreased the bootstrap time by 10%. By far, the longest bit of the bootstrap is building libjava. -- Matt Thomas email: [EMAIL PROTECTED] 3am Software Foundry www: http://3am-software.com/bio/matt/ Cupertino, CA disclaimer: I avow all knowledge of this message.

[RFA] Which is better? More and simplier patterns? Fewer patterns with more embedded code?

2005-04-26 Thread Matt Thomas
. For instance: (define_insn "*pushal" [(set (match_operand:SI 0 "push_operand" "=g") (match_operand:SI 0 "address_operand" "p"))] "" "pushal %a1") I like the more and simplier patterns approach

Re: GCC 4.1: Buildable on GHz machines only?

2005-04-26 Thread Matt Thomas
Gary Funck wrote: > >>-Original Message- >>From: Matt Thomas >>Sent: Tuesday, April 26, 2005 10:42 PM > > [...] > >>Alas, the --disable-checking and STAGE1_CFLAGS="-O2 -g" (which I was >>already doing) only decreased the bootstrap time

Re: GCC 4.1: Buildable on GHz machines only?

2005-04-27 Thread Matt Thomas
David Edelsohn wrote: >>>>>>Matt Thomas writes: > > > Matt> Regardless, GCC4.1 is a computational pig. > > If you are referring to the compiler itself, this has no basis in > reality. If you are referring to the entire compiler collection, > in

Re: GCC 4.1: Buildable on GHz machines only?

2005-04-27 Thread Matt Thomas
Jonathan Wakely wrote: > On Wed, Apr 27, 2005 at 08:05:39AM -0700, Matt Thomas wrote: > > >>David Edelsohn wrote: >> >> >>> GCC now supports C++, Fortran 90 and Java. Those languages have >>>extensive, complicated runtimes. The GCC Java envi

Re: GCC 4.1: Buildable on GHz machines only?

2005-04-27 Thread Matt Thomas
Mike Stump wrote: On Apr 26, 2005, at 11:12 PM, Matt Thomas wrote: It would be nice if bootstrap emitted timestamps when it was started and when it completed a stage so one could just look at the make output. You can get them differenced for free by using: time make boostrap I know that

Re: GCC 4.1: Buildable on GHz machines only?

2005-04-28 Thread Matt Thomas
he initial bootstrap compiler was gcc3.3 and they are all running off the same base of NetBSD 3.99.3. While taking out fortran and java reduced the disparity, there is still a large increase in bootstrap times from 3.4 to 4.1. -- Matt Thomas email: [EMAIL PROTECTED] 3am Softwa

Re: GCC 4.1: Buildable on GHz machines only?

2005-04-29 Thread Matt Thomas
table structure, the VAX uses a single page table of indirection. This greatly reduces the amount of address space a process can efficiently use. If there are components that will not be needed by some java programs, it would nice if they could be separated into their shared libraries.

Use $(VARRAY_H) in dependencies?

2005-05-08 Thread Matt Kraai
, so Makefile.in should define and use VARRAY_H, right? -- Matt signature.asc Description: Digital signature

Re: Use $(VARRAY_H) in dependencies?

2005-05-08 Thread Matt Kraai
On Sun, May 08, 2005 at 07:31:38PM -0700, Matt Kraai wrote: > On Mon, May 09, 2005 at 03:03:23AM +0100, Paul Brook wrote: > > On Monday 09 May 2005 02:26, Matt Kraai wrote: > > > Howdy, > > > > > > The rules for c-objc-common.o, loop-unroll.o, and tree-inline.o

Targets

2005-12-29 Thread Matt Ritchie
support Fortran-66? PS: Can I help in any way(testing the mingw port(i don't have linux\bsd\unix\vms\os/2 or mac, just windows and dos Matt Ritchie

bounty available for porting AVR backend to MODE_CC

2020-02-23 Thread Matt Wette
is a reference to the discussion on avrfreaks.net: https://www.avrfreaks.net/forum/avr-gcc-and-avr-g-are-deprecated-now Matt

Function attribute((optimize(...))) ignored on inline functions?

2015-07-30 Thread Matt Turner
I'd like to tell gcc that it's okay to inline functions (such as rintf(), to get the SSE4.1 roundss instruction) at particular call sights without compiling the entire source file or calling function with different CFLAGS. I attempted this by making inline wrapper functions annotated with attribut

RFA: [VAX] SUBREG of MEM with a mode dependent address

2014-05-25 Thread Matt Thomas
GCC 4.8 for VAX is generating a subreg:HI for mem:SI indexed address. This eventually gets caught by an assert in change_address_1. Since the MEM rtx is SI, legimate_address_p thinks it's fine. I have a change to vax.md which catches these but it's extremely ugly and I have to think there'

Re: RFA: [VAX] SUBREG of MEM with a mode dependent address

2014-06-03 Thread Matt Thomas
On May 30, 2014, at 10:39 AM, Jeff Law wrote: > On 05/25/14 18:19, Matt Thomas wrote: >> >> But even if movhi is a define_expand, as far as I can tell there's >> isn't enough info to know whether that is possible. At that time, >> how can I tell t

Re: GCC ARM: aligned access

2014-08-31 Thread Matt Thomas
On Aug 31, 2014, at 11:32 AM, Joel Sherrill wrote: >> Hi, >> >> I am writing some code and found that system crashed. I found it was >> unaligned access which causes `data abort` exception. I write a piece >> of code and objdump >> it. I am not sure this is right or not. >> >> command: >> arm-

Missed optimization case

2014-12-22 Thread Matt Godbolt
http://goo.gl/fi3p2J ICC 13.0.1: http://goo.gl/PRTTc6 Clang 3.4.1: http://goo.gl/95JEQc I'll happily file a bug if necessary but I'm not clear in what phase the optimization opportunity has been missed. Thanks all, Matt

Re: Missed optimization case

2014-12-23 Thread Matt Godbolt
On Tue, Dec 23, 2014 at 2:25 PM, Andi Kleen wrote: > > Please file a bug with a test case. No need to worry about the phase > too much initially, just fill in a reasonable component. > Thanks - filed as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64396 -matt

volatile access optimization (C++ / x86_64)

2014-12-26 Thread Matt Godbolt
the example (which is also at the bottom of my email). Is there a reason why (in principal) the volatile increment can't be made into a single add? Clang and ICC both emit the same code for the volatile and non-volatile case. Thanks in advance for any thoughts on the matter, Matt

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

2014-12-26 Thread Matt Godbolt
On Fri, Dec 26, 2014 at 4:26 PM, Andrew Haley wrote: > On 26/12/14 20:32, Matt Godbolt wrote: >> Is there a reason why (in principal) the volatile increment can't be >> made into a single add? Clang and ICC both emit the same code for the >> volatile and non-volatile cas

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

2014-12-26 Thread Matt Godbolt
On Fri, Dec 26, 2014 at 4:51 PM, Marc Glisse wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50677 Thanks Marc

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

2014-12-26 Thread Matt Godbolt
On Fri, Dec 26, 2014 at 5:19 PM, Andrew Haley wrote: > On 26/12/14 22:49, Matt Godbolt wrote: >> On Fri, Dec 26, 2014 at 4:26 PM, Andrew Haley wrote: >>> On 26/12/14 20:32, Matt Godbolt wrote: >> I realise my understanding could be wrong here! >> If not though, b

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

2014-12-26 Thread Matt Godbolt
On Fri, Dec 26, 2014 at 5:20 PM, NightStrike wrote: > Have you tried release and acquire/consume instead? Yes; these emit the same instructions in this case. http://goo.gl/e94Ya7 Regards, Matt

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

2014-12-27 Thread Matt Godbolt
On Sat, Dec 27, 2014 at 11:57 AM, Andrew Haley wrote: > On 27/12/14 00:02, Matt Godbolt wrote: >> On Fri, Dec 26, 2014 at 5:19 PM, Andrew Haley wrote: >>> On 26/12/14 22:49, Matt Godbolt wrote: >>>> On Fri, Dec 26, 2014 at 4:26 PM, Andrew Haley wrote: >>>

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

2014-12-27 Thread Matt Godbolt
n this case you now know: it's a bug! But one that it's >fairly hard to care deeply about, although it might get fixed now. Understood completely! Thanks again, Matt

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

2014-12-30 Thread Matt Godbolt
three instructions to be a single increment in the case of x86 given relaxed memory ordering, I can offer no good opinion (though my instinct is it should be able to be!) Thanks all for your help, Matt

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

2015-01-05 Thread Matt Godbolt
On Mon, Jan 5, 2015 at 11:53 AM, DJ Delorie wrote: > > Matt Godbolt writes: >> GCC's code generation uses a "load; add; store" for volatiles, instead >> of a single "add 1, [metric]". > > GCC doesn't know if a target's load/add/store

5.1.0/4.9.2 native mingw64 lto-wrapper.exe issues (PR 65559 and 65582)

2015-04-28 Thread Matt Breedlove
rocessed due to #1. This is my first report so I wouldn't mind some guidance. I'm familiar enough with debugging to gather whatever other level details are requested. Most of this was found using gdb. -- Matt Breedlove

5.1.0 / 5.1.1 mingw64 bootstrap LTO failure questions

2015-05-11 Thread Matt Breedlove
during configuration. Combined with building libiberty with "-fno-builtin-stpcpy" (PR 66014), I have gotten all builds to finally succeed. I could use some guidance on where to go from here, however. Thanks, Matt

Re: X32 psABI status

2011-02-12 Thread Matt Thomas
On Feb 12, 2011, at 1:29 PM, H.J. Lu wrote: > On Sat, Feb 12, 2011 at 1:10 PM, Florian Weimer wrote: >> * H. J. Lu: >> >>> We made lots of progresses on x32 pABI: >>> >>> https://sites.google.com/site/x32abi/ >>> >>> 1. Kernel interface with syscall is close to be finalized. >>> 2. GCC x32 br

Re: X32 psABI status

2011-02-12 Thread Matt Thomas
On Feb 12, 2011, at 7:02 PM, Andrew Pinski wrote: > On Sat, Feb 12, 2011 at 3:04 PM, H. Peter Anvin wrote: >> On 02/12/2011 01:10 PM, Florian Weimer wrote: >>> Why is the ia32 compatiblity kernel interface used? >> >> Because there is no way in hell we're designing in a second >> compatibility

Re: RFC: A new MIPS64 ABI

2011-02-14 Thread Matt Thomas
On Feb 14, 2011, at 12:29 PM, David Daney wrote: > Background: > > Current MIPS 32-bit ABIs (both o32 and n32) are restricted to 2GB of > user virtual memory space. This is due the way MIPS32 memory space is > segmented. Only the range from 0..2^31-1 is available. Pointer > values are always

Re: RFC: A new MIPS64 ABI

2011-02-14 Thread Matt Thomas
On Feb 14, 2011, at 6:22 PM, David Daney wrote: > On 02/14/2011 04:15 PM, Matt Thomas wrote: >> >> I have to wonder if it's worth the effort. The primary problem I see >> is that this new ABI requires a 64bit kernel since faults through the >> upper 2G will go

Re: RFC: A new MIPS64 ABI

2011-02-14 Thread Matt Thomas
On Feb 14, 2011, at 6:26 PM, David Daney wrote: > On 02/14/2011 06:14 PM, Joe Buck wrote: >> On Mon, Feb 14, 2011 at 05:57:13PM -0800, Paul Koning wrote: >>> It seems that this proposal would benefit programs that need more than 2 GB >>> but less than 4 GB, and for some reason really don't want

Re: RFC: A new MIPS64 ABI

2011-02-14 Thread Matt Thomas
On Feb 14, 2011, at 6:50 PM, David Daney wrote: > On 02/14/2011 06:33 PM, Matt Thomas wrote: >> >> On Feb 14, 2011, at 6:22 PM, David Daney wrote: >> >>> On 02/14/2011 04:15 PM, Matt Thomas wrote: >>>> >>>> I have to wonder if it'

Internal compiler error in targhooks.c: default_secondary_reload (ARM/Thumb)

2011-04-04 Thread Matt Fischer
-it needs to have lots of variables active at once, and the error doesn't occur unless I'm compiling for Thumb. Unfortunately I don't have a way to test this on tips, so I can't tell if it's been fixed there or not. Any information on this would be appreciated. Thanks, Matt

RE: Question about static code analysis features in GCC

2011-04-12 Thread Hargett, Matt
Hey Sarah, Many array bounds and format string problems can already be found, especially with LTO, ClooG, loop-unrolling, and -O3 enabled. Seeing across object-file boundaries, understanding loop boundaries, and aggressive inlining allows GCC to warn about a lot of real-world vulnerabilities. W

RE: GCC 4.4/4.6/4.7 uninitialized warning regression?

2011-04-22 Thread Hargett, Matt
> > This brings out 2 questions. Why don't GCC 4.4/4.6/4.7 warn it? > > Why doesn't 64bit GCC 4.2 warn it? > Good question. It seems that the difference is whether the compiler > generates a field-by-field copy or a call to memcpy(). According to > David, the trunk gcc in 32-bit mode doesn't call

gcc and scientific computing

2011-04-25 Thread Matt McCormick
, link time optimization, C++Ox, ... Thanks, Matt

Detecting global pointers

2011-05-03 Thread Matt Davis
plugin code executes for function 'fn': : # .MEM_4 = VDEF <.MEM_3(D)> main.myglobal.13_1 = __go_new_nopointers (4); # .MEM_5 = VDEF <.MEM_4> main.myglobal = main.myglobal.13_1; # VUSE <.MEM_5> D.186_2 = main.myglobal; return D.186_2; Any insight would be helpful. Thanks! -Matt

Re: Detecting global pointers

2011-05-04 Thread Matt Davis
On Wed, May 4, 2011 at 7:38 PM, Richard Guenther wrote: > On Wed, May 4, 2011 at 6:16 AM, Matt Davis wrote: >> I am writing a gcc plugin and am trying to detect if a value assigned by a >> function call, is a global variable or not.  Unfortunately, all calls to >> '

Non-optimal stack usage with C++ temporaries

2011-05-11 Thread Matt Fischer
this is an actual bug, or required for some reason by the standard, or just behavior that not enough people have run into problems with? Thanks, Matt

How to get function argument points-to information.

2011-05-17 Thread Matt Davis
l. I assume there is a better/different way of determining if an argument points to my node? Thanks for any insight. -Matt

missed optimization: transforming while(n>=1) into if(n>=1)

2011-05-20 Thread Matt Turner
never execute more than once, as n must be < 2, and in the body of the loop, n is decremented. The resulting machine code includes the backward branch to the top of the while (n >= 1) loop, which can never be taken. I suppose this is a missed optimization. Is this known, or should I make a new bug report? Thanks, Matt Turner

[RFC] alpha/ev6: model 1-cycle cross-cluster delay

2011-05-24 Thread Matt Turner
d for them. Can a (define_bypass ...) function specify a latency value greater than the default latency, or should I raise the default latency and special-case fst/ftoi consumers like I've done for cross-cluster delay? Thanks a lot! Matt Turner [1] http://www.compaq.com/cpq-a

Configure gcc with --multilib=... ?

2011-06-14 Thread Matt Turner
l/gcc/2010-01/msg00063.html suggesting the addition of a --multilib= configure option. Has such a thing been added? Is there a way to configure gcc to build only n32 and n64 ABIs? Thanks, Matt

RE: GCC 4.6.1 Status Report (2011-06-20) [BRANCH FROZEN]

2011-06-20 Thread Hargett, Matt
> GCC 4.6.1 first release candidate has been uploaded, and the branch > is now frozen. All changes need RM approval now. > Please test it, if all goes well, 4.6.1 will be released early next > week. No chance for a fix for this in 4.6.1? http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48600 This has

RE: C++ bootstrap of GCC - still useful ?

2011-07-09 Thread Hargett, Matt
> As of a couple of months, I perform a bootstrap-with-C++ > (--enable-build-with-cxx) daily on my machine between 18:10 and 20:10 UTC. > Is there still interest in daily builds like mine ? Absolutely! Especially if you do a profiled-bootstrap and/or LTO bootstrap in that mode. Hopefully this is

Updating the CFG after function modifcation

2011-07-15 Thread Matt Davis
my transformation pass, still no luck Any suggestions would be welcomed. Thanks for even reading this far. -Matt

PARM_DECL to SSA_NAME

2011-07-16 Thread Matt Davis
for this PARM_DECL node? The SSA has been generated before my plugin executes. Also, I do call update_ssa() after the routines are processed by my passes. Thanks for any insight. -Matt

Inline Expansion Problem

2011-08-26 Thread Matt Davis
checking_assert (cg_edge); cg_node comes back as being NULL since there is only one callee and no indirect calls, the function that has the inserted call is main(). Is there something I forgot to do after inserting the gimple call statement? This works fine without optimization. -Matt

Re: Inline Expansion Problem

2011-08-27 Thread Matt Davis
On Sat, Aug 27, 2011 at 09:27:49AM +0200, Richard Guenther wrote: > On Sat, Aug 27, 2011 at 4:47 AM, Matt Davis wrote: > > Hello, > > I am having the compiler insert a call to a function which is defined inside > > another object file.  However, during inline expansion via &

Re: Inline Expansion Problem

2011-08-27 Thread Matt Davis
On Sat, Aug 27, 2011 at 11:25:45AM +0200, Richard Guenther wrote: > On Sat, Aug 27, 2011 at 10:06 AM, Matt Davis wrote: > > On Sat, Aug 27, 2011 at 09:27:49AM +0200, Richard Guenther wrote: > >> On Sat, Aug 27, 2011 at 4:47 AM, Matt Davis wrote: > >> > Hello, &

Adding functions at compile time

2011-09-11 Thread Matt Davis
get built? -Matt

Go Garbage Collection Roots

2011-09-29 Thread Matt Davis
ister data as a root in the garbage collector, so that its not in conflict with my allocation? The other option would be to try to override "__go_new" with my own implementation, but keeping the same symbol name so that the linker does the dirty work. -Matt

Creating a structure at compile time.

2011-12-01 Thread Matt Davis
nce to pass to 'fn()', which is 'V' in the case above? Or, will the build_constructor() produce a tree node that I can treat as a variable, that I can pass to 'fn()' ? -Matt

Re: Creating a structure at compile time.

2011-12-03 Thread Matt Davis
On Fri, Dec 2, 2011 at 3:38 PM, Matt Davis wrote: > I am working on a gcc-plugin where I need to create a structure at compile > time. > I have gleaned over one of the front ends to learn more about creating > structures at compile time.  What I have thus far is a type node for

Obtaining the arguments to a function pointer

2011-12-09 Thread Matt Davis
seem to find the arguments stashed anywhere. I know this is somewhat of a special case. Typically, if I had a fndecl it would be easy, but all I know in my case is the function type. -Matt

Re: Obtaining the arguments to a function pointer

2011-12-09 Thread Matt Davis
On Sat, Dec 10, 2011 at 12:40 PM, Ian Lance Taylor wrote: > Matt Davis writes: > >> I am trying to look at the arguments that are passed to a function >> pointer.  I have an SSA_NAME which is for a pointer-type to a >> function-type.  I want to obtain the argum

Modifying the datatype of a formal parameter

2011-12-17 Thread Matt Davis
. I also set_default_ssa_name() on the returned value from ipa_modify_formal_parameter (the adjustment's 'reduction' field). Do I need to re-gimplify the function or run some kind of 'cleanup' or 'update' once I modify this formal parameter? Thanks -Matt

Re: Modifying the datatype of a formal parameter

2011-12-19 Thread Matt Davis
Hi Martin and thank you very much for your reply. I do have some more resolution to my issue. On Mon, Dec 19, 2011 at 8:42 PM, Martin Jambor wrote: > Hi, > > On Sun, Dec 18, 2011 at 01:57:17PM +1100, Matt Davis wrote: >> I am using 'ipa_modify_formal_parameters()'

Re: Modifying the datatype of a formal parameter

2011-12-20 Thread Matt Davis
Here is a follow up. I am closer to what I need, but not quite there yet. Basically I just want to switch the type of one formal parameter to a different type. On Mon, Dec 19, 2011 at 11:05 PM, Matt Davis wrote: > Hi Martin and thank you very much for your reply.  I do have some m

RTL Conditional and Call

2011-12-30 Thread Matt Davis
de for the COND_EXEC expression, which is what I emit into the program: rtx sym = gen_rtx_SYMBOL_REF(Pmode, "abort"); rtx abrt_addr = gen_rtx_MEM(Pmode, sym); rtx abrt = gen_rtx_CALL(VOIDmode, abrt_addr, const0_rtx); rtx cond = gen_rtx_COND_EXEC(VOIDmode, cmp, abrt); Thanks -Matt

Re: RTL Conditional and Call

2011-12-30 Thread Matt Davis
On Sat, Dec 31, 2011 at 12:51 AM, Alexander Monakov wrote: > > > On Sat, 31 Dec 2011, Matt Davis wrote: > >> Hi, >> I am having an RTL problem trying to make a function call from a >> COND_EXEC rtx.  The reload pass has been called, and very simply I >> want to

Interface Method Table

2012-01-19 Thread Matt Davis
For a Go program being compiled in gcc, from the middle end, is there a way to figure-out which routines make up the interface-method-table? I could check the mangled name of the method table, but is there another way to deduce what methods compose it from the middle-end? Thanks! -Matt

RTL AND Instruction

2012-01-21 Thread Matt Davis
ns, but seems I am still having a bit of trouble. -Matt

Re: RTL AND Instruction

2012-01-29 Thread Matt Davis
On Sun, Jan 29, 2012 at 8:21 PM, James Courtier-Dutton wrote: > > On Jan 22, 2012 5:21 AM, "Matt Davis" wrote: >>  Essentially, I just want to emit:  "and %eax, $0x7" >> > Assuming at&t format, does that instruction actually exist? > How can you

[alpha] Request for help wrt gcc bugs 27468, 27469

2009-12-02 Thread Matt Turner
d I can get you access to a quad-833MHz ES40 to do testing on, if need be. Thanks, Matt Turner

[alpha] Wrong code produced at -Os, -O2, and -O3

2010-04-07 Thread Matt Turner
T the program will produce incorrect results and assert(). At -O0 or -O1 or without one or both of the -D flags, it will produce correct results. I've tested with gcc-4.3.4 and gcc-4.4.2. Thanks. Let me know what I can do to help further. Matt Turner sched_find_first_bit.tar.gz Descriptio

Re: [alpha] Wrong code produced at -Os, -O2, and -O3

2010-04-08 Thread Matt Turner
On Thu, Apr 8, 2010 at 2:16 AM, Uros Bizjak wrote: > On Wed, Apr 7, 2010 at 8:38 PM, Matt Turner wrote: > >> I was rewriting the Alpha sched_find_first_bit implementation for the >> Linux Kernel, and in the process I think I've come across a gcc bug. > > [...] > &

Stack mangling for anonymous function pointers

2008-10-24 Thread Matt Hauer
reliable way to write data to the stack such that a called function pointer can extract the values it seeks? Thanks, Matt

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Matt Thomas
On Mar 13, 2009, at 10:06 AM, Paolo Bonzini wrote: Hm. In fold-const.c we try to make sure to produce the same result as the target would for constant-folding shifts. Thus, Paolo, I think what fold-const.c does is what we should assume for !SHIFT_COUNT_TRUNCATED. No? Unfortunately it is

Can't pass temporary with hidden copy ctor as const ref

2009-04-09 Thread Matt Hoosier
Hi, I'm having trouble compiling the following with g++ 4.2.1: class Uncopyable { public: Uncopyable(int x) {} private: Uncopyable(const Uncopyable & other) {} }; class User { public: void foo(int x) { foo(Uncopyable(x)); } void foo(

variadic arguments not thread safe on amd64?

2009-04-27 Thread Matt Provost
I've been trying to write a program with a logging thread that will consume messages in 'printf format' passed via a struct. It seemed that this should be possible using va_copy to copy the variadic arguments but they would always come out as garbage. This is with gcc 4.1.2 on amd64. Reading throug

Re: variadic arguments not thread safe on amd64?

2009-04-27 Thread Matt Provost
On Mon, Apr 27, 2009 at 08:49:27PM -0700, Andrew Pinski wrote: > On Mon, Apr 27, 2009 at 8:37 PM, Matt Provost wrote: > > void tdebug(const char *format, ...) { > > ?? ??va_list ap; > > ?? ??pthread_mutex_lock(&m); > > ?? ??mylog.format = format; > > ?? ??v

  1   2   >