This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001083] New: Fix warnings on creating target.ld for i386 targets


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]