From db2c6820ee0fed66d787ff27ce3b28a5dc50dbc9 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 3 Nov 2009 21:55:34 -0500 Subject: [PATCH] Comment out __VpadToAlign as GCC is doing it well now itself --- src/V3File.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/V3File.cpp b/src/V3File.cpp index 7b3bd6c8a..17c5df05f 100644 --- a/src/V3File.cpp +++ b/src/V3File.cpp @@ -479,7 +479,9 @@ void V3OutFile::putAlign (bool/*AlignClass*/ isStatic, int align, int size, cons int& alignr = isStatic ? m_declSAlign : m_declNSAlign; int padsize = alignSize - (alignr % alignSize); if (padsize && padsize!=alignSize) { - puts("char\t"); + // Modern versions of GCC no longer need this, they'll pad for us, so + // we'll save the work and danger of getting it wrong. + puts("//char\t"); puts(prefix); puts("__VpadToAlign"+cvtToStr(alignr) +"["+cvtToStr(padsize)+"];\n");