position independent code.
* config/avr/avr.h: Modify LINK_SPEC to reject -shared.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205633
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
+
+ * config/avr/avr.c (avr_option_override): Warn if asked to generate
+ position independent code.
+ * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
+
2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
PR target/59363
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];
mmcu=at90can64*|\
mmcu=at90usb64*:--pmem-wrap-around=64k}}}\
%:device_to_ld(%{mmcu=*:%*})\
-%:device_to_data_start(%{mmcu=*:%*})"
+%:device_to_data_start(%{mmcu=*:%*})\
+%{shared:%eshared is not supported}"
#define LIB_SPEC \
"%{!mmcu=at90s1*:%{!mmcu=attiny11:%{!mmcu=attiny12:%{!mmcu=attiny15:%{!mmcu=attiny28: -lc }}}}}"