public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/61593] New: Support '#pragma mark - foo' (by simply ignoring it without warning)
@ 2014-06-24 15:58 sean@rogue-research.com
  2019-01-17  4:20 ` [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets " egallager at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sean@rogue-research.com @ 2014-06-24 15:58 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61593
           Summary: Support '#pragma mark - foo' (by simply ignoring it
                    without warning)
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sean@rogue-research.com

On OS X, it is common to use:

#pragma mark - foo

to divide source code into sections.

This is supported by clang and Apple's old gcc fork.

gcc however warns:

  warning: ignoring #pragma mark  [-Wunknown-pragmas]

And -Wunknown-pragmas is part of -Wall.  I'm aware I could use
-Wno-unknown-pragmas, but building clean at -Wall is important.

As clang does a lot to be compatible with gcc, I'm hoping gcc can do a little
to be compatible with clang here. :)

No codegen or anything would be required, just ignore and don't warn when
#pragma mark is encountered.

Cheers.


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

end of thread, other threads:[~2023-07-07  7:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-24 15:58 [Bug c/61593] New: Support '#pragma mark - foo' (by simply ignoring it without warning) sean@rogue-research.com
2019-01-17  4:20 ` [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets " egallager at gcc dot gnu.org
2020-05-07 11:56 ` jakub at gcc dot gnu.org
2020-07-23  6:52 ` rguenth at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2022-06-28 10:31 ` jakub at gcc dot gnu.org
2022-11-04 20:29 ` redi at gcc dot gnu.org
2023-07-07  7:27 ` rguenth 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).