public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] hppa: Fix pr104869.C on hpux
@ 2023-11-26 16:41 John David Anglin
  0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2023-11-26 16:41 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 630 bytes --]

Tested on hppa64-hp-hpux11.11.  Committed to trunk.

Dave
---

hppa: Fix pr104869.C on hpux

2023-11-26  John David Anglin  <danglin@gcc.gnu.org>

gcc/testsuite/ChangeLog:

	* g++.dg/pr104869.C: Add attribute visibility default to
	main prototype.

diff --git a/gcc/testsuite/g++.dg/pr104869.C b/gcc/testsuite/g++.dg/pr104869.C
index 13a39fccdb9..851d65355de 100644
--- a/gcc/testsuite/g++.dg/pr104869.C
+++ b/gcc/testsuite/g++.dg/pr104869.C
@@ -69,7 +69,7 @@ struct ControlFlow {
   return false;
 }
 #ifdef __hpux__
-extern int main(void);
+extern int main(void) __attribute__ ((visibility ("default")));
 #endif
 int
 main() {

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

only message in thread, other threads:[~2023-11-26 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-26 16:41 [committed] hppa: Fix 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).