Hi,

This patch fixes a compiler crash for alpha-vms.

Back-ends should not lie to the middle-end by defining macros to plain abort 
since the middle-end is entitled to infer properties from their existence.
The correct thing to do is not to define the macros in the first place.

Committed on trunk.

Tristan.

2011-04-20  Eric Botcazou  <ebotca...@adacore.com>

        * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.

*** gcc/config/alpha/vms.h.0    2011-02-19 16:51:47.000000000 +0100
--- gcc/config/alpha/vms.h      2011-02-19 16:52:07.000000000 +0100
*************** typedef struct {int num_args; enum avms_
*** 202,208 ****
     asm (SECTION_OP "\n\t.long " #FUNC"\n");
  
  #undef ASM_OUTPUT_ADDR_DIFF_ELT
- #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) gcc_unreachable ()
  
  #undef ASM_OUTPUT_ADDR_VEC_ELT
  #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
--- 202,207 ----

Reply via email to