public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/89549] [9/10/11/12 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
       [not found] <bug-89549-4@http.gcc.gnu.org/bugzilla/>
@ 2021-05-14  9:51 ` jakub at gcc dot gnu.org
  2021-06-01  8:13 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14  9:51 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|8.5                         |9.4

--- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.

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

* [Bug c/89549] [9/10/11/12 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
       [not found] <bug-89549-4@http.gcc.gnu.org/bugzilla/>
  2021-05-14  9:51 ` [Bug c/89549] [9/10/11/12 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers jakub at gcc dot gnu.org
@ 2021-06-01  8:13 ` rguenth at gcc dot gnu.org
  2022-05-27  9:40 ` [Bug c/89549] [10/11/12/13 " rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01  8:13 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.4                         |9.5

--- Comment #20 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.

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

* [Bug c/89549] [10/11/12/13 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
       [not found] <bug-89549-4@http.gcc.gnu.org/bugzilla/>
  2021-05-14  9:51 ` [Bug c/89549] [9/10/11/12 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers jakub at gcc dot gnu.org
  2021-06-01  8:13 ` rguenth at gcc dot gnu.org
@ 2022-05-27  9:40 ` rguenth at gcc dot gnu.org
  2022-06-28 10:36 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:40 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |10.4

--- Comment #21 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed

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

* [Bug c/89549] [10/11/12/13 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
       [not found] <bug-89549-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2022-05-27  9:40 ` [Bug c/89549] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:36 ` jakub at gcc dot gnu.org
  2022-09-08 19:09 ` dblaikie at gmail dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:36 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug c/89549] [10/11/12/13 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
       [not found] <bug-89549-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2022-06-28 10:36 ` jakub at gcc dot gnu.org
@ 2022-09-08 19:09 ` dblaikie at gmail dot com
  2022-10-09  7:24 ` egallager at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: dblaikie at gmail dot com @ 2022-09-08 19:09 UTC (permalink / raw)
  To: gcc-bugs

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

David Blaikie <dblaikie at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dblaikie at gmail dot com

--- Comment #23 from David Blaikie <dblaikie at gmail dot com> ---
FWIW, the inability to disable this note has caused Clang to disable the
warning due to the noise. ( https://reviews.llvm.org/D132914 )

It'd be nice to have a way to enable the warning as "best effort" - knowing
that some files are too long to get checking.

(but also - it'd be nice if the warning were implemented in such a way that it
could scale up to indefinitely long files - it seems like that should be
possible to have a scalable implementation of the warning? (at least a version
that's linear in the number of lines in the file/or the number of lines in long
nested scopes?))

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

* [Bug c/89549] [10/11/12/13 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
       [not found] <bug-89549-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2022-09-08 19:09 ` dblaikie at gmail dot com
@ 2022-10-09  7:24 ` egallager at gcc dot gnu.org
  2022-10-10 14:34 ` lhyatt at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: egallager at gcc dot gnu.org @ 2022-10-09  7:24 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Gallager <egallager at gcc dot gnu.org> changed:

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

--- Comment #24 from Eric Gallager <egallager at gcc dot gnu.org> ---
Lewis Hyatt has been touching some code in this area recently; cc-ing...

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

* [Bug c/89549] [10/11/12/13 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
       [not found] <bug-89549-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2022-10-09  7:24 ` egallager at gcc dot gnu.org
@ 2022-10-10 14:34 ` lhyatt at gcc dot gnu.org
  2022-10-10 18:09 ` dblaikie at gmail dot com
  2023-07-07 10:34 ` [Bug c/89549] [11/12/13/14 " rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 9+ messages in thread
From: lhyatt at gcc dot gnu.org @ 2022-10-10 14:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #25 from Lewis Hyatt <lhyatt at gcc dot gnu.org> ---
This patch would make the note controllable via #pragma GCC diagnostic in the
same way as the warning is:

=====
diff --git a/gcc/c-family/c-indentation.cc b/gcc/c-family/c-indentation.cc
index 85a3ae1b303..3b5d3b17cc9 100644
--- a/gcc/c-family/c-indentation.cc
+++ b/gcc/c-family/c-indentation.cc
@@ -310,7 +310,8 @@ should_warn_for_misleading_indentation (const
token_indent_info &guard_tinfo,
   if (!guard_exploc.column || !body_exploc.column || !next_stmt_exploc.column)
     {
       static bool issued_note = false;
-      if (!issued_note)
+      if (!issued_note
+         && warning_enabled_at (guard_loc, OPT_Wmisleading_indentation))
        {
          /* Notify the user the first time this happens.  */
          issued_note = true;

=====

I am not quite sure how to interpret Jakub's comments though (comment 14 and
comment 16)... not sure whether he was saying this change would be undesirable,
or just explaining why it doesn't seem strictly necessary.

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

* [Bug c/89549] [10/11/12/13 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
       [not found] <bug-89549-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2022-10-10 14:34 ` lhyatt at gcc dot gnu.org
@ 2022-10-10 18:09 ` dblaikie at gmail dot com
  2023-07-07 10:34 ` [Bug c/89549] [11/12/13/14 " rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 9+ messages in thread
From: dblaikie at gmail dot com @ 2022-10-10 18:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #26 from David Blaikie <dblaikie at gmail dot com> ---
FWIW I'm not sure it's a pragma I'd want, but it might be sufficient (put the
pragma at the start of very long/autogenerated files) - I'd have thought what
some folks (myself/LLVM included, I think) is a version of the warning that is
"best effort" and otherwise quiet.

"Tell me when you know I have misleading indentation, otherwise say nothing" -
which is how most warnings work, basically - they all have false negatives.

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

* [Bug c/89549] [11/12/13/14 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
       [not found] <bug-89549-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2022-10-10 18:09 ` dblaikie at gmail dot com
@ 2023-07-07 10:34 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:34 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #27 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-89549-4@http.gcc.gnu.org/bugzilla/>
2021-05-14  9:51 ` [Bug c/89549] [9/10/11/12 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers jakub at gcc dot gnu.org
2021-06-01  8:13 ` rguenth at gcc dot gnu.org
2022-05-27  9:40 ` [Bug c/89549] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:36 ` jakub at gcc dot gnu.org
2022-09-08 19:09 ` dblaikie at gmail dot com
2022-10-09  7:24 ` egallager at gcc dot gnu.org
2022-10-10 14:34 ` lhyatt at gcc dot gnu.org
2022-10-10 18:09 ` dblaikie at gmail dot com
2023-07-07 10:34 ` [Bug c/89549] [11/12/13/14 " 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).