On 8/19/24 10:56, Torbjörn SVENSSON wrote:
Committed as obvious in r15-3017 and r14-10602.
 > --

This fixes reported regression at
https://linaro.atlassian.net/browse/GNU-1315.

Thanks.
This happens because libs/startup code are compiled with the default short-enums scheme for the target, which may not be -fshort-enums, hence the appropriate linker warning.

(FTR, arm-eabi uses -fshort-enums by default, arm-linux-* use -fno-short-enums).

Christophe


gcc/testsuite/ChangeLog:

        * g++.dg/warn/pr33738-2.C: dg-prune arm linker messages about
        size of enums.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svens...@foss.st.com>
---
  gcc/testsuite/g++.dg/warn/pr33738-2.C | 1 +
  1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/g++.dg/warn/pr33738-2.C 
b/gcc/testsuite/g++.dg/warn/pr33738-2.C
index 84bbdaeecc7..1ab121893ee 100644
--- a/gcc/testsuite/g++.dg/warn/pr33738-2.C
+++ b/gcc/testsuite/g++.dg/warn/pr33738-2.C
@@ -1,4 +1,5 @@
  // { dg-do run }
+// { dg-prune-output "use of enum values across objects may fail" }
  // { dg-options "-O2 -Wtype-limits -fstrict-enums -fshort-enums" }
  extern void link_error (void);

Reply via email to