* [ECOS] Compilation Warning
@ 2000-09-19 2:57 Fabrice Gautier
2000-09-19 4:14 ` Andrew Lunn
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Gautier @ 2000-09-19 2:57 UTC (permalink / raw)
To: Ecos-List (E-mail)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] Compilation Warning
2000-09-19 2:57 [ECOS] Compilation Warning Fabrice Gautier
@ 2000-09-19 4:14 ` Andrew Lunn
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2000-09-19 4:14 UTC (permalink / raw)
To: Fabrice Gautier; +Cc: ecos-discuss
> 7: warning: alignment of `tty_io_diag' is greater than maximum object file
> alignment. Using 4.
This is a problem i ran into on the ARM architecture. Jifl modified
the HAL table macros to use 8 bytes alignment by default. This causes
problems on some targets where the compiler does not support this
alignment. Have a look at the arm basetype.h. It should have at the end
#define CYGARC_ALIGNMENT 4
#define CYGARC_P2ALIGNMENT 2
You need the same in the i386 basetype.h
Andrew
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-09-19 4:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-19 2:57 [ECOS] Compilation Warning Fabrice Gautier
2000-09-19 4:14 ` Andrew Lunn
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).