- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I try to compile a source file with 15.0.2, and set the flag "-march=generic", I receive the warning "invalid argument for option '-m'". The documentation (or more specifically, the manpage) for ifort specifies "generic" as an available option for the -march flag. This appears to be an oversight in the documentation.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks as if this has been a problem for a long time. I note that gcc doesn't have such an option. If you really want to do this, -mcpu=generic works. Issue ID is DPD200255416
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. Actually I'm trying to prevent the Fortran RTL from calling the "ENTER" x86 opcode (0xC8). I'm trying to valgrind my Fortran program to find a memory leak and it chokes on that opcode shortly after starting, since it doesn't support it. It appears to be called from within __intel_cpu_indicator_init(), so I was hoping by turning off CPU-specific optimizations I could prevent this routine from being called. Since gcc hasn't supported emitting this instruction for a very long time (apparently, everyone says "don't use it; it's slow"), the developers of valgrind have expressed hesitation at implementing it anytime soon, if at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Compiler options won't help here as they don't affect library calls (at least not this one). I would not expect to see a call to this made if you didn't also use -x or -ax.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page