From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1023 invoked by alias); 5 Jul 2010 20:15:23 -0000 Received: (qmail 32380 invoked by uid 48); 5 Jul 2010 20:14:57 -0000 Date: Mon, 05 Jul 2010 20:15:00 -0000 Message-ID: <20100705201457.32379.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/44752] insn-automata.c: empty translation unit In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "amylaar at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg00498.txt.bz2 ------- Comment #6 from amylaar at gcc dot gnu dot org 2010-07-05 20:14 ------- (In reply to comment #5) > Created an attachment (id=21088) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21088&action=view) [edit] > patch which needs testing > > I have not tested this fix but it should work and should remove the > warning/error for these targets. No, the translation unit is still considered empty. You have to put something syntactic into it, although it could be an extern declaration, an static inline function, or a struct declaration, e.g.: struct rtx_def; -- amylaar at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2010-07-05 01:33:44 |2010-07-05 20:14:57 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44752