public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/101176] New: valgrind error for c-c++-common/builtin-has-attribute.c
@ 2021-06-23  6:55 dcb314 at hotmail dot com
  2021-06-23 21:59 ` [Bug c/101176] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dcb314 at hotmail dot com @ 2021-06-23  6:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101176
           Summary: valgrind error for
                    c-c++-common/builtin-has-attribute.c
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For the gcc testsuite file c-c++-common/builtin-has-attribute.c
and a recent build of gcc trunk with valgrind, I get:

./c-c++-common/builtin-has-attribute.c:31:32: error: ‘foobar’ undeclared (first 
use in this function)
   31 |   b = __builtin_has_attribute (foobar, aligned);  /* { dg-error
".foobar
. \(undeclared|was not declared\)" } */
      |                                ^~~~~~
==104199== Use of uninitialised value of size 8
==104199==    at 0x16EDF70: htab_find_slot_with_hash (hashtab.c:654)
==104199==    by 0x169B7CD: get_combined_adhoc_loc(line_maps*, unsigned int,
sou
rce_range, void*) (line-map.c:208)

Since this valgrind error is for C code with errors in it, I think
this is reduced priority.

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

end of thread, other threads:[~2022-10-28 23:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-23  6:55 [Bug c/101176] New: valgrind error for c-c++-common/builtin-has-attribute.c dcb314 at hotmail dot com
2021-06-23 21:59 ` [Bug c/101176] " jakub at gcc dot gnu.org
2021-06-24 13:58 ` cvs-commit at gcc dot gnu.org
2021-06-24 14:03 ` jakub at gcc dot gnu.org
2021-07-18 23:28 ` cvs-commit at gcc dot gnu.org
2022-05-10  8:19 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:20 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:36 ` jakub at gcc dot gnu.org
2022-10-28 23:26 ` pinskia 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).