public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
* [Bug 1001083] New: Fix warnings on creating target.ld for i386 targets
@ 2010-11-27 18:33 bugzilla-daemon
  2011-01-01 11:43 ` [Bug 1001083] " bugzilla-daemon
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bugzilla-daemon @ 2010-11-27 18:33 UTC (permalink / raw)
  To: ecos-patches

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001083

           Summary: Fix warnings on creating target.ld for i386 targets
           Product: eCos
           Version: CVS
          Platform: pc (i386 PC target)
        OS/Version: IA32
            Status: NEW
          Severity: minor
          Priority: low
         Component: Patches and contributions
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: sergei.gavrikov@gmail.com
                CC: ecos-patches@ecos.sourceware.org
             Class: Advice Request


Created an attachment (id=1030)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1030)
hal_i386.cdl patch

As a make rule for 'target.ld' (hal_i386.cdl) makes compiler to compile *C*
sources ('-xc' is used in the rule), we get the 2 warnings on creating
target.ld:

% ecosconfig new pc
% ecosconfig tree
% make -s
cc1: warning: command line option "-Woverloaded-virtual" is valid for
C++/ObjC++ but not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not
for C

For example, CFLAGS for i386 pc target are

-finline-limit=7000 -Wall -Wpointer-arith -Wstrict-prototypes -Wundef
-Woverloaded-virtual -Wno-write-strings -g -O2 -ffunction-sections
-fdata-sections -fno-rtti -fno-exceptions

It's more reasonable to use $(ACTUAL_CFLAGS) in the rule, which are

-finline-limit=7000 -Wall -Wpointer-arith -Wstrict-prototypes -Wundef
-Wno-write-strings -g -O2 -ffunction-sections -fdata-sections -fno-exceptions

A patch is attached.

Note: Perhaps the same cleanups are needed for other hal/*/arch CDLs.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-01-04 18:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-27 18:33 [Bug 1001083] New: Fix warnings on creating target.ld for i386 targets bugzilla-daemon
2011-01-01 11:43 ` [Bug 1001083] " bugzilla-daemon
2011-01-01 12:38 ` bugzilla-daemon
2011-01-01 19:18 ` bugzilla-daemon
2011-01-01 19:35 ` bugzilla-daemon
2011-01-02  1:09 ` bugzilla-daemon
2011-01-02 14:00 ` bugzilla-daemon
2011-01-04 18:55 ` bugzilla-daemon

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).