Skip to content

Commit 103a68b

Browse files
committed
Correct #[always_inline] -> #[inline(always)] and __attribute((...)) -> __attribute__((...)).
1 parent 8a5561b commit 103a68b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/middle/trans/adt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ fn padding(size: u64) -> ValueRef {
574574
}
575575

576576
// XXX this utility routine should be somewhere more general
577-
#[always_inline]
577+
#[inline(always)]
578578
fn roundup(x: u64, a: u64) -> u64 { ((x + (a - 1)) / a) * a }
579579

580580
/// Get the discriminant of a constant value. (Not currently used.)

src/rt/rust_globals.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#endif
2121

2222
#if defined(__GNUC__)
23-
#define ALWAYS_INLINE __attribute((always_inline)) INLINE
23+
#define ALWAYS_INLINE __attribute__((always_inline)) INLINE
2424
#elif defined(_MSC_VER)
2525
#define ALWAYS_INLINE __forceinline
2626
#else

0 commit comments

Comments
 (0)