public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2855] Fix gcc.dg/lto/pr48622_0.c testcase
@ 2021-08-11 14:30 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-08-11 14:30 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cba64d855df581cc26fa487162027138aef4dbe5

commit r12-2855-gcba64d855df581cc26fa487162027138aef4dbe5
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Aug 11 16:28:33 2021 +0200

    Fix gcc.dg/lto/pr48622_0.c testcase
    
    This fixes the testcase to not rely on the reference to
    ashift_qi_1 being optimized out by RTL optimization via
    help of the initregs pass that changes comparisons of
    uninitialized data with a comparison that is always false.
    
    2021-08-11  Richard Biener  <rguenther@suse.de>
    
            * gcc.dg/lto/pr48622_1.c: Provide non-LTO definition
            of ashift_qi_1.

Diff:
---
 gcc/testsuite/gcc.dg/lto/pr48622_1.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/lto/pr48622_1.c b/gcc/testsuite/gcc.dg/lto/pr48622_1.c
new file mode 100644
index 00000000000..4d05bae2114
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/pr48622_1.c
@@ -0,0 +1,6 @@
+/* { dg-options "-fno-lto" } */
+
+typedef unsigned int u8 __attribute__ ((mode (QI)));
+u8 ashift_qi_1 (u8)
+{
+}


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

only message in thread, other threads:[~2021-08-11 14:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 14:30 [gcc r12-2855] Fix gcc.dg/lto/pr48622_0.c testcase Richard Biener

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