]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/avr/avr.c
Merge with trunk.
[thirdparty/gcc.git] / gcc / config / avr / avr.c
index e94e0d7bac8264215a2e1a4f8ceb0d02d6fdcc98..729cc51cb5f6225cb868061d0d82de763bb61135 100644 (file)
@@ -314,6 +314,15 @@ avr_option_override (void)
       flag_omit_frame_pointer = 0;
     }
 
+  if (flag_pic == 1)
+    warning (OPT_fpic, "-fpic is not supported");
+  if (flag_pic == 2)
+    warning (OPT_fPIC, "-fPIC is not supported");
+  if (flag_pie == 1)
+    warning (OPT_fpie, "-fpie is not supported");
+  if (flag_pie == 2)
+    warning (OPT_fPIE, "-fPIE is not supported");
+
   avr_current_device = &avr_mcu_types[avr_mcu_index];
   avr_current_arch = &avr_arch_types[avr_current_device->arch];