public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/99304] New: typo in diagnostic: refernced
@ 2021-02-27 12:54 roland.illig at gmx dot de
2021-02-27 12:56 ` [Bug c/99304] " redi at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: roland.illig at gmx dot de @ 2021-02-27 12:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99304
Bug ID: 99304
Summary: typo in diagnostic: refernced
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: roland.illig at gmx dot de
Target Milestone: ---
gcc/c-family/c-attribs.c says:
> "refernced symbol declared here"
That should be "referenced" instead.
A test to trigger this diagnostic is:
~~~c
/* { dg-do compile } */
/* { dg-options "-O2 -Wall" } */
void invalid_free(/* no prototype */); /* { dg-message "referenced" } */
void *invalid_malloc(void) __attribute__((
malloc(invalid_free) /* { dg-warning "must take a pointer" } */
));
~~~
A test to trigger the closely related diagnostic is:
~~~c
/* { dg-do compile } */
/* { dg-options "-O2 -Wall" } */
void invalid_free(int); /* { dg-message "referenced" } */
void *invalid_malloc(void) __attribute__((
malloc(invalid_free) /* { dg-warning "must take a pointer" } */
));
~~~
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/99304] typo in diagnostic: refernced 2021-02-27 12:54 [Bug c/99304] New: typo in diagnostic: refernced roland.illig at gmx dot de @ 2021-02-27 12:56 ` redi at gcc dot gnu.org 2021-02-27 12:57 ` [Bug c/99304] [11 Regression] " redi at gcc dot gnu.org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: redi at gcc dot gnu.org @ 2021-02-27 12:56 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99304 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2021-02-27 Keywords| |diagnostic ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/99304] [11 Regression] typo in diagnostic: refernced 2021-02-27 12:54 [Bug c/99304] New: typo in diagnostic: refernced roland.illig at gmx dot de 2021-02-27 12:56 ` [Bug c/99304] " redi at gcc dot gnu.org @ 2021-02-27 12:57 ` redi at gcc dot gnu.org 2021-02-27 14:50 ` jakub at gcc dot gnu.org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: redi at gcc dot gnu.org @ 2021-02-27 12:57 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99304 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |10.2.1 Known to fail| |11.0 Target Milestone|--- |11.0 Summary|typo in diagnostic: |[11 Regression] typo in |refernced |diagnostic: refernced ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/99304] [11 Regression] typo in diagnostic: refernced 2021-02-27 12:54 [Bug c/99304] New: typo in diagnostic: refernced roland.illig at gmx dot de 2021-02-27 12:56 ` [Bug c/99304] " redi at gcc dot gnu.org 2021-02-27 12:57 ` [Bug c/99304] [11 Regression] " redi at gcc dot gnu.org @ 2021-02-27 14:50 ` jakub at gcc dot gnu.org 2021-02-28 10:13 ` cvs-commit at gcc dot gnu.org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: jakub at gcc dot gnu.org @ 2021-02-27 14:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99304 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 50266 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50266&action=edit gcc11-pr99304.patch Untested fix. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/99304] [11 Regression] typo in diagnostic: refernced 2021-02-27 12:54 [Bug c/99304] New: typo in diagnostic: refernced roland.illig at gmx dot de ` (2 preceding siblings ...) 2021-02-27 14:50 ` jakub at gcc dot gnu.org @ 2021-02-28 10:13 ` cvs-commit at gcc dot gnu.org 2021-02-28 10:19 ` jakub at gcc dot gnu.org 2021-02-28 11:41 ` roland.illig at gmx dot de 5 siblings, 0 replies; 7+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-02-28 10:13 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99304 --- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>: https://gcc.gnu.org/g:d3805e6d575752141888dc29af7f0337df8a2f72 commit r11-7432-gd3805e6d575752141888dc29af7f0337df8a2f72 Author: Jakub Jelinek <jakub@redhat.com> Date: Sun Feb 28 11:10:44 2021 +0100 typos: Fix various typos - mainly misspelled reference* [PR99304] The PR is about a typo in handle_malloc_attribute diagnostic message, but grepping around I found many other cases and while fixing those I've noticed a couple of other typos. 2021-02-28 Jakub Jelinek <jakub@redhat.com> PR c/99304 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment typo - referneced -> referenced. * tree.c (component_ref_size): Fix comment typo - refernce -> reference. * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo - traling -> trailing. (aliasing_component_refs_p): Fix comment typos - refernce -> reference and refernece -> reference and traling -> trailing. (nonoverlapping_refs_since_match_p): Fix comment typo - referneces -> references. * doc/invoke.texi (--param modref-max-bases): Fix a typo - referneces -> references. gcc/c-family/ * c-attribs.c (handle_malloc_attribute): Fix a typo in inform message - refernced -> referenced. Remove superfluous space before closing paren of function calls. gcc/lto/ * lto-symtab.c (lto_symtab_prevailing_virtual_decl): Fix comment typos - refernced -> referenced and devirtualizaiton -> devirtualization. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/99304] [11 Regression] typo in diagnostic: refernced 2021-02-27 12:54 [Bug c/99304] New: typo in diagnostic: refernced roland.illig at gmx dot de ` (3 preceding siblings ...) 2021-02-28 10:13 ` cvs-commit at gcc dot gnu.org @ 2021-02-28 10:19 ` jakub at gcc dot gnu.org 2021-02-28 11:41 ` roland.illig at gmx dot de 5 siblings, 0 replies; 7+ messages in thread From: jakub at gcc dot gnu.org @ 2021-02-28 10:19 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99304 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/99304] [11 Regression] typo in diagnostic: refernced 2021-02-27 12:54 [Bug c/99304] New: typo in diagnostic: refernced roland.illig at gmx dot de ` (4 preceding siblings ...) 2021-02-28 10:19 ` jakub at gcc dot gnu.org @ 2021-02-28 11:41 ` roland.illig at gmx dot de 5 siblings, 0 replies; 7+ messages in thread From: roland.illig at gmx dot de @ 2021-02-28 11:41 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99304 --- Comment #4 from Roland Illig <roland.illig at gmx dot de> --- Thank you for fixing the typos. Could you perhaps add the test cases to the test suite, to have the two diagnostics covered? Now that the typo is fixed, both should trivially pass. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-02-28 11:41 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-02-27 12:54 [Bug c/99304] New: typo in diagnostic: refernced roland.illig at gmx dot de 2021-02-27 12:56 ` [Bug c/99304] " redi at gcc dot gnu.org 2021-02-27 12:57 ` [Bug c/99304] [11 Regression] " redi at gcc dot gnu.org 2021-02-27 14:50 ` jakub at gcc dot gnu.org 2021-02-28 10:13 ` cvs-commit at gcc dot gnu.org 2021-02-28 10:19 ` jakub at gcc dot gnu.org 2021-02-28 11:41 ` roland.illig at gmx dot de
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).