From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19823 invoked by alias); 28 Jun 2013 18:46:31 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 19801 invoked by uid 89); 28 Jun 2013 18:46:31 -0000 X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_CP autolearn=ham version=3.3.1 X-Spam-User: qpsmtpd, 2 recipients Received: from mail-wi0-f180.google.com (HELO mail-wi0-f180.google.com) (209.85.212.180) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 28 Jun 2013 18:46:30 +0000 Received: by mail-wi0-f180.google.com with SMTP id c10so1157715wiw.1 for ; Fri, 28 Jun 2013 11:46:27 -0700 (PDT) X-Received: by 10.180.208.7 with SMTP id ma7mr3356065wic.11.1372445187723; Fri, 28 Jun 2013 11:46:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.13.200 with HTTP; Fri, 28 Jun 2013 11:46:07 -0700 (PDT) From: =?ISO-8859-1?Q?Manuel_L=F3pez=2DIb=E1=F1ez?= Date: Sat, 29 Jun 2013 13:02:00 -0000 Message-ID: Subject: RE: lang.opts help To: Philip Herron , "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-06/txt/msg00229.txt.bz2 > I have been having trouble with my lang.opts i keep getting: > > hilips-MacBook:gccpy-build redbrain$ gccpy -O0 -fdump-tree-gimple t.py > -o t.o -fpy-dump-dot -fpy-gen-main > gpy1: warning: command line option =91-fpy-dump-dot=92 is valid for Python > but not for [enabled by default] > gpy1: warning: command line option =91-fpy-gen-main=92 is valid for Python > but not for [enabled by default] > gpy1: warning: command line option > =91-L/usr/local/lib/gcc/x86_64-apple-darwin12.3.0/4.8.0=92 is valid for > Go/Python but not for [enabled by default] > gpy1: warning: command line option > =91-L/usr/local/lib/gcc/x86_64-apple-darwin12.3.0/4.8.0/../../..=92 is > valid for Go/Python but not for [enabled by default] Does your python_handle_option returns true for recognized options? When you build, in the build/gcc/ directory there is an options.c file. Does it mention Python in lang_names? Do the options have the CL_Python flag? Have you defined a hook that returns the lang_mask for Python? See Fortran: fortran/f95-lang.c:#define LANG_HOOKS_OPTION_LANG_MASK gfc_option_lang_mask BTW, you don't need to re-define Common options unless you want to completely change their meaning, which normally is a bad idea. Normally you can just re-use the results returned by the common options machinery for your own purposes. Cheers, Manuel.