Bug 35460 - [4.4 Regression] undefined reference to `__builtin_stdarg_start' when compiling 2/29 snapshot on OpenBSD
Summary: [4.4 Regression] undefined reference to `__builtin_stdarg_start' when compili...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.4.0
: P4 normal
Target Milestone: 4.4.0
Assignee: Andreas Tobler
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2008-03-04 17:57 UTC by Michael Richmond
Modified: 2008-12-31 20:03 UTC (History)
1 user (show)

See Also:
Host:
Target: i686-openbsd
Build:
Known to work:
Known to fail:
Last reconfirmed: 2008-12-30 13:12:43


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Richmond 2008-03-04 17:57:30 UTC
When I attempt to compile the snapshot of 2/29/08 on OpenBSD 4.2 I get the following message:

libcpp.a(errors.o)(.text+0x258): In function `cpp_error':
/home/mrichmon/gcc-4.4-20080229/libcpp/errors.c:141: undefined reference to `__builtin_stdarg_start'
libcpp.a(errors.o)(.text+0x3a0): In function `cpp_error_with_line':
/home/mrichmon/gcc-4.4-20080229/libcpp/errors.c:174: undefined reference to `__builtin_stdarg_start'
Comment 1 Richard Biener 2008-03-04 18:22:11 UTC
Support for __builtin_stdarg has been removed.  I guess this is still referenced
in OpenBSD headers?
Comment 2 Andrew Pinski 2008-03-05 03:18:20 UTC
This is a bug in the openbsd headers.  We most likely should fixincludes them to use __builtin_va_start instead.

See PR 26264 and http://gcc.gnu.org/ml/gcc-patches/2002-07/msg00737.html for more information on why this was removed.
Comment 3 Andreas Tobler 2008-12-30 13:41:24 UTC
Proposed patch here:
http://gcc.gnu.org/ml/gcc-patches/2008-12/msg01279.html
Comment 4 Andreas Tobler 2008-12-31 13:54:18 UTC
Subject: Bug 35460

Author: andreast
Date: Wed Dec 31 13:52:53 2008
New Revision: 142980

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142980
Log:
2008-12-31  Andreas Tobler  <a.tobler@schweiz.org>

	PR target/35460
	* inclhack.def (openbsd_va_start): Use __builtin_va_start
	for OpenBSD.
	* fixincl.x: Regenerate.

Modified:
    trunk/fixincludes/ChangeLog
    trunk/fixincludes/fixincl.x
    trunk/fixincludes/inclhack.def

Comment 5 Andreas Tobler 2008-12-31 20:03:07 UTC
This particular issue is fixed. The bootstrap itself will fail (at least here on x86_64-unknown-openbsd4.4).
Next patches coming.