From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2207 invoked by alias); 24 Apr 2009 22:52:10 -0000 Received: (qmail 2196 invoked by uid 22791); 24 Apr 2009 22:52:09 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_110,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Apr 2009 22:52:01 +0000 Received: from zps19.corp.google.com (zps19.corp.google.com [172.25.146.19]) by smtp-out.google.com with ESMTP id n3OMpwl4023949; Fri, 24 Apr 2009 15:51:58 -0700 Received: from localhost.localdomain.google.com (dhcp-172-22-125-203.mtv.corp.google.com [172.22.125.203]) (authenticated bits=0) by zps19.corp.google.com with ESMTP id n3OMpuKE006397 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 24 Apr 2009 15:51:57 -0700 To: "Joseph S. Myers" Cc: gcc-patches@gcc.gnu.org, libc-alpha@sourceware.org Subject: Re: Defining C99 predefined macros for whole translation unit References: From: Ian Lance Taylor Date: Fri, 24 Apr 2009 23:06:00 -0000 In-Reply-To: (Joseph S. Myers's message of "Sat\, 18 Apr 2009 16\:35\:17 +0000 \(UTC\)") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg01959.txt.bz2 "Joseph S. Myers" writes: > gcc: > 2009-04-18 Joseph Myers > * target.h (struct gcc_target): Add c.preinclude. > * target-def.h (TARGET_C_PREINCLUDE): Define. > (TARGET_C): Update. > * doc/tm.texi (TARGET_C_PREINCLUDE): Document. > * hooks.c (hook_constcharptr_void_null): New. > * hooks.h (hook_constcharptr_void_null): Declare. > * targhooks.c (glibc_c_preinclude): New. > * targhooks.h (glibc_c_preinclude): Declare. > * c-opts.c (done_preinclude): New. > (push_command_line_include): Handle default preincluded header. > * config/linux.h (TARGET_C_PREINCLUDE): Define. > * config/alpha/linux.h (TARGET_C_PREINCLUDE): Define. > * config/rs6000/linux.h (TARGET_C_PREINCLUDE): Define. > * config/rs6000/linux64.h (TARGET_C_PREINCLUDE): Define. > gcc/testsuite: > 2009-04-18 Joseph Myers > * gcc.dg/c99-predef-1.c: New test. > libcpp: > 2009-04-18 Joseph Myers > * files.c (_cpp_find_file): Add missing_ok argument. Do not call > open_file_failed if missing_ok. > (_cpp_stack_include, _cpp_fake_include, _cpp_compare_file_date): > Update calls to _cpp_find_file. > (_cpp_stack_include): Handle IT_DEFAULT. > (cpp_push_default_include): New. > * include/cpplib.h (cpp_push_default_include): Declare. > * init.c (cpp_read_main_file): Update call to _cpp_find_file. > * internal.h (enum include_type): Add IT_DEFAULT. > (_cpp_find_file): Update prototype. This patch to gcc is OK if the patch to glibc is OK. > -enum include_type {IT_INCLUDE, IT_INCLUDE_NEXT, IT_IMPORT, IT_CMDLINE}; > +enum include_type {IT_INCLUDE, IT_INCLUDE_NEXT, IT_IMPORT, IT_CMDLINE, IT_DEFAULT}; Line looks too long--maybe break it? Thanks. Ian