public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
From: John Dallaway <john@dallaway.org.uk>
To: eCos Patches List <ecos-patches@ecos.sourceware.org>
Subject: Suppress -fprofile-arcs in extras.o rule
Date: Sat, 20 Nov 2010 20:48:00 -0000	[thread overview]
Message-ID: <4CE833F4.2040601@dallaway.org.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 240 bytes --]

This patch eliminates the possibility of passing -fprofile-arcs from the
global CFLAGS to the linker when generating extras.o. -fprofile-arcs
would imply -lgcov and interfere with subsequent application linking.

Checked-in.

John Dallaway

[-- Attachment #2: extras-101120.patch --]
[-- Type: text/x-patch, Size: 2201 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/common/current/ChangeLog,v
retrieving revision 1.120
diff -U5 -r1.120 ChangeLog
--- ChangeLog	9 Oct 2010 12:53:34 -0000	1.120
+++ ChangeLog	20 Nov 2010 20:06:40 -0000
@@ -1,5 +1,10 @@
+2010-11-20  John Dallaway  <john@dallaway.org.uk>
+
+	* cdl/hal.cdl: Suppress -fprofile-arcs (which implies -lgcov) when
+	generating extras.o.
+
 2010-10-09  John Dallaway  <john@dallaway.org.uk>
 
 	* doc/porting.sgml: Delete references to the memory layout editor.
 
 2009-02-02  Bart Veer  <bartv@ecoscentric.com>
Index: cdl/hal.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/common/current/cdl/hal.cdl,v
retrieving revision 1.25
diff -U5 -r1.25 hal.cdl
--- cdl/hal.cdl	2 Feb 2009 13:46:07 -0000	1.25
+++ cdl/hal.cdl	20 Nov 2010 20:06:40 -0000
@@ -6,11 +6,11 @@
 #
 # ====================================================================
 ## ####ECOSGPLCOPYRIGHTBEGIN####                                            
 ## -------------------------------------------                              
 ## This file is part of eCos, the Embedded Configurable Operating System.   
-## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2010 Free Software Foundation, Inc.
 ##
 ## eCos is free software; you can redistribute it and/or modify it under    
 ## the terms of the GNU General Public License as published by the Free     
 ## Software Foundation; either version 2 or (at your option) any later      
 ## version.                                                                 
@@ -67,11 +67,11 @@
 
     requires      CYGPKG_INFRA
 
     make -priority 250 {
         <PREFIX>/lib/extras.o: <PREFIX>/lib/libextras.a
-        $(CC) $(CFLAGS) -nostdlib -Wl,-r -T /dev/null -Wl,--whole-archive -o $@ $<
+        $(CC) $(CFLAGS) -fno-profile-arcs -nostdlib -Wl,-r -T /dev/null -Wl,--whole-archive -o $@ $<
     }   
 
     cdl_option CYGBLD_GLOBAL_WARNFLAGS {
         display     "Standard compiler warning flags"
         parent      CYGBLD_GLOBAL_OPTIONS

             reply	other threads:[~2010-11-20 20:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-20 20:48 John Dallaway [this message]
2010-11-20 21:58 ` Bart Veer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CE833F4.2040601@dallaway.org.uk \
    --to=john@dallaway.org.uk \
    --cc=ecos-patches@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).