public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug sim/31417] New: sim: -Wstrict-prototypes not enabled due to bad configure check
@ 2024-02-26 14:54 simon.marchi at polymtl dot ca
  2024-02-26 15:05 ` [Bug sim/31417] " simon.marchi at polymtl dot ca
  0 siblings, 1 reply; 2+ messages in thread
From: simon.marchi at polymtl dot ca @ 2024-02-26 14:54 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31417

            Bug ID: 31417
           Summary: sim: -Wstrict-prototypes not enabled due to bad
                    configure check
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sim
          Assignee: unassigned at sourceware dot org
          Reporter: simon.marchi at polymtl dot ca
                CC: vapier at gentoo dot org
  Target Milestone: ---

The sim directory attempts to enable the -Wstrict-prototypes compiler flag. 
While it is support in gcc, the flag is not enabled because the config check
results in:

configure:16654: ccache gcc -c -g3 -O0 -fsanitize=address -fmax-errors=1
-fdiagnostics-color=always     -Werror -Wstrict-prototypes  co
nftest.c >&5
conftest.c:163:1: error: function declaration isn't a prototype
[-Werror=strict-prototypes]
  163 | main ()
      | ^~~~

The main function in the config test is:

| int
| main ()
| {
| 
|   ;
|   return 0;
| }


So yeah, the flag is not enabled because it finds in the config test exactly
the kind of things it's meant to find :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug sim/31417] sim: -Wstrict-prototypes not enabled due to bad configure check
  2024-02-26 14:54 [Bug sim/31417] New: sim: -Wstrict-prototypes not enabled due to bad configure check simon.marchi at polymtl dot ca
@ 2024-02-26 15:05 ` simon.marchi at polymtl dot ca
  0 siblings, 0 replies; 2+ messages in thread
From: simon.marchi at polymtl dot ca @ 2024-02-26 15:05 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31417

--- Comment #1 from Simon Marchi <simon.marchi at polymtl dot ca> ---
I think that this could be fixed by migrating to autoconf >= 2.70, thanks to
this commit:

https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=1717921aa6c1ef559ef494675f6d1b20c2ae389e

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2024-02-26 15:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-26 14:54 [Bug sim/31417] New: sim: -Wstrict-prototypes not enabled due to bad configure check simon.marchi at polymtl dot ca
2024-02-26 15:05 ` [Bug sim/31417] " simon.marchi at polymtl dot ca

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).