]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix vect/pr115278.cc for targets where uint32_t is distinct from unsigned.
authorJoern Rennecke <joern.rennecke@riscy-ip.com>
Wed, 7 Aug 2024 01:48:45 +0000 (02:48 +0100)
committerJoern Rennecke <joern.rennecke@riscy-ip.com>
Wed, 7 Aug 2024 01:56:44 +0000 (02:56 +0100)
gcc/testsuite/
* g++.dg/vect/pr115278.cc: Make cast's type agree with
assignment destination WRITE.

gcc/testsuite/g++.dg/vect/pr115278.cc

index 331075fb2781ca3dc61e7dc8bd5d60d08c958a6d..df521e43a97c48165521631c3dda7d39069a9e34 100644 (file)
@@ -21,7 +21,7 @@ union BitfieldStructUnion {
         BitfieldStructUnion(uint32_t value_low, uint32_t value_high) : value_low(value_low), value_high(value_high) {}
 };
 
-volatile uint32_t *WRITE = (volatile unsigned*)0x42;
+volatile uint32_t *WRITE = (volatile uint32_t *)0x42;
 
 void buggy() {
         for (int i = 0; i < runs; i++) {