parport for ia64
Hi,
I had to add the following file as include/asm-ia64/parport.h to compile the parport modules on ia64.
(See attached file: parport.h.gz)
But when compiling with default optimizations, I get the following:
-----------
make[2]: Entering directory `/usr/src/linux-2.4.0-test6/drivers/parport' gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -g -O2 -fomit-frame-pointer -pipe -Wa,-x -ffixed-r13 -mfixed-range=f10-f15,f32-f127 -funwind-tables -fno-strict-aliasing
-DMODULE -DEXPORT_SYMTAB -c parport_pc.cparport_pc.c: In function `cleanup_module':
parport_pc.c:2698: warning: implicit declaration of function free_dma' parport_pc.c: In function parport_pc_read_status':
parport_pc.c:2719: Internal compiler error in `add_abstract_origin_attribute', at dwarf2out.c:7532
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
make[2]: *** [parport_pc.o] Error 1
-----------
When I removed the -O2 from the compile flags, it compiled fine.
Kernel: linux-2.4.0-test6-ia64-000811
gcc: gcc version 2.9-ia64-000216-final
regards,
chris
parport_pc.c:2719: Internal compiler error in `add_abstract_origin_attribute', at dwarf2out.c:7532
This testcase works OK with the current compiler development sources.
This was fixed by a gcc/dwarf2out.c patch on 2000-04-25. However, I know that patch only works if a few other following patches are also used, and I don't know what the complete set of necessary patches is, so this doesn't seem worthwhile to try to fix in the February compiler.
I'd suggest using a workaround until a newer compiler is ready. Compiling without -g will make the problem go away. Also, getting rid of the inline version of the parport_pc_read_status function will solve the problem.
Jim