From owner-freebsd-questions@FreeBSD.ORG Thu Jun 25 02:31:35 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61B1D1065670 for ; Thu, 25 Jun 2009 02:31:35 +0000 (UTC) (envelope-from jguojun@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by mx1.freebsd.org (Postfix) with ESMTP id 32DED8FC14 for ; Thu, 25 Jun 2009 02:31:35 +0000 (UTC) (envelope-from jguojun@gmail.com) Received: by rv-out-0506.google.com with SMTP id f9so231270rvb.43 for ; Wed, 24 Jun 2009 19:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:x-accept-language:mime-version:to:subject:content-type :content-transfer-encoding; bh=5OL0+76WZJ3ASdraOl11LxDTiBkaHYZiUbqsXDG3hyA=; b=PHStKaQjsix6cEEzdLmXuU6wcdaVfXr9Il8ZYqyShiuYvA/xiZ3m+pDdCtgdcdxfKY OY+YlXb3k8VATRhguO/J9pkHyWpy++B5GGDQMuBBD6fViUrj8tVboZcjpNM5MGnZ5itG hwpDYnSmTxTYGDW0u63wsKARA6cRYEMo0LYMI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:x-accept-language:mime-version:to :subject:content-type:content-transfer-encoding; b=SY+rUMgb6M8Vp5Uv0eZvmXjtk4kYX2h4LkaTrjgcQipQxyS0tXG2h0F1shK1k6WeHC oqx1VP7in+CucP0zEzt7h9THdr6tCNWbFNJcDg4GptFpBW17IxraBRv1byrHBgwQIkkN 3QiGxyjgNp1KPKZGdBwS8sgD7oF40P5Hcxv78= Received: by 10.141.4.20 with SMTP id g20mr1805152rvi.131.1245895782920; Wed, 24 Jun 2009 19:09:42 -0700 (PDT) Received: from ?10.10.30.148? (216.112.109.105.ptr.us.xo.net [216.112.109.105]) by mx.google.com with ESMTPS id b39sm7010573rvf.6.2009.06.24.19.09.40 (version=SSLv3 cipher=RC4-MD5); Wed, 24 Jun 2009 19:09:41 -0700 (PDT) Message-ID: <4A42DC60.2060208@gmail.com> Date: Wed, 24 Jun 2009 19:09:36 -0700 From: Jin Guojun User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20080928 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: cc1: error: unrecognized command line option "-mfdpic" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 02:31:35 -0000 This option "-mfdpic" is shown in manual page for gcc 4.1 or later -mfdpic Select the FDPIC ABI, that uses function descriptors to represent pointers to functions. Without any PIC/PIE-related options, it implies -fPIE. With -fpic or -fpie, it assumes GOT entries and small data are within a 12-bit range from the GOT base address; with -fPIC or -fPIE, GOT offsets are computed with 32 bits. With a bfin-elf target, this option implies -msim. However, tried all gcc 4.1.x, 4.2.x and 4.3.x with following test, and no one of them accept this option: %: echo "#include " | gcc43 -mfdpic - -E cc1: error: unrecognized command line option "-mfdpic" # 1 "" %: echo "#include " | gcc43 -fdpic - -E cc1: error: unrecognized command line option "-fdpic" # 1 "" where "-dpic" option is a voild option. Does anyone know why "-mfdpic" option is missing from gcc4.x in FreeBSD distribution? Is this due to some license issues? If so, what is the other option to subtitute it? Thanks, -Jin