public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5800] hppa: Export main in pr104869.C on hpux
@ 2023-11-23 20:20 John David Anglin
  0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2023-11-23 20:20 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0632342e0d98a34b4542bde0cc79590b5abdcd24

commit r14-5800-g0632342e0d98a34b4542bde0cc79590b5abdcd24
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Thu Nov 23 20:19:57 2023 +0000

    hppa: Export main in pr104869.C on hpux
    
    This is needed to avoid a linker warning.
    
    2023-11-23  John David Anglin  <danglin@gcc.gnu.org>
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/pr104869.C: Export main on hpux.

Diff:
---
 gcc/testsuite/g++.dg/pr104869.C | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/testsuite/g++.dg/pr104869.C b/gcc/testsuite/g++.dg/pr104869.C
index 9a6ef88adbd..13a39fccdb9 100644
--- a/gcc/testsuite/g++.dg/pr104869.C
+++ b/gcc/testsuite/g++.dg/pr104869.C
@@ -68,6 +68,9 @@ struct ControlFlow {
     foo(2);
   return false;
 }
+#ifdef __hpux__
+extern int main(void);
+#endif
 int
 main() {
   ControlFlow cf = { nullptr, ControlFlow::UnwindType::EE };

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-23 20:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-23 20:20 [gcc r14-5800] hppa: Export main in pr104869.C on hpux John David Anglin

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