This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ongoing Error in make stage2 building gcc-4.7.2


On Mon, Apr 29, 2013 at 1:33 AM, Ellis N. Thomas
<ExtraLeveLInSoftware@ntlworld.com> wrote:
>         Trying to build gcc-4.7.2.
>
>         Failed in stage2, last few lines of make-4.log:
> ../../src/gcc-4.7.2/libcpp/lex.c:463:Unknown pseudo-op: .balign
> ../../src/gcc-4.7.2/libcpp/lex.c:463:Rest of line ignored. 1st junk

I would describe this as a bug in libcpp, introduced here:

2010-08-21  Richard Henderson  <rth@redhat.com>
	    Andi Kleen <ak@linux.intel.com>
	    David S. Miller  <davem@davemloft.net>

	* configure.ac (AC_C_BIGENDIAN, AC_TYPE_UINTPTR_T): New tests.
	(ssize_t): Check via AC_TYPE_SSIZE_T instead of AC_CHECK_TYPE.
	(ptrdiff_t): Check via AC_CHECK_TYPE.
	* config.in, configure: Rebuild.
	* system.h: Include stdint.h, if available.
	* lex.c (WORDS_BIGENDIAN): Provide default.
	(acc_char_mask_misalign, acc_char_replicate, acc_char_cmp,
	acc_char_index, search_line_acc_char, repl_chars, search_line_mmx,
	search_line_sse2, search_line_sse42, init_vectorized_lexer,
	search_line_fast): New.
	(_cpp_clean_line): Use search_line_fast.  Restructure the fast
	loop to make it clear when we're leaving the loop.  Stay in the
	fast loop for non-trigraph '?'.

libcpp contains assembler code for faster processing.  That assembler
code uses .balign.  That usually works, but evidently the Darwin
assembler does not support it.

I think this code needs to be fixed to check for .balign support.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]