69546369af4086f59a9ce84997e8c205f62a81b3
[pintos-anon] / src / misc / gcc-3.3.5.patch
1 GCC 3.3.5 has a bug in the i386-elf target: it fails to emit
2 .intel_syntax in assembly files if -masm=intel is passed on the
3 command line.  This is because elfos.h overrides the ASM_FILE_START
4 provided by gcc/config/att.h, which emits that directive, with a
5 version that does not.  This patch covers up the problem.
6
7 --- gcc/config/elfos.h~ 2005-01-03 21:14:58.312309000 -0800
8 +++ gcc/config/elfos.h  2005-01-03 21:03:51.758598000 -0800
9 @@ -97,9 +97,11 @@
10     directive for any specific target, you should override this definition
11     in the target-specific file which includes this one.  */
12  
13 +#if 0
14  #undef ASM_FILE_START
15  #define ASM_FILE_START(FILE)                            \
16    output_file_directive ((FILE), main_input_filename)
17 +#endif
18  
19  /* This is how to allocate empty space in some section.  The .zero
20     pseudo-op is used for this on most svr4 assemblers.  */