From: Benjamin Monate <benjamin.monate@ce...> - 2005-07-27 17:17:38
Dear CIl users,
=3D=3D=3D g1.c =3D=3D=3D
extern int x =3D 77;
=3D=3D=3D g2.c =3D=3D=3D
I get the warning :
Warning: global var G at tests/misc/g1.c:1 has different initializer than=
The warning is clearly not correct. gcc would have emitted a warning whil=
The linker ld links these files and assumes x is global and initialized w=
Mergecil assumes the merged file has no initializer for x.
I do not know what is the semantic with msvc.
Do you have any insight about this kind of programs ?
Thanks in advance
| Benjamin Monate | mailto:benjamin.monate@... |
| Ing=E9nieur-Chercheur | CEA/DRT/DTSI/SOL/LSL |
| B=E2t. 528 Pt. 133 | 91191 Gif-sur-Yvette CEDEX |
| T=E9l. 01 69 08 94 09 | Fax : 01 69 08 83 95 |