From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12441 invoked by alias); 7 Apr 2003 15:51:38 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 12430 invoked from network); 7 Apr 2003 15:51:37 -0000 Received: from unknown (HELO store.norway.atmel.com) (80.232.32.133) by sources.redhat.com with SMTP; 7 Apr 2003 15:51:37 -0000 Received: (from root@localhost) by store.norway.atmel.com (8.11.6/8.12.3) id h37FpZl39330 for gcc@gcc.gnu.org; Mon, 7 Apr 2003 17:51:35 +0200 (CEST) (envelope-from adland@stud.ntnu.no) Received: from dhcp-119b.norway.atmel.com (dhcp-119b.norway.atmel.com [10.191.255.119]) by store.norway.atmel.com (8.11.6/8.12.3) with ESMTP id h37FpYX39323 for ; Mon, 7 Apr 2003 17:51:34 +0200 (CEST) (envelope-from adland@stud.ntnu.no) Subject: How to control when asm_out_file is printed From: Anders =?ISO-8859-1?Q?=C5dland?= To: gcc@gcc.gnu.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 07 Apr 2003 17:33:00 -0000 Message-Id: <1049730725.1170.49.camel@marit> Mime-Version: 1.0 X-Virus-Scanned: AMaViS X-SW-Source: 2003-04/txt/msg00267.txt.bz2 In the prologue and epilogue I am generating a label like this: (define_expand "prologue" .... operands[0] = gen_label_rtx(); ASM_OUTPUT_INTERNAL_LABEL(asm_out_file, "L", CODE_LABEL_NUMBER(operands[0])); fprintf(asm_out_file, "\tdc32\t0x%08X\n", a_large_constant); ... ) The label is later used to load a large constant into a register. The label is printed above the function, but it has to be printed below. How can I control where the label is printed? Anders