Commit fcdc80e4 by Richard Guenther Committed by Richard Biener

re PR middle-end/46423 (FAIL: g++.dg/torture/pr34850.C)

2010-11-15  Richard Guenther  <rguenther@suse.de>

	PR testsuite/46423
	* g++.dg/torture/pr34850.C: Adjust.

From-SVN: r166752
parent b7b25842
2010-11-15 Richard Guenther <rguenther@suse.de>
PR testsuite/46423
* g++.dg/torture/pr34850.C: Adjust.
2010-11-14 Paolo Bonzini <bonzini@gnu.org>
PR c/46475
......
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
......@@ -11,7 +11,7 @@ extern "C" {
extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__))
void * memset (void *__dest, int __ch, size_t __len) throw () {
if (__builtin_constant_p (__len) && __len == 0)
__warn_memset_zero_len ();
__warn_memset_zero_len (); /* { dg-warning "declared with attribute warning" } */
}
}
inline void clear_mem(void* ptr, u32bit n) {
......@@ -69,6 +69,7 @@ OctetString& OctetString::operator^=(const OctetString& k) {
bits.clear();
}
}
bool operator==(const OctetString& s1, const OctetString& s2) {
bool __attribute__((flatten))
operator==(const OctetString& s1, const OctetString& s2) {
return (s1.bits_of() == s2.bits_of());
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment