From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12773 invoked by alias); 23 May 2002 09:50:38 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 12742 invoked by uid 61); 23 May 2002 09:50:37 -0000 Date: Thu, 23 May 2002 02:50:00 -0000 Message-ID: <20020523095037.12741.qmail@sources.redhat.com> To: avd@openlinksw.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: neil@gcc.gnu.org Reply-To: neil@gcc.gnu.org, avd@openlinksw.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: preprocessor/6779: -O option causes preprocessing problems X-SW-Source: 2002-05/txt/msg00714.txt.bz2 List-Id: Synopsis: -O option causes preprocessing problems State-Changed-From-To: open->closed State-Changed-By: neil State-Changed-When: Thu May 23 02:50:36 2002 State-Changed-Why: This is the same as the frequently reported non-bug. Glibc defines printf as a macro if optimization is on. At the top of your file, put #undef printf to solve this. GCC 3.2 allows you to put directives in macro arguments, so this Gblic issue disappears, but the changes will not be backported to 3.1 . Why was the message reported by the compiler unclear to you? I'm worried as I don't think I can make it any clearer. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6779