[Bug preprocessor/58687] New: "#line __LINE__ ..." changes subsequent line numbers

2013-10-10 Thread mtewoodbury at gmail dot com
iority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: mtewoodbury at gmail dot com A preprocessor directive of the form '#line __LINE__ ..." should NOT change the line number. That is '__LINE__' should evaluate to the number of the

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-10-23 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #1 from Max TenEyck Woodbury --- Created attachment 31080 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31080&action=edit test case Comment out the '#line' directives and it compiles without error...

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-10-25 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 Max TenEyck Woodbury changed: What|Removed |Added CC||mtewoodbury at gmail dot com

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-10-25 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #3 from Max TenEyck Woodbury --- Turn off the special case immediatly after getting the number to eliminate side effects...

[Bug tree-optimization/58884] New: OPTIONAL warning when a temprary value is created and not used.

2013-10-25 Thread mtewoodbury at gmail dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mtewoodbury at gmail dot com Please add the capability to warn when the temporary value created by postfix operators '++' and '--' are not u

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-10-26 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 Max TenEyck Woodbury changed: What|Removed |Added Severity|normal |major --- Comment #4 from Max TenE

[Bug preprocessor/58887] New: Allow recursion in varadic macros?

2013-10-26 Thread mtewoodbury at gmail dot com
: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: mtewoodbury at gmail dot com With good reason, recursion in macro definitions is suppressed -- it leads to infinite expansion loops and subsequent software failure, HOWEVER Recursion of varadic macros where the number of

[Bug preprocessor/58887] Allow recursion in varadic macros?

2013-10-27 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58887 --- Comment #2 from Max TenEyck Woodbury --- Eventually, that is where this will go, but the committee is MUCH more receptive of suggestions that have an implementation that people have had a chance to play with. GCC is one of the platforms where

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-10-27 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #6 from Max TenEyck Woodbury --- (In reply to Andrew Pinski from comment #5) > > Simply to make identification host independent. The fact that my > >projects are stored on '/VOL10' on one of my machines and '/DATA0.2' > > This so

[Bug preprocessor/58887] Allow recursion in variadic macros?

2013-10-27 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58887 --- Comment #4 from Max TenEyck Woodbury --- (In reply to jos...@codesourcery.com from comment #3) > We take the view that the preprocessor is deliberately meant to be limited > and overly complicated features in it would be contrary to the spiri

[Bug preprocessor/58887] Allow recursion in variadic macros?

2013-10-27 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58887 --- Comment #5 from Max TenEyck Woodbury --- (In reply to jos...@codesourcery.com from comment #3) > We take the view that the preprocessor is deliberately meant to be limited > and overly complicated features in it would be contrary to the spiri

[Bug preprocessor/58887] Allow recursion in variadic macros?

2013-10-28 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58887 --- Comment #6 from Max TenEyck Woodbury --- I have checked the code in libcpp. The __VA_ARG_COUNT__/__VA_ARGC__ implementation looks quite feasible. The heaviest impact looks to be new and revised error messages and their translation. I starte

[Bug preprocessor/58887] Allow recursion in variadic macros?

2013-10-28 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58887 --- Comment #9 from Max TenEyck Woodbury --- (In reply to jos...@codesourcery.com from comment #7) > On Sun, 27 Oct 2013, mtewoodbury at gmail dot com wrote: > >> That has not always stopped you all in the past, but that is re

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-10-28 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #7 from Max TenEyck Woodbury --- I have a patch written and I am testing it now. What steps (other than posting it here when the tests are done) need to be done to get it applied?

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-10-30 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #9 from Max TenEyck Woodbury --- (In reply to jos...@codesourcery.com from comment #8) > Thanks for working on this bug. http://gcc.gnu.org/contribute.html > describes how to submit changes (including testcases etc.). Thank you for

[Bug preprocessor/58887] Allow recursion in variadic macros?

2013-10-30 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58887 --- Comment #11 from Max TenEyck Woodbury --- (In reply to jos...@codesourcery.com from comment #10) > On Mon, 28 Oct 2013, mtewoodbury at gmail dot com wrote: > >> (Stop the 'we'! Name or enumerate the group invol

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-10-30 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #11 from Max TenEyck Woodbury --- (In reply to Manuel López-Ibáñez from comment #10) > > If you are planning to do sporadic GCC development, it may be worthwhile to > ask for an account in the Compile Farm http://gcc.gnu.org/wiki/Comp

[Bug preprocessor/58887] Allow recursion in variadic macros?

2013-10-30 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58887 --- Comment #13 from Max TenEyck Woodbury --- (In reply to jos...@codesourcery.com from comment #12) > > I was agreeing with Andrew. Jason, the other maintainer likely to review > libcpp patches, hasn't commented on this issue. (There are plen

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-10-30 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #13 from Max TenEyck Woodbury --- (In reply to jos...@codesourcery.com from comment #12) > On Wed, 30 Oct 2013, mtewoodbury at gmail dot com wrote: > >> Thank you, I will look info all of that. My own resources have

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-10-31 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #14 from Max TenEyck Woodbury --- Created attachment 31125 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31125&action=edit Patch to postpone __LINE__ evaluation to the end of a # line directive. Patch includes changes to 2 sourc

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-11-04 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #15 from Max TenEyck Woodbury --- Could you all give me some idea on how soon this might be applied?

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-11-05 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #17 from Max TenEyck Woodbury --- It might be better to put the CUR__LINE__ definition in 'internal.h' instead of in 'cpplib.h'.

[Bug c/59193] New: Unused postfix operator temporaries

2013-11-19 Thread mtewoodbury at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: mtewoodbury at gmail dot com The use of postfix operators without using the value in their inherent temporary store is a mild abuse of languages that provide those operators. Compilers convert them to prefix operators as part of their

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-11-19 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #18 from Max TenEyck Woodbury --- (In reply to jos...@codesourcery.com from comment #16) > On Mon, 4 Nov 2013, mtewoodbury at gmail dot com wrote: > > > Could you all give me some idea on how soon this might be applied?

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-11-28 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #21 from Max TenEyck Woodbury --- (In reply to Joseph S. Myers from comment #20) > Suspending pending a DR since I think the present code is correct and while > the standard is ambiguous I think the interpretation here strains the > wo

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-11-29 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #23 from Max TenEyck Woodbury --- (In reply to jos...@codesourcery.com from comment #22) > On Fri, 29 Nov 2013, mtewoodbury at gmail dot com wrote: > > > The elaborate description of the different forms of the '

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2013-11-29 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #25 from Max TenEyck Woodbury --- (In reply to jos...@codesourcery.com from comment #24) > ... > > I don't believe the standard makes any such attempt to accommodate such a > (marginal) need; GAG! Without this, a number of problems

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2017-10-24 Thread mtewoodbury at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 Max TenEyck Woodbury changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVAL

[Bug c/58884] OPTIONAL warning when a temprary value is created and not used.

2017-10-24 Thread mtewoodbury at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58884 Max TenEyck Woodbury changed: What|Removed |Added Component|tree-optimization |c --- Comment #1 from Max TenEyck

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2017-10-25 Thread mtewoodbury at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #29 from Max TenEyck Woodbury --- While #line is indeed most commonly used by code generators, it can be used in other contexts. The most common other use is to remove sensitive and useless file name components from the file specific

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2017-10-25 Thread mtewoodbury at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #31 from Max TenEyck Woodbury --- The request in 82176 would remove all file components except the filename itself. It also puts control of the option on the comand line which would usually mandate its use for all modules in a pr

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2017-10-25 Thread mtewoodbury at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #33 from Max TenEyck Woodbury --- The way it is currently implemented by GCC makes #line __LINE__ a useless construct. The form where subsequent line numbers remain unchanged is very useful. From the literature, that was the way it

[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

2017-10-26 Thread mtewoodbury at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #35 from Max TenEyck Woodbury --- True, none of the specifically listed maintainers have commented on this version of the patch. There are three people listed and a general reference to all C and C++ front end maintainers. It is pos

[Bug c/58884] OPTIONAL warning when a temprary value is created and not used.

2017-10-29 Thread mtewoodbury at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58884 --- Comment #4 from Max TenEyck Woodbury --- I think there is a misunderstanding here... These patches, when I submit them, will add a new warning option. It is not appropriate to add this to the normal "unused-value" warning because the situat

[Bug c/59193] Unused postfix operator temporaries

2014-02-12 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59193 Max TenEyck Woodbury changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALI

[Bug c/59193] Unused postfix operator temporaries

2014-02-18 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59193 Max TenEyck Woodbury changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALI

[Bug c/59193] Unused postfix operator temporaries

2014-02-19 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59193 Max TenEyck Woodbury changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALI

[Bug c/59193] Unused postfix operator temporaries

2014-02-21 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59193 Max TenEyck Woodbury changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALI

[Bug c/59193] Unused postfix operator temporaries

2014-02-22 Thread mtewoodbury at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59193 Max TenEyck Woodbury changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALI