This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Compilation Warning


Hi

Does these warnings:

i386-elf-gcc -c
-I//E/projects/antilles/Curacao/OS/CelesteRPM/pci-115200_install/include
-I//E/cvswork/ecos-20000904/ecos/packages/io/serial/current
-I//E/cvswork/ecos-20000904/ecos/packages/io/serial/current/src
-I//E/cvswork/ecos-20000904/ecos/packages/io/serial/current/tests -I.
-I//E/cvswork/ecos-20000904/ecos/packages/io/serial/current/src/common/
-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef
-Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti
-fno-exceptions -fvtable-gc -finit-priority -Wp,-MD,src/common/tty.tmp -o
src/common/io_serial_tty.o
//E/cvswork/ecos-20000904/ecos/packages/io/serial/current/src/common/tty.c
//E/cvswork/ecos-20000904/ecos/packages/io/serial/current/src/common/tty.c:7
7: warning: alignment of `tty_io_diag' is greater than maximum object file
alignment. Using 4.
i386-elf-gcc -c
-I//E/projects/antilles/Curacao/OS/CelesteRPM/pci-115200_install/include
-I//E/cvswork/ecos-20000904/ecos/packages/io/serial/current
-I//E/cvswork/ecos-20000904/ecos/packages/io/serial/current/src
-I//E/cvswork/ecos-20000904/ecos/packages/io/serial/current/tests -I.
-I//E/cvswork/ecos-20000904/ecos/packages/io/serial/current/src/common/
-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef
-Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti
-fno-exceptions -fvtable-gc -finit-priority -Wp,-MD,src/common/haldiag.tmp
-o src/common/io_serial_haldiag.o
//E/cvswork/ecos-20000904/ecos/packages/io/serial/current/src/common/haldiag
.c
//E/cvswork/ecos-20000904/ecos/packages/io/serial/current/src/common/haldiag
.c:77: warning: alignment of `haldiag_io0' is greater than maximum object
file alignment. Using 4.

is serious or can I just ignore him. I don't know why the compiler is trying
to align tty_io_diag to some big boundary...

Also the chunk of code that cause this warning:

DEVTAB_ENTRY(tty_io_diag, 
//             "/dev/console",       
//             CYGDAT_IO_SERIAL_TTY_CONSOLE,   // Based on driver for this
device
             "/dev/ttydiag",
             "/dev/haldiag",
             &tty_devio, 
             tty_init, 
             tty_lookup,      // Execute this when device is being looked up
             &tty_private_info_diag);

The device names are hardcoded. Why ? 

Thanks
-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 





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