From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28885 invoked by alias); 15 Feb 2011 12:13:22 -0000 Received: (qmail 28824 invoked by uid 22791); 15 Feb 2011 12:13:13 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,TW_CP,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail2.rz.htw-berlin.de (HELO mail2.rz.htw-berlin.de) (141.45.10.102) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Feb 2011 12:13:08 +0000 Envelope-to: gcc-help@gcc.gnu.org Received: from [141.45.200.241] by mail2.rz.htw-berlin.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1PpJkQ-000BDE-GO for gcc-help@gcc.gnu.org; Tue, 15 Feb 2011 13:11:14 +0100 Message-ID: <4D5A6DD1.5060205@student.htw-berlin.de> Date: Tue, 15 Feb 2011 14:56:00 -0000 From: Thomas Martitz User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: -nostdlib option! References: <4D59BEDC.9000606@yahoo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HTW-SPAMINFO: this message was scanned by eXpurgate (http://www.eleven.de) X-HTW-DELIVERED-TO: gcc-help@gcc.gnu.org X-IsSubscribed: yes 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 X-SW-Source: 2011-02/txt/msg00214.txt.bz2 Am 15.02.2011 08:36, schrieb ali hagigat: > I wonder if anybody > can write a simple C program and compile it with -nostdlib so that the > compiler needs one of mem functions and the compiler stops with an > error. Try struct assigments (e.g. struct foo bar = baz). Perhaps if they're big enough gcc doesn't inline the implicit memcpy anymore. Best regards.