[PATCH] Refactor handle_section_attribute to reduce nesting and distinguish error cases

2015-04-26 Thread Josh Triplett
handle_section_attribute contains many levels of nested conditionals and branching code flow paths, with the error cases sometimes in the else case and sometimes in the if case. Simplify the code flow into a series of potential failure cases ending with the successful path, with no nesting and no

RE: WPP capabilities in gcc

2015-04-26 Thread Daniels, Marcus G
GNU gettext with Emacs source context might do it. You'd have to invent your own tags, in lieu of of __FILE__, etc. https://www.gnu.org/software/gettext/manual/html_node/C-Sources-Context.html#C-Sources-Context It seems to me the general problem is that C preprocessor does not give you the ful

gcc-6-20150426 is now available

2015-04-26 Thread gccadmin
Snapshot gcc-6-20150426 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/6-20150426/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 6 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/trunk revision

Re: WPP capabilities in gcc

2015-04-26 Thread Richard Kenner
> Is gcc meant to only be used to compile FOSS? > If that's your agenda, you're right - I don't see how you can use a > feature like WPP. > > But is that really what gcc aims for? Not to allow people working on > close-source software to enjoy it? It's one thing to say that we're building a compi

Re: WPP capabilities in gcc

2015-04-26 Thread Jonathan Wakely
On 26 April 2015 at 22:52, Shoham Peller wrote: > SystemTap does not give a solution for this, and is not really > intended for this use: > > * It's no cross-platform, it's for Linux > * It doesn't allow the developer to write the text he wants > * It doesn't parse the tracing string > > The solut

Re: WPP capabilities in gcc

2015-04-26 Thread Shoham Peller
SystemTap does not give a solution for this, and is not really intended for this use: * It's no cross-platform, it's for Linux * It doesn't allow the developer to write the text he wants * It doesn't parse the tracing string The solution I'm talking about is: * cross platform * Will allow you to

Re: WPP capabilities in gcc

2015-04-26 Thread Jonathan Wakely
On 26 April 2015 at 18:47, Shoham Peller wrote: > 1. Can you think of a way to achieve this with gcc? Insert SystemTap probe points.

Re: WPP capabilities in gcc

2015-04-26 Thread Shoham Peller
Is gcc meant to only be used to compile FOSS? If that's your agenda, you're right - I don't see how you can use a feature like WPP. But is that really what gcc aims for? Not to allow people working on close-source software to enjoy it? On Sun, Apr 26, 2015 at 10:58 PM, Richard Kenner wrote: >> W

Re: WPP capabilities in gcc

2015-04-26 Thread Richard Kenner
> What WPP does, is it runs during pre-compilation, and replaces the > string in each call to a trace macro, with an obfuscated string. And why would a writer of Free Software want to do such a thing?

Re: WPP capabilities in gcc

2015-04-26 Thread Shoham Peller
You are completely right Jonathan. My Apologies. WPP is a tool I use in my work field on an every-day basis, so I thought it was known. Here is the Wikipedia page on WPP: http://en.wikipedia.org/wiki/Windows_software_trace_preprocessor In short, WPP allows to put traces and logs in your C/C++ pro

Re: WPP capabilities in gcc

2015-04-26 Thread Jonathan Wakely
On 25 April 2015 at 23:23, Shoham Peller wrote: > Hi Guys, > > It's been 4 days. Can someone help me? I have no idea what wpp is or why it is useful. Maybe that's true for other people reading this list. You shouldn't be very surprised that you don't get any useful responses to a mail like "I wan

missing explanation of Stage 4 in GCC Development Plan document

2015-04-26 Thread Honggyu Kim
Hi all, I would like to know about the stages of development plan so I checked the following article: https://gcc.gnu.org/develop.html I have reported a bug recently but didn't clearly understand the term "stage 4" here. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65358 Do you think "stage 4"