public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/65713] New: C Preprocessor generates invalid output
@ 2015-04-09 13:41 krejzi at email dot com
  2015-04-09 13:42 ` [Bug preprocessor/65713] " krejzi at email dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: krejzi at email dot com @ 2015-04-09 13:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65713

            Bug ID: 65713
           Summary: C Preprocessor generates invalid output
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krejzi at email dot com

Created attachment 35274
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35274&action=edit
gcc-4.9.2 output

Using GCC snapshot 5.0.0 20150405 (experimental) and trying to build
libgpg-error-1.18, which generates a header file using the output from gcc -E
on a header file. Output from gcc-4.9.2 and the mentioned snapshot is
different, which causes libgpg-error to fail to compile.

gcc-4.9.2 gives the output from first.txt
mentioned snapshot gives the output from second.txt

The header file used in both examples is the third attachment.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug preprocessor/65713] C Preprocessor generates invalid output
  2015-04-09 13:41 [Bug preprocessor/65713] New: C Preprocessor generates invalid output krejzi at email dot com
@ 2015-04-09 13:42 ` krejzi at email dot com
  2015-04-09 13:43 ` krejzi at email dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: krejzi at email dot com @ 2015-04-09 13:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65713

--- Comment #1 from Armin K. <krejzi at email dot com> ---
Created attachment 35275
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35275&action=edit
gcc 5.0.0 snapshot output


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug preprocessor/65713] C Preprocessor generates invalid output
  2015-04-09 13:41 [Bug preprocessor/65713] New: C Preprocessor generates invalid output krejzi at email dot com
  2015-04-09 13:42 ` [Bug preprocessor/65713] " krejzi at email dot com
@ 2015-04-09 13:43 ` krejzi at email dot com
  2015-04-09 13:46 ` mpolacek at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: krejzi at email dot com @ 2015-04-09 13:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65713

--- Comment #2 from Armin K. <krejzi at email dot com> ---
Created attachment 35276
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35276&action=edit
File used to produce the first two files

Two files are generated with gcc -E _mkerrcodes.h


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug preprocessor/65713] C Preprocessor generates invalid output
  2015-04-09 13:41 [Bug preprocessor/65713] New: C Preprocessor generates invalid output krejzi at email dot com
  2015-04-09 13:42 ` [Bug preprocessor/65713] " krejzi at email dot com
  2015-04-09 13:43 ` krejzi at email dot com
@ 2015-04-09 13:46 ` mpolacek at gcc dot gnu.org
  2015-04-09 13:55 ` krejzi at email dot com
  2015-04-09 13:57 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-04-09 13:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65713

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Does it work if you use the -P option?  Looks like a known issue described in
https://gcc.gnu.org/gcc-5/porting_to.html


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug preprocessor/65713] C Preprocessor generates invalid output
  2015-04-09 13:41 [Bug preprocessor/65713] New: C Preprocessor generates invalid output krejzi at email dot com
                   ` (2 preceding siblings ...)
  2015-04-09 13:46 ` mpolacek at gcc dot gnu.org
@ 2015-04-09 13:55 ` krejzi at email dot com
  2015-04-09 13:57 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: krejzi at email dot com @ 2015-04-09 13:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65713

--- Comment #4 from Armin K. <krejzi at email dot com> ---
Yes, that works. I'll take it to libgpg-error upstream. Thanks for the quick
response and please close this bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug preprocessor/65713] C Preprocessor generates invalid output
  2015-04-09 13:41 [Bug preprocessor/65713] New: C Preprocessor generates invalid output krejzi at email dot com
                   ` (3 preceding siblings ...)
  2015-04-09 13:55 ` krejzi at email dot com
@ 2015-04-09 13:57 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-04-09 13:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65713

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Closing.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-09 13:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 13:41 [Bug preprocessor/65713] New: C Preprocessor generates invalid output krejzi at email dot com
2015-04-09 13:42 ` [Bug preprocessor/65713] " krejzi at email dot com
2015-04-09 13:43 ` krejzi at email dot com
2015-04-09 13:46 ` mpolacek at gcc dot gnu.org
2015-04-09 13:55 ` krejzi at email dot com
2015-04-09 13:57 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).